0062-x86-fpu-debug-Remove-unused-x86_fpu_state-and-x86_fp.patch 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. From bc21c74b922871588bf6626bff34fa084ed60d71 Mon Sep 17 00:00:00 2001
  2. From: "Steven Rostedt (VMware)" <[email protected]>
  3. Date: Thu, 12 Oct 2017 18:06:19 -0400
  4. Subject: [PATCH 062/231] x86/fpu/debug: Remove unused 'x86_fpu_state' and
  5. 'x86_fpu_deactivate_state' tracepoints
  6. MIME-Version: 1.0
  7. Content-Type: text/plain; charset=UTF-8
  8. Content-Transfer-Encoding: 8bit
  9. CVE-2017-5754
  10. Commit:
  11. d1898b733619 ("x86/fpu: Add tracepoints to dump FPU state at key points")
  12. ... added the 'x86_fpu_state' and 'x86_fpu_deactivate_state' trace points,
  13. but never used them. Today they are still not used. As they take up
  14. and waste memory, remove them.
  15. Signed-off-by: Steven Rostedt (VMware) <[email protected]>
  16. Cc: Dave Hansen <[email protected]>
  17. Cc: Linus Torvalds <[email protected]>
  18. Cc: Peter Zijlstra <[email protected]>
  19. Cc: Thomas Gleixner <[email protected]>
  20. Link: http://lkml.kernel.org/r/[email protected]
  21. Signed-off-by: Ingo Molnar <[email protected]>
  22. (cherry picked from commit 127a1bea40f7f2a36bc7207ea4d51bb6b4e936fa)
  23. Signed-off-by: Andy Whitcroft <[email protected]>
  24. Signed-off-by: Kleber Sacilotto de Souza <[email protected]>
  25. (cherry picked from commit c7c367ddb6ffb6af2cfee287960e97c4aefc6548)
  26. Signed-off-by: Fabian Grünbichler <[email protected]>
  27. ---
  28. arch/x86/include/asm/trace/fpu.h | 10 ----------
  29. 1 file changed, 10 deletions(-)
  30. diff --git a/arch/x86/include/asm/trace/fpu.h b/arch/x86/include/asm/trace/fpu.h
  31. index 342e59789fcd..fed7d9ecae60 100644
  32. --- a/arch/x86/include/asm/trace/fpu.h
  33. +++ b/arch/x86/include/asm/trace/fpu.h
  34. @@ -36,11 +36,6 @@ DECLARE_EVENT_CLASS(x86_fpu,
  35. )
  36. );
  37. -DEFINE_EVENT(x86_fpu, x86_fpu_state,
  38. - TP_PROTO(struct fpu *fpu),
  39. - TP_ARGS(fpu)
  40. -);
  41. -
  42. DEFINE_EVENT(x86_fpu, x86_fpu_before_save,
  43. TP_PROTO(struct fpu *fpu),
  44. TP_ARGS(fpu)
  45. @@ -76,11 +71,6 @@ DEFINE_EVENT(x86_fpu, x86_fpu_activate_state,
  46. TP_ARGS(fpu)
  47. );
  48. -DEFINE_EVENT(x86_fpu, x86_fpu_deactivate_state,
  49. - TP_PROTO(struct fpu *fpu),
  50. - TP_ARGS(fpu)
  51. -);
  52. -
  53. DEFINE_EVENT(x86_fpu, x86_fpu_init_state,
  54. TP_PROTO(struct fpu *fpu),
  55. TP_ARGS(fpu)
  56. --
  57. 2.14.2