diff options
author | Beau Belgrave <[email protected]> | 2022-07-28 16:33:07 -0700 |
---|---|---|
committer | Steven Rostedt (Google) <[email protected]> | 2022-09-29 10:17:36 -0400 |
commit | d401b72458562c2f2a81dad162de5c1b8e191e17 (patch) | |
tree | 441439a70813cb956e32d1d4c75254bfc12bcadc /lib/mpi/mpi-sub-ui.c | |
parent | e6f89a149872ab0e03cfded97983df74dfb0ef21 (diff) |
tracing/user_events: Use refcount instead of atomic for ref tracking
User processes could open up enough event references to cause rollovers.
These could cause use after free scenarios, which we do not want.
Switching to refcount APIs prevent this, but will leak memory once
saturated.
Once saturated, user processes can still use the events. This prevents
a bad user process from stopping existing telemetry from being emitted.
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lore.kernel.org/all/[email protected]/
Reported-by: Mathieu Desnoyers <[email protected]>
Signed-off-by: Beau Belgrave <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions