Bug 215758 - KASAN (hw-tags): tag vmalloced per-cpu areas
Summary: KASAN (hw-tags): tag vmalloced per-cpu areas
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 15:04 UTC by Andrey Konovalov
Modified: 2022-03-29 18:02 UTC (History)
1 user (show)

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


Attachments

Description Andrey Konovalov 2022-03-27 15:04:12 UTC
Currently, HW_TAGS KASAN does not tag the per-CPU areas allocated by pcpu_get_vm_areas(). The problem with these is that they are not mapped in mm/vmalloc.c but in percpu-vm.c, and the HW_TAGS mode cannot tag memory before it is mapped.

Add custom annotations to percpu-vm.c to tag these per-CPU areas.

The implementation should be in sync with the SW_TAGS mode.
Comment 1 Andrey Konovalov 2022-03-29 18:02:15 UTC
Related bug: https://bugzilla.kernel.org/show_bug.cgi?id=215019

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