Open tomstocker-ethz opened 1 month ago
Looks like it has to do with the proprietary AMD VGA driver somehow.
Indeed. This is the problem:
amdgpu-install --usecase=rocm
depmod... Building initial module for 6.9.3-76060903-generic ERROR (dkms apport): kernel package linux-headers-6.9.3-76060903-generic is not supported Error! Bad return status for module build on kernel: 6.9.3-76060903-generic (amd64) Consult /var/lib/dkms/amdgpu/6.8.5-2041575.22.04/build/make.log for more information. dpkg: error processing package amdgpu-dkms (--configure): installed amdgpu-dkms package post-installation script subprocess returned error exit status 10 Setting up mivisionx-test (3.0.0.60202-116~22.04) ... Errors were encountered while processing: amdgpu-dkms
amdgpu-install --usecase=graphics or dkms didn't work either.
so I went full uninstall of the proprietary AMD driver
amdgpu-install --uninstall
triggered dkms rebuild but still dm_crypt is missing in 6.9.3-76060903-generic, also tried kernel reinstall.
Still dm_crypt isn't loaded. I've added it to /etc/modules but:
[ 59.557174] BPF: type_id=66 bits_offset=904 [ 59.557262] BPF: [ 59.557284] BPF: Invalid name [ 59.557310] BPF: [ 59.557331] failed to validate module [dm_crypt] BTF: -22 [ 78.524483] BPF: type_id=66 bits_offset=904 [ 78.524529] BPF: [ 78.524548] BPF: Invalid name [ 78.524573] BPF: [ 78.524593] failed to validate module [dm_crypt] BTF: -22 [ 91.292957] BPF: type_id=66 bits_offset=904 [ 91.293006] BPF: [ 91.293027] BPF: Invalid name [ 91.293054] BPF:
i'm getting similar results with an nvidia gpu. i'm running an oryx 10p, so unless it's being caused by a misconfiguration on my part I have no clue how system76 could have missed this, unless they don't test on devices older than a year or two.
more info about that's over here: https://github.com/geoffreybennett/scarlett-gen2/issues/25
it appears to be something to do with this. whoever's in charge of maintaining the kernel ought to enable CONFIG_MODULE_ALLOW_BTF_MISMATCH so that people's driver's aren't constantly failing to load. i think having people's computers not break when a stiff breeze comes sailing in from the repos outweighs any security benefits disabling that option could have. https://lore.kernel.org/netdev/EE57D385-9144-407E-8DC5-0DFF76CC2200@fb.com/t/
modprobe dm_crypt
[ 545.478686] BPF: type_id=66 bits_offset=904 [ 545.479277] BPF:
[ 545.479718] BPF: Invalid name [ 545.480232] BPF: [ 545.480666] failed to validate module [dm_crypt] BTF: -22
dmesg:
[ 57.422210] BPF:
[ 57.422213] BPF: Invalid name [ 57.422214] BPF: [ 57.422217] failed to validate module [dm_crypt] BTF: -22 [ 57.453157] BPF: type_id=66 bits_offset=904 [ 57.453163] BPF:
[ 57.453165] BPF: Invalid name [ 57.453166] BPF: [ 57.453168] failed to validate module [dm_crypt] BTF: -22 [ 57.501106] BPF: type_id=66 bits_offset=904 [ 57.501112] BPF:
[ 57.501114] BPF: Invalid name [ 57.501115] BPF: [ 57.501118] failed to validate module [dm_crypt] BTF: -22 [ 57.523405] device-mapper: table: 252:0: crypt: unknown target type [ 57.523416] device-mapper: ioctl: error adding target to table [ 57.526646] BPF: type_id=66 bits_offset=904 [ 57.526651] BPF:
[ 57.526655] BPF: Invalid name [ 57.526658] BPF: [ 57.526662] failed to validate module [dm_crypt] BTF: -22 [ 57.579027] BPF: type_id=66 bits_offset=904 [ 57.579033] BPF:
[ 57.579035] BPF: Invalid name [ 57.579036] BPF: [ 57.579039] failed to validate module [dm_crypt] BTF: -22
also various other modules fail:
[ 0.377389] ACPI: _OSC evaluation for CPUs failed, trying _PDC [ 0.508579] pci 0000:04:03.0: bridge window [io size 0x1000]: failed to assign [ 0.508590] pci 0000:04:01.0: bridge window [io size 0x1000]: failed to assign [ 5.797519] hub 6-0:1.0: config failed, hub doesn't have any ports! (err -19) [ 9.351265] system76_acpi: module verification failed: signature and/or required key missing - tainting kernel [ 10.828169] failed to validate module [autofs4] BTF: -22 [ 10.868679] systemd[1]: Failed to insert module 'autofs4': Invalid argument [ 10.872388] failed to validate module [x_tables] BTF: -22 [ 11.218102] failed to validate module [parport] BTF: -22 [ 11.218104] failed to validate module [sunrpc] BTF: -22 [ 11.278370] failed to validate module [parport] BTF: -22 [ 11.314246] failed to validate module [parport] BTF: -22 [ 11.359239] failed to validate module [msr] BTF: -22 [ 11.387069] failed to validate module [acpi_tad] BTF: -22 [ 11.387571] failed to validate module [amd_pmc] BTF: -22 [ 11.389493] failed to validate module [fjes] BTF: -22 [ 11.389588] failed to validate module [kyber_iosched] BTF: -22 [ 11.391405] failed to validate module [nfc] BTF: -22 [ 11.466901] failed to validate module [kyber_iosched] BTF: -22 [ 11.479092] failed to validate module [ecc] BTF: -22 [ 11.479841] failed to validate module [snd_pci_acp3x] BTF: -22 [ 11.480901] failed to validate module [wmi_bmof] BTF: -22 [ 11.480907] failed to validate module [mc] BTF: -22 [ 11.481060] failed to validate module [k10temp] BTF: -22 [ 11.482934] failed to validate module [nfc] BTF: -22 [ 11.483005] failed to validate module [acpi_tad] BTF: -22 [ 11.483155] failed to validate module [amd_pmc] BTF: -22 [ 11.484502] failed to validate module [mhi] BTF: -22 [ 11.487406] failed to validate module [ccp] BTF: -22 [ 11.488051] failed to validate module [hid_multitouch] BTF: -22 [ 11.492584] failed to validate module [think_lmi] BTF: -22 [ 11.492743] failed to validate module [snd] BTF: -22 [ 11.494650] failed to validate module [sch_fq_codel] BTF: -22 [ 11.496066] failed to validate module [joydev] BTF: -22 [ 11.739808] failed to validate module [snd_soc_acpi] BTF: -22 [ 11.740090] failed to validate module [rapl] BTF: -22 [ 11.740373] failed to validate module [ecc] BTF: -22 [ 11.740428] failed to validate module [joydev] BTF: -22 [ 11.742035] failed to validate module [snd] BTF: -22 [ 11.847550] failed to validate module [kvm] BTF: -22 [ 11.893399] failed to validate module [snd_soc_acpi] BTF: -22 [ 11.894110] failed to validate module [parport] BTF: -22 [ 11.894230] failed to validate module [joydev] BTF: -22 [ 11.894304] failed to validate module [edac_mce_amd] BTF: -22 [ 11.895574] failed to validate module [intel_rapl_common] BTF: -22 [ 11.918194] failed to validate module [sunrpc] BTF: -22 [ 12.017295] failed to validate module [intel_rapl_common] BTF: -22 [ 12.017700] failed to validate module [edac_mce_amd] BTF: -22 [ 12.018210] failed to validate module [parport] BTF: -22 [ 12.018529] failed to validate module [amd_atl] BTF: -22 [ 12.019470] failed to validate module [snd] BTF: -22 [ 12.092108] failed to validate module [snd_soc_acpi] BTF: -22 [ 12.092312] failed to validate module [amd_atl] BTF: -22 [ 12.092432] failed to validate module [intel_rapl_common] BTF: -22 [ 12.093188] failed to validate module [parport] BTF: -22 [ 12.146129] failed to validate module [msr] BTF: -22 [ 12.146722] failed to validate module [amd_atl] BTF: -22 [ 12.151553] failed to validate module [snd] BTF: -22 [ 12.228868] failed to validate module [kyber_iosched] BTF: -22 [ 12.234784] failed to validate module [snd] BTF: -22 [ 12.287280] failed to validate module [snd] BTF: -22 [ 12.333033] failed to validate module [snd] BTF: -22 [ 12.386033] failed to validate module [snd] BTF: -22 [ 15.178015] failed to validate module [mii] BTF: -22 [ 15.218292] failed to validate module [mii] BTF: -22 [ 15.243049] failed to validate module [mii] BTF: -22 [ 15.281827] failed to validate module [mii] BTF: -22 [ 15.653408] failed to validate module [mc] BTF: -22 [ 15.664306] failed to validate module [snd] BTF: -22 [ 19.072219] failed to validate module [dm_crypt] BTF: -22 [ 19.114214] failed to validate module [dm_crypt] BTF: -22 [ 19.156083] failed to validate module [dm_crypt] BTF: -22 [ 19.213920] failed to validate module [dm_crypt] BTF: -22 [ 19.265483] failed to validate module [dm_crypt] BTF: -22 [ 19.405525] failed to validate module [zram] BTF: -22 [ 19.641918] pci 0000:03:00.0: bridge window [io size 0x5000]: failed to assign [ 19.641967] pci 0000:04:00.0: bridge window [io size 0x1000]: failed to assign [ 19.641974] pci 0000:04:01.0: bridge window [io size 0x1000]: failed to assign [ 19.641980] pci 0000:04:02.0: bridge window [io size 0x1000]: failed to assign [ 19.641987] pci 0000:04:03.0: bridge window [io size 0x1000]: failed to assign [ 19.641993] pci 0000:04:04.0: bridge window [io size 0x1000]: failed to assign [ 20.520584] failed to validate module [snd] BTF: -22 [ 20.573773] failed to validate module [snd] BTF: -22 [ 20.622256] failed to validate module [snd] BTF: -22 [ 20.673532] failed to validate module [snd] BTF: -22 [ 31.707779] failed to validate module [dm_crypt] BTF: -22 [ 31.738036] failed to validate module [dm_crypt] BTF: -22 [ 31.783843] failed to validate module [dm_crypt] BTF: -22 [ 31.842244] failed to validate module [dm_crypt] BTF: -22 [ 31.893032] failed to validate module [dm_crypt] BTF: -22 [ 46.437924] failed to validate module [dm_crypt] BTF: -22 [ 46.493957] failed to validate module [dm_crypt] BTF: -22 [ 46.537386] failed to validate module [dm_crypt] BTF: -22 [ 46.582571] failed to validate module [dm_crypt] BTF: -22 [ 46.626196] failed to validate module [dm_crypt] BTF: -22 [ 57.422217] failed to validate module [dm_crypt] BTF: -22 [ 57.453168] failed to validate module [dm_crypt] BTF: -22 [ 57.501118] failed to validate module [dm_crypt] BTF: -22 [ 57.526662] failed to validate module [dm_crypt] BTF: -22 [ 57.579039] failed to validate module [dm_crypt] BTF: -22
apt-get install --reinstall linux-image-6.9.3-76060903-generic apt install --reinstall system76-dkms
did not help dm_crypt keeps to be broken with that kernel. This old-kern works tho
6.8.0-76060800daily20240311-generic
also it did break tailscale.
Best, Tom