qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Fix dumping in kdump format with non-aligned memory
@ 2022-08-25 13:21 marcandre.lureau
  2022-08-25 13:21 ` [PATCH 1/2] dump: simplify a bit kdump get_next_page() marcandre.lureau
  2022-08-25 13:21 ` [PATCH 2/2] dump: fix kdump to work over non-aligned blocks marcandre.lureau
  0 siblings, 2 replies; 12+ messages in thread
From: marcandre.lureau @ 2022-08-25 13:21 UTC (permalink / raw)
  To: qemu-devel
  Cc: Paolo Bonzini, qiaonuohan, Marc-André Lureau, Peter Maydell,
	David Hildenbrand, Stefan Berger

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



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2022-08-26 10:12 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-25 13:21 [PATCH 0/2] Fix dumping in kdump format with non-aligned memory marcandre.lureau
2022-08-25 13:21 ` [PATCH 1/2] dump: simplify a bit kdump get_next_page() marcandre.lureau
2022-08-26  9:45   ` David Hildenbrand
2022-08-26  9:56     ` Marc-André Lureau
2022-08-26  9:58       ` David Hildenbrand
2022-08-25 13:21 ` [PATCH 2/2] dump: fix kdump to work over non-aligned blocks marcandre.lureau
2022-08-25 13:34   ` Peter Maydell
2022-08-25 13:38     ` Marc-André Lureau
2022-08-26  9:57   ` David Hildenbrand
2022-08-26 10:02     ` Marc-André Lureau
2022-08-26 10:07       ` David Hildenbrand
2022-08-26 10:10         ` David Hildenbrand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).