From: Maciej Wieczor-Retman <m.wieczorretman@pm.me>
To: Dave Hansen <dave.hansen@intel.com>
Cc: Thomas Gleixner <tglx@kernel.org>, Ingo Molnar <mingo@redhat.com>,
Borislav Petkov <bp@alien8.de>,
Dave Hansen <dave.hansen@linux.intel.com>,
x86@kernel.org, "H. Peter Anvin" <hpa@zytor.com>,
Jonathan Corbet <corbet@lwn.net>,
Andrey Ryabinin <ryabinin.a.a@gmail.com>,
Alexander Potapenko <glider@google.com>,
Andrey Konovalov <andreyknvl@gmail.com>,
Dmitry Vyukov <dvyukov@google.com>,
Vincenzo Frascino <vincenzo.frascino@arm.com>,
Andy Lutomirski <luto@kernel.org>,
Peter Zijlstra <peterz@infradead.org>,
Andrew Morton <akpm@linux-foundation.org>,
Maciej Wieczor-Retman <maciej.wieczor-retman@intel.com>,
linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org,
kasan-dev@googlegroups.com, workflows@vger.kernel.org
Subject: Re: [PATCH v10 13/13] x86/kasan: Make software tag-based kasan available
Date: Fri, 27 Feb 2026 08:27:44 +0000 [thread overview]
Message-ID: <aaFVCivIQ1kjKhUZ@wieczorr-mobl1.localdomain> (raw)
In-Reply-To: <fb8d8d51-66c8-4cb1-8b14-bc670c629afa@intel.com>
On 2026-02-26 at 15:29:15 -0800, Dave Hansen wrote:
>On 2/24/26 01:10, Maciej Wieczor-Retman wrote:
>>>> - ffdf000000000000 | -8.25 PB | fffffbffffffffff | ~8 PB | KASAN shadow memory
>>>> + ffdf000000000000 | -8.25 PB | fffffbffffffffff | ~8 PB | KASAN shadow memory (generic mode)
>>>> + ffeffc0000000000 | -6 PB | fffffbffffffffff | 4 PB | KASAN shadow memory (software tag-based mode)
>>>> __________________|____________|__________________|_________|____________________________________________________________
>>> I think the idea of these is that you can run through, find *one* range
>>> and know what a given address maps to. This adds overlapping ranges.
>>> Could you make it clear that part of the area is "generic mode" only and
>>> the other part is for generic mode and for "software tag-based mode"?
>> Boris suggested adding a footnote to clarify these are alternative ranges [1].
>> Perhaps I can add a star '*' next to these two so it can notify someone to look for
>> the footnote?
>>
>> [1] https://lore.kernel.org/
>> all/20260113161047.GNaWZuh21aoxqtTNXS@fat_crate.local/
>
>
>I'd rather this be:
>
> ffdf000000000000 | -8.25 PB | fffffbffffffffff | ~8 PB | KASAN shadow memory[1]
>
>...
>
>1. talk about the ranges here. Maybe: Addresses <ffeffc0000000000 are used by
> KASAN "generic mode" only. Addresses >=ffeffc0000000000 can additionally
> be used by the software tag-based mode.
>
>Or, list both ranges as separate:
>
> ffdf000000000000 | -8.25 PB | ffeffbffffffffff | ~8 PB | KASAN shadow memory (generic mode only)
> ffeffc0000000000 | -6 PB | fffffbffffffffff | 4 PB | KASAN shadow memory (generic or
> software tag-based)
>and describe the same use (generic mode) twice.
Thanks, I like the first option, I'll work on that.
--
Kind regards
Maciej Wieczór-Retman
prev parent reply other threads:[~2026-02-27 8:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-04 19:18 [PATCH v10 00/13] kasan: x86: arm64: KASAN tag-based mode for x86 Maciej Wieczor-Retman
2026-02-04 19:19 ` [PATCH v10 01/13] kasan: sw_tags: Use arithmetic shift for shadow computation Maciej Wieczor-Retman
2026-02-04 19:20 ` [PATCH v10 13/13] x86/kasan: Make software tag-based kasan available Maciej Wieczor-Retman
2026-02-23 20:52 ` Dave Hansen
2026-02-24 9:10 ` Maciej Wieczor-Retman
2026-02-26 23:29 ` Dave Hansen
2026-02-27 8:27 ` 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=aaFVCivIQ1kjKhUZ@wieczorr-mobl1.localdomain \
--to=m.wieczorretman@pm.me \
--cc=akpm@linux-foundation.org \
--cc=andreyknvl@gmail.com \
--cc=bp@alien8.de \
--cc=corbet@lwn.net \
--cc=dave.hansen@intel.com \
--cc=dave.hansen@linux.intel.com \
--cc=dvyukov@google.com \
--cc=glider@google.com \
--cc=hpa@zytor.com \
--cc=kasan-dev@googlegroups.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@kernel.org \
--cc=maciej.wieczor-retman@intel.com \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=ryabinin.a.a@gmail.com \
--cc=tglx@kernel.org \
--cc=vincenzo.frascino@arm.com \
--cc=workflows@vger.kernel.org \
--cc=x86@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox