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

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 using a caller pre-allocated filled up page as necessary.

Fixes:
https://bugzilla.redhat.com/show_bug.cgi?id=2120480

v2:
 - drop some unnecessary changes in the first patch
 - use pre-allocated caller memory, instead of allocating in get_next_page()
 - fix some comment

Marc-André Lureau (2):
  dump: simplify a bit kdump get_next_page()
  dump: fix kdump to work over non-aligned blocks

 dump/dump.c | 88 +++++++++++++++++++++++++++++++++++------------------
 roms/SLOF   |  2 +-
 2 files changed, 59 insertions(+), 31 deletions(-)

-- 
2.37.2



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

end of thread, other threads:[~2022-10-06 15:09 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-05 12:57 [PATCH v2 0/2] Fix dumping in kdump format with non-aligned memory marcandre.lureau
2022-09-05 12:57 ` [PATCH v2 1/2] dump: simplify a bit kdump get_next_page() marcandre.lureau
2022-09-05 13:12   ` David Hildenbrand
2022-09-05 13:27   ` Peter Maydell
2022-09-05 13:33     ` Marc-André Lureau
2022-09-05 12:57 ` [PATCH v2 2/2] dump: fix kdump to work over non-aligned blocks marcandre.lureau
2022-09-06 20:11   ` Stefan Berger
2022-09-29  7:54   ` Marc-André Lureau
2022-10-06 15:05   ` David Hildenbrand

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.