On 3/31/22 09:02, Tadeusz Struk wrote:
Upstream commit: 69d0db01e210 ("ubsan: remove CONFIG_UBSAN_OBJECT_SIZE")
The object-size sanitizer is redundant to -Warray-bounds, and inappropriately performs its checks at run-time when all information needed for the evaluation is available at compile-time, making it quite difficult to use:
https://bugzilla.kernel.org/show_bug.cgi?id=214861
This run-time object-size checks also trigger false-positive errors, like the below, that make it quite difficult to test stable kernels in test automations like syzkaller:
https://syzkaller.appspot.com/text?tag=Error&x=12b3aac3700000
With -Warray-bounds almost enabled globally, it doesn't make sense to keep this around.
Hi, This back-port is for 5.10 only. Please also cherry-pick the original commit 69d0db01e210 ("ubsan: remove CONFIG_UBSAN_OBJECT_SIZE") to 5.15.y and 5.16.y. There is no back-port required for these kernels.