Thread (56 messages) 56 messages, 5 authors, 2023-11-17

Re: [PATCH 03/32] kmsan: Disable KMSAN when DEFERRED_STRUCT_PAGE_INIT is enabled

From: Alexander Potapenko <glider@google.com>
Date: 2023-11-16 09:42:18
Also in: linux-mm, linux-s390, lkml

On Wed, Nov 15, 2023 at 9:34 PM Ilya Leoshkevich [off-list ref] wrote:
KMSAN relies on memblock returning all available pages to it
(see kmsan_memblock_free_pages()). It partitions these pages into 3
categories: pages available to the buddy allocator, shadow pages and
origin pages. This partitioning is static.

If new pages appear after kmsan_init_runtime(), it is considered
an error. DEFERRED_STRUCT_PAGE_INIT causes this, so mark it as
incompatible with KMSAN.
In the future we could probably collect the deferred pages as well,
but it's okay to disable KMSAN for now.
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: Alexander Potapenko <glider@google.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help