From: Christoph Hellwig <hch@infradead.org>
To: "Frank Ch. Eigler" <fche@redhat.com>
Cc: Christoph Hellwig <hch@infradead.org>,
Adrian Bunk <bunk@kernel.org>,
linux-kernel@vger.kernel.org,
"David S. Miller" <davem@sunset.davemloft.net>,
Andrew Morton <akpm@linux-foundation.org>,
systemtap@sources.redhat.com,
usb-storage@lists.one-eyed-alien.net,
linux-cifs-client@lists.samba.org, linux-nfs@vger.kernel.org
Subject: Re: [2.6 patch] unexport uts_sem
Date: Wed, 21 May 2008 08:37:00 -0400 [thread overview]
Message-ID: <20080521123700.GA8770@infradead.org> (raw)
In-Reply-To: <20080520183802.GA686@redhat.com>
On Tue, May 20, 2008 at 02:38:02PM -0400, Frank Ch. Eigler wrote:
> Sorry, I misspoke - this check is intended not to cross-check
> kernel-devel and the kernel itself, but the debuginfo or similar data
> that is given to describe target of a systemtap script. I guess for
> new enough kernels we'll just do that using buildid hash codes.
>
> By the way, there do appear to be a few suspect in-tree users of
> utsname() without uts_sem locking (usb/storage/usb.c
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.
> cifs/connect.c,
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.
> char/random.c,
random.c is always built-in and utsname is called during the
single-threaded kernel initialization phase, so this is safe.
> fs/lockd/clntproc.c, ...).
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.
> If these need to be fixed,
> then wouldn't uts_sem need to come back exported?
next prev parent reply other threads:[~2008-05-21 12:37 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-05 18:29 [2.6 patch] unexport uts_sem Adrian Bunk
2008-05-20 17:16 ` Frank Ch. Eigler
2008-05-20 17:27 ` Christoph Hellwig
2008-05-20 18:38 ` Frank Ch. Eigler
2008-05-21 12:37 ` Christoph Hellwig [this message]
2008-05-21 14:48 ` Steve French (smfltc)
2008-05-21 17:51 ` [PATCH] usb-storage: don't call utsname() Alan Stern
2008-05-21 17:51 ` Alan Stern
[not found] ` <Pine.LNX.4.44L0.0805211349480.3409-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
2008-05-21 18:09 ` Greg KH
2008-05-21 18:09 ` Greg KH
2008-05-21 18:19 ` Steve French (smfltc)
2008-05-21 18:19 ` Steve French (smfltc)
2008-05-21 18:52 ` Christoph Hellwig
2008-05-21 18:52 ` Christoph Hellwig
2008-05-21 19:35 ` Greg KH
2008-05-21 19:35 ` Greg KH
2008-05-21 21:01 ` Steve French (smfltc)
2008-05-21 21:01 ` Steve French (smfltc)
-- strict thread matches above, loose matches on Subject: below --
2008-04-23 9:52 [2.6 patch] unexport uts_sem Adrian Bunk
2008-04-23 10:50 ` David Miller
2005-04-15 15:10 Adrian Bunk
2005-03-04 0:50 Adrian Bunk
2005-03-04 12:57 ` Alan Cox
2005-03-04 13:28 ` Arjan van de Ven
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080521123700.GA8770@infradead.org \
--to=hch@infradead.org \
--cc=akpm@linux-foundation.org \
--cc=bunk@kernel.org \
--cc=davem@sunset.davemloft.net \
--cc=fche@redhat.com \
--cc=linux-cifs-client@lists.samba.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nfs@vger.kernel.org \
--cc=systemtap@sources.redhat.com \
--cc=usb-storage@lists.one-eyed-alien.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.