main/linux-lts: zfs module fails to load on edge with lts kernel - spl disagrees about version of symbol module_layout
zfs-lts module fails to load on alpine edge x86_64 with linux-lts kernel. I found similar issue upstream https://github.com/openzfs/zfs/issues/11305 But the solution is not clear to me. Rebuiling zfs-lts package locally gives the same error.
Kernel information
# uname -a
Linux zen.hq 5.15.78-0-lts #1-Alpine SMP Fri, 11 Nov 2022 10:19:45 +0000 x86_64 Linux
zen:/home/ngor/packages/main/x86_64#
zfs package info
# apk info zfs-lts
zfs-lts-5.15.78-r0 description:
ZFS Linux kernel modules
zfs-lts-5.15.78-r0 webpage:
https://openzfs.org
zfs-lts-5.15.78-r0 installed size:
2016 KiB
zfs-lts-5.15.78-r0 description:
ZFS Linux kernel modules
zfs-lts-5.15.78-r0 webpage:
https://openzfs.org
zfs-lts-5.15.78-r0 installed size:
2076 KiB
Kernel package info
# apk info linux-lts
linux-lts-5.15.78-r0 description:
Linux lts kernel
linux-lts-5.15.78-r0 webpage:
https://www.kernel.org
linux-lts-5.15.78-r0 installed size:
91 MiB
linux-lts-5.15.78-r0 description:
Linux lts kernel
linux-lts-5.15.78-r0 webpage:
https://www.kernel.org
linux-lts-5.15.78-r0 installed size:
91 MiB
Trying to load the module
# modprobe zfs
modprobe: ERROR: could not insert 'zfs': Exec format error
dmesg
...
[ 4170.674744] spl: disagrees about version of symbol module_layout
Good kernel module symbols
modprobe --dump-modversions ./wireguard.ko.gz | grep module_layout
0xa06a2307 module_layout
zfs/spl symbols
# modprobe --dump-modversions ./zfs.ko.gz | grep module_layout
0x4bd4d949 module_layout
spl module info
# modinfo spl
filename: /lib/modules/5.15.78-0-lts/extra/spl/spl.ko.gz
version: 2.1.6-1
license: GPL
author: OpenZFS
description: Solaris Porting Layer
srcversion: 39ECDEF2C3C2393ED04AA51
depends:
retpoline: Y
name: spl
vermagic: 5.15.78-0-lts SMP mod_unload modversions
zfs module info
# modinfo zfs
filename: /lib/modules/5.15.78-0-lts/extra/zfs/zfs.ko.gz
version: 2.1.6-1
license: CDDL
author: OpenZFS
description: ZFS
alias: devname:zfs
alias: char-major-10-249
srcversion: 1DEFB8EF3D6F74821DBEA8E
depends: spl,znvpair,icp,zlua,zzstd,zunicode,zcommon,zavl
retpoline: Y
name: zfs
vermagic: 5.15.78-0-lts SMP mod_unload modversions