selftests/user_events: Test registration from existing threads
Create two threads before either registers a user event. Have the first
thread register an event using a shared enable address and bit while it
remains alive, then have the second thread register a different event
using the same address and bit.
The second registration should fail with EADDRINUSE because both threads
share the same address space.
This test fails without the accompanying kernel fix because each thread
can create a separate user_event_mm with an independent enabler list.
Link: https://patch.msgid.link/20261006164720.3940272-4-jeffbarnes@linux.microsoft.com
Reviewed-by: Beau Belgrave <beaub@linux.microsoft.com>
Signed-off-by: Jeff Barnes <jeffbarnes@linux.microsoft.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
1 file changed