[tip:perf/urgent] kprobes: Propagate error from arm_kprobe_ftrace()

2018-02-16 Thread tip-bot for Jessica Yu
Commit-ID: 12310e3437554328bcd75186cf331bc712cb30b2 Gitweb: https://git.kernel.org/tip/12310e3437554328bcd75186cf331bc712cb30b2 Author: Jessica Yu AuthorDate: Wed, 10 Jan 2018 00:51:23 +0100 Committer: Ingo Molnar CommitDate: Fri, 16 Feb 2018 09:12:52 +0100 kprobes: Propagate error

[tip:perf/urgent] kprobes: Propagate error from arm_kprobe_ftrace()

2018-02-13 Thread tip-bot for Jessica Yu
Commit-ID: 384f1d86a8890fcf8118add0b6a0785ee35f5a65 Gitweb: https://git.kernel.org/tip/384f1d86a8890fcf8118add0b6a0785ee35f5a65 Author: Jessica Yu AuthorDate: Wed, 10 Jan 2018 00:51:23 +0100 Committer: Ingo Molnar CommitDate: Tue, 13 Feb 2018 18:20:00 +0100 kprobes: Propagate error

[PATCH v5 1/2] kprobes: propagate error from arm_kprobe_ftrace()

2018-01-09 Thread Jessica Yu
Improve error handling when arming ftrace-based kprobes. Specifically, if we fail to arm a ftrace-based kprobe, register_kprobe()/enable_kprobe() should report an error instead of success. Previously, this has lead to confusing situations where register_kprobe() would return 0 indicating success, b

Re: [PATCH v4 1/2] kprobes: propagate error from arm_kprobe_ftrace()

2018-01-08 Thread Masami Hiramatsu
On Mon, 8 Jan 2018 03:47:49 +0100 Jessica Yu wrote: > Improve error handling when arming ftrace-based kprobes. Specifically, if > we fail to arm a ftrace-based kprobe, register_kprobe()/enable_kprobe() > should report an error instead of success. Previously, this has lead to > confusing situatio

[PATCH v4 1/2] kprobes: propagate error from arm_kprobe_ftrace()

2018-01-07 Thread Jessica Yu
Improve error handling when arming ftrace-based kprobes. Specifically, if we fail to arm a ftrace-based kprobe, register_kprobe()/enable_kprobe() should report an error instead of success. Previously, this has lead to confusing situations where register_kprobe() would return 0 indicating success, b

Re: kprobes: propagate error from arm_kprobe_ftrace()

2018-01-04 Thread Masami Hiramatsu
On Wed, 3 Jan 2018 22:00:00 +0100 Jessica Yu wrote: > +++ Steven Rostedt [03/01/18 09:33 -0500]: > >On Wed, 3 Jan 2018 02:40:47 +0100 > >Jessica Yu wrote: > > > >> Improve error handling when arming ftrace-based kprobes. Specifically, if > >> we fail to arm a ftrace-based kprobe, register_kprob

Re: kprobes: propagate error from arm_kprobe_ftrace()

2018-01-03 Thread Jessica Yu
+++ Steven Rostedt [03/01/18 09:33 -0500]: On Wed, 3 Jan 2018 02:40:47 +0100 Jessica Yu wrote: Improve error handling when arming ftrace-based kprobes. Specifically, if we fail to arm a ftrace-based kprobe, register_kprobe()/enable_kprobe() should report an error instead of success. Previousl

Re: [PATCH v3 1/2] kprobes: propagate error from arm_kprobe_ftrace()

2018-01-03 Thread Steven Rostedt
On Wed, 3 Jan 2018 02:40:47 +0100 Jessica Yu wrote: > Improve error handling when arming ftrace-based kprobes. Specifically, if > we fail to arm a ftrace-based kprobe, register_kprobe()/enable_kprobe() > should report an error instead of success. Previously, this has lead to > confusing situatio

[PATCH v3 1/2] kprobes: propagate error from arm_kprobe_ftrace()

2018-01-02 Thread Jessica Yu
Improve error handling when arming ftrace-based kprobes. Specifically, if we fail to arm a ftrace-based kprobe, register_kprobe()/enable_kprobe() should report an error instead of success. Previously, this has lead to confusing situations where register_kprobe() would return 0 indicating success, b

Re: kprobes: propagate error from arm_kprobe_ftrace()

2017-11-21 Thread Jessica Yu
+++ Masami Hiramatsu [09/11/17 09:35 +0900]: On Tue, 7 Nov 2017 18:14:56 +0100 Jessica Yu wrote: +++ Steven Rostedt [03/11/17 10:03 -0400]: >On Thu, 2 Nov 2017 17:33:33 +0100 >Jessica Yu wrote: > >> Improve error handling when arming ftrace-based kprobes. Specifically, if >> we fail to arm a

Re: kprobes: propagate error from arm_kprobe_ftrace()

2017-11-08 Thread Masami Hiramatsu
On Tue, 7 Nov 2017 18:14:56 +0100 Jessica Yu wrote: > +++ Steven Rostedt [03/11/17 10:03 -0400]: > >On Thu, 2 Nov 2017 17:33:33 +0100 > >Jessica Yu wrote: > > > >> Improve error handling when arming ftrace-based kprobes. Specifically, if > >> we fail to arm a ftrace-based kprobe, register_kprob

Re: kprobes: propagate error from arm_kprobe_ftrace()

2017-11-07 Thread Jessica Yu
+++ Steven Rostedt [03/11/17 10:03 -0400]: On Thu, 2 Nov 2017 17:33:33 +0100 Jessica Yu wrote: Improve error handling when arming ftrace-based kprobes. Specifically, if we fail to arm a ftrace-based kprobe, register_kprobe()/enable_kprobe() should report an error instead of success. Previousl

Re: [PATCH v2 1/2] kprobes: propagate error from arm_kprobe_ftrace()

2017-11-03 Thread Masami Hiramatsu
Hi Jessica, Since this is under discussion about ftrace part, I just comment another one. On Thu, 2 Nov 2017 17:33:33 +0100 Jessica Yu wrote: [...] > @@ -1362,9 +1372,14 @@ static int register_aggr_kprobe(struct kprobe *orig_p, > struct kprobe *p) > > if (ret == 0 && kprobe_disabled(a

Re: [PATCH v2 1/2] kprobes: propagate error from arm_kprobe_ftrace()

2017-11-03 Thread Masami Hiramatsu
On Fri, 3 Nov 2017 13:33:12 -0400 Steven Rostedt wrote: > On Fri, 3 Nov 2017 09:53:37 -0500 > Josh Poimboeuf wrote: > > > > > -static void arm_kprobe_ftrace(struct kprobe *p) > > > > +static int arm_kprobe_ftrace(struct kprobe *p) > > > > { > > > > - int ret; > > > > + int ret = 0;

Re: [PATCH v2 1/2] kprobes: propagate error from arm_kprobe_ftrace()

2017-11-03 Thread Steven Rostedt
On Fri, 3 Nov 2017 09:53:37 -0500 Josh Poimboeuf wrote: > > > -static void arm_kprobe_ftrace(struct kprobe *p) > > > +static int arm_kprobe_ftrace(struct kprobe *p) > > > { > > > - int ret; > > > + int ret = 0; > > > > > > ret = ftrace_set_filter_ip(&kprobe_ftrace_ops, > > >

Re: [PATCH v2 1/2] kprobes: propagate error from arm_kprobe_ftrace()

2017-11-03 Thread Josh Poimboeuf
On Fri, Nov 03, 2017 at 10:03:17AM -0400, Steven Rostedt wrote: > On Thu, 2 Nov 2017 17:33:33 +0100 > Jessica Yu wrote: > > > Improve error handling when arming ftrace-based kprobes. Specifically, if > > we fail to arm a ftrace-based kprobe, register_kprobe()/enable_kprobe() > > should report an

Re: [PATCH v2 1/2] kprobes: propagate error from arm_kprobe_ftrace()

2017-11-03 Thread Steven Rostedt
On Thu, 2 Nov 2017 17:33:33 +0100 Jessica Yu wrote: > Improve error handling when arming ftrace-based kprobes. Specifically, if > we fail to arm a ftrace-based kprobe, register_kprobe()/enable_kprobe() > should report an error instead of success. Previously, this has lead to > confusing situatio

[PATCH v2 1/2] kprobes: propagate error from arm_kprobe_ftrace()

2017-11-02 Thread Jessica Yu
Improve error handling when arming ftrace-based kprobes. Specifically, if we fail to arm a ftrace-based kprobe, register_kprobe()/enable_kprobe() should report an error instead of success. Previously, this has lead to confusing situations where register_kprobe() would return 0 indicating success, b

Re: kprobes: propagate error from arm_kprobe_ftrace()

2017-10-07 Thread Jessica Yu
+++ Masami Hiramatsu [05/10/17 06:23 +]: Hi Jessica, On Wed, 4 Oct 2017 21:14:13 +0200 Jessica Yu wrote: Improve error handling when arming ftrace-based kprobes. Specifically, if we fail to arm a ftrace-based kprobe, register_kprobe()/enable_kprobe() should report an error instead of suc

Re: [PATCH 1/2] kprobes: propagate error from arm_kprobe_ftrace()

2017-10-04 Thread Masami Hiramatsu
Hi Jessica, On Wed, 4 Oct 2017 21:14:13 +0200 Jessica Yu wrote: > Improve error handling when arming ftrace-based kprobes. Specifically, if > we fail to arm a ftrace-based kprobe, register_kprobe()/enable_kprobe() > should report an error instead of success. Previously, this has lead to > confu

[PATCH 1/2] kprobes: propagate error from arm_kprobe_ftrace()

2017-10-04 Thread Jessica Yu
Improve error handling when arming ftrace-based kprobes. Specifically, if we fail to arm a ftrace-based kprobe, register_kprobe()/enable_kprobe() should report an error instead of success. Previously, this has lead to confusing situations where register_kprobe() would return 0 indicating success, b

Re: [PATCH 2/7] kprobes: Propagate error from arm_kprobe_ftrace()

2015-02-26 Thread Masami Hiramatsu
(2015/02/27 1:13), Petr Mladek wrote: > arm_kprobe_ftrace() could fail, especially after introducing ftrace IPMODIFY > flag and LifePatching. > > registry_kprobe() and registry_aggr_kprobe() do not mind about the error > because the kprobe gets disabled and they keep it registered. > > But enable

[PATCH 2/7] kprobes: Propagate error from arm_kprobe_ftrace()

2015-02-26 Thread Petr Mladek
arm_kprobe_ftrace() could fail, especially after introducing ftrace IPMODIFY flag and LifePatching. registry_kprobe() and registry_aggr_kprobe() do not mind about the error because the kprobe gets disabled and they keep it registered. But enable_kprobe() should propagate the error because its tas