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

Nick Desaulniers ndesaulniers at google.com
Fri Oct 9 17:23:14 UTC 2026


On Thu, Oct 8, 2026 at 4:49 AM Abel Vesa <abel.vesa at oss.qualcomm.com> wrote:
>
> On 26-10-07 14:49:28, Nick Desaulniers wrote:
> > Would you consider this a bug in clang, or an error in how the
> > __counted_by attribute is applied?
> >
> It turns out Amaan Qureshi has already reported exactly this Landlock
> issue and proposed an LLVM fix:
>
>   https://github.com/llvm/llvm-project/pull/228309

In that case, I would _not_ work around the compiler bug like this and
instead wait for that fix to land in clang, then bump the required
version of clang for counted-by.

Kees and Nathan are traveling for LPC, so I don't expect quick
feedback from them, but they should confirm whether they agree with my
proposal.
-- 
Thanks,
~Nick Desaulniers



More information about the Linux-security-module-archive mailing list