Bug 215019

Summary: KASAN: sanitize per-cpu allocations
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 2021-11-14 21:15:08 UTC
Per-CPU allocator (mm/percpu.c) is missing any kind of KASAN annotations. This likely means that KASAN can't detect overflows between per-CPU variables or __alloc_percpu() allocations. This needs to be investigated, and appropriate annotations need to be added.