Commit 7a3b108
FROMLIST: rust: kasan: add support for Software Tag-Based KASAN
This adds support for Software Tag-Based KASAN (KASAN_SW_TAGS) when
CONFIG_RUST is enabled. This requires that rustc includes support for
the kernel-hwaddress sanitizer, which is available since 1.96.0 [1].
Unlike with clang, we need to pass -Zsanitizer-recover in addition to
-Zsanitizer because the option is not implied automatically.
Link: rust-lang/rust#153049 [1]
Reviewed-by: Danilo Krummrich <dakr@kernel.org>
Link: https://lore.kernel.org/r/20260331-kasan-rust-sw-tags-v2-1-f6765e3e1a2f@google.com
Bug: 493254381
Bug: 500480668
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Cherrypick-From: https://android-review.googlesource.com/q/commit:f2435d765f35e62e77a78a115ce53a135e9df010
Merged-In: Icbe302adf0b8358668760a621570eeba76e10019
Change-Id: Icbe302adf0b8358668760a621570eeba76e100191 parent 56d0eb9 commit 7a3b108
2 files changed
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2006 | 2006 | | |
2007 | 2007 | | |
2008 | 2008 | | |
2009 | | - | |
| 2009 | + | |
2010 | 2010 | | |
2011 | 2011 | | |
2012 | 2012 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
76 | 74 | | |
77 | 75 | | |
78 | 76 | | |
| |||
0 commit comments