nvidia modules not stripped before signing like everything else

Bug #1951865 reported by Dimitri John Ledkov
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-restricted-modules (Ubuntu)

Bug Description

Ubuntu kernel modules are stripped prior to signing:

        $(build_cd) $(kmake) $(build_O) $(conc_level) modules_install $(vdso) \
                INSTALL_MOD_STRIP=1 INSTALL_MOD_PATH=$(pkgdir)/ \

And STRIPPING in the buildlog.

But when doing the build of the nvidia dkms modules, they are not stripped prior to signing:

# sh ./BUILD unsigned
# cp *.ko unstripped/
# cp -r unstripped stripped
# cd stripped; strip --strip-debug *.ko; cd ../

# du --si unstripped/ stripped/
99M unstripped/
46M stripped/

# du --si unstripped/*.ko stripped/*.ko
3.9M unstripped/nvidia-drm.ko
2.3M unstripped/nvidia-modeset.ko
316k unstripped/nvidia-peermem.ko
41M unstripped/nvidia-uvm.ko
51M unstripped/nvidia.ko
103k stripped/nvidia-drm.ko
1.6M stripped/nvidia-modeset.ko
17k stripped/nvidia-peermem.ko
1.7M stripped/nvidia-uvm.ko
43M stripped/nvidia.ko

I am unsure how come DKMS doesn't call install modules with INSTALL_MOD_STRIP=1 option, and if stripping nvidia modules results in correctly working drivers.

If it is possible to strip nvidia modules, they will half in size.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers