lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Fri, 22 Mar 2019 12:15:22 +0100
From:   Greg Kroah-Hartman <>
Cc:     Greg Kroah-Hartman <>,, Masami Hiramatsu <>,
        Alexander Shishkin <>,
        Andrea Righi <>,
        Arnaldo Carvalho de Melo <>,
        Jiri Olsa <>,
        Linus Torvalds <>,
        Mathieu Desnoyers <>,
        Peter Zijlstra <>,
        Steven Rostedt <>,
        Thomas Gleixner <>,
        Ingo Molnar <>
Subject: [PATCH 5.0 103/238] x86/kprobes: Prohibit probing on optprobe template code

5.0-stable review patch.  If anyone has any objections, please let me know.


From: Masami Hiramatsu <>

commit 0192e6535ebe9af68614198ced4fd6d37b778ebf upstream.

Prohibit probing on optprobe template code, since it is not
a code but a template instruction sequence. If we modify
this template, copied template must be broken.

Signed-off-by: Masami Hiramatsu <>
Cc: Alexander Shishkin <>
Cc: Andrea Righi <>
Cc: Arnaldo Carvalho de Melo <>
Cc: Jiri Olsa <>
Cc: Linus Torvalds <>
Cc: Mathieu Desnoyers <>
Cc: Peter Zijlstra <>
Cc: Steven Rostedt <>
Cc: Thomas Gleixner <>
Fixes: 9326638cbee2 ("kprobes, x86: Use NOKPROBE_SYMBOL() instead of __kprobes annotation")
Signed-off-by: Ingo Molnar <>
Signed-off-by: Greg Kroah-Hartman <>

 arch/x86/kernel/kprobes/opt.c |    5 +++++
 1 file changed, 5 insertions(+)

--- a/arch/x86/kernel/kprobes/opt.c
+++ b/arch/x86/kernel/kprobes/opt.c
@@ -141,6 +141,11 @@ asm (
 void optprobe_template_func(void);
 #define TMPL_MOVE_IDX \
 	((long)optprobe_template_val - (long)optprobe_template_entry)

Powered by blists - more mailing lists