Skip to content

kasan: hw_tags: some micro-optimizations

Dev Jain linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mm/slub: hw_tags: skip page-allocator unpoisoning on slab allocationmm/page_alloc.c mm/slub.c+10 -32 replies
2/3kasan: avoid re-poisoning tag-based kmalloc redzonesinclude/linux/kasan.h mm/kasan/common.c mm/slub.c+61 -225 replies
3/3vmalloc: hw_tags: optimize vmalloc redzoningmm/kasan/hw_tags.c+8 -51 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] kasan: hw_tags: some micro-optimizations

Patch 1 uses GFP_SKIP_KASAN to skip unpoisoning of a slab page in the page allocator, since slab allocator itself poisons the slab page immediately.

Patch 2 and 3 remove wasted work while poisoning the tail end of the vmalloc/slab allocation.

---
Based on 7.1-rc2.

Dev Jain (3):
mm/slub: hw_tags: skip page-allocator unpoisoning on slab allocation
kasan: avoid re-poisoning tag-based kmalloc redzones
vmalloc: hw_tags: optimize vmalloc redzoning

 include/linux/kasan.h | 17 +++++++++----
 mm/kasan/common.c     | 55 +++++++++++++++++++++++++++++++++----------
 mm/kasan/hw_tags.c    | 13 ++++++----
 mm/page_alloc.c       |  2 +-
 mm/slub.c             | 22 ++++++++++++-----
 5 files changed, 79 insertions(+), 30 deletions(-)
Signature · 1 line
2.43.0