]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
io_uring/sqpoll: do not put cpumask on stack
authorFelix Moessbauer <felix.moessbauer@siemens.com>
Mon, 16 Sep 2024 11:11:50 +0000 (13:11 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 14:29:44 +0000 (16:29 +0200)
commit01ad0576f09210a8d1232077c4058e587e4e26cb
tree782d968630f7b9c87954f15b0486f88dde69e395
parent859f62a2f904d916488bbc62fe8d1b13e749b4e8
io_uring/sqpoll: do not put cpumask on stack

commit 7f44beadcc11adb98220556d2ddbe9c97aa6d42d upstream.

Putting the cpumask on the stack is deprecated for a long time (since
2d3854a37e8), as these can be big. Given that, change the on-stack
allocation of allowed_mask to be dynamically allocated.

Fixes: f011c9cf04c0 ("io_uring/sqpoll: do not allow pinning outside of cpuset")
Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
Link: https://lore.kernel.org/r/20240916111150.1266191-1-felix.moessbauer@siemens.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
io_uring/sqpoll.c