On 9/18/23 15:36, Xiangyu Chen wrote:
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:
Friendly ping, thanks :)
Br,
Xiangyu
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
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13104):
https://lists.yoctoproject.org/g/linux-yocto/message/13104
Mute This Topic: https://lists.yoctoproject.org/mt/101429003/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-