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: <2025081450-pacifist-laxative-bb4c@gregkh>
Date: Thu, 14 Aug 2025 11:03:51 +0200
From: Greg KH <gregkh@...uxfoundation.org>
To: Hardeep Sharma <quic_hardshar@...cinc.com>
Cc: Jens Axboe <axboe@...nel.dk>, Hannes Reinecke <hare@...e.de>,
	"Martin K . Petersen" <martin.petersen@...cle.com>,
	linux-block@...r.kernel.org, linux-kernel@...r.kernel.org,
	stable@...r.kernel.org
Subject: Re: [PATCH 6.6.y v2 1/1] block: Fix bounce check logic in
 blk_queue_may_bounce()

On Thu, Aug 14, 2025 at 12:06:55PM +0530, Hardeep Sharma wrote:
> Buffer bouncing is needed only when memory exists above the lowmem region,
> i.e., when max_low_pfn < max_pfn. The previous check (max_low_pfn >=
> max_pfn) was inverted and prevented bouncing when it could actually be
> required.
> 
> Note that bouncing depends on CONFIG_HIGHMEM, which is typically enabled
> on 32-bit ARM where not all memory is permanently mapped into the kernel’s
> lowmem region.
> 
> Branch-Specific Note:
> 
> This fix is specific to this branch (6.6.y) only.
> In the upstream “tip” kernel, bounce buffer support for highmem pages
> was completely removed after kernel version 6.12. Therefore, this
> modification is not possible or relevant in the tip branch.
> 
> Fixes: 9bb33f24abbd0 ("block: refactor the bounce buffering code")
> Cc: stable@...r.kernel.org
> Signed-off-by: Hardeep Sharma <quic_hardshar@...cinc.com>

Why do you say this is only for 6.6.y, yet your Fixes: line is older
than that?

And why wasn't this ever found or noticed before?

Also, why can't we just remove all of the bounce buffering code in this
older kernel tree?  What is wrong with doing that instead?

And finally, how was this tested?

thanks,

greg k-h

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ