summary refs log tree commit diff
path: root/fs/fs_parser.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2022-04-14 20:23:40 -0600
committerJens Axboe <axboe@kernel.dk>2022-04-14 20:23:40 -0600
commit701521403cfb228536b3947035c8a6eca40d8e58 (patch)
treef5239bb814aee8a1b69d7b5b1402efdd5bf580fb /fs/fs_parser.c
parent7179c3ce3dbff646c55f7cd664a895f462f049e5 (diff)
downloadlinux-701521403cfb228536b3947035c8a6eca40d8e58.tar.gz
io_uring: abort file assignment prior to assigning creds
We need to either restore creds properly if we fail on the file
assignment, or just do the file assignment first instead. Let's do
the latter as it's simpler, should make no difference here for
file assignment.

Link: https://lore.kernel.org/lkml/000000000000a7edb305dca75a50@google.com/
Reported-by: syzbot+60c52ca98513a8760a91@syzkaller.appspotmail.com
Fixes: 6bf9c47a3989 ("io_uring: defer file assignment")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/fs_parser.c')
0 files changed, 0 insertions, 0 deletions