diff options
author | Baoquan He <[email protected]> | 2017-05-13 13:46:29 +0800 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2017-05-24 09:50:27 +0200 |
commit | 4cdba14f84c9102c4434384731cd61018b970d59 (patch) | |
tree | 4fb08d80e24df7dcc71a669622d6cbdf9c19f1b9 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | d52e7d5a952c5e35783f96e8c5b7fcffbb0d7c60 (diff) |
x86/KASLR: Handle the memory limit specified by the 'memmap=' and 'mem=' boot options
The 'mem=' boot option limits the max address a system can use - any memory
region above the limit will be removed.
Furthermore, the 'memmap=nn[KMG]' variant (with no offset specified) has the same
behaviour as 'mem='.
KASLR needs to consider this when choosing the random position for
decompressing the kernel. Do it.
Tested-by: Masayoshi Mizuma <[email protected]>
Signed-off-by: Baoquan He <[email protected]>
Acked-by: Kees Cook <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions