Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modprobe: can't load module zstd (kernel/crypto/zstd.ko): unknown symbol in module, or unknown parameter #71

Open
frzb opened this issue Sep 23, 2022 · 2 comments
Assignees

Comments

@frzb
Copy link
Owner

frzb commented Sep 23, 2022

Booting a focal suite kernel 5.15.0-48-generic with zram bootflag ends up in a kernel panic:

$ qemu-system-x86_64 -kernel coinboot-vmlinuz-5.15.0-48-generic -initrd coinboot-initramfs-5.15.0-48-generic  -m 4096 -smp 2 -nographic  -serial mon:stdio -append "console=ttyS0 net.ifnames=0 biosdevname=0 break=skip_loading_plugins zram"

[...]

Honoring zram kernel arg
[    4.269253] zram: Added device: zram0
[    4.284727] zstd: Unknown symbol ZSTD_initCCtx (err -2)
[    4.285098] zstd: Unknown symbol ZSTD_getParams (err -2)
[    4.285335] zstd: Unknown symbol ZSTD_CCtxWorkspaceBound (err -2)
[    4.285609] zstd: Unknown symbol ZSTD_compressCCtx (err -2)
modprobe: can't load module zstd (kernel/crypto/zstd.ko): unknown symbol in module, or unknown parameter
[    4.360702] Can't allocate a compression stream
[    4.361164] zram: Cannot initialise zstd compressing backend
sh: write error: Cannot allocate memory
@frzb frzb self-assigned this Sep 24, 2022
@frzb
Copy link
Owner Author

frzb commented Sep 24, 2022

When booting with kernel commandline flag break=top to enter an interactive debugging in early user space init we can see that the module zstd_compress.ko is missing.
zstd_compress.ko is a depency of the module zstd.ko as we can see with modinfo zstd.

$ qemu-system-x86_64 -kernel coinboot-vmlinuz-5.15.0-48-generic -initrd coinboot-initramfs-5.15.0-48-generic  -m 4096 -smp 2 -nographic  -serial mon:stdio -append "console=ttyS0 net.ifnames=0 biosdevname=0 break=top zram"

[...]

cd /lib/modules/5.15.0-48-generic
/lib/modules/5.15.0-48-generic # ls -R .
.:
kernel

./kernel:
crypto   drivers

./kernel/crypto:
zstd.ko

./kernel/drivers:
block

./kernel/drivers/block:
zram

./kernel/drivers/block/zram:
zram.ko

@frzb
Copy link
Owner Author

frzb commented Sep 24, 2022

Did a fix at: 6b6517e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant