Nasty, stupid bug, and I've suddenly had two reports.

Thanks,
 Rusty.
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iQIcBAABAgAGBQJUYvITAAoJENkgDmzRrbjx4M0QAI0isuH6KeZbw7C4jArQd/N4
 Ufrj/eC94CeDt1bJ8xu95kr3nkqNV0SwywhDKv250tSeRMNo2FNKiSHaiSlJXa9G
 DrGAKlPsEHcLMZrYfmRNfDUVBw1JsSdHX6JUnhLTJeNZbJ030RQD4Rs1wiuOpzgG
 /UAEQx2OEJU0VB6VuEVWiKwWJK5LjrGNH64M156bdAMeUAFnXr7czhd3sxbdFcWt
 1evKUc1Z/EJlzxUsBRThlxX7kmCgpWNwVkK4IrnI/kHxzgnxxlcoNfCTQ57YanDs
 HPs8uXQqV5GUHg9b+wkEjkb5KK5gv4fJklWl31gyMaWyNbX94zIZNzFhbfYcNduZ
 QBbdbZoJaHP0++u15qpVsLwAg1pOVDvrtD3z1cKpStjtUavugOeByeM68fnCaWR5
 I9uMS+bLlOObi6hIAgzMB2Kga9d1fRVA3XlfSiOzt0BLTP9CFvlhd64zR67pjL76
 WnYHQJDxGLSvbQef2W08c5aN7L/XxReV1rOw1Cm4sx3B32Ut2PAq7FkuWMu3xPRs
 PKe6h1s4D8C7yG3qaWtl9XoAJpIfA6H8c5427IbFgylNdvxN6XtQCXi3SEINemlL
 dgy+PNLqJE3xPXheyqi0t/UtG74v9RGsmC3thcBeSJ3rIure6XSm+rp5DUUpLCTI
 oj/QUb0rHPBY2UApgYJ+
 =9Jk/
 -----END PGP SIGNATURE-----

Merge tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux

Pull kernel argument parsing fix from Rusty Russell:
 "Nasty, stupid bug, and I've suddenly had two reports"

* tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux:
  param: fix crash on bad kernel arguments
This commit is contained in:
Linus Torvalds 2014-11-12 13:53:55 -08:00
commit 9d1f9c73df
1 changed files with 1 additions and 1 deletions

View File

@ -544,7 +544,7 @@ asmlinkage __visible void __init start_kernel(void)
static_command_line, __start___param,
__stop___param - __start___param,
-1, -1, &unknown_bootoption);
if (after_dashes)
if (!IS_ERR_OR_NULL(after_dashes))
parse_args("Setting init args", after_dashes, NULL, 0, -1, -1,
set_init_arg);