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>] [day] [month] [year] [list]
Message-ID: <4A57D024.8060700@impulze.org>
Date:	Sat, 11 Jul 2009 01:35:00 +0200
From:	Daniel Mierswa <impulze@...ulze.org>
To:	linux-kernel@...r.kernel.org
CC:	rusty@...tcorp.com.au
Subject: [RFC][PATCH] Remove limitations with regards to kernel commandline
 parsing

Currently there are limitations and imho some weird things with regards to parsing kernel command line parameters. Say if you an initramfs and you want to pass whitespace values to it you may end up with something you did not expect. Passing param="foo" to the kernel makes it (using [] notation) [param[foo]], so far so good. Passing real_root=LABEL="abc def" makes it [real_root[LABEL="abc def"]] which is not quite what you want, you'd expect [real_rooĊ§[LABEL=abc def]]. Hence my patch (git f-p against master of linus.git is attached) tries to remove those limitations.

> There was a limitation for kernel parameters with regards to quoting. It
> wasn't possible to escape quotes or use quotes to form space-filled
> values _inside_ parameters. This patch attempts to make that possible,
> kernel parameters are now parsed as follows:
> '"param= value"' [param= value][]
> 'param=" value "" combination "' [param][ value  combination ]
> 'param=" \" test"' [param][ " test]
> '"param"=another' [param][another]

CC'ed rusty@...tcorp.com.au since he shows up quite frequent in git log of kernel/params.c

-- 
Mierswa, Daniel

If you still don't like it, that's ok: that's why I'm boss. I simply know better than you do.
               --- Linus Torvalds, comp.os.linux.advocacy, 1996/07/22

View attachment "kernel.patch" of type "text/plain" (4318 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ