Re: [PATCH] landlock: Move the domain layer counter out of the anonymous union

From: Michael Bommarito

Date: Fri Oct 09 2026 - 20:02:23 EST


On Fri, Oct 9, 2026 at 7:52 PM Kees Cook <kees@xxxxxxxxxx> wrote:
> I'm still catching up from travel, so apologies if this already got checked, but has this been verified against GCC as well? Is it only a Clang problem?
>
> Regardless, if counted_by is not working for a given compiler version we'll need to exclude its use by version. :(

It is only clang, not gcc. See my comparison between gcc 15 and clang
21.1.8 output in [1]. I didn't test clang
20 or 23 like Abel did, but it seems like we can't gate on any
available clang version.

[1] https://github.com/llvm/llvm-project/pull/228309#issuecomment-6080475086

Thanks,
Mike