From: Nathan Chancellor <nathan@kernel.org>
To: Ard Biesheuvel <ardb@kernel.org>
Cc: Bill Wendling <morbo@google.com>, Kees Cook <kees@kernel.org>,
"Gustavo A. R. Silva" <gustavoars@kernel.org>,
Nick Desaulniers <ndesaulniers@google.com>,
Justin Stitt <justinstitt@google.com>,
Mark Brown <broonie@kernel.org>, Marco Elver <elver@google.com>,
alan.maguire@oracle.com, namjain@linux.microsoft.com,
Peter Zijlstra <peterz@infradead.org>,
linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org,
llvm@lists.linux.dev
Subject: Re: [PATCH v4] compiler_types: Allow opting out of __counted_by and __counted_by_ptr
Date: Thu, 8 Oct 2026 18:17:24 +0200 [thread overview]
Message-ID: <20261008161724.GA459@ax162> (raw)
In-Reply-To: <bc2e2ae7-02e7-4148-8ad2-ab3c1af3dd7a@app.fastmail.com>
On Thu, Oct 08, 2026 at 04:50:44PM +0200, Ard Biesheuvel wrote:
> On Wed, 7 Oct 2026, at 11:36, Nathan Chancellor wrote:
> > On Wed, Oct 07, 2026 at 02:32:45AM -0700, Bill Wendling wrote:
> >> Ard,
> >>
> >> What's the reason why x86 doesn't need the KBUILD_CFLAGS flags? Is
> >> there something that breaks things?
> >
> > I think it is mostly historical. See Kees's series to address it:
> >
> > https://lore.kernel.org/20261006204210.i.137-kees@kernel.org/
> >
>
> I've queued that up now in the EFI tree.
>
> Do we still need this patch then?
I don't think so, since the efistub should now get
'-fexperimental-late-parse-attributes' from the main KBUILD_CFLAGS,
which is what prompted this patch in the first place:
https://lore.kernel.org/CAGG=3QWCmQ+LVvn2dtjEauj5WFwvx=pvg4Q6man_A2imdjRe7A@mail.gmail.com/
As I mentioned up thread and to Kees in person, we should still consider
adding '-fexperimental-late-parse-attributes' into CC_FLAGS_DIALECT to
cover other areas that may see __counted_by_ptr use but it is probably
not as high priority.
--
Cheers,
Nathan
next prev parent reply other threads:[~2026-10-08 16:17 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-05 10:25 [PATCH] compiler_types: Allow opting out of __counted_by and __counted_by_ptr Bill Wendling
2026-10-05 10:44 ` Justin Stitt
2026-10-05 10:53 ` Ard Biesheuvel
2026-10-05 15:52 ` Bill Wendling
2026-10-05 19:19 ` Bill Wendling
2026-10-05 19:20 ` [PATCH v3] " Bill Wendling
2026-10-05 21:25 ` Ard Biesheuvel
2026-10-06 7:30 ` Justin Stitt
2026-10-06 8:07 ` Ard Biesheuvel
2026-10-06 9:23 ` Bill Wendling
2026-10-06 9:43 ` [PATCH v4] " Bill Wendling
2026-10-06 10:08 ` Ard Biesheuvel
2026-10-06 13:46 ` Bill Wendling
2026-10-06 14:12 ` Kees Cook
2026-10-07 9:09 ` Nathan Chancellor
2026-10-07 9:32 ` Bill Wendling
2026-10-07 9:36 ` Nathan Chancellor
2026-10-08 14:50 ` Ard Biesheuvel
2026-10-08 16:17 ` Nathan Chancellor [this message]
2026-10-08 16:40 ` Ard Biesheuvel
2026-10-08 20:29 ` Bill Wendling
2026-10-06 13:45 ` [PATCH v5] " Bill Wendling
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261008161724.GA459@ax162 \
--to=nathan@kernel.org \
--cc=alan.maguire@oracle.com \
--cc=ardb@kernel.org \
--cc=broonie@kernel.org \
--cc=elver@google.com \
--cc=gustavoars@kernel.org \
--cc=justinstitt@google.com \
--cc=kees@kernel.org \
--cc=linux-hardening@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=morbo@google.com \
--cc=namjain@linux.microsoft.com \
--cc=ndesaulniers@google.com \
--cc=peterz@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.