Commit c3a7074b authored by Jens Axboe's avatar Jens Axboe Committed by Yang Yingliang
Browse files

io_uring: use bottom half safe lock for fixed file data



mainline inclusion
from mainline-v5.11-rc1
commit ac0648a5
category: bugfix
bugzilla: 185834
CVE: NA

-----------------------------------------------

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: default avatar <syzbot+1f4ba1e5520762c523c6@syzkaller.appspotmail.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Signed-off-by: default avatarYe Bin <yebin10@huawei.com>
Reviewed-by: default avatarZhang Yi <yi.zhang@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 5b255878
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment