Re: [GIT PULL] kmalloc_obj treewide refactor for v7.0-rc1

Kees Cook
2026-02-21T22:37:46Z

On Sat, Feb 21, 2026 at 12:16:57PM -0800, Linus Torvalds wrote:
> On Sat, 21 Feb 2026 at 11:49, Linus Torvalds
> <torvalds@linux-foundation.org> wrote:
> >
> > So I've pulled this [..]
>
> Uhhuh. Something funky is going on.
>
> On my local build with clang and my local machine configuration, with
> this pull I get

Which Clang version?

> So there's something going on with this conversion, or there's another
> clang bug lurking.
>
> I'm not sure this is a fatal issue, but it makes me *very* nervous.

I'll see if I can reproduce this, but based on the last problem, I'm
going to assume it's the __builtin_counted_by_ref stuff again, as that's
the only "special" in in the kmalloc_flex() stuff...

--
Kees Cook