Re: [PATCH v2 0/8] kasan: test: avoid crashing the kernel with HW_TAGS

From
Marco Elver <elver@google.com>
Date
2021-08-12 15:44:18
Also in
lkml
Reply to
Andrey Konovalov, 2021-08-12
On Thu, 12 Aug 2021 at 17:06, Andrey Konovalov [off-list ref] wrote:
On Thu, Aug 12, 2021 at 4:53 PM [off-list ref] wrote:
quoted
From: Andrey Konovalov <andreyknvl@gmail.com>

KASAN tests do out-of-bounds and use-after-free accesses. Running the
tests works fine for the GENERIC mode, as it uses qurantine and redzones.
But the HW_TAGS mode uses neither, and running the tests might crash
the kernel.

Rework the tests to avoid corrupting kernel memory.

Changes v1->v2:
- Touch both good and bad memory in memset tests as suggested by Marco.
Ah, I forgot to include your reviews/acks, Marco.

Perhaps you can give one for the whole series now.
Reviewed-by: Marco Elver <elver@google.com>

Looks good, thank you!
Thread (11 messages) 11 messages, 3 authors, last reply 2021-08-12
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help