aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/gcc-common.h
diff options
context:
space:
mode:
authorJens Axboe <[email protected]>2023-10-21 18:30:29 +0000
committerJens Axboe <[email protected]>2023-10-25 13:44:14 +0000
commit7644b1a1c9a7ae8ab99175989bfc8676055edb46 (patch)
treedfa13e49521a00400a40c955f9f927a2e41c9af4 /scripts/gcc-plugins/gcc-common.h
parentio_uring: fix crash with IORING_SETUP_NO_MMAP and invalid SQ ring address (diff)
downloadkernel-7644b1a1c9a7ae8ab99175989bfc8676055edb46.tar.gz
kernel-7644b1a1c9a7ae8ab99175989bfc8676055edb46.zip
io_uring/fdinfo: lock SQ thread while retrieving thread cpu/pid
We could race with SQ thread exit, and if we do, we'll hit a NULL pointer dereference when the thread is cleared. Grab the SQPOLL data lock before attempting to get the task cpu and pid for fdinfo, this ensures we have a stable view of it. Cc: [email protected] Link: https://bugzilla.kernel.org/show_bug.cgi?id=218032 Reviewed-by: Gabriel Krisman Bertazi <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/gcc-common.h')
0 files changed, 0 insertions, 0 deletions