Bug 215754 - KASAN (sw-tags): tag pointers to vmapped stacks
Summary: KASAN (sw-tags): tag pointers to vmapped stacks
Status: NEW
Alias: None
Product: Memory Management
Classification: Unclassified
Component: Sanitizers (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: MM/Sanitizers virtual assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-27 14:45 UTC by Andrey Konovalov
Modified: 2022-03-27 14:45 UTC (History)
1 user (show)

See Also:
Kernel Version: upstream
Subsystem:
Regression: No
Bisected commit-id:


Attachments

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.

Note You need to log in before you can comment on or make changes to this bug.