workflows.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Maciej Wieczor-Retman <maciej.wieczor-retman@intel.com>
To: Peter Zijlstra <peterz@infradead.org>
Cc: Maciej Wieczor-Retman <m.wieczorretman@pm.me>, <urezki@gmail.com>,
	<ryan.roberts@arm.com>, <kevin.brodsky@arm.com>,
	<samuel.holland@sifive.com>, <dave.hansen@linux.intel.com>,
	<jeremy.linton@arm.com>, <weixugc@google.com>, <ljs@kernel.org>,
	<ryabinin.a.a@gmail.com>, <rppt@kernel.org>, <bp@alien8.de>,
	<luto@kernel.org>, <jan.kiszka@siemens.com>, <mingo@redhat.com>,
	<david@kernel.org>, <mhocko@suse.com>,
	<akpm@linux-foundation.org>, <andreas@gaisler.com>,
	<kas@kernel.org>, <Liam.Howlett@oracle.com>, <morbo@google.com>,
	<thuth@redhat.com>, <catalin.marinas@arm.com>,
	<ankur.a.arora@oracle.com>, <kbingham@kernel.org>,
	<nick.desaulniers+lkml@gmail.com>, <andreyknvl@gmail.com>,
	<dvyukov@google.com>, <corbet@lwn.net>, <leitao@debian.org>,
	<hpa@zytor.com>, <tglx@kernel.org>, <yuanchu@google.com>,
	<ardb@kernel.org>, <vincenzo.frascino@arm.com>,
	<tabba@google.com>, <joey.gouly@arm.com>, <nsc@kernel.org>,
	<will@kernel.org>, <yeoreum.yun@arm.com>, <nathan@kernel.org>,
	<skhan@linuxfoundation.org>, <axelrasmussen@google.com>,
	<osandov@fb.com>, <surenb@google.com>, <justinstitt@google.com>,
	<kees@kernel.org>, <vbabka@kernel.org>, <hsj0512@snu.ac.kr>,
	<trintaeoitogc@gmail.com>, <jackmanb@google.com>,
	<maz@kernel.org>, <glider@google.com>,
	<linux-doc@vger.kernel.org>, <x86@kernel.org>,
	<linux-kernel@vger.kernel.org>, <kasan-dev@googlegroups.com>,
	<workflows@vger.kernel.org>, <llvm@lists.linux.dev>,
	<linux-arm-kernel@lists.infradead.org>,
	<linux-kbuild@vger.kernel.org>, <linux-mm@kvack.org>
Subject: Re: [PATCH v11 00/15] kasan: x86: arm64: KASAN tag-based mode for x86
Date: Wed, 11 Mar 2026 12:13:18 +0100	[thread overview]
Message-ID: <abFNoRrt3WbTXdvH@wieczorr-mobl1.localdomain> (raw)
In-Reply-To: <20260311110553.GM606826@noisy.programming.kicks-ass.net>

On 2026-03-11 at 12:05:53 +0100, Peter Zijlstra wrote:
>On Tue, Mar 10, 2026 at 07:30:36PM +0000, Maciej Wieczor-Retman wrote:
>> On 2026-03-10 at 20:00:22 +0100, Peter Zijlstra wrote:
>> >On Tue, Mar 10, 2026 at 05:51:19PM +0000, Maciej Wieczor-Retman wrote:
>> >
>> >> ======= Compilation
>> >> Clang was used to compile the series (make LLVM=1) since gcc doesn't
>> >> seem to have support for KASAN tag-based compiler instrumentation on
>> >> x86. Patchset does seem to compile with gcc without an issue but doesn't
>> >> boot afterwards.
>> >
>> >Can you put all that under a specific CONFIG and make that depend on
>> >CC_IS_CLANG?
>>
>> I made HAVE_ARCH_KASAN_SW_TAGS depend on CC_IS_CLANG, and that controls all the
>> software tags stuff, like ARCH_DISABLE_KASAN_INLINE through KASAN_SW_TAGS.
>> And ARCH_NEEDS_DEFER_KASAN is for if KASAN is compiled but LAM is not available,
>> so that it gets disabled in runtime.
>>
>> But sure, I suppose I can add a separate CONFIG with CC_IS_CLANG to these three
>> so the clang connection is more transparent.
>
>Right, because building but not booting is BAD :-) While compiler
>specific features are a dime a dozen.

I'll make the change and I agree of course, what I meant is that with this patch
I'm pretty sure you already can't hit the condition of 'building but not
booting'. All the 'not booting' options are already hidden behind CC_IS_CLANG
(so really only HAVE_ARCH_KASAN_SW_TAGS which controls all the other ones).

-- 
Kind regards
Maciej Wieczór-Retman

      reply	other threads:[~2026-03-11 11:14 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-10 17:51 Maciej Wieczor-Retman
2026-03-10 17:53 ` [PATCH v11 01/15] kasan: sw_tags: Use arithmetic shift for shadow computation Maciej Wieczor-Retman
2026-03-10 17:55 ` [PATCH v11 15/15] docs: Update KASAN and x86 memory map documentations Maciej Wieczor-Retman
2026-03-10 18:24 ` [PATCH v11 00/15] kasan: x86: arm64: KASAN tag-based mode for x86 Andrew Morton
2026-03-10 19:17   ` Maciej Wieczor-Retman
2026-03-10 19:00 ` Peter Zijlstra
2026-03-10 19:30   ` Maciej Wieczor-Retman
2026-03-11 11:05     ` Peter Zijlstra
2026-03-11 11:13       ` Maciej Wieczor-Retman [this message]

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=abFNoRrt3WbTXdvH@wieczorr-mobl1.localdomain \
    --to=maciej.wieczor-retman@intel.com \
    --cc=Liam.Howlett@oracle.com \
    --cc=akpm@linux-foundation.org \
    --cc=andreas@gaisler.com \
    --cc=andreyknvl@gmail.com \
    --cc=ankur.a.arora@oracle.com \
    --cc=ardb@kernel.org \
    --cc=axelrasmussen@google.com \
    --cc=bp@alien8.de \
    --cc=catalin.marinas@arm.com \
    --cc=corbet@lwn.net \
    --cc=dave.hansen@linux.intel.com \
    --cc=david@kernel.org \
    --cc=dvyukov@google.com \
    --cc=glider@google.com \
    --cc=hpa@zytor.com \
    --cc=hsj0512@snu.ac.kr \
    --cc=jackmanb@google.com \
    --cc=jan.kiszka@siemens.com \
    --cc=jeremy.linton@arm.com \
    --cc=joey.gouly@arm.com \
    --cc=justinstitt@google.com \
    --cc=kas@kernel.org \
    --cc=kasan-dev@googlegroups.com \
    --cc=kbingham@kernel.org \
    --cc=kees@kernel.org \
    --cc=kevin.brodsky@arm.com \
    --cc=leitao@debian.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=ljs@kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=luto@kernel.org \
    --cc=m.wieczorretman@pm.me \
    --cc=maz@kernel.org \
    --cc=mhocko@suse.com \
    --cc=mingo@redhat.com \
    --cc=morbo@google.com \
    --cc=nathan@kernel.org \
    --cc=nick.desaulniers+lkml@gmail.com \
    --cc=nsc@kernel.org \
    --cc=osandov@fb.com \
    --cc=peterz@infradead.org \
    --cc=rppt@kernel.org \
    --cc=ryabinin.a.a@gmail.com \
    --cc=ryan.roberts@arm.com \
    --cc=samuel.holland@sifive.com \
    --cc=skhan@linuxfoundation.org \
    --cc=surenb@google.com \
    --cc=tabba@google.com \
    --cc=tglx@kernel.org \
    --cc=thuth@redhat.com \
    --cc=trintaeoitogc@gmail.com \
    --cc=urezki@gmail.com \
    --cc=vbabka@kernel.org \
    --cc=vincenzo.frascino@arm.com \
    --cc=weixugc@google.com \
    --cc=will@kernel.org \
    --cc=workflows@vger.kernel.org \
    --cc=x86@kernel.org \
    --cc=yeoreum.yun@arm.com \
    --cc=yuanchu@google.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox