KVM guests and KERNEXEC
Posted: Sat Aug 06, 2011 8:10 am
Hi.
I built a kernel with the latest stable patch (2.2.2-2.6.32.43) and KERNEXEC enabled to be used as a KVM guest.
The kernel builds fine, but when I start it up under KVM the kernel hits a BUG_ON in native_pax_open_kernel while trying to initialize the (virtual) CPU.
The exact location is arch/x86/include/asm/pgtable.h:92:
The host system is an EPT-capable x86_64 machine running kernel 2.6.38, so it should allow the guest to change the WP bit in CR0.
Other PaX options (eg. UDEREF) work fine as long as KERNEXEC is disabled.
I built a kernel with the latest stable patch (2.2.2-2.6.32.43) and KERNEXEC enabled to be used as a KVM guest.
The kernel builds fine, but when I start it up under KVM the kernel hits a BUG_ON in native_pax_open_kernel while trying to initialize the (virtual) CPU.
The exact location is arch/x86/include/asm/pgtable.h:92:
- Code: Select all
BUG_ON(unlikely(cr0 & X86_CR0_WP));
The host system is an EPT-capable x86_64 machine running kernel 2.6.38, so it should allow the guest to change the WP bit in CR0.
Other PaX options (eg. UDEREF) work fine as long as KERNEXEC is disabled.