]> 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)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 24 Sep 2025 16:26:06 +0000 (09:26 -0700)
commit03fe6659803f83690b8587d01f8ee56bb4be4b90
tree9146e4098cb27753a9f56023b10eb4ae28bd3fdf
parent9ea28805814bedf511baf1635bb2fd0ceefcd638
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>
accel/tcg/tb-maint.c