Bug 215019 - KASAN: sanitize per-cpu allocations
Summary: KASAN: sanitize per-cpu allocations
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: 2021-11-14 21:15 UTC by Andrey Konovalov
Modified: 2024-11-12 09:27 UTC (History)
1 user (show)

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


Attachments

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

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