From: Ravikiran G Thirumalai Date: Tue, 23 Sep 2008 05:58:47 +0000 (-0700) Subject: x86: fix 27-rc crash on vsmp due to paravirt during module load X-Git-Tag: v2.6.27-rc8~29^2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05e12e1c4c09cd35ac9f4e6af1e42b0036375d72;p=pandora-kernel.git x86: fix 27-rc crash on vsmp due to paravirt during module load 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 Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed