From: Greg Kroah-Hartman Date: Tue, 23 Apr 2019 21:16:41 +0000 (+0200) Subject: drop 3.18 kprobe patch that broke the build X-Git-Tag: v3.18.139~36 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1024303cb7a7da4ce82727abae65aa2ea7b6874f;p=thirdparty%2Fkernel%2Fstable-queue.git drop 3.18 kprobe patch that broke the build --- diff --git a/queue-3.18/kprobes-mark-ftrace-mcount-handler-functions-nokprobe.patch b/queue-3.18/kprobes-mark-ftrace-mcount-handler-functions-nokprobe.patch deleted file mode 100644 index cb6701fef0e..00000000000 --- a/queue-3.18/kprobes-mark-ftrace-mcount-handler-functions-nokprobe.patch +++ /dev/null @@ -1,72 +0,0 @@ -From fabe38ab6b2bd9418350284c63825f13b8a6abba Mon Sep 17 00:00:00 2001 -From: Masami Hiramatsu -Date: Sun, 24 Feb 2019 01:50:20 +0900 -Subject: kprobes: Mark ftrace mcount handler functions nokprobe - -From: Masami Hiramatsu - -commit fabe38ab6b2bd9418350284c63825f13b8a6abba upstream. - -Mark ftrace mcount handler functions nokprobe since -probing on these functions with kretprobe pushes -return address incorrectly on kretprobe shadow stack. - -Reported-by: Francis Deslauriers -Tested-by: Andrea Righi -Signed-off-by: Masami Hiramatsu -Acked-by: Steven Rostedt -Acked-by: Steven Rostedt (VMware) -Cc: Linus Torvalds -Cc: Mathieu Desnoyers -Cc: Peter Zijlstra -Cc: Thomas Gleixner -Cc: stable@vger.kernel.org -Link: http://lkml.kernel.org/r/155094062044.6137.6419622920568680640.stgit@devbox -Signed-off-by: Ingo Molnar -Signed-off-by: Greg Kroah-Hartman - ---- - kernel/trace/ftrace.c | 6 +++++- - 1 file changed, 5 insertions(+), 1 deletion(-) - ---- a/kernel/trace/ftrace.c -+++ b/kernel/trace/ftrace.c -@@ -32,6 +32,7 @@ - #include - #include - #include -+#include - - #include - -@@ -4878,7 +4879,7 @@ static struct ftrace_ops control_ops = { - INIT_OPS_HASH(control_ops) - }; - --static inline void -+static nokprobe_inline void - __ftrace_ops_list_func(unsigned long ip, unsigned long parent_ip, - struct ftrace_ops *ignored, struct pt_regs *regs) - { -@@ -4927,11 +4928,13 @@ static void ftrace_ops_list_func(unsigne - { - __ftrace_ops_list_func(ip, parent_ip, NULL, regs); - } -+NOKPROBE_SYMBOL(ftrace_ops_list_func); - #else - static void ftrace_ops_no_ops(unsigned long ip, unsigned long parent_ip) - { - __ftrace_ops_list_func(ip, parent_ip, NULL, NULL); - } -+NOKPROBE_SYMBOL(ftrace_ops_no_ops); - #endif - - /* -@@ -4952,6 +4955,7 @@ static void ftrace_ops_recurs_func(unsig - - trace_clear_recursion(bit); - } -+NOKPROBE_SYMBOL(ftrace_ops_assist_func); - - /** - * ftrace_ops_get_func - get the function a trampoline should call diff --git a/queue-3.18/series b/queue-3.18/series index 48b72e9acaa..b7d56137b21 100644 --- a/queue-3.18/series +++ b/queue-3.18/series @@ -99,6 +99,5 @@ staging-comedi-vmk80xx-fix-possible-double-free-of-usb_rx_buf.patch staging-comedi-ni_usb6501-fix-possible-double-free-of-usb_rx_buf.patch alsa-core-fix-card-races-between-register-and-disconnect.patch x86-kprobes-verify-stack-frame-on-kretprobe.patch -kprobes-mark-ftrace-mcount-handler-functions-nokprobe.patch kprobes-fix-error-check-when-reusing-optimized-probes.patch mac80211-do-not-call-driver-wake_tx_queue-op-during-reconfig.patch