Thread (5 messages) 5 messages, 3 authors, 2021-06-28
STALE1806d
Revisions (3)
  1. v2 [diff vs current]
  2. v2 current
  3. v3 [diff vs current]

[PATCH v2 0/1] kasan: fix redzone overwritten issue under SLUB debug

From: <hidden>
Date: 2021-06-24 11:28:46
Also in: linux-mediatek

From: Yee Lee <redacted>

Issue: In SLUB debug, hwtag kasan_unpoison() would overwrite the redzone
 in those objects with unaligned size.

This patch Adds memzero_explict() to separate the initialization for
such condition. The new code path is executed about 1.1% during nromal
booting process.

=============
Exp: QEMUv5.2(+mte)/SLUB_debug mode
code path exec : 941/80854 (1.1%)

---
Changed since v1:
 - Apply IS_ENABLED to wrap codes under SLUB debug mode.
 - Replace memset() by memzero_explict().

---

Yee Lee (1):
  kasan: Add memzero init for unaligned size under SLUB debug

 mm/kasan/kasan.h | 6 ++++++
 1 file changed, 6 insertions(+)

-- 
2.18.0
_______________________________________________
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