On Tue, Nov 21, 2023 at 11:03 PM Ilya Leoshkevich <i...@linux.ibm.com> wrote: > > Add KMSAN support for the s390 implementations of the string functions. > Do this similar to how it's already done for KASAN, except that the > optimized memset{16,32,64}() functions need to be disabled: it's > important for KMSAN to know that they initialized something. > > The way boot code is built with regard to string functions is > problematic, since most files think it's configured with sanitizers, > but boot/string.c doesn't. This creates various problems with the > memset64() definitions, depending on whether the code is built with > sanitizers or fortify. This should probably be streamlined, but in the > meantime resolve the issues by introducing the IN_BOOT_STRING_C macro, > similar to the existing IN_ARCH_STRING_C macro. > > Signed-off-by: Ilya Leoshkevich <i...@linux.ibm.com> Reviewed-by: Alexander Potapenko <gli...@google.com>
- Re: [PATCH v2 17/33] mm: kfence: Disable KMSAN wh... Alexander Potapenko
- Re: [PATCH v2 17/33] mm: kfence: Disable KMSA... Alexander Potapenko
- [PATCH v2 22/33] s390: Use a larger stack for KMSAN Ilya Leoshkevich
- [PATCH v2 24/33] s390/checksum: Add a KMSAN check Ilya Leoshkevich
- Re: [PATCH v2 24/33] s390/checksum: Add a KMSAN c... Alexander Potapenko
- [PATCH v2 23/33] s390/boot: Add the KMSAN runtime stub Ilya Leoshkevich
- Re: [PATCH v2 23/33] s390/boot: Add the KMSAN run... Alexander Potapenko
- [PATCH v2 26/33] s390/ftrace: Unpoison ftrace_regs in ... Ilya Leoshkevich
- Re: [PATCH v2 26/33] s390/ftrace: Unpoison ftrace... Alexander Potapenko
- [PATCH v2 28/33] s390/string: Add KMSAN support Ilya Leoshkevich
- Re: [PATCH v2 28/33] s390/string: Add KMSAN suppo... Alexander Potapenko
- [PATCH v2 25/33] s390/cpacf: Unpoison the results of c... Ilya Leoshkevich
- Re: [PATCH v2 25/33] s390/cpacf: Unpoison the res... Alexander Potapenko
- [PATCH v2 31/33] s390/unwind: Disable KMSAN checks Ilya Leoshkevich
- [PATCH v2 29/33] s390/traps: Unpoison the kernel_stack... Ilya Leoshkevich
- [PATCH v2 32/33] s390: Implement the architecture-spec... Ilya Leoshkevich
- Re: [PATCH v2 32/33] s390: Implement the architec... Alexander Potapenko
- Re: [PATCH v2 32/33] s390: Implement the arch... Ilya Leoshkevich
- Re: [PATCH v2 32/33] s390: Implement the ... Alexander Potapenko
- [PATCH v2 33/33] kmsan: Enable on s390 Ilya Leoshkevich
- Re: [PATCH v2 33/33] kmsan: Enable on s390 Alexander Potapenko