]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
kexec jump: check code size in control page
authorHuang Ying <ying.huang@intel.com>
Fri, 15 Aug 2008 07:40:23 +0000 (00:40 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 15 Aug 2008 15:35:42 +0000 (08:35 -0700)
commitfb45daa69d287b394eca1619b3fadff7c0215c71
treeaeb5a247b105d3b7e7ef2cdb0db5743574d9c480
parent163f6876f5c3ff8215e900b93779e960a56b3694
kexec jump: check code size in control page

Kexec/Kexec-jump require code size in control page is less than
PAGE_SIZE/2.  This patch add link-time checking for this.

ASSERT() of ld link script is used as the link-time checking mechanism.

[akpm@linux-foundation.org: build fix]
Signed-off-by: Huang Ying <ying.huang@intel.com>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/kernel/machine_kexec_32.c
arch/x86/kernel/relocate_kernel_32.S
arch/x86/kernel/vmlinux_32.lds.S
include/asm-x86/kexec.h