]> git.baikalelectronics.ru Git - kernel.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)
commit61bafe3a6abf1629cacad5af14555a606b827919
treeaeb5a247b105d3b7e7ef2cdb0db5743574d9c480
parentb45fa8191de3a3df56b2176a9969e225695e2b03
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