lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Tue, 30 Jan 2007 18:57:31 +0300
From:	Michael Tokarev <mjt@....msk.ru>
To:	"Eric W. Biederman" <ebiederm@...ssion.com>
CC:	Oleg Nesterov <oleg@...sign.ru>, Andrew Morton <akpm@...l.org>,
	Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: bug reading /proc/sys/kernel/*: only first byte read.

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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ