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] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230913230135.y27i2bx244tdjhvj@moria.home.lan>
Date:   Wed, 13 Sep 2023 19:01:35 -0400
From:   Kent Overstreet <kent.overstreet@...ux.dev>
To:     Christophe JAILLET <christophe.jaillet@...adoo.fr>
Cc:     Brian Foster <bfoster@...hat.com>, linux-kernel@...r.kernel.org,
        kernel-janitors@...r.kernel.org,
        Kent Overstreet <kent.overstreet@...il.com>,
        linux-bcachefs@...r.kernel.org
Subject: Re: [PATCH 1/2] bcachefs: Fix a potential in the error handling path
 of use-after-free inbch2_dev_add()

On Wed, Sep 13, 2023 at 06:44:08PM +0200, Christophe JAILLET wrote:
> If __bch2_dev_attach_bdev() fails, bch2_dev_free() is called twice.
> Once here and another time in the error handling path.
> 
> This leads to several use-after-free.
> 
> Remove the redundant call and only rely on the error handling path.

Thanks, both applied

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ