]> git.baikalelectronics.ru Git - kernel.git/commit
fix lguest rmmod "bad pgd"
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 1 Jan 2008 10:48:36 +0000 (21:48 +1100)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 1 Jan 2008 19:30:35 +0000 (11:30 -0800)
commit71f814ab5f46ef4949ba6d34cdbfa978392dae87
tree19dc184b4a01f4c4984e347cf2b875a104478f66
parentaeddccea3d98de65c3f50a20c5ea682320818bf8
fix lguest rmmod "bad pgd"

After 34876967a5786135b84663f377fc2c832c6793aa ("x86: fix x86-32 early
fixmap initialization.") removing lg.ko caused a printk from vunmap:

mm/memory.c:115: bad pgd 004b3027.

On the second use after module load, the kernel crashes.

This fixes the immediate problem (accessed and dirty bits not set as
expected in pmd_none_or_clear_bad).  I can't see why this would cause
a crash, but I haven't been able to reproduce it once this is applied.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/kernel/head_32.S