Hello
I'm trying to rebuild a kernel module (bnx2x) with some custom changes and have done this in the past in PVE6.x without issue but now I'm getting "invalid module format" when I'm trying to load the kernel module and I'm getting these last few messages in dmesg related to "Skipping invalid relocation target, existing value is non zero for type 1"
Any idea what's going on? I don't see a mismatch of the kernel versions or module versions, etc
I'm trying to rebuild a kernel module (bnx2x) with some custom changes and have done this in the past in PVE6.x without issue but now I'm getting "invalid module format" when I'm trying to load the kernel module and I'm getting these last few messages in dmesg related to "Skipping invalid relocation target, existing value is non zero for type 1"
Any idea what's going on? I don't see a mismatch of the kernel versions or module versions, etc
root@proxmoxdev:/usr/src/pve-kernel/build/ubuntu-impish# insmod drivers/net/ethernet/broadcom/bnx2x/bnx2x.ko
insmod: ERROR: could not insert module drivers/net/ethernet/broadcom/bnx2x/bnx2x.ko: Unknown symbol in module
root@proxmoxdev:/usr/src/pve-kernel/build/ubuntu-impish#
root@proxmoxdev:/usr/src/pve-kernel/build/ubuntu-impish# dmesg | tail
[ 5.610121] random: crng init done
[10499.745992] bnx2x: Unknown symbol mdio_mii_ioctl (err -2)
[10534.778619] module: x86/modules: Skipping invalid relocation target, existing value is nonzero for type 1, loc 000000003cd9a9af, val ffffffffc0e5ec78
[10631.688859] module: x86/modules: Skipping invalid relocation target, existing value is nonzero for type 1, loc 00000000f8125ddd, val ffffffffc0f3ec78
[10650.094551] module: x86/modules: Skipping invalid relocation target, existing value is nonzero for type 1, loc 0000000052d7a19b, val ffffffffc101ec78
[11140.088912] module: x86/modules: Skipping invalid relocation target, existing value is nonzero for type 1, loc 000000003cd9a9af, val ffffffffc0e5ec78
[11812.078068] module: x86/modules: Skipping invalid relocation target, existing value is nonzero for type 1, loc 00000000f8125ddd, val ffffffffc0f3ec78
[13210.538501] module: x86/modules: Skipping invalid relocation target, existing value is nonzero for type 1, loc 000000003cd9a9af, val ffffffffc0e5ec78
[14270.405701] module: x86/modules: Skipping invalid relocation target, existing value is nonzero for type 1, loc 000000003cd9a9af, val ffffffffc0e5ec78
[14434.942713] module: x86/modules: Skipping invalid relocation target, existing value is nonzero for type 1, loc 00000000f8125ddd, val ffffffffc0f3ec78
root@proxmoxdev:/usr/src/pve-kernel/build/ubuntu-impish#
root@proxmoxdev:/usr/src/pve-kernel/build/ubuntu-impish# insmod /lib/modules/5.13.19-2-pve/kernel/drivers/net/mdio.ko
root@proxmoxdev:/usr/src/pve-kernel/build/ubuntu-impish# insmod drivers/net/ethernet/broadcom/bnx2x/bnx2x.ko
insmod: ERROR: could not insert module drivers/net/ethernet/broadcom/bnx2x/bnx2x.ko: Invalid module format
root@proxmoxdev:/usr/src/pve-kernel/build/ubuntu-impish#
root@proxmoxdev:/usr/src/pve-kernel/build/ubuntu-impish# uname -a
Linux proxmoxdev 5.13.19-2-pve #1 SMP PVE 5.13.19-4 (Mon, 29 Nov 2021 12:10:09 +0100) x86_64 GNU/Linux
root@proxmoxdev:/usr/src/pve-kernel/build/ubuntu-impish#
root@proxmoxdev:/usr/src/pve-kernel/build/ubuntu-impish# modinfo drivers/net/ethernet/broadcom/bnx2x/bnx2x.ko | grep ver
filename: /usr/src/pve-kernel/build/ubuntu-impish/drivers/net/ethernet/broadcom/bnx2x/bnx2x.ko
description: QLogic BCM57710/57711/57711E/57712/57712_MF/57800/57800_MF/57810/57810_MF/57840/57840_MF Driver
srcversion: 46A2CB2A6E95B3DCD2CF73D
vermagic: 5.13.19-2-pve SMP mod_unload modversions
root@proxmoxdev:/usr/src/pve-kernel/build/ubuntu-impish#
root@proxmoxdev:/usr/src/pve-kernel/build/ubuntu-impish# apt list | grep pve-header
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
pve-headers-5.10.6-1-pve/stable 5.10.6-1 amd64
pve-headers-5.11.0-1-pve/stable 5.11.0-1 amd64
pve-headers-5.11.12-1-pve/stable 5.11.12-1 amd64
pve-headers-5.11.17-1-pve/stable 5.11.17-1 amd64
pve-headers-5.11.21-1-pve/stable 5.11.21-1 amd64
pve-headers-5.11.22-1-pve/stable 5.11.22-2 amd64
pve-headers-5.11.22-2-pve/stable 5.11.22-4 amd64
pve-headers-5.11.22-3-pve/stable 5.11.22-7 amd64
pve-headers-5.11.22-4-pve/stable 5.11.22-9 amd64
pve-headers-5.11.22-5-pve/stable 5.11.22-10 amd64
pve-headers-5.11.22-6-pve/stable 5.11.22-11 amd64
pve-headers-5.11.22-7-pve/stable 5.11.22-12 amd64
pve-headers-5.11.7-1-pve/stable 5.11.7-1 amd64
pve-headers-5.11/stable 7.0-10 all
pve-headers-5.13.14-1-pve/stable 5.13.14-1 amd64
pve-headers-5.13.18-1-pve/stable 5.13.18-1 amd64
pve-headers-5.13.19-1-pve/stable 5.13.19-3 amd64
pve-headers-5.13.19-2-pve/stable,now 5.13.19-4 amd64 [installed]
pve-headers-5.13/stable,now 7.1-5 all [installed,automatic]
pve-headers-5.15.5-1-pve/stable 5.15.5-1 amd64
pve-headers-5.15.7-1-pve/stable 5.15.7-1 amd64
pve-headers-5.15/stable 7.1-7 all
pve-headers/stable,now 7.1-1 all [installed]
root@proxmoxdev:/usr/src/pve-kernel/build/ubuntu-impish#
root@proxmoxdev:/usr/src/pve-kernel/build/ubuntu-impish# apt list | grep pve-header | grep installed
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
pve-headers-5.13.19-2-pve/stable,now 5.13.19-4 amd64 [installed]
pve-headers-5.13/stable,now 7.1-5 all [installed,automatic]
pve-headers/stable,now 7.1-1 all [installed]
root@proxmoxdev:/usr/src/pve-kernel/build/ubuntu-impish#
root@proxmoxdev:/usr/src/pve-kernel/build/ubuntu-impish# apt list | grep pve-kernel | grep installed
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
pve-kernel-5.13.19-2-pve/stable,now 5.13.19-4 amd64 [installed]
pve-kernel-5.13/stable,now 7.1-5 all [installed]
pve-kernel-helper/stable,now 7.1-6 all [installed]
root@proxmoxdev:/usr/src/pve-kernel/build/ubuntu-impish#