|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH 3/3] xenbus/cache: spill slabs on CacheFill failure to prevent pool leak
On 10/09/2026 18:13, david ambu wrote:
> Call CacheSpill on the fail path in CacheFill to release any slabs
> already allocated before the failure, preventing a NonPagedPool leak.
>
> Assisted-by: ClaudeCode:claude-sonnet-4-6
> Signed-off-by: david ambu <david.preetham@xxxxxxxxxx>
> ---
> src/xenbus/cache.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/src/xenbus/cache.c b/src/xenbus/cache.c
> index 90aea08..363bd29 100644
> --- a/src/xenbus/cache.c
> +++ b/src/xenbus/cache.c
> @@ -906,6 +906,8 @@ fail5:
> fail4:
> Error("fail4\n");
>
> + CacheSpill(*Cache, 0);
> +
The CacheSpill in fail5 might need to be deleted to avoid a duplicate
CacheSpill?
> fail3:
> Error("fail3\n");
>
--
Ngoc Tu Dinh | Vates XCP-ng Developer
XCP-ng & Xen Orchestra - Vates solutions
web: https://vates.tech
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |