diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-01-30 13:33:04 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 13:33:04 +0100 |
commit | acd644bb4abb4d9f0ba6b9ec2b356263971ef9d0 (patch) | |
tree | 9fcea88cca70b60efa8d49b9e3a11a43408a7449 /drivers/scsi/dpt/sys_info.h | |
parent | 1a8514e04e3f0249a75f66225e99cdf48d305be7 (diff) |
x86 setup: guard the heap against invalid stack setups
If we use the bootloader-provided stack pointer, we might end up in a
situation where the bootloader (incorrectly) pointed the stack in the
middle of our heap. Catch this by simply comparing the computed heap
end value to the stack pointer minus the defined stack size.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/scsi/dpt/sys_info.h')
0 files changed, 0 insertions, 0 deletions