Skip to content

makedumpfile/vmcore-dmesg: harden parsing of printk buffer

Philipp Rudo requested to merge prudo1/kexec-tools:2069200_dmesg_loop into c9s

Resolves: bz2069200

Prevent that the code that parses the old printk log_buf (> v3.5.0 and
< v5.10.0) end up in an endless loop when a memory corruption occurs. The
endless loop can happen on both makedumpfile and vmcore-dmesg from kexec-tools.

Signed-off-by: Philipp Rudo prudo@redhat.com

574a202f (Philipp Rudo)
util_lib/elf_info: harden parsing of printk buffer

7620d676 (Philipp Rudo)
print error when reading with unsupported compression

fb25c11f (Philipp Rudo)
use cycle detection when parsing the prink log_buf

92f7d2ba (Philipp Rudo)
use pointer arithmetics for dump_dmesg

90da030e (Philipp Rudo)
add generic cycle detection

..._PATCH_v2_1_3_add_generic_cycle_detection.patch | 191 +++++++++++++++++++++
..._3_use_pointer_arithmetics_for_dump_dmesg.patch | 102 +++++++++++
..._detection_when_parsing_the_prink_log_buf.patch | 118 +++++++++++++
...when_reading_with_unsupported_compression.patch | 150 ++++++++++++++++
..._elf_info_harden_parsing_of_printk_buffer.patch | 86 ++++++++++
kexec-tools.spec | 10 ++
6 files changed, 657 insertions(+)

Edited by Philipp Rudo

Merge request reports