Re: [PATCH] mm: Generalize and rename notify_page_fault() as kprobe_page_fault()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Anshuman Khandual <anshuman.khandual@xxxxxxx>, <linux-mm@xxxxxxxxx>, <linux-kernel@xxxxxxxxxxxxxxx>
- Subject: Re: [PATCH] mm: Generalize and rename notify_page_fault() as kprobe_page_fault()
- From: Vineet Gupta <Vineet.Gupta1@xxxxxxxxxxxx>
- Date: Thu, 13 Jun 2019 10:57:45 -0700
- Cc: Mark Rutland <mark.rutland@xxxxxxx>, Michal Hocko <mhocko@xxxxxxxx>, <linux-ia64@xxxxxxxxxxxxxxx>, <linux-sh@xxxxxxxxxxxxxxx>, Peter Zijlstra <peterz@xxxxxxxxxxxxx>, Catalin Marinas <catalin.marinas@xxxxxxx>, "Dave Hansen" <dave.hansen@xxxxxxxxxxxxxxx>, Will Deacon <will.deacon@xxxxxxx>, Paul Mackerras <paulus@xxxxxxxxx>, <sparclinux@xxxxxxxxxxxxxxx>, "Stephen Rothwell" <sfr@xxxxxxxxxxxxxxxx>, <linux-s390@xxxxxxxxxxxxxxx>, Yoshinori Sato <ysato@xxxxxxxxxxxxxxxxxxxx>, Michael Ellerman <mpe@xxxxxxxxxxxxxx>, <x86@xxxxxxxxxx>, Russell King <linux@xxxxxxxxxxxxxxx>, Matthew Wilcox <willy@xxxxxxxxxxxxx>, Ingo Molnar <mingo@xxxxxxxxxx>, James Hogan <jhogan@xxxxxxxxxx>, <linux-snps-arc@xxxxxxxxxxxxxxxxxxx>, Fenghua Yu <fenghua.yu@xxxxxxxxx>, Andrey Konovalov <andreyknvl@xxxxxxxxxx>, "Andy Lutomirski" <luto@xxxxxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxx>, "Masami Hiramatsu" <masami.hiramatsu.pt@xxxxxxxxxxx>
- In-reply-to: <1560420444-25737-1-git-send-email-anshuman.khandual@arm.com>
- Newsgroups: gmane.linux.ports.arm.kernel, gmane.linux.kernel.mm, gmane.linux.kernel, gmane.linux.ports.ia64, gmane.linux.ports.sh.devel, gmane.linux.ports.sparc, gmane.linux.kernel.arc, gmane.linux.ports.mips, gmane.linux.ports.ppc64.devel
- Openpgp: preference=signencrypt
- References: <1560420444-25737-1-git-send-email-anshuman.khandual@arm.com>
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0
+CC Masami San
On 6/13/19 3:07 AM, Anshuman Khandual wrote:
> Questions:
>
> AFAICT there is no equivalent of erstwhile notify_page_fault() during page
> fault handling in arc and mips archs which can call this generic function.
> Please let me know if that is not the case.
For ARC do_page_fault() is entered for MMU exceptions (TLB Miss, access violations
r/w/x etc). kprobes uses a combination of UNIMP_S and TRAP_S instructions which
don't funnel into do_page_fault().
UINMP_S leads to
instr_service
do_insterror_or_kprobe
notify_die(DIE_IERR)
kprobe_exceptions_notify
arc_kprobe_handler
TRAP_S 2 leads to
EV_Trap
do_non_swi_trap
trap_is_kprobe
notify_die(DIE_TRAP)
kprobe_exceptions_notify
arc_post_kprobe_handler
But indeed we are *not* calling into kprobe_fault_handler() - from eithet of those
paths and not sure if the existing arc*_kprobe_handler() combination does the
equivalent in tandem.
-Vineet
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]