Bug 215754

Summary: KASAN (sw-tags): tag pointers to vmapped stacks
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 2022-03-27 14:45:04 UTC
Currently, pointers to vmapped stacks are not tagged with the SW_TAGS mode. (The memory itself is tagged.). Compiler instrumentation cannot handle the SP register being tagged when KASAN_STACK is enabled.

Fix the compiler and start tagging the pointers.