]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: don't touch scm_fp_list after queueing skb
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 6 Apr 2022 11:43:58 +0000 (12:43 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 7 Apr 2022 17:17:47 +0000 (11:17 -0600)
commita4b74eb8a42be657125e33309fb776bd19f33488
tree8f1c5092bae72a51afe02cc5b5dc2295d2105de3
parent0b1d54a58c1d5c9d8d1898d930f034a3813ca595
io_uring: don't touch scm_fp_list after queueing skb

It's safer to not touch scm_fp_list after we queued an skb to which it
was assigned, there might be races lurking if we screw subtle sync
guarantees on the io_uring side.

Fixes: c90c9784c76b5 ("io_uring: add file set registration")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c