]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
io_uring/sqpoll: do not put cpumask on stack
authorFelix Moessbauer <felix.moessbauer@siemens.com>
Thu, 17 Oct 2024 11:50:29 +0000 (13:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Oct 2024 13:40:42 +0000 (15:40 +0200)
commit07efbee2214cd7cd6e69ae005f57ec2e8ae82c09
tree11a168b7d9a89f6ed831e586a6da304249c32b40
parent939007d2a9fafff56e34c21e6b56df4645a2e91e
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/io_uring.c