Files
erofs-linux/io_uring
Kyumin Lee bc0e8faf90 io_uring: preserve task restrictions across exec
Per-task restrictions apply to all rings created by a task. Once
installed, they should not be dropped across exec.

For a task that has used io_uring, the exec cancellation path calls
__io_uring_free(). This frees both the task context and the per-task
restriction, so a ring created after exec is unrestricted.

Split task context cleanup into io_uring_free_tctx(), and use it from
the exec cancellation path. Keep __io_uring_free() for final task
cleanup, where both the context and restriction are released.

Fixes: ed82f35b92 ("io_uring: allow registration of per-task restrictions")
Cc: [email protected] # 7.1+
Signed-off-by: Kyumin Lee <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
2026-07-30 14:40:22 -06:00
..
…
…
…
…
2026-01-05 17:08:20 -07:00
…
…
…
…
…
2026-07-22 09:48:42 -06:00
…
…
…
…
…
2026-01-13 15:18:07 -05:00
…
…
…
…
2026-07-22 09:48:42 -06:00