Bug 5280

Summary: NVIDIA UNIX x86_64 Kernel Module 340.107 fails to load with Fedora 30 (Kernel 5.1.5-300.fc30.x86_64)
Product: Fedora Reporter: Uros <ubizjak>
Component: nvidia-340xx-kmodAssignee: Przemysław Palacz <pprzemal>
Status: RESOLVED FIXED    
Severity: normal CC: hans, kwizart, leigh123linux, negativo17, zawertun
Priority: P1    
Version: f30   
Hardware: x86_64   
OS: GNU/Linux   
namespace:

Description Uros 2019-06-03 09:49:26 CEST
NVIDIA UNIX x86_64 Kernel Module  340.107 fails to load with Linux version 5.1.5-300.fc30.x86_64

The module loaded OK with Linux version 5.0.17-300.fc30.x86_64.
The problem first appeared with Linux version 5.1.5-300.fc30.x86_64.

Now it fails every time.

Kernel log says:

Jun  3 08:20:55 localhost kernel: nvidia: loading out-of-tree module taints kernel.
Jun  3 08:20:55 localhost kernel: nvidia: module license 'NVIDIA' taints kernel.
Jun  3 08:20:55 localhost kernel: Disabling lock debugging due to kernel taint
Jun  3 08:20:55 localhost kernel: nvidia: module verification failed: signature and/or required key missing - tainting kernel
Jun  3 08:20:55 localhost kernel: nvidia 0000:02:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=io+mem
Jun  3 08:20:55 localhost kernel: WARNING: CPU: 5 PID: 674 at drivers/gpu/drm/drm_pci.c:299 drm_legacy_pci_init+0xbc/0xd0 [drm]
Jun  3 08:20:55 localhost kernel: Modules linked in: irqbypass intel_cstate nvidia(POE+) wmi_bmof intel_uncore snd_hwdep snd_seq snd_seq_device i2c_i801 snd_pcm drm lpc_ich snd_timer snd soundcore ioatdma i7core_edac dca pcc_cpufreq acpi_cpufreq crc32c_intel uas tg3 serio_raw usb_storage wmi
Jun  3 08:20:55 localhost kernel: CPU: 5 PID: 674 Comm: systemd-udevd Tainted: P          IOE     5.1.5-300.fc30.x86_64 #1
Jun  3 08:20:55 localhost kernel: Hardware name: LENOVO 4105AB9/LENOVO, BIOS 60KT47AUS 01/15/2014
Jun  3 08:20:55 localhost kernel: RIP: 0010:drm_legacy_pci_init+0xbc/0xd0 [drm]
Jun  3 08:20:55 localhost kernel: Code: de e8 e8 fd ff ff 8b 3b eb be 41 83 c5 01 49 63 dd 48 c1 e3 05 49 03 5e 18 8b 3b 85 ff 75 a7 5b 31 c0 5d 41 5c 41 5d 41 5e c3 <0f> 0b b8 ea ff ff ff 5b 5d 41 5c 41 5d 41 5e c3 0f 1f 40 00 66 66
Jun  3 08:20:55 localhost kernel: RSP: 0018:ffffb693418f3c20 EFLAGS: 00010246
Jun  3 08:20:55 localhost kernel: RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000acc
Jun  3 08:20:55 localhost kernel: RDX: 0000000000000acb RSI: ffffffffc05b5c7d RDI: 0000000000000001
Jun  3 08:20:55 localhost kernel: RBP: ffff8ee6d3b20000 R08: 00000000000261a0 R09: ffffffffb3985e26
Jun  3 08:20:55 localhost kernel: R10: ffff8ee6d7402c00 R11: 0000000000000000 R12: ffffffffc0fc7de0
Jun  3 08:20:55 localhost kernel: R13: ffffffffc0fc8a00 R14: ffffffffc0fc7c00 R15: ffff8ee6d6025700
Jun  3 08:20:55 localhost kernel: FS:  00007fcc59c33940(0000) GS:ffff8ee6d7b40000(0000) knlGS:0000000000000000
Jun  3 08:20:55 localhost kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Jun  3 08:20:55 localhost kernel: CR2: 00007f738038b240 CR3: 0000000213d78000 CR4: 00000000000006e0
Jun  3 08:20:55 localhost kernel: Call Trace:
Jun  3 08:20:55 localhost kernel: nvidia_init_module+0x2fc/0x771 [nvidia]
Jun  3 08:20:55 localhost kernel: ? nv_drm_init+0x14/0x14 [nvidia]
Jun  3 08:20:55 localhost kernel: nvidia_frontend_init_module+0x4f/0x87b [nvidia]
Jun  3 08:20:55 localhost kernel: do_one_initcall+0x46/0x1c4
Jun  3 08:20:55 localhost kernel: ? _cond_resched+0x15/0x30
Jun  3 08:20:55 localhost kernel: ? kmem_cache_alloc_trace+0x154/0x1c0
Jun  3 08:20:55 localhost kernel: ? do_init_module+0x23/0x210
Jun  3 08:20:55 localhost kernel: do_init_module+0x5c/0x210
Jun  3 08:20:55 localhost kernel: load_module+0x23de/0x2910
Jun  3 08:20:55 localhost kernel: ? ima_post_read_file+0xf0/0x100
Jun  3 08:20:55 localhost kernel: ? __do_sys_finit_module+0xaa/0x110
Jun  3 08:20:55 localhost kernel: __do_sys_finit_module+0xaa/0x110
Jun  3 08:20:55 localhost kernel: do_syscall_64+0x5b/0x170
Jun  3 08:20:55 localhost kernel: entry_SYSCALL_64_after_hwframe+0x44/0xa9
Jun  3 08:20:55 localhost kernel: RIP: 0033:0x7fcc5ac2ec7d
Jun  3 08:20:55 localhost kernel: Code: 00 c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d db a1 0c 00 f7 d8 64 89 01 48
Jun  3 08:20:55 localhost kernel: RSP: 002b:00007ffff08476b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
Jun  3 08:20:55 localhost kernel: RAX: ffffffffffffffda RBX: 00005562f528da80 RCX: 00007fcc5ac2ec7d
Jun  3 08:20:55 localhost kernel: RDX: 0000000000000000 RSI: 00007fcc5a88984d RDI: 0000000000000011
Jun  3 08:20:55 localhost kernel: RBP: 0000000000020000 R08: 0000000000000000 R09: 0000000000000007
Jun  3 08:20:55 localhost kernel: R10: 0000000000000011 R11: 0000000000000246 R12: 00007fcc5a88984d
Jun  3 08:20:55 localhost kernel: R13: 0000000000000000 R14: 00005562f527b840 R15: 00005562f52a7f60
Jun  3 08:20:55 localhost kernel: ---[ end trace d58062a10a206a3d ]---
Jun  3 08:20:55 localhost kernel: NVRM: DRM init failed

There are proposed patches that should fix the above problem at:

https://devtalk.nvidia.com/default/topic/1051609/any-love-for-340-y-410-y-and-5-1-/
Comment 1 Nicolas Chauvet 2019-06-03 11:16:25 CEST
Thx for the report, would you volunteer to co-maintain this driver ?

With that said
https://nvidia.custhelp.com/app/answers/detail/a_id/3142
So it will be supported by the end of 2019 not after...
(we will probably remove it by f31).
Comment 2 Nicolas Chauvet 2019-06-03 11:17:16 CEST
See also https://rpmfusion.org/Contributors

Please provide a working patch against the current package.
Comment 3 leigh scott 2019-06-03 11:37:10 CEST
Patched for 5.1 kernel

https://koji.rpmfusion.org/koji/buildinfo?buildID=11347
Comment 4 leigh scott 2019-06-03 11:40:31 CEST
(In reply to Nicolas Chauvet from comment #1)

> (we will probably remove it by f31).


It could die before that, 4-6 weeks time when 5.2 is released as I wont be fixing 340xx again.
Someone with the required hardware can do it instead.