Skip to content

io_uring: ensure we inherit task creds

Jens Axboe io-uring 2 versions New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew
  2. v12 patches 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2io-wq: have io_wq_create() take a 'data' argumentfs/io-wq.c fs/io-wq.h fs/io_uring.c+22 -130 replies
2/2io_uring: async workers should inherit the user credsfs/io-wq.c fs/io-wq.h fs/io_uring.c+25 -00 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCHSET v2 0/2] io_uring: ensure we inherit task creds

(resend as v1 included a 5.4 backport by accident)

As referenced in patch #2, fuse + fsync fails with aio because of the async punt of fsync not inheriting the original task creds. Apply the same sort of fix for io_uring, and apply it globally to all requests so we ensure we always present the rights creds when offloaded.

 fs/io-wq.c    | 24 ++++++++++++++++--------
 fs/io-wq.h    | 13 ++++++++++---
 fs/io_uring.c | 23 +++++++++++++++++++++--
 3 files changed, 47 insertions(+), 13 deletions(-)
Signature · 1 line
Jens Axboe