Re: [PATCH 18/26] cpu: free cpu->tb_jmp_cache with RCU

2023-01-11 Thread Richard Henderson
On 1/10/23 09:39, Alex Bennée wrote: From: Emilio Cota Fixes the appended use-after-free. The root cause is that during tb invalidation we use CPU_FOREACH, and therefore to safely free a vCPU we must wait for an RCU grace period to elapse. $ x86_64-linux-user/qemu-x86_64 tests/tcg/x86_64-linux-

[PATCH 18/26] cpu: free cpu->tb_jmp_cache with RCU

2023-01-10 Thread Alex Bennée
From: Emilio Cota Fixes the appended use-after-free. The root cause is that during tb invalidation we use CPU_FOREACH, and therefore to safely free a vCPU we must wait for an RCU grace period to elapse. $ x86_64-linux-user/qemu-x86_64 tests/tcg/x86_64-linux-user/munmap-pthread ==