From: marcandre.lureau@redhat.com
To: qemu-devel@nongnu.org
Cc: "Paolo Bonzini" <pbonzini@redhat.com>,
qiaonuohan@cn.fujitsu.com,
"Marc-André Lureau" <marcandre.lureau@redhat.com>,
"Peter Maydell" <peter.maydell@linaro.org>,
"David Hildenbrand" <david@redhat.com>,
"Stefan Berger" <stefanb@linux.vnet.ibm.com>
Subject: [PATCH 0/2] Fix dumping in kdump format with non-aligned memory
Date: Thu, 25 Aug 2022 17:21:08 +0400 [thread overview]
Message-ID: <20220825132110.1500330-1-marcandre.lureau@redhat.com> (raw)
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
next reply other threads:[~2022-08-25 13:23 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-25 13:21 marcandre.lureau [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220825132110.1500330-1-marcandre.lureau@redhat.com \
--to=marcandre.lureau@redhat.com \
--cc=david@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qiaonuohan@cn.fujitsu.com \
--cc=stefanb@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).