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: <b8156bb1-b7fe-4036-9dbb-98fdcec3ff65@linux.ibm.com>
Date: Thu, 21 Aug 2025 10:55:31 +0530
From: Nilay Shroff <nilay@...ux.ibm.com>
To: Keith Busch <kbusch@...nel.org>, John Garry <john.g.garry@...cle.com>
Cc: axboe@...nel.dk, hch@....de, sagi@...mberg.me,
        linux-nvme@...ts.infradead.org, linux-kernel@...r.kernel.org,
        tytso@....edu, martin.petersen@...cle.com, djwong@...nel.org,
        mcgrof@...radead.org
Subject: Re: [RFC PATCH] nvme: add an opt-in to use AWUPF



On 8/21/25 3:21 AM, Keith Busch wrote:
> On Wed, Aug 20, 2025 at 03:02:20PM +0000, John Garry wrote:
>> It would be preferred to stop honouring AWUPF altogether, but this may
>> needlessly disable atomic write support for many "good" devices which
>> only specify AWUPF. Currently all validation of controller-related
>> atomics limits is dropped.
> 
> These "good" devices that only report AWUPF, is there some set of
> characteristics that generally applies to all of them? 
Yes, I know of such “good” devices. Typically, they report a consistent
AWUPF value across all controllers, and that value does not change when
the namespaces attached to those controllers are reformatted.
As we know, though, validating this in code is difficult. A past attempt
to implement such validation failed because there are disks in the field
that do change the AWUPF value when reformatting namespaces.

> I tried to list out conditions for when I think the value could be counted on here:
> 
>   https://lore.kernel.org/linux-nvme/aGvuRS8VmC0JXAR3@kbusch-mbp/
> 
Regarding the checks you listed, they seem too restrictive. They only support
AWUPF for single-controller devices and for disks that either have only one
namespace or support formatting all namespaces together (i.e., do not support
formatting individual namespaces).

> I just don't know if you know of any devices where that criteria doesn't
> git. If not, maybe we can work with that without introducing more user
> knobs.
Given this, IMO, an opt-in approach should be considered, letting users
decide whether they want to enable atomic write support or not.

Thanks,
--Nilay

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ