Bug 215583 - KASAN (hw-tags): retry tests when tags accidentally match
Summary: KASAN (hw-tags): retry tests when tags accidentally match
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-02-08 21:04 UTC by Andrey Konovalov
Modified: 2022-02-08 21:04 UTC (History)
1 user (show)

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


Attachments

Description Andrey Konovalov 2022-02-08 21:04:08 UTC
With HW_TAGS KASAN, there's a noticeable probability of neighboring pages/objects getting the same tag, which might lead to test failures. I only observed this with the pagealloc_oob_right() test, but others might be affected as well.

We need to retry running the affected tests if tags happened to match. Currently, only the kmalloc_uaf2() does this.

Or, alternatively, addressing [1] and [2] should fix this as well.

[1] https://bugzilla.kernel.org/show_bug.cgi?id=203505
[2] https://bugzilla.kernel.org/show_bug.cgi?id=212177

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