Commit 31bff9a
io_uring: fix racy IOPOLL completions
IOPOLL allows buffer remove/provide requests, but they doesn't
synchronise by rules of IOPOLL, namely it have to hold uring_lock.
Cc: <stable@vger.kernel.org> # 5.7+
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent dad1b12 commit 31bff9a
1 file changed
Lines changed: 18 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4152 | 4152 | | |
4153 | 4153 | | |
4154 | 4154 | | |
4155 | | - | |
4156 | | - | |
4157 | 4155 | | |
4158 | 4156 | | |
4159 | | - | |
| 4157 | + | |
| 4158 | + | |
| 4159 | + | |
| 4160 | + | |
| 4161 | + | |
| 4162 | + | |
| 4163 | + | |
| 4164 | + | |
| 4165 | + | |
4160 | 4166 | | |
4161 | 4167 | | |
4162 | 4168 | | |
| |||
4241 | 4247 | | |
4242 | 4248 | | |
4243 | 4249 | | |
4244 | | - | |
4245 | 4250 | | |
4246 | 4251 | | |
4247 | | - | |
| 4252 | + | |
| 4253 | + | |
| 4254 | + | |
| 4255 | + | |
| 4256 | + | |
| 4257 | + | |
| 4258 | + | |
| 4259 | + | |
| 4260 | + | |
4248 | 4261 | | |
4249 | 4262 | | |
4250 | 4263 | | |
| |||
0 commit comments