user_events: Add self-test for validator boundaries
authorBeau Belgrave <beaub@linux.microsoft.com>
Tue, 18 Jan 2022 20:43:24 +0000 (12:43 -0800)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Fri, 11 Feb 2022 03:38:08 +0000 (22:38 -0500)
commit7640e77035aadcd7d50f9c7583ca25a4e1aa2874
tree6315aa5911abdf21864d71958e4de03e69e4b5a4
parent3a6163893a9a6a90e086234ee205c1f74eeb5f84
user_events: Add self-test for validator boundaries

Tests to ensure validator boundary cases are working correctly within
close and far bounds. Ensures __data_loc and __rel_loc strings are
null terminated and within range. Ensures min size checks work as
expected.

Link: https://lkml.kernel.org/r/20220118204326.2169-11-beaub@linux.microsoft.com
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Beau Belgrave <beaub@linux.microsoft.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
tools/testing/selftests/user_events/ftrace_test.c