diff options
author | Jens Axboe <axboe@kernel.dk> | 2019-12-18 12:19:41 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-12-18 12:19:41 -0700 |
commit | fd6c2e4c063d64511657ad0031a1677b6a914859 (patch) | |
tree | 7430a804ec01e1495d291353ad398b272e45d9cb /fs/select.c | |
parent | 7c504e65206a4379ff38fe41d21b32b6c2c3e53e (diff) | |
download | linux-fd6c2e4c063d64511657ad0031a1677b6a914859.tar.bz2 |
io_uring: io_wq_submit_work() should not touch req->rw
I've been chasing a weird and obscure crash that was userspace stack
corruption, and finally narrowed it down to a bit flip that made a
stack address invalid. io_wq_submit_work() unconditionally flips
the req->rw.ki_flags IOCB_NOWAIT bit, but since it's a generic work
handler, this isn't valid. Normal read/write operations own that
part of the request, on other types it could be something else.
Move the IOCB_NOWAIT clear to the read/write handlers where it belongs.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/select.c')
0 files changed, 0 insertions, 0 deletions