Created attachment 297829 [details] kasan: don't do invalid writes in tests Currently, some of KASAN tests do out-of-bounds of use-after-free writes. As KASAN doesn't suppress invalid memory accesses, they can lead to kernel crashes while executing tests. We should rework the tests to avoid making write accesses outside of redzones and alignment areas. A draft fix is attached. The draft addresses the tests that I observed corrupting memory in my setup, but there are more tests to be fixed.
Series sent: https://lore.kernel.org/linux-mm/cover.1628709663.git.andreyknvl@gmail.com/T/#t
This is resolved.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ab512805710fa0e4ec6b61fee8a52d044a060009