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.
Comment 1 Andrey Konovalov 2024-11-12 09:27:56 UTC
Once we have proper per-CPU annotations, we can restore the test removed in [1].

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=330d8df81f3673d6fb74550bbc9bb159d81b35f7