[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/2] Fix dumping in kdump format with non-aligned memory
From: |
marcandre . lureau |
Subject: |
[PATCH 0/2] Fix dumping in kdump format with non-aligned memory |
Date: |
Thu, 25 Aug 2022 17:21:08 +0400 |
From: Marc-André Lureau <marcandre.lureau@redhat.com>
Hi,
dump.c:get_next_page expects GuestPhysBlock to be page-aligned, and crashes over
memory regions such as "tpm-crb-cmd". Teach it to handle non-aligned regions
too, by returning allocated and filled up pages as necessary.
Fixes:
https://bugzilla.redhat.com/show_bug.cgi?id=2120480
Marc-André Lureau (2):
dump: simplify a bit kdump get_next_page()
dump: fix kdump to work over non-aligned blocks
dump/dump.c | 103 ++++++++++++++++++++++++++++++++++------------------
1 file changed, 68 insertions(+), 35 deletions(-)
--
2.37.2