io_uring: use bottom half safe lock for fixed file data
authorJens Axboe <axboe@kernel.dk>
Mon, 23 Nov 2020 16:37:51 +0000 (09:37 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 9 Dec 2020 19:04:01 +0000 (12:04 -0700)
commitac0648a56c1ff66c1cbf735075ad33a26cbc50de
treed0840931bbfa32badd92a5e51bd02c3048398c96
parentbd5bbda72f7fa013ddea0ff7c4d91daedb821869
io_uring: use bottom half safe lock for fixed file data

io_file_data_ref_zero() can be invoked from soft-irq from the RCU core,
hence we need to ensure that the file_data lock is bottom half safe. Use
the _bh() variants when grabbing this lock.

Reported-by: syzbot+1f4ba1e5520762c523c6@syzkaller.appspotmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c