Bug 214629 - kasan: organize cc-param calls in Makefile
Summary: kasan: organize cc-param calls in Makefile
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-10-06 11:56 UTC by Andrey Konovalov
Modified: 2021-10-06 11:58 UTC (History)
2 users (show)

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


Attachments

Description Andrey Konovalov 2021-10-06 11:56:40 UTC
It should be possible to pull all cc-param calls out of the else section of the CFLAGS_KASAN_SHADOW check.

Then, the code structure would make sense: first, try applying
KASAN_SHADOW_OFFSET; if failed, use CFLAGS_KASAN_MINIMAL; and then try
applying all these options one by one.

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