aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/lib/py/utils.py
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2024-09-28 21:08:31 +0000
committerKees Cook <[email protected]>2024-10-31 22:06:28 +0000
commit200f091c95bbc4b8660636bd345805c45d6eced7 (patch)
treee1b6c66ebe4ce3b94799021f0cd8f386a2b776db /tools/testing/selftests/net/lib/py/utils.py
parentLinux 6.12-rc2 (diff)
downloadkernel-200f091c95bbc4b8660636bd345805c45d6eced7.tar.gz
kernel-200f091c95bbc4b8660636bd345805c45d6eced7.zip
coredump: Do not lock during 'comm' reporting
The 'comm' member will always be NUL terminated, and this is not fast-path, so we can just perform a direct memcpy during a coredump instead of potentially deadlocking while holding the task struct lock. Reported-by: Vegard Nossum <[email protected]> Closes: https://lore.kernel.org/all/[email protected] Fixes: c114e9948c2b ("coredump: Standartize and fix logging") Tested-by: Vegard Nossum <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/utils.py')
0 files changed, 0 insertions, 0 deletions