From: Peter Xu <peterx@redhat.com>
To: Markus Armbruster <armbru@redhat.com>
Cc: qemu-devel@nongnu.org, farosas@suse.de
Subject: Re: [PATCH 0/3] migration: Error fixes and improvements
Date: Mon, 17 Nov 2025 11:03:37 -0500 [thread overview]
Message-ID: <aRtHWbWcTh3OF2wY@x1.local> (raw)
In-Reply-To: <20251115083500.2753895-1-armbru@redhat.com>
On Sat, Nov 15, 2025 at 09:34:57AM +0100, Markus Armbruster wrote:
> Maintainers decide what to take for 10.2, if anything.
>
> Let me know if you'd prefer the "perhaps should take ownership" idea
> in PATCH 1's commit message.
I recall I had such patch previously, so I digged it out:
https://lore.kernel.org/all/20230705163502.331007-3-peterx@redhat.com/
I found that I dropped it in v3's post of that series, where I mentioned in
the change log that either way is not clean, so I dropped that until I
could have a better understanding:
https://lore.kernel.org/all/20231004220240.167175-1-peterx@redhat.com/
I think at that time I should have hit an use case where the caller forgot
to error_copy(), hence passing it in causing an UAF. Then I thought memory
leak was better in error path comparing to UAF if the API was used wrong
either way.
But feel free to share your thoughts. We can definitely revisit this.
I queued the series for this release, thanks Markus.
>
> Markus Armbruster (3):
> migration: Plug memory leaks after migrate_set_error()
> migration: Use warn_reportf_err() where appropriate
> migration/postcopy-ram: Improve error reporting after loadvm failure
>
> migration/cpr-exec.c | 3 ++-
> migration/multifd.c | 6 ++++--
> migration/postcopy-ram.c | 17 ++++++++---------
> 3 files changed, 14 insertions(+), 12 deletions(-)
>
> --
> 2.49.0
>
>
--
Peter Xu
next prev parent reply other threads:[~2025-11-17 16:04 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-15 8:34 [PATCH 0/3] migration: Error fixes and improvements Markus Armbruster
2025-11-15 8:34 ` [PATCH 1/3] migration: Plug memory leaks after migrate_set_error() Markus Armbruster
2025-11-15 8:34 ` [PATCH 2/3] migration: Use warn_reportf_err() where appropriate Markus Armbruster
2025-11-17 15:47 ` Fabiano Rosas
2025-11-15 8:35 ` [PATCH 3/3] migration/postcopy-ram: Improve error reporting after loadvm failure Markus Armbruster
2025-11-17 15:50 ` Fabiano Rosas
2025-11-17 16:03 ` Peter Xu [this message]
2025-11-18 7:44 ` [PATCH 0/3] migration: Error fixes and improvements Markus Armbruster
2025-11-18 17:35 ` Peter Xu
2025-11-19 7:45 ` Markus Armbruster
2025-11-19 20:58 ` Peter Xu
2025-11-20 10:30 ` Migration and the Job abstraction (was: [PATCH 0/3] migration: Error fixes and improvements) Markus Armbruster
2025-11-20 12:16 ` Kevin Wolf
2025-11-21 12:38 ` [PATCH 0/3] migration: Error fixes and improvements Fabiano Rosas
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=aRtHWbWcTh3OF2wY@x1.local \
--to=peterx@redhat.com \
--cc=armbru@redhat.com \
--cc=farosas@suse.de \
--cc=qemu-devel@nongnu.org \
/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).