aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-mod.c
diff options
context:
space:
mode:
authorBeau Belgrave <[email protected]>2023-04-25 15:51:04 -0700
committerSteven Rostedt (Google) <[email protected]>2023-04-25 21:03:46 -0400
commitcd98c93286a30cc4588dfd02453bec63c2f4acf4 (patch)
tree7bb663ac6965bdb99ddacaace92b5f52aebfbe2f /lib/mpi/mpi-mod.c
parent96928d9032a7c34f12a88df879665562bcebf59a (diff)
tracing/user_events: Ensure write index cannot be negative
The write index indicates which event the data is for and accesses a per-file array. The index is passed by user processes during write() calls as the first 4 bytes. Ensure that it cannot be negative by returning -EINVAL to prevent out of bounds accesses. Update ftrace self-test to ensure this occurs properly. Link: https://lkml.kernel.org/r/[email protected] Fixes: 7f5a08c79df3 ("user_events: Add minimal support for trace_event into ftrace") Reported-by: Doug Cook <[email protected]> Signed-off-by: Beau Belgrave <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions