Re: [PATCH] x86, kaslr: randomize module base load address

H. Peter Anvin
2014-02-21T23:02:12Z

On 02/21/2014 01:27 PM, Andrew Morton wrote:
> On Fri, 21 Feb 2014 13:18:26 -0800 "H. Peter Anvin" <hpa@zytor.com> wrote:
>
>> On 02/21/2014 01:15 PM, Andrew Morton wrote:
>>>>
>>>> I've been slapped down for adding more config options in the past, and
>>>> I think it's unlikely that people using CONFIG_RANDOMIZE_BASE won't
>>>> want the modules base randomized too. I think this is a safe default,
>>>> but if you see it as a requirement, I can change it.
>>>
>>> I think there were issues with some embedded systems where it's
>>> hard/impossible to provide/alter boot parameters.
>>>
>>
>> We now allow kernel parameters to be compiled into the kernel image for
>> that reason.
>
> We do? What's that Kconfig variable called?
>

CONFIG_CMDLINE and CONFIG_CMDLINE_OVERRIDE. They seem to be
x86-specific at this time, although I think some other arches have
similar hacks.

-hpa