Messages in this thread | | | Date | Fri, 04 Feb 2011 12:20:24 -0800 | From | "H. Peter Anvin" <> | Subject | Re: [PATCH 1/2] x86: fix panic when handling "mem={invalid}" param |
| |
On 02/04/2011 12:19 PM, Yinghai Lu wrote: >> >> All he looks at is when the value returned is zero. It wouldn't be zero >> for any actual value, including mem=32M. >> > > when user pass wrong parameter like less 128M, kernel will not boot either. > Do we need to sanity check for that? >
We could check for the value being smaller than the relocated value of _end. That is probably the smallest *fixed* value we can assign.
-hpa
| |