Source: open-vm-tools
Version: 2:11.3.5-1ubuntu4
Severity: wishlist

Ubuntu has begun compressing kernel modules[1] which results in them
having the suffix "*.ko.zst".  The vmxnet.hook for open-vm-tools detects
the module filename exactly as "pcnet32.ko" so is not able to detect the
compressed module, and thus will fail to load vmxnet as intended.

I believe this change would address the deficiency:

    -if find "${DESTDIR}"/lib/modules -name pcnet32.ko >/dev/null; then
    +if find "${DESTDIR}"/lib/modules -name pcnet32.ko -o -name pcnet32.ko.zst 
>/dev/null; then
            manual_add_modules vmxnet
    +       apply_add_modules
     fi

I considered wildcards but figure it's safer to be explicit.

I don't know whether Debian is considering support for compressed kernel
modules, but other distros[2,3] are in process of implementing it.

Thanks for considering,
Bryce

1: https://bugs.launchpad.net/ubuntu/+source/open-vm-tools/+bug/2068026
2: https://gitlab.alpinelinux.org/alpine/aports/-/issues/12857
3: 
https://www.reddit.com/r/archlinux/comments/ecr5hz/zstdcompressed_module_patch_for_the_linux_kernel/


-- System Information:
Debian Release: bookworm/sid
  APT prefers jammy-updates
  APT policy: (500, 'jammy-updates'), (500, 'jammy-security'), (500, 'jammy'), 
(100, 'jammy-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.15.0-100-generic (SMP w/12 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_BAD_PAGE, TAINT_WARN, 
TAINT_OOT_MODULE
Locale: LANG=C, LC_CTYPE=C (charmap=UTF-8) (ignored: LC_ALL set to 
en_US.UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Reply via email to