Re: ASan reports use-after-free when running munmap-pthread

2023-02-04 Thread Anton Johansson via
On 2/3/23 22:18, Richard Henderson wrote: The fix for this was merged today: 4731f89b3b cpu: free cpu->tb_jmp_cache with RCU I'd forgotten about this, since the pull request was pending for some time, while we waited for CI minutes to refresh. r~ Ah that's great, thanks for taking a

Re: ASan reports use-after-free when running munmap-pthread

2023-02-03 Thread Richard Henderson
On 2/2/23 09:06, Anton Johansson wrote: Hi, I was running check-tcg with ASan enabled on master, and ran into the following use-after-free. There appears to be a race between jump cache invalidation and thread destruction (?) I thought I'd post here since I noticed some previous discussion on

Re: ASan reports use-after-free when running munmap-pthread

2023-02-03 Thread Richard Henderson
On 2/3/23 07:34, Richard Henderson wrote: On 2/3/23 01:23, Alex Bennée wrote: Anton Johansson writes: Hi, I was running check-tcg with ASan enabled on master, and ran into the following use-after-free. There appears to be a race between jump cache invalidation and thread destruction (?) I

Re: ASan reports use-after-free when running munmap-pthread

2023-02-03 Thread Richard Henderson
On 2/3/23 01:23, Alex Bennée wrote: Anton Johansson writes: Hi, I was running check-tcg with ASan enabled on master, and ran into the following use-after-free. There appears to be a race between jump cache invalidation and thread destruction (?) I thought I'd post here since I noticed some

Re: ASan reports use-after-free when running munmap-pthread

2023-02-03 Thread Alex Bennée
Anton Johansson writes: > Hi, > > I was running check-tcg with ASan enabled on master, and ran into > the following use-after-free. There appears to be a race between > jump cache invalidation and thread destruction (?) > > I thought I'd post here since I noticed some previous discussion on

ASan reports use-after-free when running munmap-pthread

2023-02-02 Thread Anton Johansson via
Hi, I was running check-tcg with ASan enabled on master, and ran into the following use-after-free. There appears to be a race between jump cache invalidation and thread destruction (?) I thought I'd post here since I noticed some previous discussion on the topic, and I'm not sure myself what a