Bug 217017 - KASAN (tags): investigate cma tagging
Summary: KASAN (tags): investigate cma tagging
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: 2023-02-09 23:50 UTC by Andrey Konovalov
Modified: 2023-02-09 23:50 UTC (History)
1 user (show)

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


Attachments

Description Andrey Konovalov 2023-02-09 23:50:52 UTC
Currently, cma_alloc resets page tags via page_kasan_tag_reset after allocating a memory region.

It might be possible to properly tag these allocations in a similar way as vmalloc (i.e. skipping page_alloc tagging and tagging the whole allocated range with the same pag).

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