aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/intel/ice/ice_main.c
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2024-06-14 01:04:29 +0100
committerJens Axboe <axboe@kernel.dk>2024-06-13 19:25:28 -0600
commitf4a1254f2a076afb0edd473589bf40f9b4d36b41 (patch)
treef7dad023967cad2f50d120ab55aca57cf4a59689 /drivers/net/ethernet/intel/ice/ice_main.c
parent54559642b96116b45e4b5ca7fd9f7835b8561272 (diff)
io_uring: fix cancellation overwriting req->flags
Only the current owner of a request is allowed to write into req->flags. Hence, the cancellation path should never touch it. Add a new field instead of the flag, move it into the 3rd cache line because it should always be initialised. poll_refs can move further as polling is an involved process anyway. It's a minimal patch, in the future we can and should find a better place for it and remove now unused REQ_F_CANCEL_SEQ. Fixes: 521223d7c229f ("io_uring/cancel: don't default to setting req->work.cancel_seq") Cc: stable@vger.kernel.org Reported-by: Li Shi <sl1589472800@gmail.com> Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/6827b129f8f0ad76fa9d1f0a773de938b240ffab.1718323430.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_main.c')
0 files changed, 0 insertions, 0 deletions