NVIDIA CALL TRACE - nvidia: loading out-of-tree module taints kernel

Hi
at testing kernel 5.0.1
i got these msg’s, so far without any further problems…yet…

Bad or missing usercopy whitelist? Kernel memory exposure attempt detected from SLUB object 'nvidia_stack_t' (offset 11864, size 3)!

[   64.159632] NVRM: Your system is not currently configured to drive a VGA console
[   64.159638] NVRM: on the primary VGA device. The NVIDIA Linux graphics driver
[   64.162009] NVRM: requires the use of a text-mode VGA console. Use of other console
[   64.162014] NVRM: drivers including, but not limited to, vesafb, may result in
[   64.162017] NVRM: corruption and stability problems, and is not supported.
[   64.285623] ------------[ cut here ]------------
[   64.285634] Bad or missing usercopy whitelist? Kernel memory exposure attempt detected from SLUB object 'nvidia_stack_t' (offset 11864, size 3)!
[   64.285663] WARNING: CPU: 0 PID: 877 at mm/usercopy.c:83 usercopy_warn+0x7d/0xa0
[   64.285665] Modules linked in: mousedev input_leds joydev snd_hda_codec_hdmi snd_hda_codec_realtek intel_powerclamp iTCO_wdt snd_hda_codec_generic ledtrig_audio ppdev iTCO_vendor_support snd_hda_intel snd_hda_codec snd_hda_core snd_hwdep pcspkr snd_pcm snd_timer snd soundcore e1000e skge parport_pc evdev lpc_ich parport asus_atk0110 mac_hid rng_core i2c_i801 uinput nvidia(POE) drm agpgart sg crypto_user ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 fscrypto sd_mod sr_mod hid_generic cdrom usbhid ata_generic pata_acpi hid ata_piix sata_sil24 pata_it821x libata firewire_ohci uhci_hcd firewire_core crc_itu_t scsi_mod ehci_pci ehci_hcd
[   64.285728] CPU: 0 PID: 877 Comm: Xorg Tainted: P           OE     5.0.1-1-MANJARO #1
[   64.285730] Hardware name: System manufacturer System Product Name/P5WD2-Premium, BIOS 0422     05/27/2005
[   64.285736] RIP: 0010:usercopy_warn+0x7d/0xa0
[   64.285740] Code: ec b4 41 51 4d 89 d8 48 c7 c0 74 f0 ea b4 49 89 f1 48 89 f9 48 0f 45 c2 48 c7 c7 30 0e ec b4 4c 89 d2 48 89 c6 e8 3d eb e0 ff <0f> 0b 48 83 c4 18 c3 48 c7 c6 f0 d7 ea b4 49 89 f1 49 89 f3 eb 96
[   64.285743] RSP: 0018:ffffacfbc0cc3bb8 EFLAGS: 00010286
[   64.285747] RAX: 0000000000000000 RBX: ffff9dc8eb825e58 RCX: 0000000000000000
[   64.285749] RDX: 0000000000000007 RSI: ffffffffb4ead7f0 RDI: 00000000ffffffff
[   64.285751] RBP: 0000000000000003 R08: 0000000000000001 R09: 000000000000037b
[   64.285754] R10: 0000000000000004 R11: 0000000000000000 R12: 0000000000000001
[   64.285756] R13: ffff9dc8eb825e5b R14: ffff9dc8eb825e58 R15: ffff9dc8eb825ea0
[   64.285760] FS:  00007f7a7ce87dc0(0000) GS:ffff9dc8fca00000(0000) knlGS:0000000000000000
[   64.285763] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   64.285765] CR2: 00007f7a784ad160 CR3: 00000000ba83e000 CR4: 00000000000006f0
[   64.285769] Call Trace:
[   64.285781]  __check_object_size+0xc1/0x175
[   64.286102]  os_memcpy_to_user+0x21/0x40 [nvidia]
[   64.286355]  _nv001372rm+0xa5/0x260 [nvidia]
[   64.286640]  ? _nv004784rm+0x4eba/0x5500 [nvidia]
[   64.286926]  ? _nv004331rm+0xec/0xf0 [nvidia]
[   64.287207]  ? _nv004326rm+0xca/0x650 [nvidia]
[   64.287452]  ? _nv015126rm+0x576/0x5c0 [nvidia]
[   64.287702]  ? _nv000694rm+0x2e/0x60 [nvidia]
[   64.287935]  ? _nv000789rm+0x5f5/0x8b0 [nvidia]
[   64.287944]  ? _raw_spin_unlock_irqrestore+0x20/0x40
[   64.288173]  ? rm_ioctl+0x73/0x100 [nvidia]
[   64.288407]  ? nvidia_ioctl+0x14f/0x4a0 [nvidia]
[   64.288638]  ? nvidia_frontend_ioctl+0x2d/0x50 [nvidia]
[   64.288868]  ? nvidia_frontend_unlocked_ioctl+0x19/0x20 [nvidia]
[   64.288874]  ? do_vfs_ioctl+0xa4/0x630
[   64.288882]  ? syscall_trace_enter+0x1d3/0x2d0
[   64.288888]  ? ksys_ioctl+0x60/0x90
[   64.288893]  ? __x64_sys_ioctl+0x16/0x20
[   64.288897]  ? do_syscall_64+0x65/0x180
[   64.288903]  ? entry_SYSCALL_64_after_hwframe+0x44/0xa9
[   64.288912] ---[ end trace 1096855d48adbe4f ]---

kernel 5.0.2
dmesg | grep nvidia
loading out-of-tree module taints kernel.

[   14.033673] nvidia: loading out-of-tree module taints kernel.
[   14.033689] nvidia: module license 'NVIDIA' taints kernel.
[   14.050871] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[   14.066788] nvidia 0000:08:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=io+mem
[   14.067712] [drm] Initialized nvidia-drm 0.0.0 20150116 for 0000:08:00.0 on minor 0
[   65.904763] Bad or missing usercopy whitelist? Kernel memory exposure attempt detected from SLUB object 'nvidia_stack_t' (offset 11864, size 3)!
[   65.904791] Modules linked in: joydev input_leds mousedev iTCO_wdt iTCO_vendor_support snd_hda_codec_hdmi snd_hda_codec_realtek ppdev snd_hda_codec_generic ledtrig_audio snd_hda_intel snd_hda_codec intel_powerclamp snd_hda_core snd_hwdep snd_pcm skge snd_timer e1000e snd asus_atk0110 i2c_i801 lpc_ich evdev parport_pc mac_hid soundcore parport rng_core pcspkr uinput nvidia(POE) drm agpgart sg crypto_user ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 fscrypto sr_mod cdrom sd_mod hid_generic usbhid hid ata_generic pata_acpi ata_piix pata_it821x sata_sil24 firewire_ohci uhci_hcd libata firewire_core crc_itu_t ehci_pci scsi_mod ehci_hcd
[   65.905217]  os_memcpy_to_user+0x21/0x40 [nvidia]
[   65.905451]  _nv001372rm+0xa5/0x260 [nvidia]
[   65.905715]  ? _nv004784rm+0x4eba/0x5500 [nvidia]
[   65.905976]  ? _nv004331rm+0xec/0xf0 [nvidia]
[   65.906236]  ? _nv004326rm+0xca/0x650 [nvidia]
[   65.906463]  ? _nv015126rm+0x576/0x5c0 [nvidia]
[   65.906694]  ? _nv000694rm+0x2e/0x60 [nvidia]
[   65.906910]  ? _nv000789rm+0x5f5/0x8b0 [nvidia]
[   65.907128]  ? rm_ioctl+0x73/0x100 [nvidia]
[   65.907344]  ? nvidia_ioctl+0x14f/0x4a0 [nvidia]
[   65.907557]  ? nvidia_frontend_ioctl+0x2d/0x50 [nvidia]
[   65.907769]  ? nvidia_frontend_unlocked_ioctl+0x19/0x20 [nvidia]
[   65.774340] NVRM: Your system is not currently configured to drive a VGA console
[   65.774345] NVRM: on the primary VGA device. The NVIDIA Linux graphics driver
[   65.774348] NVRM: requires the use of a text-mode VGA console. Use of other console
[   65.774351] NVRM: drivers including, but not limited to, vesafb, may result in
[   65.774353] NVRM: corruption and stability problems, and is not supported.
[   65.904754] ------------[ cut here ]------------
[   65.904763] Bad or missing usercopy whitelist? Kernel memory exposure attempt detected from SLUB object 'nvidia_stack_t' (offset 11864, size 3)!
[   65.904789] WARNING: CPU: 1 PID: 785 at mm/usercopy.c:83 usercopy_warn+0x7d/0xa0
[   65.904791] Modules linked in: joydev input_leds mousedev iTCO_wdt iTCO_vendor_support snd_hda_codec_hdmi snd_hda_codec_realtek ppdev snd_hda_codec_generic ledtrig_audio snd_hda_intel snd_hda_codec intel_powerclamp snd_hda_core snd_hwdep snd_pcm skge snd_timer e1000e snd asus_atk0110 i2c_i801 lpc_ich evdev parport_pc mac_hid soundcore parport rng_core pcspkr uinput nvidia(POE) drm agpgart sg crypto_user ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 fscrypto sr_mod cdrom sd_mod hid_generic usbhid hid ata_generic pata_acpi ata_piix pata_it821x sata_sil24 firewire_ohci uhci_hcd libata firewire_core crc_itu_t ehci_pci scsi_mod ehci_hcd
[   65.904851] CPU: 1 PID: 785 Comm: Xorg Tainted: P           OE     5.0.2-2-MANJARO #1
[   65.904854] Hardware name: System manufacturer System Product Name/P5WD2-Premium, BIOS 0422     05/27/2005
[   65.904859] RIP: 0010:usercopy_warn+0x7d/0xa0
[   65.904864] Code: 8c 92 41 51 4d 89 d8 48 c7 c0 14 f1 8a 92 49 89 f1 48 89 f9 48 0f 45 c2 48 c7 c7 d0 0e 8c 92 4c 89 d2 48 89 c6 e8 3d eb e0 ff <0f> 0b 48 83 c4 18 c3 48 c7 c6 90 d8 8a 92 49 89 f1 49 89 f3 eb 96
[   65.904867] RSP: 0018:ffffa37ac0ddfbb8 EFLAGS: 00010286
[   65.904871] RAX: 0000000000000000 RBX: ffff9da3f86b5e58 RCX: 0000000000000000
[   65.904873] RDX: 0000000000000007 RSI: ffffffff928ad890 RDI: 00000000ffffffff
[   65.904875] RBP: 0000000000000003 R08: 0000000000000001 R09: 000000000000034d
[   65.904877] R10: 0000000000000004 R11: 0000000000000000 R12: 0000000000000001
[   65.904880] R13: ffff9da3f86b5e5b R14: ffff9da3f86b5e58 R15: ffff9da3f86b5ea0
[   65.904883] FS:  00007fcae228cdc0(0000) GS:ffff9da3fc880000(0000) knlGS:0000000000000000
[   65.904886] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   65.904888] CR2: 00007f54af4ec00c CR3: 00000000b87b6000 CR4: 00000000000006e0
[   65.904891] Call Trace:
[   65.904903]  __check_object_size+0xc1/0x175
[   65.905217]  os_memcpy_to_user+0x21/0x40 [nvidia]
[   65.905451]  _nv001372rm+0xa5/0x260 [nvidia]
[   65.905715]  ? _nv004784rm+0x4eba/0x5500 [nvidia]
[   65.905976]  ? _nv004331rm+0xec/0xf0 [nvidia]
[   65.906236]  ? _nv004326rm+0xca/0x650 [nvidia]
[   65.906463]  ? _nv015126rm+0x576/0x5c0 [nvidia]
[   65.906694]  ? _nv000694rm+0x2e/0x60 [nvidia]
[   65.906910]  ? _nv000789rm+0x5f5/0x8b0 [nvidia]
[   65.906916]  ? _raw_spin_unlock_irqrestore+0x20/0x40
[   65.907128]  ? rm_ioctl+0x73/0x100 [nvidia]
[   65.907344]  ? nvidia_ioctl+0x14f/0x4a0 [nvidia]
[   65.907557]  ? nvidia_frontend_ioctl+0x2d/0x50 [nvidia]
[   65.907769]  ? nvidia_frontend_unlocked_ioctl+0x19/0x20 [nvidia]
[   65.907773]  ? do_vfs_ioctl+0xa4/0x630
[   65.907779]  ? syscall_trace_enter+0x1d3/0x2d0
[   65.907784]  ? ksys_ioctl+0x60/0x90
[   65.907788]  ? __x64_sys_ioctl+0x16/0x20
[   65.907791]  ? do_syscall_64+0x65/0x180
[   65.907796]  ? entry_SYSCALL_64_after_hwframe+0x44/0xa9
[   65.907802] ---[ end trace 85de257026c7b85c ]---

yes, using the nvidia proprietary drivers taints the kernel. it’s not an error.

ok :smiley:
but a call trace is a dumped programm… or not?

I think this is the problem:

You need a text-mode VGA console. Question is, why don’t you have one of those?

Question:
Are you using nvidia-390xx or nvidia-340xx drivers ?
It was something similar discussed here

and here
https://devtalk.nvidia.com/default/topic/827139/linux/uefi-nvidia-vga-console-complaints-/

2 Likes

I would probably remove the video-linux and forget about 5 kernel on that rig … :slight_smile:

So far, the xfce desktop needs a lot of time to load. But if loaded, it seems ok.

Well, how is the 4.14 kernel working on that rig? I assume none of the above is happening …

4.14 seems to load xfce a bit faster. No call trace here

but still

nvidia: loading out-of-tree module taints kernel.
[   13.408833] nvidia: module license 'NVIDIA' taints kernel.
[   13.408835] Disabling lock debugging due to kernel taint
[   13.470767] nvidia 0000:08:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=io+mem
[   13.473428] [drm] Initialized nvidia-drm 0.0.0 20150116 for 0000:08:00.0 on minor 0
[   13.473481] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  340.107  Thu May 24 21:54:01 PDT 2018
[   33.599163] NVRM: Your system is not currently configured to drive a VGA console
[   33.599168] NVRM: on the primary VGA device. The NVIDIA Linux graphics driver
[   33.599171] NVRM: requires the use of a text-mode VGA console. Use of other console
[   33.599174] NVRM: drivers including, but not limited to, vesafb, may result in
[   33.599176] NVRM: corruption and stability problems, and is not supported.

is a message that can be ignored, is just informative.

Might be related to this lines in /etc/default/grub

# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console

# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console

This topic was automatically closed after 90 days. New replies are no longer allowed.