]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/coredump/coredump.c
coredump: when reconstructing original kernel coredump context, chop off trailing...
authorLennart Poettering <lennart@poettering.net>
Fri, 17 Feb 2017 10:31:07 +0000 (11:31 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 17 Feb 2017 10:35:19 +0000 (11:35 +0100)
commit80002f6640a00b46b74188f2eb47082d7e03817c
treebd744c4b91d0530bf93c53de49c68e85ba6d4a38
parent76341acc383833b2f2b37a0f2ac713c6390a9171
coredump: when reconstructing original kernel coredump context, chop off trailing zeroes

Our coredump handler operates on a "context" supplied by the kernel via
the core_pattern arguments. When we pass off a coredump for processing
to coredumpd we pass along enough information for this context to be
reconstructed. This information is passed in the usual journal fields,
and that means we extended the 1s granularity timestamp to 1µs
granularity by appending 6 zeroes. We need to chop them off again when
reconstructing the original kernel context.

Fixes: #4779
src/coredump/coredump.c