diff options
author | 2023-04-25 15:51:05 -0700 | |
---|---|---|
committer | 2023-04-25 21:04:16 -0400 | |
commit | 17b439db21d5dbe70c419e982262621e5e6aba7f (patch) | |
tree | 20e77f8a2a91e04fbfdb30355df7eb5fbb03643d /lib | |
parent | tracing/user_events: Ensure write index cannot be negative (diff) | |
download | linux-17b439db21d5dbe70c419e982262621e5e6aba7f.tar.gz linux-17b439db21d5dbe70c419e982262621e5e6aba7f.tar.bz2 linux-17b439db21d5dbe70c419e982262621e5e6aba7f.zip |
tracing/user_events: Ensure bit is cleared on unregister
If an event is enabled and a user process unregisters user_events, the
bit is left set. Fix this by always clearing the bit in the user process
if unregister is successful.
Update abi self-test to ensure this occurs properly.
Link: https://lkml.kernel.org/r/20230425225107.8525-3-beaub@linux.microsoft.com
Suggested-by: Doug Cook <dcook@linux.microsoft.com>
Signed-off-by: Beau Belgrave <beaub@linux.microsoft.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions