From: Xiangyu Chen <[email protected]> When enabled DEBUG_INFO_BTF option, some kernel modules cannot install due to mismatch the vmlinux BTF header information and output error message as below:
root@intel-x86-64:~# modprobe squashfs BPF: type_id=12 bits_offset=64 BPF: BPF: Invalid name BPF: failed to validate module [squashfs] BTF: -22 modprobe: ERROR: could not insert 'squashfs': Invalid argument Signed-off-by: Xiangyu Chen <[email protected]> --- features/debug/debug-btf.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/features/debug/debug-btf.cfg b/features/debug/debug-btf.cfg index 61815776..59df424f 100644 --- a/features/debug/debug-btf.cfg +++ b/features/debug/debug-btf.cfg @@ -1,2 +1,3 @@ # SPDX-License-Identifier: MIT CONFIG_DEBUG_INFO_BTF=y +CONFIG_MODULE_ALLOW_BTF_MISMATCH=y -- 2.17.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13108): https://lists.yoctoproject.org/g/linux-yocto/message/13108 Mute This Topic: https://lists.yoctoproject.org/mt/101567648/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
