The patch titled Subject: mips/kprobes: export kprobe_fault_handler() has been added to the -mm tree. Its filename is mm-generalize-and-rename-notify_page_fault-as-kprobe_page_fault-fix.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-generalize-and-rename-notify_page_fault-as-kprobe_page_fault-fix.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-generalize-and-rename-notify_page_fault-as-kprobe_page_fault-fix.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Anshuman Khandual <anshuman.khandual@xxxxxxx> Subject: mips/kprobes: export kprobe_fault_handler() Generic kprobe_page_fault() calls into kprobe_fault_handler() which must be available with and without CONFIG_KPROBES. There is one stub implementation for !CONFIG_KPROBES. For CONFIG_KPROBES all subscribing archs must provide a kprobe_fault_handler() definition. Currently mips has an implementation which is defined as 'static inline'. Make it available for generic kprobes to comply with the above new requirement. Link: http://lkml.kernel.org/r/1561133358-8876-1-git-send-email-anshuman.khandual@xxxxxxx Signed-off-by: Anshuman Khandual <anshuman.khandual@xxxxxxx> Reported-by: kbuild test robot <lkp@xxxxxxxxx> Cc: Ralf Baechle <ralf@xxxxxxxxxxxxxx> Cc: Paul Burton <paul.burton@xxxxxxxx> Cc: James Hogan <jhogan@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- arch/mips/include/asm/kprobes.h | 1 + arch/mips/kernel/kprobes.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) --- a/arch/mips/include/asm/kprobes.h~mm-generalize-and-rename-notify_page_fault-as-kprobe_page_fault-fix +++ a/arch/mips/include/asm/kprobes.h @@ -41,6 +41,7 @@ do { \ #define kretprobe_blacklist_size 0 void arch_remove_kprobe(struct kprobe *p); +int kprobe_fault_handler(struct pt_regs *regs, int trapnr); /* Architecture specific copy of original instruction*/ struct arch_specific_insn { --- a/arch/mips/kernel/kprobes.c~mm-generalize-and-rename-notify_page_fault-as-kprobe_page_fault-fix +++ a/arch/mips/kernel/kprobes.c @@ -398,7 +398,7 @@ out: return 1; } -static inline int kprobe_fault_handler(struct pt_regs *regs, int trapnr) +int kprobe_fault_handler(struct pt_regs *regs, int trapnr) { struct kprobe *cur = kprobe_running(); struct kprobe_ctlblk *kcb = get_kprobe_ctlblk(); _ Patches currently in -mm which might be from anshuman.khandual@xxxxxxx are mm-dev_pfn-exclude-memory_device_private-while-computing-virtual-address.patch mm-pgtable-drop-pgtable_t-variable-from-pte_fn_t-functions.patch mm-ioremap-check-virtual-address-alignment-while-creating-huge-mappings.patch mm-ioremap-probe-platform-for-p4d-huge-map-support.patch mm-generalize-and-rename-notify_page_fault-as-kprobe_page_fault.patch mm-generalize-and-rename-notify_page_fault-as-kprobe_page_fault-fix.patch