Thread (47 messages) 47 messages, 4 authors, 2021-12-13

Re: [PATCH v2 24/34] kasan, vmalloc, arm64: mark vmalloc mappings as pgprot_tagged

From: Andrey Konovalov <andreyknvl@gmail.com>
Date: 2021-12-13 21:57:29
Also in: linux-mm, lkml

On Mon, Dec 13, 2021 at 4:17 PM Vincenzo Frascino
[off-list ref] wrote:
Hi Andrey,

On 12/6/21 9:44 PM, andrey.konovalov@linux.dev wrote:
quoted
From: Andrey Konovalov <redacted>

HW_TAGS KASAN relies on ARM Memory Tagging Extension (MTE). With MTE,
a memory region must be mapped as MT_NORMAL_TAGGED to allow setting
memory tags via MTE-specific instructions.

This change adds proper protection bits to vmalloc() allocations.
Please avoid "this patch/this change" in patch description and use imperative
mode as if you are giving a command to the code base ([1] paragraph 2).
Hi Vincenzo,

Done in v3.
quoted
These allocations are always backed by page_alloc pages, so the tags
will actually be getting set on the corresponding physical memory.

Signed-off-by: Andrey Konovalov <redacted>
Co-developed-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
With the change to the commit message:

Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Thanks!

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help