lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<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

Powered by Openwall GNU/*/Linux Powered by OpenVZ