linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] selftests/x86: Don't muck with ftrace in mpx_mini_test
@ 2019-07-03 18:28 Andy Lutomirski
  2019-07-03 18:29 ` Dave Hansen
  0 siblings, 1 reply; 2+ messages in thread
From: Andy Lutomirski @ 2019-07-03 18:28 UTC (permalink / raw)
  To: LKML; +Cc: x86, Borislav Petkov, Peter Zijlstra, Andy Lutomirski, Dave Hansen

I don't know why mpx_mini_test tries to reprogram ftrace, but it
seems rude and it makes the test crash if run as non-root.  Comment
it out.

Cc: Dave Hansen <dave.hansen@intel.com>
Signed-off-by: Andy Lutomirski <luto@kernel.org>
---
 tools/testing/selftests/x86/mpx-mini-test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/x86/mpx-mini-test.c b/tools/testing/selftests/x86/mpx-mini-test.c
index 23ddd453f362..07461ce31d90 100644
--- a/tools/testing/selftests/x86/mpx-mini-test.c
+++ b/tools/testing/selftests/x86/mpx-mini-test.c
@@ -76,9 +76,9 @@ void trace_me(void)
 	write_pid_to("common_pid=", TED "exceptions/filter");
 	write_int_to("", TED "signal/enable", 1);
 	write_int_to("", TED "exceptions/enable", 1);
-*/
 	write_pid_to("", "/sys/kernel/debug/tracing/set_ftrace_pid");
 	write_int_to("", "/sys/kernel/debug/tracing/trace", 0);
+*/
 }
 
 #define test_failed() __test_failed(__FILE__, __LINE__)
-- 
2.21.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] selftests/x86: Don't muck with ftrace in mpx_mini_test
  2019-07-03 18:28 [PATCH] selftests/x86: Don't muck with ftrace in mpx_mini_test Andy Lutomirski
@ 2019-07-03 18:29 ` Dave Hansen
  0 siblings, 0 replies; 2+ messages in thread
From: Dave Hansen @ 2019-07-03 18:29 UTC (permalink / raw)
  To: Andy Lutomirski, LKML; +Cc: x86, Borislav Petkov, Peter Zijlstra

On 7/3/19 11:28 AM, Andy Lutomirski wrote:
> I don't know why mpx_mini_test tries to reprogram ftrace, but it
> seems rude and it makes the test crash if run as non-root.  Comment
> it out.

Yeah, it's rude and shouldn't be enabled in the default selftest runs.

Acked-by: Dave Hansen <dave.hansen@intel.com>



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-07-03 18:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-03 18:28 [PATCH] selftests/x86: Don't muck with ftrace in mpx_mini_test Andy Lutomirski
2019-07-03 18:29 ` Dave Hansen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).