From 82e1e1ea1859aabd6e83bdd0ffea166f8ca6a77b Mon Sep 17 00:00:00 2001 From: Douglas Raillard Date: Tue, 4 Apr 2023 12:25:01 +0100 Subject: [PATCH] lisa._kmod: Add info on split BTF issue Mismatching split BTF loading issue: https://lore.kernel.org/all/YfK18x%2FXrYL4Vw8o@syu-laptop/t/#md877c45455918f8c661dc324719b91a9906dc7a3 https://bugzilla.opensuse.org/show_bug.cgi?id=1194501 has been fixed in: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git/commit/?id=5e214f2e43e4 When that config is enabled: MODULE_ALLOW_BTF_MISMATCH=y Unfortunately, that is not the default so keep LISA's current behavior. --- lisa/_kmod.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lisa/_kmod.py b/lisa/_kmod.py index fe3a3000b..df1b0f226 100644 --- a/lisa/_kmod.py +++ b/lisa/_kmod.py @@ -839,6 +839,9 @@ class KernelTree(Loggable, SerializeViaConstructor): # https://lore.kernel.org/all/YfK18x%2FXrYL4Vw8o@syu-laptop/t/#md877c45455918f8c661dc324719b91a9906dc7a3 # We need to get rid of vmlinux file in order to prevent the kernel # module build from generating split BTF information. + # This issue should have been fixed by that patch, but requires + # setting MODULE_ALLOW_BTF_MISMATCH=y which is not the default: + # https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git/commit/?id=5e214f2e43e4 # # On top of that, a user-provided kernel tree with modules_prepare # already run would lead to not having e.g. some binaries stored in -- GitLab