]> git.baikalelectronics.ru Git - kernel.git/commit
[IA64] Module gp must point to valid memory
authorKeith Owens <kaos@sgi.com>
Mon, 6 Jun 2005 09:04:00 +0000 (02:04 -0700)
committerTony Luck <tony.luck@intel.com>
Wed, 8 Jun 2005 18:41:31 +0000 (11:41 -0700)
commite36d103b86e8bbcd7444d95d5aadd2c9400a01f4
tree10c06d91204027a8688a2337aa061e51a3321c0f
parente72b458f3f0f5470fb644b688e01cd4848052284
[IA64] Module gp must point to valid memory

Some bits of the kernel assume that gp always points to valid memory,
in particular PHYSICAL_MODE_ENTER() assumes that both gp and sp are
valid virtual addresses with associated physical pages.  The IA64
module loader puts gp well past the end of the module, with no physical
backing.  Offsets on gp are still valid, but physical mode addressing
breaks for modules.  Ensure that gp always falls within the module
body.  Also ensure that gp is 8 byte aligned.

Signed-off-by: Keith Owens <kaos@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/module.c