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: <Zxkc3iLkPxXr6pE0@sashalap>
Date: Wed, 23 Oct 2024 11:57:18 -0400
From: Sasha Levin <sashal@...nel.org>
To: Kent Overstreet <kent.overstreet@...ux.dev>
Cc: linux-kernel@...r.kernel.org, stable@...r.kernel.org
Subject: Re: [PATCH AUTOSEL 5.4 7/7] lib/generic-radix-tree.c: Fix rare race
 in __genradix_ptr_alloc()

On Sat, Oct 12, 2024 at 02:54:01PM -0400, Kent Overstreet wrote:
>On Sat, Oct 12, 2024 at 07:29:42AM GMT, Sasha Levin wrote:
>> From: Kent Overstreet <kent.overstreet@...ux.dev>
>>
>> [ Upstream commit b2f11c6f3e1fc60742673b8675c95b78447f3dae ]
>>
>> If we need to increase the tree depth, allocate a new node, and then
>> race with another thread that increased the tree depth before us, we'll
>> still have a preallocated node that might be used later.
>>
>> If we then use that node for a new non-root node, it'll still have a
>> pointer to the old root instead of being zeroed - fix this by zeroing it
>> in the cmpxchg failure path.
>>
>> Signed-off-by: Kent Overstreet <kent.overstreet@...ux.dev>
>> Signed-off-by: Sasha Levin <sashal@...nel.org>
>
>there wasn't any need to backport this, bcachefs is the only thing that
>uses genradix in multithreaded mode

Will do, thanks!

-- 
Thanks,
Sasha

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ