From: Michael Tokarev <mjt@tls.msk.ru>
To: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Oleg Nesterov <oleg@tv-sign.ru>, Andrew Morton <akpm@osdl.org>,
Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: bug reading /proc/sys/kernel/*: only first byte read.
Date: Tue, 30 Jan 2007 18:57:31 +0300 [thread overview]
Message-ID: <45BF6AEB.10408@tls.msk.ru> (raw)
In-Reply-To: <m1y7nkh7so.fsf@ebiederm.dsl.xmission.com>
Eric W. Biederman wrote:
[]
> However as far as I can tell the code has this limitation
> deliberately for simplicity.
>
> Getting the string side of this fixed even by itself is
> worthwhile, although it might be worth teach people
> about sys_uname and /bin/uname. It seems is the biggest thing
> people look at /proc/sys/ for...
I come across this very issue when I discovered another bug,
using un-initialized pipefs structures during early hotplug
calls. I know about /bin/uname, but it requires a pipe, so
wont work. Obvious alternative is /proc/sys/version, which
is alot faster too (no fork+exec overhead).
/mjt
prev parent reply other threads:[~2007-01-30 15:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-20 12:43 bug reading /proc/sys/kernel/*: only first byte read Michael Tokarev
2007-01-30 10:24 ` Andrew Morton
2007-01-30 13:25 ` Oleg Nesterov
2007-01-30 14:00 ` Oleg Nesterov
2007-01-30 15:07 ` Eric W. Biederman
2007-01-30 15:57 ` Michael Tokarev [this message]
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=45BF6AEB.10408@tls.msk.ru \
--to=mjt@tls.msk.ru \
--cc=akpm@osdl.org \
--cc=ebiederm@xmission.com \
--cc=linux-kernel@vger.kernel.org \
--cc=oleg@tv-sign.ru \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox