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: <20251119054524.GA19993@lst.de>
Date: Wed, 19 Nov 2025 06:45:24 +0100
From: Christoph Hellwig <hch@....de>
To: Mikulas Patocka <mpatocka@...hat.com>
Cc: Benjamin Marzinski <bmarzins@...hat.com>,
	"Uladzislau Rezki (Sony)" <urezki@...il.com>,
	Alasdair Kergon <agk@...hat.com>, DMML <dm-devel@...ts.linux.dev>,
	Andrew Morton <akpm@...ux-foundation.org>,
	Mike Snitzer <snitzer@...hat.com>, Christoph Hellwig <hch@....de>,
	LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] dm-bufio: align write boundary on
 bdev_logical_block_size

On Tue, Nov 18, 2025 at 06:45:55PM +0100, Mikulas Patocka wrote:
> I changed the patch below, so that it aligns write bios on 
> max3(DM_BUFIO_WRITE_ALIGN, bdev_logical_block_size(b->c->bdev), 
> bdev_physical_block_size(b->c->bdev)); - so that if physical block size is 
> greater than logical block size, the writes are aligned so that the device 
> doesn't do read-modify-write.

That doesn't make any sense whatsoever.  The physical block size must
be >= logical block size, and the block enforces that.


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ