diff options
| author | Dylan Yudaken <[email protected]> | 2022-02-22 16:17:51 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2022-02-22 16:57:32 +0000 |
| commit | 80912cef18f16f8fe59d1fb9548d4364342be360 (patch) | |
| tree | de6b869f7af34d8f31912d2f7c1b3326938fba1d /drivers/net/xen-netfront.c | |
| parent | io_uring: don't convert to jiffies for waiting on timeouts (diff) | |
| download | kernel-80912cef18f16f8fe59d1fb9548d4364342be360.tar.gz kernel-80912cef18f16f8fe59d1fb9548d4364342be360.zip | |
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 'drivers/net/xen-netfront.c')
0 files changed, 0 insertions, 0 deletions
