Re: [2.6 patch] unexport uts_sem

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Frank Ch. Eigler <fche@...>
Cc: Christoph Hellwig <hch@...>, Adrian Bunk <bunk@...>, <linux-kernel@...>, David S. Miller <davem@...>, Andrew Morton <akpm@...>, <systemtap@...>, <usb-storage@...>, <linux-cifs-client@...>, <linux-nfs@...>
Date: Wednesday, May 21, 2008 - 8:37 am

On Tue, May 20, 2008 at 02:38:02PM -0400, Frank Ch. Eigler wrote:

Just a debug printk.  Note sure why this particular one needs to
print the version, but if it really wants to do it it should rather use
UTS_RELEASE.


This one is quite fishy. Not sure what it needs the name for but the
kernel utsname is probably a bad choise.  And yes, this one actually
is racy because the host name can change.


random.c is always built-in and utsname is called during the
single-threaded kernel initialization phase, so this is safe.


Yes, this one is racy.  Should probably be fixed by starting lockd
with CLONE_NEWUTS so that it never changed during it's lifetime.
It's probably not a good idea when it changes with outstanding lockd
request anyway.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[2.6 patch] unexport uts_sem, Adrian Bunk, (Mon May 5, 2:29 pm)
Re: [2.6 patch] unexport uts_sem, Frank Ch. Eigler, (Tue May 20, 1:16 pm)
Re: [2.6 patch] unexport uts_sem, Christoph Hellwig, (Tue May 20, 1:27 pm)
Re: [2.6 patch] unexport uts_sem, Frank Ch. Eigler, (Tue May 20, 2:38 pm)
Re: [2.6 patch] unexport uts_sem, Christoph Hellwig, (Wed May 21, 8:37 am)
[PATCH] usb-storage: don't call utsname(), Alan Stern, (Wed May 21, 1:51 pm)
Re: [PATCH] usb-storage: don't call utsname(), Greg KH, (Wed May 21, 2:09 pm)
Re: [PATCH] usb-storage: don't call utsname(), Christoph Hellwig, (Wed May 21, 2:52 pm)
Re: [PATCH] usb-storage: don't call utsname(), Greg KH, (Wed May 21, 3:35 pm)
Re: Re: [PATCH] usb-storage: don't call utsname(), Steve French (smfltc), (Wed May 21, 5:01 pm)
Re: Re: [PATCH] usb-storage: don't call utsname(), Steve French (smfltc), (Wed May 21, 2:19 pm)
Re: Re: [2.6 patch] unexport uts_sem, Steve French (smfltc), (Wed May 21, 10:48 am)