Bug 218854
Summary: | KASAN (sw-tags): multiple issues with GCC 13 | ||
---|---|---|---|
Product: | Memory Management | Reporter: | Andrey Konovalov (andreyknvl) |
Component: | Sanitizers | Assignee: | MM/Sanitizers virtual assignee (mm_sanitizers) |
Status: | NEW --- | ||
Severity: | normal | CC: | kasan-dev, pageexec, pinskia, sam |
Priority: | P3 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | Subsystem: | ||
Regression: | No | Bisected commit-id: | |
Attachments: | .config |
Description
Andrey Konovalov
2024-05-18 13:03:46 UTC
Mark Rutland posted a detailed analysis for issue #1: https://lore.kernel.org/all/ZvFGwKfoC4yVjN_X@J2N7QTR9R3/ " I believe this is a compiler bug, as there doesn't seem to be a separate attribute to prevent instrumentation in this mode. " At least the above is not true. `__attribute__((no_sanitize("hwaddress")))` and `__attribute__((no_sanitize("kernel-hwaddress")))` Turns off hwasan for the function for GCC. Issue #1 fixed with [1]. The rest still stand. [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=894b00a3350c560990638bdf89bdf1f3d5491950 |