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: <20260102230533.4fb1d8ef@pumpkin>
Date: Fri, 2 Jan 2026 23:05:33 +0000
From: David Laight <david.laight.linux@...il.com>
To: Matthew Wilcox <willy@...radead.org>
Cc: Thomas Weißschuh <thomas.weissschuh@...utronix.de>,
 Russell King <linux@...linux.org.uk>, Andrew Morton
 <akpm@...ux-foundation.org>, Russell King <rmk+kernel@...linux.org.uk>,
 linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org, Arnd
 Bergmann <arnd@...db.de>, stable@...r.kernel.org
Subject: Re: [PATCH] ARM: fix memset64() on big-endian

On Fri, 2 Jan 2026 15:22:20 +0000
Matthew Wilcox <willy@...radead.org> wrote:

> On Fri, Jan 02, 2026 at 08:15:46AM +0100, Thomas Weißschuh wrote:
> > On big-endian systems the 32-bit low and high halves need to be swapped,
> > for the underlying assembly implemenation to work correctly.  
> 
> Heh.  In my heart, ARM will always be a litte-endian architecture.
> I'm not really surprised this bug took, er, 8 years to show up; big-endian
> arm is rare enough and memset64() isn't much used on 32-bit systems.
> And it turns out that many of the users pass a constant 0 as the value,
> which was kind of not the point, but it seems to be an easier API to
> use than memset, so whatever ;-)

I'd have thought that part of the point of memset64() was to remove
all the 'alignment' and 'tail handling' that a normal memset() has.
Clearly someone thought otherwise :-)

	David

> 
> > Fixes: fd1d362600e2 ("ARM: implement memset32 & memset64")
> > Cc: stable@...r.kernel.org
> > Signed-off-by: Thomas Weißschuh <thomas.weissschuh@...utronix.de>  
> 
> Reviewed-by: Matthew Wilcox (Oracle) <willy@...radead.org>
> 


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ