diff options
author | Beau Belgrave <[email protected]> | 2023-05-05 13:58:55 -0700 |
---|---|---|
committer | Steven Rostedt (Google) <[email protected]> | 2023-05-23 10:40:34 -0400 |
commit | ee7751b564a90f337330efc1221df40647d68756 (patch) | |
tree | e77511d3b75790790554f11f939b02b00ea4aa03 /drivers/fpga/fpga-mgr.c | |
parent | 44c026a73be8038f03dbdeef028b642880cf1511 (diff) |
tracing/user_events: Use long vs int for atomic bit ops
Each event stores a int to track which bit to set/clear when enablement
changes. On big endian 64-bit configurations, it's possible this could
cause memory corruption when it's used for atomic bit operations.
Use unsigned long for enablement values to ensure any possible
corruption cannot occur. Downcast to int after mask for the bit target.
Link: https://lore.kernel.org/all/[email protected]/
Link: https://lore.kernel.org/linux-trace-kernel/[email protected]
Fixes: dcb8177c1395 ("tracing/user_events: Add ioctl for disabling addresses")
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Beau Belgrave <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions