diff options
| author | Jens Axboe <[email protected]> | 2024-09-10 14:30:57 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2024-09-10 15:34:41 +0000 |
| commit | c0a9d496e0fece67db777bd48550376cf2960c47 (patch) | |
| tree | 8e28049a1c91d18299f41d35b9bc75230c76f785 /security/selinux/hooks.c | |
| parent | io_uring/sqpoll: do not allow pinning outside of cpuset (diff) | |
| download | kernel-c0a9d496e0fece67db777bd48550376cf2960c47.tar.gz kernel-c0a9d496e0fece67db777bd48550376cf2960c47.zip | |
io_uring/rw: treat -EOPNOTSUPP for IOCB_NOWAIT like -EAGAIN
Some file systems, ocfs2 in this case, will return -EOPNOTSUPP for
an IOCB_NOWAIT read/write attempt. While this can be argued to be
correct, the usual return value for something that requires blocking
issue is -EAGAIN.
A refactoring io_uring commit dropped calling kiocb_done() for
negative return values, which is otherwise where we already do that
transformation. To ensure we catch it in both spots, check it in
__io_read() itself as well.
Reported-by: Robert Sander <[email protected]>
Link: https://fosstodon.org/@[email protected]/113112431889638440
Cc: [email protected]
Fixes: a08d195b586a ("io_uring/rw: split io_read() into a helper")
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions
