All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/1] kasan: fix redzone overwritten issue under SLUB debug
@ 2021-06-23 13:35 ` yee.lee
  0 siblings, 0 replies; 28+ messages in thread
From: yee.lee @ 2021-06-23 13:35 UTC (permalink / raw)
  To: andreyknvl
  Cc: wsd_upstream, Yee Lee, Matthias Brugger,
	moderated list:ARM/Mediatek SoC support,
	moderated list:ARM/Mediatek SoC support

From: Yee Lee <yee.lee@mediatek.com>

Issue: hwtag kasan_unpoison() would overwrite the redzone in those object with unaligned object 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
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 | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

-- 
2.18.0
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek

^ permalink raw reply	[flat|nested] 28+ messages in thread
* [PATCH v2 0/1] kasan: fix redzone overwritten issue under SLUB debug
@ 2021-06-24 11:26 yee.lee
  2021-06-24 11:26   ` yee.lee
  0 siblings, 1 reply; 28+ messages in thread
From: yee.lee @ 2021-06-24 11:26 UTC (permalink / raw)
  To: andreyknvl
  Cc: wsd_upstream, Yee Lee, Matthias Brugger,
	moderated list:ARM/Mediatek SoC support,
	moderated list:ARM/Mediatek SoC support

From: Yee Lee <yee.lee@mediatek.com>

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-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek

^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2021-06-28 18:44 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-23 13:35 [PATCH v2 0/1] kasan: fix redzone overwritten issue under SLUB debug yee.lee
2021-06-23 13:35 ` yee.lee
2021-06-23 13:35 ` [PATCH v2 1/1] kasan: Add memzero init for unaligned size " yee.lee
2021-06-23 13:35   ` yee.lee
2021-06-23 13:35   ` yee.lee
2021-06-23 13:35   ` yee.lee
2021-06-23 13:52   ` Yee Lee
2021-06-23 13:52     ` Yee Lee
2021-06-23 13:52     ` Yee Lee
2021-06-23 13:52     ` Yee Lee
2021-06-23 13:51 ` [PATCH v2 0/1] kasan: fix redzone overwritten issue " Yee Lee
2021-06-23 13:51   ` Yee Lee
2021-06-24 11:26 yee.lee
2021-06-24 11:26 ` [PATCH v2 1/1] kasan: Add memzero init for unaligned size " yee.lee
2021-06-24 11:26   ` yee.lee
2021-06-24 11:26   ` yee.lee
2021-06-24 11:26   ` yee.lee
2021-06-25 14:03   ` Andrey Konovalov
2021-06-25 14:03     ` Andrey Konovalov
2021-06-25 14:03     ` Andrey Konovalov
2021-06-25 14:03     ` Andrey Konovalov
2021-06-28  6:19     ` Yee Lee
2021-06-28  6:19       ` Yee Lee
2021-06-28  6:19       ` Yee Lee
2021-06-28  6:19       ` Yee Lee
2021-06-28 18:41   ` Marco Elver
2021-06-28 18:41     ` Marco Elver
2021-06-28 18:41     ` Marco Elver
2021-06-28 18:41     ` Marco Elver

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.