https://github.com/torvalds/linux
Revision 05e12e1c4c09cd35ac9f4e6af1e42b0036375d72 authored by Ravikiran G Thirumalai on 23 September 2008, 05:58:47 UTC, committed by Ingo Molnar on 23 September 2008, 08:31:26 UTC
27-rc fails to boot up if configured to use modules.

Turns out vsmp_patch was marked __init, and vsmp_patch being the
pvops 'patch' routine for vsmp, a call to vsmp_patch just turns out
to execute a code page with series of 0xcc (POISON_FREE_INITMEM -- int3).

vsmp_patch has been marked with __init ever since pvops, however,
apply_paravirt can be called during module load causing calls to
freed memory location.

Since apply_paravirt can only be called during init/module load, make
vsmp_patch with "__init_or_module"

Signed-off-by: Ravikiran Thirumalai <kiran@scalex86.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
1 parent b61e06f
History
Tip revision: 05e12e1c4c09cd35ac9f4e6af1e42b0036375d72 authored by Ravikiran G Thirumalai on 23 September 2008, 05:58:47 UTC
x86: fix 27-rc crash on vsmp due to paravirt during module load
Tip revision: 05e12e1
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
usr
virt
.gitignore -rw-r--r-- 867 bytes
.mailmap -rw-r--r-- 3.6 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 90.7 KB
Kbuild -rw-r--r-- 2.4 KB
MAINTAINERS -rw-r--r-- 99.8 KB
Makefile -rw-r--r-- 55.4 KB
README -rw-r--r-- 16.5 KB
REPORTING-BUGS -rw-r--r-- 3.1 KB

README

back to top