diff options
author | Kees Cook <kees@kernel.org> | 2024-09-29 00:08:31 +0300 |
---|---|---|
committer | Kees Cook <kees@kernel.org> | 2024-11-01 01:06:28 +0300 |
commit | 200f091c95bbc4b8660636bd345805c45d6eced7 (patch) | |
tree | e1b6c66ebe4ce3b94799021f0cd8f386a2b776db /tools/perf/scripts/python/stackcollapse.py | |
parent | 8cf0b93919e13d1e8d4466eb4080a4c4d9d66d7b (diff) | |
download | linux-200f091c95bbc4b8660636bd345805c45d6eced7.tar.xz |
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 <vegard.nossum@oracle.com>
Closes: https://lore.kernel.org/all/d122ece6-3606-49de-ae4d-8da88846bef2@oracle.com
Fixes: c114e9948c2b ("coredump: Standartize and fix logging")
Tested-by: Vegard Nossum <vegard.nossum@oracle.com>
Link: https://lore.kernel.org/r/20240928210830.work.307-kees@kernel.org
Signed-off-by: Kees Cook <kees@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions