Thread (5 messages) 5 messages, 4 authors, 2026-01-02

Re: [PATCH] ARM: fix memset64() on big-endian

From: Matthew Wilcox <willy@infradead.org>
Date: 2026-01-02 15:22:23
Also in: lkml, stable

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 ;-)
Fixes: fd1d362600e2 ("ARM: implement memset32 & memset64")
Cc: stable@vger.kernel.org
Signed-off-by: Thomas Weißschuh <redacted>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help