diff --git a/arch/x86/mm/fault.c b/arch/x86/mm/fault.c index f627779..578ba52 100644 --- a/arch/x86/mm/fault.c +++ b/arch/x86/mm/fault.c @@ -629,6 +629,8 @@ no_context(struct pt_regs *regs, unsigned long error_code, unsigned long flags; int sig; + if (error_code & PF_INSTR) + printk("exec on NX\n"); /* Are we prepared to handle this kernel fault? */ if (fixup_exception(regs)) return;