Skip to content

forbid using open/close/statx with {SQ,IO}POLL

Pavel Begunkov io-uring lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4io_uring: fix open/close/statx with {SQ,IO}POLLfs/io_uring.c+8 -01 reply
2/4io_uring: do build_open_how() only oncefs/io_uring.c+7 -60 replies
3/4io_uring: deduplicate io_openat{,2}_prep()fs/io_uring.c+19 -360 replies
4/4io_uring: move send/recv IOPOLL check into prepfs/io_uring.c+6 -120 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] forbid using open/close/statx with {SQ,IO}POLL

The first one adds checks {SQPOLL,IOPOLL} for open, close, etc. And 3 others are just cleanups on top.

notes:
- it cures symptoms, but would be great what's with null-deref in [1/4]

- need to look whether epoll and sfr are affected by {SQ,IO}POLL

- it still allows statx with SQPOLL, because it has a bunchg of rules for ignoring dirfd, e.g. when absolute path is specified. Let's handle it separately.

Pavel Begunkov (4):
io_uring: fix open/close/statx with {SQ,IO}POLL
io_uring: do build_open_how() only once
io_uring: deduplicate io_openat{,2}_prep()
io_uring: move send/recv IOPOLL check into prep

 fs/io_uring.c | 78 +++++++++++++++++++++------------------------------
 1 file changed, 32 insertions(+), 46 deletions(-)
Signature · 1 line
2.24.0