Bug 217017

Summary: KASAN (tags): investigate cma tagging
Product: Memory Management Reporter: Andrey Konovalov (andreyknvl)
Component: SanitizersAssignee: MM/Sanitizers virtual assignee (mm_sanitizers)
Status: NEW ---    
Severity: normal CC: kasan-dev
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: upstream Subsystem:
Regression: No Bisected commit-id:

Description Andrey Konovalov 2023-02-09 23:50:52 UTC
Currently, cma_alloc resets page tags via page_kasan_tag_reset after allocating a memory region.

It might be possible to properly tag these allocations in a similar way as vmalloc (i.e. skipping page_alloc tagging and tagging the whole allocated range with the same pag).