]> git.proxmox.com Git - pve-kernel.git/blame - patches/kernel/0062-x86-fpu-debug-Remove-unused-x86_fpu_state-and-x86_fp.patch
KPTI: add follow-up fixes
[pve-kernel.git] / patches / kernel / 0062-x86-fpu-debug-Remove-unused-x86_fpu_state-and-x86_fp.patch
CommitLineData
321d628a
FG
1From bc21c74b922871588bf6626bff34fa084ed60d71 Mon Sep 17 00:00:00 2001
2From: "Steven Rostedt (VMware)" <rostedt@goodmis.org>
3Date: Thu, 12 Oct 2017 18:06:19 -0400
e4cdf2a5 4Subject: [PATCH 062/241] x86/fpu/debug: Remove unused 'x86_fpu_state' and
321d628a
FG
5 'x86_fpu_deactivate_state' tracepoints
6MIME-Version: 1.0
7Content-Type: text/plain; charset=UTF-8
8Content-Transfer-Encoding: 8bit
9
10CVE-2017-5754
11
12Commit:
13
14 d1898b733619 ("x86/fpu: Add tracepoints to dump FPU state at key points")
15
16... added the 'x86_fpu_state' and 'x86_fpu_deactivate_state' trace points,
17but never used them. Today they are still not used. As they take up
18and waste memory, remove them.
19
20Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
21Cc: Dave Hansen <dave.hansen@linux.intel.com>
22Cc: Linus Torvalds <torvalds@linux-foundation.org>
23Cc: Peter Zijlstra <peterz@infradead.org>
24Cc: Thomas Gleixner <tglx@linutronix.de>
25Link: http://lkml.kernel.org/r/20171012180619.670b68b6@gandalf.local.home
26Signed-off-by: Ingo Molnar <mingo@kernel.org>
27(cherry picked from commit 127a1bea40f7f2a36bc7207ea4d51bb6b4e936fa)
28Signed-off-by: Andy Whitcroft <apw@canonical.com>
29Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
30(cherry picked from commit c7c367ddb6ffb6af2cfee287960e97c4aefc6548)
31Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
32---
33 arch/x86/include/asm/trace/fpu.h | 10 ----------
34 1 file changed, 10 deletions(-)
35
36diff --git a/arch/x86/include/asm/trace/fpu.h b/arch/x86/include/asm/trace/fpu.h
37index 342e59789fcd..fed7d9ecae60 100644
38--- a/arch/x86/include/asm/trace/fpu.h
39+++ b/arch/x86/include/asm/trace/fpu.h
40@@ -36,11 +36,6 @@ DECLARE_EVENT_CLASS(x86_fpu,
41 )
42 );
43
44-DEFINE_EVENT(x86_fpu, x86_fpu_state,
45- TP_PROTO(struct fpu *fpu),
46- TP_ARGS(fpu)
47-);
48-
49 DEFINE_EVENT(x86_fpu, x86_fpu_before_save,
50 TP_PROTO(struct fpu *fpu),
51 TP_ARGS(fpu)
52@@ -76,11 +71,6 @@ DEFINE_EVENT(x86_fpu, x86_fpu_activate_state,
53 TP_ARGS(fpu)
54 );
55
56-DEFINE_EVENT(x86_fpu, x86_fpu_deactivate_state,
57- TP_PROTO(struct fpu *fpu),
58- TP_ARGS(fpu)
59-);
60-
61 DEFINE_EVENT(x86_fpu, x86_fpu_init_state,
62 TP_PROTO(struct fpu *fpu),
63 TP_ARGS(fpu)
64--
652.14.2
66