aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorEddie James <[email protected]>2022-05-13 14:44:24 -0500
committerJoel Stanley <[email protected]>2022-09-28 21:10:57 +0930
commitd3e1e24604031b0d83b6c2d38f54eeea265cfcc0 (patch)
treea439e95df47d7ad5d51a684b516705001b9a2c19 /tools/testing/selftests/bpf/prog_tests/autoload.c
parentdbed963ed62c4c2b8870a02c8b7dcb0c2af3ee0b (diff)
fsi: occ: Prevent use after free
Use get_device and put_device in the open and close functions to make sure the device doesn't get freed while a file descriptor is open. Also, lock around the freeing of the device buffer and check the buffer before using it in the submit function. Signed-off-by: Eddie James <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joel Stanley <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions