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  linux-cve-announce  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:   Wed,  3 Apr 2019 17:32:43 -0700
From:   Matthew Garrett <>
        Alexei Starovoitov <>,
        Matthew Garrett <>,
        "Naveen N . Rao" <>,
        Anil S Keshavamurthy <>,, Masami Hiramatsu <>
Subject: [PATCH V32 21/27] Lock down tracing and perf kprobes when in
 confidentiality mode

From: David Howells <>

Disallow the creation of perf and ftrace kprobes when the kernel is
locked down in confidentiality mode by preventing their registration.
This prevents kprobes from being used to access kernel memory to steal
crypto data, but continues to allow the use of kprobes from signed

Reported-by: Alexei Starovoitov <>
Signed-off-by: David Howells <>
Signed-off-by: Matthew Garrett <>
Cc: Naveen N. Rao <>
Cc: Anil S Keshavamurthy <>
Cc: Masami Hiramatsu <>
 kernel/trace/trace_kprobe.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/kernel/trace/trace_kprobe.c b/kernel/trace/trace_kprobe.c
index d5fb09ebba8b..5c70acd80344 100644
--- a/kernel/trace/trace_kprobe.c
+++ b/kernel/trace/trace_kprobe.c
@@ -420,6 +420,9 @@ static int __register_trace_kprobe(struct trace_kprobe *tk)
 	int i, ret;
+	if (kernel_is_locked_down("Use of kprobes", LOCKDOWN_CONFIDENTIALITY))
+		return -EPERM;
 	if (trace_probe_is_registered(&tk->tp))
 		return -EINVAL;

Powered by blists - more mailing lists