From: Xiangyu Chen <[email protected]>

Hi Bruce,

When we enabled CONFIG_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

This cause some driver/kernel modules cannot work anymore, so add the 
CONFIG_MODULE_ALLOW_BTF_MISMATCH 
together with CONFIG_DEBUG_INFO_BTF option in debug-btf.cfg


Xiangyu Chen (1):
  debug: add CONFIG_MODULE_ALLOW_BTF_MISMATCH to debug-btf.cfg

 features/debug/debug-btf.cfg | 1 +
 1 file changed, 1 insertion(+)

-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13107): 
https://lists.yoctoproject.org/g/linux-yocto/message/13107
Mute This Topic: https://lists.yoctoproject.org/mt/101567647/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to