From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: pve-devel@lists.proxmox.com, Dominik Csapak <d.csapak@proxmox.com>
Subject: applied: [PATCH qemu-server v2] fix #7654: prevent use after free
Date: Tue, 7 Jul 2026 22:31:36 +0200 [thread overview]
Message-ID: <178345629662.4018398.3391554842493200806.b4-ty@b4> (raw)
In-Reply-To: <20260602121659.2497188-1-d.csapak@proxmox.com>
On Tue, 02 Jun 2026 14:16:12 +0200, Dominik Csapak wrote:
> to prevent a use after free on a client struct, instead of freeing it
> inline in 'cleanup_client', only set a boolean flag 'pending_free'
> and free it in the main 'handle_client' function.
>
> the call graphs look like this:
>
> handle_client
> `-> cleanup_client
> `-> handle_qmp_handshake
> `-> cleanup_client
> `-> send_qmp_cmd
> `-> cleanup_client
> `-> handle_qmp_event
> `-> terminate_check
> `-> send_qmp_cmd
> `-> cleanup_client
> `-> handle_qmp_return
> `-> terminate_check
> `-> send_qmp_cmd
> `-> cleanup_client
>
> [...]
Applied, thanks!
[1/1] fix #7654: prevent use after free
https://git.proxmox.com/?p=qemu-server.git;a=commitdiff;h=fe2fddabc5d25244ed3db7b1e56b21e521685122
prev parent reply other threads:[~2026-07-07 20:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-02 12:16 [PATCH qemu-server v2] fix #7654: prevent use after free Dominik Csapak
2026-07-07 20:31 ` Thomas Lamprecht [this message]
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=178345629662.4018398.3391554842493200806.b4-ty@b4 \
--to=t.lamprecht@proxmox.com \
--cc=d.csapak@proxmox.com \
--cc=pve-devel@lists.proxmox.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 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.