android_kernel_motorola_sm6375/mm/kasan
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Alexander Potapenko 9484ee8820
ANDROID: kasan: fix interoperability with KFENCE
MTE-related KASAN changes were preceded by noticeable KASAN refactorings
that were backported to android12-5.10, but not android12-5.4.
As a result, some last-minute mm changes fixing "kfence, kasan: make KFENCE
compatible with KASAN"
(https://android.googlesource.com/kernel/common/+/f03825db4d6834a9d97e96eee2404a36ca79dafa)
did not make it to android12-5.4.

Given that they do not exist as separate upstream commits and do not
apply cleanly to 5.4 kernels, reimplement them.

These changes boil down to skipping KASAN poisoning for KFENCE-allocated
objects and to resetting the object tag in __kasan_kmalloc().

Bug: 172318110
Bug: 190593700
Signed-off-by: Alexander Potapenko <glider@google.com>
Change-Id: I117ea37a1d41514a3c5beaf87386bb5f2f0046c8
2026-05-07 17:24:09 +03:00
..
common.c ANDROID: kasan: fix interoperability with KFENCE 2026-05-07 17:24:09 +03:00
generic.c kasan: disable branch tracing for core runtime 2020-05-27 17:46:48 +02:00
generic_report.c kasan: remove use after scope bugs detection. 2019-03-05 21:07:13 -08:00
init.c kasan: fix incorrect arguments passing in kasan_add_zero_shadow 2021-01-27 11:47:53 +01:00
kasan.h kasan: add memory corruption identification for software tag-based mode 2019-09-24 15:54:07 -07:00
Makefile kasan: disable branch tracing for core runtime 2020-05-27 17:46:48 +02:00
quarantine.c
report.c BACKPORT: kasan: use error_report_end tracepoint 2026-05-07 17:24:06 +03:00
tags.c kasan: disable branch tracing for core runtime 2020-05-27 17:46:48 +02:00
tags_report.c kasan: add memory corruption identification for software tag-based mode 2019-09-24 15:54:07 -07:00