Re: [PATCH] atomic: Specify natural alignment for atomic_t

From: Finn Thain
Date: Wed Aug 27 2025 - 04:01:12 EST



On Mon, 25 Aug 2025, Lance Yang wrote:

> >
> > More problematic is that, IIRC, m68k kmalloc() allocates 16bit aligned
> > memory. This has broken other things in the past. I doubt that
> > increasing the alignment to 32bits would make much difference to the
> > kernel memory footprint.
>
> @Finn Given this new information, how about we just apply the runtime
> check fix for now?

New information? No, that's just hear-say.

> Since we plan to remove the entire pointer-encoding scheme later anyway,
> a minimal and targeted change could be the logical choice. It's easy and
> safe to backport, and it cleanly stops the warnings from all sources
> without introducing new risks - exactly what we need for stable kernels.
>

Well, that's up to you, of course. If you want my comment, I'd only ask
whether or not the bug is theoretical (outside of m68k).