kernel: add missing UBSAN config symbols
authorStijn Tintel <stijn@linux-ipv6.be>
Wed, 3 Nov 2021 17:38:50 +0000 (19:38 +0200)
committerStijn Tintel <stijn@linux-ipv6.be>
Sun, 7 Nov 2021 15:38:01 +0000 (17:38 +0200)
Enabling KERNEL_UBSAN exposes several missing symbols. Add new kernel
build options for UBSAN_BOUNDS and UBSAN_TRAP, disable CONFIG_TEST_UBSAN
in the generic kernel configs and enable CONFIG_UBSAN_MISC in generic
5.10 config. The latter symbol was removed in later kernels, as it was
causing some issues, so just disable it in 5.10 instead of adding a
build option for it.

Fixes build failures with KERNEL_UBSAN enabled.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Acked-by: Hauke Mehrtens <hauke@hauke-m.de>

No differences found