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] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 12 Dec 2007 09:54:12 -0800
From:	"H. Peter Anvin" <hpa@...or.com>
To:	Greg KH <greg@...ah.com>
CC:	"Huang, Ying" <ying.huang@...el.com>, akpm@...ux-foundation.org,
	Thomas Gleixner <tglx@...utronix.de>,
	Ingo Molnar <mingo@...hat.com>, Andi Kleen <ak@...e.de>,
	"Eric W. Biederman" <ebiederm@...ssion.com>,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH -mm -v2] x86 boot : export boot_params via sysfs

Greg KH wrote:
> On Wed, Dec 12, 2007 at 04:59:51PM +0800, Huang, Ying wrote:
>> This patch export the boot parameters via sysfs. This can be used for
>> debugging and kexec.
>>
>> The files added are as follow:
>>
>> /sys/kernel/boot_params/data	: binary file for struct boot_params
>> /sys/kernel/boot_params/version	: boot protocol version
>>
>> This patch is based on 2.6.24-rc4-mm1 and has been tested on i386 and
>> x86_64 platoform.
>>
>> This patch is based on the Peter Anvin's proposal.
> 
> As outlined in a previous email, I object to the whole structure being
> exported to userspace as a binary blob.  Please change that.
> 

I would prefer to have the binary blob available; exported fields is 
possible too, of course.

This is a binary structure defined by protocol; in that way it's not 
significantly different from something passed from the firmware (in 
fact, it might very well *be* passed from the firmware.)  We have in the 
past found platform bugs by looking at the contents of the whole 
structure, e.g. to find that part of it has been inappropriately clobbered.

It is also in the form needed by e.g. kexec to operate.

	-hpa
--
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