Re: [PATCH 2/4] xen/cache-col: Fix freeing of colouring information

2025-07-24 Thread Jan Beulich
On 24.07.2025 18:23, Andrew Cooper wrote: > domain_destroy() is the wrong position to be freeing colouring information. > > The comment in context identifies how domain_destroy() can be called multiple > times on the same domain, leading to a double free of d->llc_colors as it's > the wrong side o

[PATCH 2/4] xen/cache-col: Fix freeing of colouring information

2025-07-24 Thread Andrew Cooper
domain_destroy() is the wrong position to be freeing colouring information. The comment in context identifies how domain_destroy() can be called multiple times on the same domain, leading to a double free of d->llc_colors as it's the wrong side of the atomic_cmpxchg() to be made safe. Furthermore