Re: [PATCH v6 08/17] static_call: Avoid kprobes on inline static_call()s

2020-07-11 Thread Peter Zijlstra
On Fri, Jul 10, 2020 at 06:00:14PM -0400, Steven Rostedt wrote: > > +int static_call_text_reserved(void *start, void *end) > > +{ > > + int ret = __static_call_text_reserved(__start_static_call_sites, > > + __stop_static_call_sites, start, end); > > + > > + if (ret) > > +

Re: [PATCH v6 08/17] static_call: Avoid kprobes on inline static_call()s

2020-07-10 Thread Steven Rostedt
On Fri, 10 Jul 2020 15:38:39 +0200 Peter Zijlstra wrote: > Similar to how we disallow kprobes on any other dynamic text > (ftrace/jump_label) also disallow kprobes on inline static_call()s. > > Signed-off-by: Peter Zijlstra (Intel) I'd like to have Masami review this patch too. > --- >

[PATCH v6 08/17] static_call: Avoid kprobes on inline static_call()s

2020-07-10 Thread Peter Zijlstra
Similar to how we disallow kprobes on any other dynamic text (ftrace/jump_label) also disallow kprobes on inline static_call()s. Signed-off-by: Peter Zijlstra (Intel) --- arch/x86/kernel/kprobes/opt.c |4 +- include/linux/static_call.h | 11 +++ kernel/kprobes.c |2