Re: [patch 0/5] early params NULL pointer deref fix

From: Cyrill Gorcunov
Date: Wed Jul 09 2008 - 11:25:30 EST


[Ingo Molnar - Wed, Jul 09, 2008 at 01:57:48PM +0200]
|
| * Cyrill Gorcunov <gorcunov@xxxxxxxxx> wrote:
|
| > This series fix a possible NULL pointer deref in case if user was
| > stupid enough to pass boot parameter without a mandatory value
| >
| > Actually there is a number of such issues on other platforms too
| > (like powerpc, sh, s390) so I think it should be fixed too (any
| > volunteers?)
| >
| > Any comments are welcome.
|
| thanks Cyrill, i picked them up.
|
| I'm wondering, would it be possible to filter NULL out on one higher
| level? Would it break any existing functionality? (i dont think it would
| or should)
|
| Ingo
|

well, actually it would and should :)

Currently parser does a simple thing - just parses command line and split
key/param pairs. But kernel code uses it in three ways:

1) as simple flag specified on booting
2) as key and value
3) combination of 1) and 2)

So for now I don't see any simple solution for this. We could use '='
param postfix to specify that a mandatory value required for param and
throw out any misconfigured boot options but it will make way 3) invalid
so kernel code will have to be fixed then. So some additional review
and conversation about this are needed.

- Cyrill -
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/