diff options
author | Roman Kisel <romank@linux.microsoft.com> | 2024-07-18 11:27:24 -0700 |
---|---|---|
committer | Kees Cook <kees@kernel.org> | 2024-08-05 21:29:20 -0700 |
commit | c114e9948c2b6a0b400266e59cc656b59e795bca (patch) | |
tree | 791b33c3f1d316e21358e3ae5820e50aa5c50dec /fs/open.c | |
parent | de9c2c66ad8e787abec7c9d7eff4f8c3cdd28aed (diff) |
coredump: Standartize and fix logging
The coredump code does not log the process ID and the comm
consistently, logs unescaped comm when it does log it, and
does not always use the ratelimited logging. That makes it
harder to analyze logs and puts the system at the risk of
spamming the system log incase something crashes many times
over and over again.
Fix that by logging TGID and comm (escaped) consistently and
using the ratelimited logging always.
Signed-off-by: Roman Kisel <romank@linux.microsoft.com>
Tested-by: Allen Pais <apais@linux.microsoft.com>
Link: https://lore.kernel.org/r/20240718182743.1959160-2-romank@linux.microsoft.com
Signed-off-by: Kees Cook <kees@kernel.org>
Diffstat (limited to 'fs/open.c')
0 files changed, 0 insertions, 0 deletions