[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20220630135140.2dd079c9.alex.williamson@redhat.com>
Date: Thu, 30 Jun 2022 13:51:40 -0600
From: Alex Williamson <alex.williamson@...hat.com>
To: Schspa Shi <schspa@...il.com>
Cc: cohuck@...hat.com, kvm@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3] vfio: Clear the caps->buf to NULL after free
On Wed, 29 Jun 2022 10:29:48 +0800
Schspa Shi <schspa@...il.com> wrote:
> On buffer resize failure, vfio_info_cap_add() will free the buffer,
> report zero for the size, and return -ENOMEM. As additional
> hardening, also clear the buffer pointer to prevent any chance of a
> double free.
>
> Signed-off-by: Schspa Shi <schspa@...il.com>
>
Applied to vfio next branch for v5.20. Thanks,
Alex
Powered by blists - more mailing lists