- ia64-kprobes-fixup-the-pagefault-exception-caused-by-probehandlers.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     ia64: kprobes: fixup the pagefault exception caused by probehandlers

has been removed from the -mm tree.  Its filename is

     ia64-kprobes-fixup-the-pagefault-exception-caused-by-probehandlers.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
Subject: ia64: kprobes: fixup the pagefault exception caused by probehandlers
From: Keshavamurthy Anil S <anil.s.keshavamurthy@xxxxxxxxx>

If the user-specified kprobe handler causes the page fault when accessing
user space address, fixup this fault since do_page_fault() should not
continue as the kprobe handler are run with preemption disabled.

Signed-off-by: Anil S Keshavamurthy <anil.s.keshavamurthy@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 arch/ia64/kernel/kprobes.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff -puN arch/ia64/kernel/kprobes.c~ia64-kprobes-fixup-the-pagefault-exception-caused-by-probehandlers arch/ia64/kernel/kprobes.c
--- a/arch/ia64/kernel/kprobes.c~ia64-kprobes-fixup-the-pagefault-exception-caused-by-probehandlers
+++ a/arch/ia64/kernel/kprobes.c
@@ -768,6 +768,12 @@ static int __kprobes kprobes_fault_handl
 		 */
 		if (cur->fault_handler && cur->fault_handler(cur, regs, trapnr))
 			return 1;
+		/*
+		 * In case the user-specified fault handler returned
+		 * zero, try to fix up.
+		 */
+		if (ia64_done_with_exception(regs))
+			return 1;
 
 		/*
 		 * Let ia64_do_page_fault() fix it.
_

Patches currently in -mm which might be from anil.s.keshavamurthy@xxxxxxxxx are

git-ia64.patch
kprobes-make-kprobe-modules-more-portable-update.patch
kprobes-handle-symbol-resolution-when-modulesymbol-is-specified.patch
kprobes-handle-symbol-resolution-when-modulesymbol-is-specified-tidy.patch
add-regs_return_value-helper.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux