Open cgzones opened 2 months ago
cc @kees @JustinStitt
It is my understanding that the signed integer overflow sanitizer is not really ready for widespread consumption.
I think this one was solved with this series but there was resistance upstream: https://lore.kernel.org/20240424191225.work.780-kees@kernel.org/
It is my understanding that the signed integer overflow sanitizer is not really ready for widespread consumption.
Right, it can be very noisy right now. We have compiler features coming that better help regulate this sanitizer for kernel use.
So CONFIG_UBSAN_SIGNED_WRAP
is not recommended with LLVM 19?
(LLVM 18 seemed fine.)
So
CONFIG_UBSAN_SIGNED_WRAP
is not recommended with LLVM 19? (LLVM 18 seemed fine.)
Clang 18 had some configuration differences with how -fwrapv
and the signed overflow sanitizer interacted -- essentially disabling it.
Running v6.10.9 built with LLVM 19 and LTO and CFI and UBSAN enabled produces the following signed integer overflow: