[Crash-utility] [RFC PATCH 0/9] Add feature to validate page descriptor table in kdump-compressed format

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I've made a RFC patch set to make sanity check of page descriptor
table in kdump compressed format strict.

This work has arose from the past issue that a produced crash dump
file was broken not only in data segment but also in headers including
page descriptor table. I've ever explained a bit this on crash-devel
in the following thread:

    https://listman.redhat.com/archives/crash-utility/2023-September/010957.html

In this past issue, I couldn't find out its root cause after all
because when I began investigating the issue, problematic system where
the issue was reproduced was already unavailable.

This patch set is aimed at allowing us to figure out this kind of
issue more quickly and in more detail using crash utility. The code is
based on the tool I made to analyze the broken crash dump in the past
issue.

This is still incomplete, for example, the sanity check has not yet
supported split dump files in the kdump-compressed format and old
header version up to 5. It would be appreciated if I can get comments
for this RFC version.

HATAYAMA Daisuke (9):
  diskdump: Add stat object in diskdump_data
  diskdump: Add function sanity_check_page_desc() that sanity checks an
    entry of page descriptor table
  diskdump: Add function check_kdump_headers() that validates page
    descriptor table
  defs.h: Introduce flag VALIDATE_KDUMP_HEADERS
  diskdump, main: Add --validate_kdump_headers command-line option
  diskdump: Make sanity check in cache_page() strict
  help: Add description of --validate_kdump_headers command-line option
  man: Add description of --validate_kdump_headers command-line option
  diskdump, debug: Print elapsed time consumed in validation of page
    descriptor table

 crash.8    |  4 +++
 defs.h     |  1 +
 diskdump.c | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++++-
 help.c     |  4 +++
 main.c     |  5 ++++
 5 files changed, 87 insertions(+), 1 deletion(-)

-- 
2.43.1
--
Crash-utility mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxxxxxx
https://${domain_name}/admin/lists/devel.lists.crash-utility.osci.io/
Contribution Guidelines: https://github.com/crash-utility/crash/wiki




[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux