]> www.infradead.org Git - users/willy/xarray.git/commit
io_uring/io-wq: do not allow pinning outside of cpuset
authorFelix Moessbauer <felix.moessbauer@siemens.com>
Tue, 10 Sep 2024 17:11:56 +0000 (19:11 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 11 Sep 2024 13:27:56 +0000 (07:27 -0600)
commit0997aa5497c714edbb349ca366d28bd550ba3408
treea93b91564338bf637de02d9ef7815ec54bee42e8
parent90bfb28d5fa8127a113a140c9791ea0b40ab156a
io_uring/io-wq: do not allow pinning outside of cpuset

The io worker threads are userland threads that just never exit to the
userland. By that, they are also assigned to a cgroup (the group of the
creating task).

When changing the affinity of the io_wq thread via syscall, we must only
allow cpumasks within the limits defined by the cpuset controller of the
cgroup (if enabled).

Fixes: da64d6db3bd3 ("io_uring: One wqe per wq")
Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
Link: https://lore.kernel.org/r/20240910171157.166423-2-felix.moessbauer@siemens.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io-wq.c