kprobe cleanup for VM_MASK judgement
PATCH 1/1 kprobe cleanup for VM_MASK judgement
Hi,
When trap happens in user space, kprobe_exceptions_notify() funtion will skip it. This patch deletes some unnecessary code for VM_MASK judgement in eflags.
Signed-off-by bibo, mao <[email protected]>
Thanks
bibo,mao
arch/i386/kernel/kprobes.c +0 -9
@@ -242,10 +242,6 @@ static int __kprobes kprobe_handler(stru kcb->kprobe_status =KPROBE_REENTER ;return 1 ; }else { -if (regs->eflags &VM_MASK ) { -/* We are in virtual-8086 mode. Return 0 */ - goto no_kprobe; - }if (*addr !=BREAKPOINT_INSTRUCTION ) {/* The breakpoint instruction was removed by * another cpu right after we hit, no further
@@ -265,11 +261,6 @@ static int __kprobes kprobe_handler(stru p =get_kprobe (addr);if (!p) { -if (regs->eflags &VM_MASK ) { -/* We are in virtual-8086 mode. Return 0 */ - goto no_kprobe; - } -if (*addr !=BREAKPOINT_INSTRUCTION ) {/* * The breakpoint instruction was removed right
Quoted 5 lines · bibo
Hi,
When trap happens in user space,kprobe_exceptions_notify()funtion will skip it. This patch deletes some unnecessary code forVM_MASKjudgement in eflags.Signed-off-by bibo, mao <[email protected]>
ACK
Quoted 5 lines
Hi,
When trap happens in user space,kprobe_exceptions_notify()funtion will skip it. This patch deletes some unnecessary code forVM_MASKjudgement in eflags.Signed-off-by bibo, mao <[email protected]>
Looks good to me.
Thanks
Prasanna
Signature · 5 lines
Prasanna S Panchamukhi Linux Technology Center India Software Labs, IBM Bangalore Email: [email protected] Ph: 91-80-51776329