]> git.ipfire.org Git - thirdparty/qemu.git/commit
accel/tcg: Properly unlink a TB linked to itself
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 23 Sep 2025 23:02:03 +0000 (16:02 -0700)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 26 Sep 2025 06:59:25 +0000 (09:59 +0300)
commit3e55f8282ac7f7f6f638cfe78bd0d6067f7f4236
treeee67e24a887390fba5f556774c03c28d8e62c1be
parent71f198239fc93b2fcaa31f0437f0df30b69f98b4
accel/tcg: Properly unlink a TB linked to itself

When we remove dest from orig's links, we lose the link
that we rely on later to reset links.  This can lead to
failure to release from spinlock with self-modifying code.

Cc: qemu-stable@nongnu.org
Reported-by: 李威威 <liweiwei@kubuds.cn>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Anton Johansson <anjo@rev.ng>
Tested-by: Anton Johansson <anjo@rev.ng>
(cherry picked from commit 03fe6659803f83690b8587d01f8ee56bb4be4b90)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
accel/tcg/tb-maint.c