]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Oops in pseries_lmb_remove()
authorNathan Fontenot <nfont@austin.ibm.com>
Wed, 1 Oct 2008 09:44:02 +0000 (09:44 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 10 Oct 2008 04:55:17 +0000 (15:55 +1100)
commit9007effbd777c4017e1709aba5dac862672136b9
tree4579e16f3d1f9504f8320ce973afc9996cd07e39
parent55447e53562ca93d5a7c31b837a2cd606820ec0b
powerpc: Oops in pseries_lmb_remove()

Testing hotplug memory remove has revealed that we can oops in
pseries_lmb_remove().  The incorrect shift causes a NULL pointer
dereference in the page_zone() inline routine.

I have only been able to reproduce the oops on kernels with large pages
enabled.

Tested on Power5 and Power6 with and without large pages enabled.

Signed-off-by: Nathan Fontenot <nfont@austin.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/pseries/hotplug-memory.c