Commit 7015214
committed
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: 6bf9c47 ("io_uring: defer file assignment")
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 7179c3c commit 7015214
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7111 | 7111 | | |
7112 | 7112 | | |
7113 | 7113 | | |
| 7114 | + | |
| 7115 | + | |
| 7116 | + | |
7114 | 7117 | | |
7115 | 7118 | | |
7116 | 7119 | | |
7117 | 7120 | | |
7118 | 7121 | | |
7119 | | - | |
7120 | | - | |
7121 | 7122 | | |
7122 | 7123 | | |
7123 | 7124 | | |
| |||
0 commit comments