aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests
diff options
context:
space:
mode:
authorDylan Yudaken <[email protected]>2022-02-22 08:17:51 -0800
committerJens Axboe <[email protected]>2022-02-22 09:57:32 -0700
commit80912cef18f16f8fe59d1fb9548d4364342be360 (patch)
treede6b869f7af34d8f31912d2f7c1b3326938fba1d /tools/testing/selftests/bpf/prog_tests
parent228339662b398a59b3560cd571deb8b25b253c7e (diff)
io_uring: disallow modification of rsrc_data during quiesce
io_rsrc_ref_quiesce will unlock the uring while it waits for references to the io_rsrc_data to be killed. There are other places to the data that might add references to data via calls to io_rsrc_node_switch. There is a race condition where this reference can be added after the completion has been signalled. At this point the io_rsrc_ref_quiesce call will wake up and relock the uring, assuming the data is unused and can be freed - although it is actually being used. To fix this check in io_rsrc_ref_quiesce if a resource has been revived. Reported-by: [email protected] Cc: [email protected] Signed-off-by: Dylan Yudaken <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests')
0 files changed, 0 insertions, 0 deletions