]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
selftests/lkdtm: Add UBSAN config
authorMuhammad Usama Anjum <usama.anjum@collabora.com>
Fri, 21 Jan 2022 14:51:53 +0000 (19:51 +0500)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 27 Apr 2022 09:57:16 +0000 (11:57 +0200)
commit8c0939b314eb44dbb9f0a23b96e62b9cb4727fda
tree0d0da92a9ce3b254a67fea7b31431d682260fd16
parent2c2c6e42cbbe388d4a842bf147a232b6ebac7d85
selftests/lkdtm: Add UBSAN config

BugLink: https://bugs.launchpad.net/bugs/1969110
[ Upstream commit 1900be289b598b2c553b3add13e491c0bb8a8550 ]

UBSAN_BOUNDS and UBSAN_TRAP depend on UBSAN config option.
merge_config.sh script generates following warnings if parent config
doesn't have UBSAN config already enabled and UBSAN_BOUNDS/UBSAN_TRAP
config options don't get added to the parent config.

Value requested for CONFIG_UBSAN_BOUNDS not in final .config
Requested value:  CONFIG_UBSAN_BOUNDS=y
Actual value:

Value requested for CONFIG_UBSAN_TRAP not in final .config
Requested value:  CONFIG_UBSAN_TRAP=y
Actual value:

Fix this by including UBSAN config.

Fixes: c75be56e35b2 ("lkdtm/bugs: Add ARRAY_BOUNDS to selftests")
Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 34dd193d2329cc9b3d0db1cfd9fa6569b130aaff)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
tools/testing/selftests/lkdtm/config