[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b94030984037e54a61f762f9aa62776ecd8082af.camel@physik.fu-berlin.de>
Date: Wed, 10 Sep 2025 09:37:52 +0200
From: John Paul Adrian Glaubitz <glaubitz@...sik.fu-berlin.de>
To: Geert Uytterhoeven <geert@...ux-m68k.org>
Cc: Kent Overstreet <kent.overstreet@...ux.dev>, Lance Yang
<lance.yang@...ux.dev>, akpm@...ux-foundation.org, amaindex@...look.com,
anna.schumaker@...cle.com, boqun.feng@...il.com, fthain@...ux-m68k.org,
ioworker0@...il.com, joel.granados@...nel.org, jstultz@...gle.com,
leonylgao@...cent.com, linux-kernel@...r.kernel.org,
linux-m68k@...ts.linux-m68k.org, longman@...hat.com, mhiramat@...nel.org,
mingo@...hat.com, mingzhe.yang@...com, oak@...sinkinet.fi,
peterz@...radead.org, rostedt@...dmis.org, senozhatsky@...omium.org,
tfiga@...omium.org, will@...nel.org, stable@...r.kernel.org
Subject: Re: [PATCH v2 1/1] hung_task: fix warnings caused by unaligned lock
pointers
On Wed, 2025-09-10 at 09:34 +0200, Geert Uytterhoeven wrote:
> > > Isn't m68k the only architecture that's weird like this?
> >
> > Yes, and it does this on Linux only. I have been trying to change it upstream
> > though as the official SysV ELF ABI for m68k requires a 4-byte natural alignment [1].
>
> M68k does this on various OSes and ABIs that predate or are not
> explicitly compatible with the SysV ELF ABI.
I know. I was talking in the context of SysV ELF systems.
> Other architectures like CRIS (1-byte alignment!) are no longer supported
> by Linux.
Yes, that's why we should take care of the alignment ;-).
> FWIW, doubles (and doublewords) are not naturally aligned in the
> SysV ELF ABI for i386, while doubles (no mention of doublewords)
> are naturally aligned in the SysV ELF ABI for m68k.
I wouldn't consider i386 a role model for us ;-).
Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer
`. `' Physicist
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Powered by blists - more mailing lists