[linux416][nvidia 390.48] nvidia_stack_cache RIP: 0010:usercopy_warn+0x7e/0xa0

Distro: Manjaro Linux x86_64
Graphics:  Card-1: Intel 3rd Gen Core processor Graphics Controller
           Card-2: NVIDIA GF108M [GeForce GT 620M/630M/635M/640M LE]
           Display Server: x11 (X.Org 1.19.6 ) driver: intel Resolution: 1366x768@60.01hz
           OpenGL: renderer: Mesa DRI Intel Ivybridge Mobile version: 4.2 Mesa 17.3.6
Kernel: 4.16-RC5

Issue:
Runnig optirun nvidia-smi or any other power on dGPU
got this kernel dump:

Bad or missing usercopy whitelist? Kernel memory exposure attempt detected from SLUB object 'nvidia_stack_cache' (offset 11440, size 3)! WARNING: CPU: 0 PID: 16037 at mm/usercopy.c:81 usercopy_warn+0x7e/0xa0
[fademind@manjaro ~]$ pacman -Q|grep linux416
linux416 4.16.r180312.g0c8efd6-1
linux416-bbswitch 0.8-0.6
linux416-nvidia 1:390.42-0.6
linux416-r8168 8.045.08-0.6
[ 2808.548287] nvidia: module license 'NVIDIA' taints kernel.
[ 2808.548289] Disabling lock debugging due to kernel taint
[ 2808.561973] nvidia-nvlink: Nvlink Core is being initialized, major device number 239
[ 2808.562206] nvidia 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none
[ 2808.562302] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  390.42  Sat Mar  3 04:10:22 PST 2018 (using threaded interrupts)
[ 2809.042101] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  390.42  Sat Mar  3 03:30:48 PST 2018
[ 2809.042828] nvidia-modeset: Allocated GPU:0 (GPU-d6b03ef8-5883-7f16-ebcf-26ba8a9815ca) @ PCI:0000:01:00.0
[ 2809.103652] ------------[ cut here ]------------
[ 2809.103655] Bad or missing usercopy whitelist? Kernel memory exposure attempt detected from SLUB object 'nvidia_stack_cache' (offset 11440, size 3)!                                                                                                                                           
[ 2809.103664] WARNING: CPU: 0 PID: 16037 at mm/usercopy.c:81 usercopy_warn+0x7e/0xa0
[ 2809.103665] Modules linked in: nvidia_modeset(PO) nvidia(PO) ipmi_devintf ipmi_msghandler fuse ccm overlay joydev mousedev snd_hda_codec_hdmi bbswitch(O) arc4 pktcdvd intel_rapl x86_pkg_temp_thermal ath9k intel_powerclamp kvm_intel ath9k_common ath9k_hw kvm ath mac80211 irqbypass nls_iso8859_1 crct10dif_pclmul nls_cp437 crc32_pclmul vfat ghash_clmulni_intel snd_hda_codec_realtek fat snd_hda_codec_generic pcbc gpio_ich aesni_intel asus_nb_wmi asus_wmi aes_x86_64 crypto_simd glue_helper sparse_keymap snd_hda_intel cryptd wmi_bmof cfg80211 mxm_wmi intel_cstate snd_hda_codec snd_hda_core snd_hwdep snd_pcm intel_uncore psmouse intel_rapl_perf rfkill snd_timer input_leds r8168(O) i2c_i801 pcspkr snd mei_me lpc_ich mei soundcore shpchp rtc_cmos wmi asus_wireless battery evdev ac led_class mac_hid ipt_REJECT                                                        
[ 2809.103701]  nf_reject_ipv4 xt_limit xt_tcpudp xt_addrtype nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack ip6_tables nf_conntrack_netbios_ns nf_conntrack_broadcast nf_nat_ftp nf_nat nf_conntrack_ftp nf_conntrack libcrc32c crc32c_generic iptable_filter coretemp msr uinput sg crypto_user ip_tables x_tables ext4 crc16 mbcache jbd2 fscrypto hid_generic usbhid hid sr_mod cdrom sd_mod serio_raw ahci atkbd libps2 libahci xhci_pci libata ehci_pci xhci_hcd ehci_hcd crc32c_intel scsi_mod usbcore usb_common i8042 serio i915 intel_gtt i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops drm agpgart lz4 lz4_compress                                                                                            
[ 2809.103732] CPU: 0 PID: 16037 Comm: Xorg Tainted: P           O     4.16.0-1-MANJARO #1
[ 2809.103733] Hardware name: ASUSTeK COMPUTER INC. K55VM/K55VM, BIOS K55VM.211 09/11/2012
[ 2809.103735] RIP: 0010:usercopy_warn+0x7e/0xa0
[ 2809.103735] RSP: 0018:ffffb64f030d7b58 EFLAGS: 00010286
[ 2809.103737] RAX: 0000000000000000 RBX: ffff96edd010acb0 RCX: 0000000000000001
[ 2809.103737] RDX: 0000000080000001 RSI: fffffffface52ed4 RDI: 00000000ffffffff
[ 2809.103738] RBP: 0000000000000003 R08: 0000000000000098 R09: 000000000000038d
[ 2809.103739] R10: fffffffface8bbd9 R11: 0000000000000001 R12: 0000000000000001
[ 2809.103740] R13: ffff96edd010acb3 R14: 0000000000000000 R15: ffff96edd010acf8
[ 2809.103741] FS:  00007f108a65a940(0000) GS:ffff96eeeee00000(0000) knlGS:0000000000000000
[ 2809.103741] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 2809.103742] CR2: 00007f10825d0000 CR3: 0000000109cd8002 CR4: 00000000001606f0
[ 2809.103743] Call Trace:
[ 2809.103748]  __check_object_size+0x130/0x1a0
[ 2809.103868]  os_memcpy_to_user+0x21/0x40 [nvidia]
[ 2809.104013]  _nv009376rm+0xbf/0xe0 [nvidia]
[ 2809.104145]  ? _nv028060rm+0x79/0x90 [nvidia]
[ 2809.104274]  ? _nv028060rm+0x55/0x90 [nvidia]
[ 2809.104398]  ? _nv013692rm+0xee/0x100 [nvidia]
[ 2809.104520]  ? _nv015340rm+0x154/0x270 [nvidia]
[ 2809.104662]  ? _nv008309rm+0x134/0x1a0 [nvidia]
[ 2809.104803]  ? _nv008288rm+0x29c/0x2b0 [nvidia]
[ 2809.104943]  ? _nv001073rm+0xe/0x20 [nvidia]
[ 2809.105082]  ? _nv007315rm+0xd8/0x100 [nvidia]
[ 2809.105216]  ? _nv001172rm+0x627/0x830 [nvidia]
[ 2809.105350]  ? rm_ioctl+0x73/0x100 [nvidia]
[ 2809.105429]  ? nvidia_ioctl+0x573/0x720 [nvidia]
[ 2809.105507]  ? nvidia_frontend_unlocked_ioctl+0x3e/0x50 [nvidia]
[ 2809.105509]  ? do_vfs_ioctl+0xa4/0x630
[ 2809.105512]  ? __do_page_fault+0x317/0x5a0
[ 2809.105514]  ? SyS_ioctl+0x74/0x80
[ 2809.105517]  ? do_syscall_64+0x74/0x190
[ 2809.105520]  ? entry_SYSCALL_64_after_hwframe+0x3d/0xa2
[ 2809.105521] Code: 48 c7 c0 81 d1 e5 ac 48 0f 44 c2 41 50 51 41 51 48 89 f9 49 89 f1 4d 89 d8 4c 89 d2 48 89 c6 48 c7 c7 d8 d1 e5 ac e8 32 aa e3 ff <0f> 0b 48 83 c4 18 c3 48 c7 c6 d4 2e e5 ac 49 89 f1 49 89 f3 eb 
[ 2809.105545] ---[ end trace 0e0c22855be5d8f7 ]---
[ 2809.664860] nvidia-modeset: Freed GPU:0 (GPU-d6b03ef8-5883-7f16-ebcf-26ba8a9815ca) @ PCI:0000:01:00.0
[ 2809.673945] nvidia-modeset: Unloading
[ 2809.684638] nvidia-nvlink: Unregistered the Nvlink Core, major device number 239
[ 2809.700188] bbswitch: disabling discrete graphics
[ 2809.712314] pci 0000:01:00.0: Refused to change power state, currently in D0

I ran mesa demos some (gloss, fbo_firecube)

[ 2809.664860] nvidia-modeset: Freed GPU:0 (GPU-d6b03ef8-5883-7f16-ebcf-26ba8a9815ca) @ PCI:0000:01:00.0
[ 2809.673945] nvidia-modeset: Unloading
[ 2809.684638] nvidia-nvlink: Unregistered the Nvlink Core, major device number 239
[ 2809.700188] bbswitch: disabling discrete graphics
[ 2809.712314] pci 0000:01:00.0: Refused to change power state, currently in D0
[ 2942.907074] bbswitch: enabling discrete graphics
[ 2943.407477] nvidia-nvlink: Nvlink Core is being initialized, major device number 239
[ 2943.407737] nvidia 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=none,decodes=none:owns=none
[ 2943.407834] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  390.42  Sat Mar  3 04:10:22 PST 2018 (using threaded interrupts)
[ 2943.816502] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  390.42  Sat Mar  3 03:30:48 PST 2018
[ 2943.817115] nvidia-modeset: Allocated GPU:0 (GPU-d6b03ef8-5883-7f16-ebcf-26ba8a9815ca) @ PCI:0000:01:00.0
[ 2944.587881] nvidia-modeset: Freed GPU:0 (GPU-d6b03ef8-5883-7f16-ebcf-26ba8a9815ca) @ PCI:0000:01:00.0
[ 2944.597519] nvidia-modeset: Unloading
[ 2944.614985] nvidia-nvlink: Unregistered the Nvlink Core, major device number 239
[ 2944.640653] bbswitch: disabling discrete graphics
[ 2944.652550] pci 0000:01:00.0: Refused to change power state, currently in D0
[ 3050.850338] bbswitch: enabling discrete graphics
[ 3051.352872] nvidia-nvlink: Nvlink Core is being initialized, major device number 239
[ 3051.353093] nvidia 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=none,decodes=none:owns=none
[ 3051.353178] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  390.42  Sat Mar  3 04:10:22 PST 2018 (using threaded interrupts)
[ 3051.759392] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  390.42  Sat Mar  3 03:30:48 PST 2018
[ 3051.760041] nvidia-modeset: Allocated GPU:0 (GPU-d6b03ef8-5883-7f16-ebcf-26ba8a9815ca) @ PCI:0000:01:00.0
[ 3077.342932] fbo_firecube[17163]: segfault at e04 ip 00007f79d844a15a sp 00007ffc277be420 error 4 in libGLX_nvidia.so.390.42[7f79d83f9000+c9000]
[ 3077.429068] nvidia-modeset: Freed GPU:0 (GPU-d6b03ef8-5883-7f16-ebcf-26ba8a9815ca) @ PCI:0000:01:00.0
[ 3077.439581] nvidia-modeset: Unloading
[ 3077.450761] nvidia-nvlink: Unregistered the Nvlink Core, major device number 239
[ 3077.458527] bbswitch: disabling discrete graphics
[ 3077.470435] pci 0000:01:00.0: Refused to change power state, currently in D0
[ 3103.456166] bbswitch: enabling discrete graphics
[ 3103.962580] nvidia-nvlink: Nvlink Core is being initialized, major device number 239
[ 3103.962807] nvidia 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=none,decodes=none:owns=none
[ 3103.962906] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  390.42  Sat Mar  3 04:10:22 PST 2018 (using threaded interrupts)
[ 3104.370597] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  390.42  Sat Mar  3 03:30:48 PST 2018
[ 3104.371336] nvidia-modeset: Allocated GPU:0 (GPU-d6b03ef8-5883-7f16-ebcf-26ba8a9815ca) @ PCI:0000:01:00.0
[ 3109.775336] gloss[17408]: segfault at e04 ip 00007f177119815a sp 00007ffd49b2ba40 error 4 in libGLX_nvidia.so.390.42[7f1771147000+c9000]
[ 3109.857298] nvidia-modeset: Freed GPU:0 (GPU-d6b03ef8-5883-7f16-ebcf-26ba8a9815ca) @ PCI:0000:01:00.0
[ 3109.867448] nvidia-modeset: Unloading
[ 3109.877411] nvidia-nvlink: Unregistered the Nvlink Core, major device number 239
[ 3109.892018] bbswitch: disabling discrete graphics
[ 3109.903957] pci 0000:01:00.0: Refused to change power state, currently in D0

Same with NVIDIA 390.48 and Linux 4.16.r180325.g3eb2ce8-1

[ 8783.795281] bbswitch: enabling discrete graphics
[ 8784.213342] ipmi message handler version 39.2
[ 8784.214392] ipmi device interface
[ 8784.320574] nvidia: module license 'NVIDIA' taints kernel.
[ 8784.320576] Disabling lock debugging due to kernel taint
[ 8784.336073] nvidia-nvlink: Nvlink Core is being initialized, major device number 238
[ 8784.336604] nvidia 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none
[ 8784.336720] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  390.48  Thu Mar 22 00:42:57 PDT 2018 (using threaded interrupts)
[ 8784.757723] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  390.48  Wed Mar 21 23:48:34 PDT 2018
[ 8784.758321] nvidia-modeset: Allocated GPU:0 (GPU-d6b03ef8-5883-7f16-ebcf-26ba8a9815ca) @ PCI:0000:01:00.0
[ 8784.816368] ------------[ cut here ]------------
[ 8784.816371] Bad or missing usercopy whitelist? Kernel memory exposure attempt detected from SLUB object 'nvidia_stack_cache' (offset 11440, size 3)!                                                                                                                                           
[ 8784.816380] WARNING: CPU: 6 PID: 32589 at mm/usercopy.c:81 usercopy_warn+0x7e/0xa0
[ 8784.816381] Modules linked in: nvidia_modeset(PO) nvidia(PO) ipmi_devintf ipmi_msghandler ccm fuse overlay bbswitch(O) snd_hda_codec_hdmi arc4 ath9k ath9k_common ath9k_hw nls_iso8859_1 pktcdvd intel_rapl nls_cp437 x86_pkg_temp_thermal intel_powerclamp vfat kvm_intel fat ath kvm mac80211 uvcvideo irqbypass videobuf2_vmalloc crct10dif_pclmul crc32_pclmul videobuf2_memops videobuf2_v4l2 ghash_clmulni_intel pcbc videobuf2_common asus_nb_wmi asus_wmi sparse_keymap aesni_intel videodev gpio_ich snd_hda_codec_realtek wmi_bmof snd_hda_codec_generic aes_x86_64 mxm_wmi mousedev crypto_simd media glue_helper cfg80211 cryptd intel_cstate snd_hda_intel joydev snd_hda_codec snd_hda_core rtsx_pci_ms snd_hwdep memstick rfkill intel_uncore snd_pcm r8168(O) intel_rapl_perf mei_me snd_timer input_leds psmouse mei snd                                                          
[ 8784.816417]  soundcore i2c_i801 pcspkr lpc_ich shpchp rtc_cmos wmi battery asus_wireless led_class evdev ac mac_hid ipt_REJECT nf_reject_ipv4 xt_limit xt_tcpudp xt_addrtype nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack ip6_tables nf_conntrack_netbios_ns nf_conntrack_broadcast nf_nat_ftp nf_nat nf_conntrack_ftp nf_conntrack libcrc32c crc32c_generic iptable_filter coretemp msr uinput loop sg crypto_user ip_tables x_tables ext4 crc16 mbcache jbd2 fscrypto hid_generic usbhid hid sr_mod cdrom sd_mod rtsx_pci_sdmmc serio_raw mmc_core atkbd libps2 ahci libahci xhci_pci libata ehci_pci xhci_hcd ehci_hcd crc32c_intel scsi_mod rtsx_pci usbcore usb_common i8042 serio i915 intel_gtt i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops drm agpgart lz4 lz4_compress                                                                                     
[ 8784.816456] CPU: 6 PID: 32589 Comm: Xorg Tainted: P           O     4.16.0-1-MANJARO #1
[ 8784.816457] Hardware name: ASUSTeK COMPUTER INC. K55VM/K55VM, BIOS K55VM.211 09/11/2012
[ 8784.816459] RIP: 0010:usercopy_warn+0x7e/0xa0
[ 8784.816460] RSP: 0018:ffffb825836dfb58 EFLAGS: 00010286
[ 8784.816461] RAX: 0000000000000000 RBX: ffffa34e1480acb0 RCX: 0000000000000001
[ 8784.816462] RDX: 0000000080000001 RSI: ffffffffb6e53aec RDI: 00000000ffffffff
[ 8784.816463] RBP: 0000000000000003 R08: 0000000000000098 R09: 00000000000003b2
[ 8784.816464] R10: ffffffffb6e8c841 R11: 0000000000000001 R12: 0000000000000001
[ 8784.816464] R13: ffffa34e1480acb3 R14: 0000000000000000 R15: ffffa34e1480acf8
[ 8784.816465] FS:  00007fe704fbe940(0000) GS:ffffa34eaef80000(0000) knlGS:0000000000000000
[ 8784.816466] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 8784.816467] CR2: 00007fe6fd7da148 CR3: 000000010025e001 CR4: 00000000001606e0
[ 8784.816468] Call Trace:
[ 8784.816473]  __check_object_size+0x130/0x1a0
[ 8784.816616]  os_memcpy_to_user+0x21/0x40 [nvidia]
[ 8784.816765]  _nv009377rm+0xbf/0xe0 [nvidia]
[ 8784.816897]  ? _nv028067rm+0x79/0x90 [nvidia]
[ 8784.817027]  ? _nv028067rm+0x55/0x90 [nvidia]
[ 8784.817156]  ? _nv013694rm+0xee/0x100 [nvidia]
[ 8784.817280]  ? _nv015342rm+0x154/0x270 [nvidia]
[ 8784.817426]  ? _nv008310rm+0x134/0x1a0 [nvidia]
[ 8784.817571]  ? _nv008289rm+0x29c/0x2b0 [nvidia]
[ 8784.817716]  ? _nv001072rm+0xe/0x20 [nvidia]
[ 8784.817862]  ? _nv007316rm+0xd8/0x100 [nvidia]
[ 8784.818001]  ? _nv001171rm+0x627/0x830 [nvidia]
[ 8784.818139]  ? rm_ioctl+0x73/0x100 [nvidia]
[ 8784.818231]  ? nvidia_ioctl+0x573/0x720 [nvidia]
[ 8784.818235]  ? kmem_cache_free+0x1bd/0x1f0
[ 8784.818315]  ? nvidia_frontend_unlocked_ioctl+0x3e/0x50 [nvidia]
[ 8784.818318]  ? do_vfs_ioctl+0xa4/0x630
[ 8784.818320]  ? __fput+0x131/0x1e0
[ 8784.818322]  ? preempt_count_add+0x68/0xa0
[ 8784.818324]  ? SyS_ioctl+0x74/0x80
[ 8784.818326]  ? do_syscall_64+0x74/0x190
[ 8784.818329]  ? entry_SYSCALL_64_after_hwframe+0x3d/0xa2
[ 8784.818330] Code: 48 c7 c0 a9 dd e5 b6 48 0f 44 c2 41 50 51 41 51 48 89 f9 49 89 f1 4d 89 d8 4c 89 d2 48 89 c6 48 c7 c7 00 de e5 b6 e8 02 a4 e3 ff <0f> 0b 48 83 c4 18 c3 48 c7 c6 ec 3a e5 b6 49 89 f1 49 89 f3 eb 
[ 8784.818354] ---[ end trace b07dd3c7a3bd1453 ]---
[ 8785.344991] nvidia-modeset: Freed GPU:0 (GPU-d6b03ef8-5883-7f16-ebcf-26ba8a9815ca) @ PCI:0000:01:00.0
[ 8785.359470] nvidia-modeset: Unloading
[ 8785.374528] nvidia-nvlink: Unregistered the Nvlink Core, major device number 238
[ 8785.382182] bbswitch: disabling discrete graphics
[ 8785.394243] pci 0000:01:00.0: Refused to change power state, currently in D0

Please turn off any Spectre or Meltdown fixes which are running on kernel v4.16 to have the driver working. As an alternative you may use the Nouveau drivers. AMD ZEN CPUs are not affected by this, only Intel CPUs.

Disabling SpectreV2 and PTI via grub cmdline did not resolved issue with coredump:

I missed something? :>

https://access.redhat.com/articles/3311301#disabling-the-cves-3

AFAIK, this has nothing to do with spectre/meltdown. You should be able to work around it temporarily with kernel parameter
slab_common.usercopy_fallback=Y
You’ll still get the traceback but it will be handled as warning.

@generix Manjaro Kernel already have enabled:

[fademind@manjaro ~]$ zcat /proc/config.gz |grep HARDENED_USERCOPY_FALLBACK
CONFIG_HARDENED_USERCOPY_FALLBACK=y

See https://github.com/torvalds/linux/blob/master/security/Kconfig#L167

I have kernel 4.16 on Fedora and I get this error messages.

[ 17.048925] resource sanity check: requesting [mem 0x000c0000-0x000fffff], which spans more than PCI Bus 0000:00 [mem 0x000c4000-0x000c7fff window]
[ 17.049086] caller _nv001169rm+0xe3/0x1d0 [nvidia] mapping multiple BARs
[ 17.447253] nvidia-modeset: Allocated GPU:0 (GPU-b1ce6fd7-3394-d73e-0681-a84a3f9c6a77) @ PCI:0000:65:00.0
[ 17.650134] ------------[ cut here ]------------
[ 17.650136] Bad or missing usercopy whitelist? Kernel memory exposure attempt detected from SLUB object ‘nvidia_stack_cache’ (offset 11440, size 3)!
[ 17.650146] WARNING: CPU: 14 PID: 2672 at mm/usercopy.c:81 usercopy_warn+0x7e/0xa0
[ 17.650146] Modules linked in: xt_CHECKSUM ipt_MASQUERADE nf_nat_masquerade_ipv4 xt_addrtype br_netfilter tun overlay nf_conntrack_netbios_ns nf_conntrack_broadcast xt_CT ip6t_rpfilter ip6t_REJECT nf_reject_ipv6 xt_conntrack ip_set nfnetlink ebtable_nat ebtable_broute bridge stp llc ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 ip6table_mangle ip6table_raw ip6table_security iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack libcrc32c iptable_mangle iptable_raw iptable_security ebtable_filter ebtables ip6table_filter ip6_tables cmac bnep nct7802 sunrpc vfat fat fuse btusb btrtl btbcm btintel bluetooth ecdh_generic rfkill joydev snd_hda_codec_hdmi intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm nvidia_drm(POE) nvidia_modeset(POE) nvidia_uvm(POE)
[ 17.650171] irqbypass nvidia(POE) snd_hda_codec_realtek crct10dif_pclmul crc32_pclmul ghash_clmulni_intel snd_hda_codec_generic intel_cstate intel_uncore drm_kms_helper intel_rapl_perf snd_hda_intel snd_usb_audio snd_hda_codec drm snd_hda_core snd_usbmidi_lib snd_rawmidi snd_hwdep uvcvideo snd_seq videobuf2_vmalloc snd_seq_device videobuf2_memops videobuf2_v4l2 ipmi_devintf ipmi_msghandler snd_pcm videobuf2_common videodev snd_timer mei_me snd mei i2c_i801 shpchp media soundcore ioatdma binfmt_misc uas usb_storage hid_logitech_hidpp hid_logitech_dj igb e1000e mxm_wmi nvme dca crc32c_intel nvme_core ptp pps_core i2c_algo_bit wmi
[ 17.650193] CPU: 14 PID: 2672 Comm: Xorg Tainted: P OE 4.16.3-200.fc27.x86_64 #1
[ 17.650194] Hardware name: Micro-Star International Co., Ltd. MS-7A93/X299 SLI PLUS (MS-7A93), BIOS 1.80 01/31/2018
[ 17.650195] RIP: 0010:usercopy_warn+0x7e/0xa0
[ 17.650196] RSP: 0018:ffffa553c665bb58 EFLAGS: 00010286
[ 17.650197] RAX: 0000000000000000 RBX: ffff991763e55cb0 RCX: 0000000000000006
[ 17.650197] RDX: 0000000000000007 RSI: 0000000000000096 RDI: ffff99177f9968f0
[ 17.650198] RBP: 0000000000000003 R08: 00000000000004d0 R09: 0000000000000004
[ 17.650198] R10: ffffffff880f6210 R11: 0000000000000001 R12: 0000000000000001
[ 17.650199] R13: ffff991763e55cb3 R14: 0000000000000000 R15: ffff991763e55cf8
[ 17.650199] FS: 00007f2807c8ea80(0000) GS:ffff99177f980000(0000) knlGS:0000000000000000
[ 17.650200] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 17.650201] CR2: 00007f27ff972c10 CR3: 00000008642d6006 CR4: 00000000003606e0
[ 17.650201] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 17.650202] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 17.650202] Call Trace:
[ 17.650206] __check_object_size+0x9c/0x1a0
[ 17.650313] os_memcpy_to_user+0x21/0x40 [nvidia]
[ 17.650426] _nv009377rm+0xbf/0xe0 [nvidia]
[ 17.650511] ? _nv028067rm+0x79/0x90 [nvidia]
[ 17.650595] ? _nv028067rm+0x55/0x90 [nvidia]
[ 17.650669] ? _nv013694rm+0xee/0x100 [nvidia]
[ 17.650745] ? _nv015342rm+0x154/0x270 [nvidia]
[ 17.650839] ? _nv008310rm+0x134/0x1a0 [nvidia]
[ 17.650932] ? _nv008289rm+0x29c/0x2b0 [nvidia]
[ 17.651026] ? _nv001072rm+0xe/0x20 [nvidia]
[ 17.651124] ? _nv007316rm+0xd8/0x100 [nvidia]
[ 17.651222] ? _nv001171rm+0x627/0x830 [nvidia]
[ 17.651307] ? rm_ioctl+0x73/0x100 [nvidia]
[ 17.651358] ? nvidia_ioctl+0x80/0x720 [nvidia]
[ 17.651408] ? nvidia_ioctl+0x573/0x720 [nvidia]
[ 17.651459] ? nvidia_frontend_unlocked_ioctl+0x3e/0x50 [nvidia]
[ 17.651461] ? do_vfs_ioctl+0xa4/0x620
[ 17.651462] ? SyS_ioctl+0x74/0x80
[ 17.651464] ? do_syscall_64+0x74/0x180
[ 17.651466] ? entry_SYSCALL_64_after_hwframe+0x3d/0xa2
[ 17.651467] Code: 48 c7 c0 2b 7d 0b 88 48 0f 44 c2 41 50 51 41 51 48 89 f9 49 89 f1 4d 89 d8 4c 89 d2 48 89 c6 48 c7 c7 80 7d 0b 88 e8 32 79 e2 ff <0f> 0b 48 83 c4 18 c3 48 c7 c6 c9 e7 0c 88 49 89 f1 49 89 f3 eb
[ 17.651484] —[ end trace 1d3c74aa1a54c348 ]—

Fedora’s 4.16.5 has the option enabled

grep HARDENED_USERCOPY_FALLBACK /boot/config-4.16.5-300.fc28.x86_64
CONFIG_HARDENED_USERCOPY_FALLBACK=y

So it’s informational (although it does looks scary in dmesg :))

Does anyone know whether this causes performance issues (hardened usercopy performs additional checks, this can have overhead)?

More of a concern is that CONFIG_HARDENED_USERCOPY_FALLBACK is only a temporary option which will be removed at some time.

The nvidia driver uses an alternate stack, so it’s expected for it to do usercopies to and from that. I think we just need to allocate the alternate stacks with kmem_cache_create_usercopy() rather than kmem_cache_create().

We have internal bug number 2107220 filed to track this enhancement.

It seems to be fixed on 396.24.

[    1.040981] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  396.24  Thu Apr 26 00:10:09 PDT 2018 (using threaded interrupts)
[    1.041976] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  396.24  Wed Apr 25 23:54:18 PDT 2018
[    1.049701] nvidia-uvm: Loaded the UVM driver in 8 mode, major device number 243
[    1.050203] Linux agpgart interface v0.103
[    1.058829] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver

Kernel 4.16.8-1

Actually, the bug affects me too, I am on nvidia-390xx package, so the driver is version 390.59-1 and kernel linux 4.16.9-1. Unfortunately, I was not able to solve using spectre workaround yet CONFIG_HARDENED_USERCOPY_FALLBACK is enabled by default.

Here i report the dmesg:

[  283.703257] bbswitch: enabling discrete graphics
[  283.913406] ipmi message handler version 39.2
[  283.916181] ipmi device interface
[  284.048835] nvidia: module license 'NVIDIA' taints kernel.
[  284.048837] Disabling lock debugging due to kernel taint
[  284.065936] nvidia-nvlink: Nvlink Core is being initialized, major device number 240
[  284.066294] nvidia 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none
[  284.066439] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  390.59  Wed May  9 22:33:42 PDT 2018 (using threaded interrupts)
[  284.641250] ------------[ cut here ]------------
[  284.641254] Bad or missing usercopy whitelist? Kernel memory exposure attempt detected from SLUB object 'nvidia_stack_cache' (offset 11440, size 3)!
[  284.641266] WARNING: CPU: 2 PID: 1583 at mm/usercopy.c:81 usercopy_warn+0x7d/0xa0
[  284.641267] Modules linked in: nvidia(PO) ipmi_devintf ipmi_msghandler ccm rfcomm xt_tcpudp ip6t_rpfilter ip6t_REJECT nf_reject_ipv6 ipt_REJECT nf_reject_ipv4 xt_conntrack ip_set nfnetlink ebtable_nat ebtable_broute bridge stp llc ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 ip6table_mangle ip6table_raw ip6table_security iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack libcrc32c crc32c_generic iptable_mangle iptable_raw iptable_security ebtable_filter ebtables ip6table_filter ip6_tables snd_hda_codec_hdmi iptable_filter snd_hda_codec_realtek snd_hda_codec_generic joydev bnep bbswitch(O) 8021q mrp vboxnetflt(O) vboxnetadp(O) vboxpci(O) vboxdrv(O) btusb btrtl btbcm btintel bluetooth mousedev hid_generic usbhid ecdh_generic crc16 hid i915 arc4 pktcdvd intel_rapl
[  284.641306]  x86_pkg_temp_thermal intel_powerclamp coretemp iwldvm kvm_intel iTCO_wdt iTCO_vendor_support i2c_algo_bit mac80211 drm_kms_helper nls_iso8859_1 kvm nls_cp437 vfat fat ums_realtek iwlwifi drm uvcvideo irqbypass crct10dif_pclmul crc32_pclmul snd_hda_intel ghash_clmulni_intel fuse snd_hda_codec cryptd videobuf2_vmalloc intel_cstate snd_hda_core intel_uncore videobuf2_memops intel_rapl_perf snd_hwdep cfg80211 videobuf2_v4l2 input_leds psmouse snd_pcm videobuf2_common pcspkr i2c_i801 intel_gtt r8169 agpgart videodev snd_timer rfkill syscopyarea mii snd mei_me sysfillrect sysimgblt media lpc_ich mei soundcore shpchp fb_sys_fops rtc_cmos fujitsu_laptop battery sparse_keymap led_class evdev mac_hid ac usbip_host usbip_core sg crypto_user ip_tables x_tables uas usb_storage btrfs xor zstd_decompress
[  284.641351]  zstd_compress xxhash raid6_pq sr_mod cdrom sd_mod serio_raw atkbd libps2 ahci libahci xhci_pci ehci_pci libata xhci_hcd ehci_hcd crc32c_intel scsi_mod usbcore usb_common i8042 serio
[  284.641370] CPU: 2 PID: 1583 Comm: Xorg Tainted: P           O     4.16.9-1-ARCH #1
[  284.641371] Hardware name: FUJITSU LIFEBOOK AH532/G21/FJNBB1D, BIOS Version 1.10 09/13/2012
[  284.641373] RIP: 0010:usercopy_warn+0x7d/0xa0
[  284.641375] RSP: 0018:ffffb34f42abbb60 EFLAGS: 00010286
[  284.641376] RAX: 0000000000000000 RBX: 0000000000000003 RCX: 0000000000000001
[  284.641377] RDX: 0000000080000001 RSI: ffffffff96e70744 RDI: 00000000ffffffff
[  284.641378] RBP: 0000000000000001 R08: 0000000000000098 R09: 000000000000039a
[  284.641379] R10: 0000000000000000 R11: 0000000000000001 R12: ffff9dd7b5415cb3
[  284.641380] R13: ffff9dd7b5415cb0 R14: 0000000000000000 R15: ffff9dd7b5415cf8
[  284.641381] FS:  00007f474c6cf980(0000) GS:ffff9dd8bf280000(0000) knlGS:0000000000000000
[  284.641382] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  284.641383] CR2: 00007f47433ee130 CR3: 0000000035640005 CR4: 00000000001606e0
[  284.641384] Call Trace:
[  284.641390]  __check_object_size+0xf0/0x180
[  284.641604]  ? os_memcpy_to_user+0x21/0x40 [nvidia]
[  284.641789]  ? _nv009383rm+0xbf/0xe0 [nvidia]
[  284.641943]  ? _nv028084rm+0x79/0x90 [nvidia]
[  284.642096]  ? _nv028084rm+0x55/0x90 [nvidia]
[  284.642236]  ? _nv013694rm+0xee/0x100 [nvidia]
[  284.642375]  ? _nv015342rm+0x154/0x270 [nvidia]
[  284.642551]  ? _nv008316rm+0x134/0x1a0 [nvidia]
[  284.642727]  ? _nv008295rm+0x29c/0x2b0 [nvidia]
[  284.642902]  ? _nv001072rm+0xe/0x20 [nvidia]
[  284.643077]  ? _nv007322rm+0xd8/0x100 [nvidia]
[  284.643247]  ? _nv001171rm+0x627/0x830 [nvidia]
[  284.643417]  ? rm_ioctl+0x73/0x100 [nvidia]
[  284.643518]  ? nvidia_ioctl+0x54d/0x700 [nvidia]
[  284.643616]  ? nvidia_frontend_unlocked_ioctl+0x3a/0x50 [nvidia]
[  284.643619]  ? do_vfs_ioctl+0xa4/0x610
[  284.643621]  ? __fput+0x124/0x1e0
[  284.643624]  ? preempt_count_add+0x68/0xa0
[  284.643626]  ? SyS_ioctl+0x74/0x80
[  284.643629]  ? do_syscall_64+0x74/0x190
[  284.643631]  ? entry_SYSCALL_64_after_hwframe+0x3d/0xa2
[  284.643633] Code: aa e7 96 41 51 4d 89 d8 48 c7 c0 61 a8 e6 96 49 89 f1 48 89 f9 48 0f 45 c2 48 c7 c7 60 aa e7 96 4c 89 d2 48 89 c6 e8 bd d4 e3 ff <0f> 0b 48 83 c4 18 c3 48 c7 c6 44 07 e7 96 49 89 f1 49 89 f3 eb 
[  284.643664] ---[ end trace 2e47921ecd8939a1 ]---
[  284.719247] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  390.59  Wed May  9 21:59:27 PDT 2018
[  284.721235] nvidia-modeset: Allocated GPU:0 (GPU-a88e735c-0047-aab8-1ed0-668ef8cd0678) @ PCI:0000:01:00.0
[  284.775565] nvidia-modeset: Freed GPU:0 (GPU-a88e735c-0047-aab8-1ed0-668ef8cd0678) @ PCI:0000:01:00.0

I’m using a GT 1030 on the 4.17.2 kernel and am also seeing it with the 390.67 series:

[  +0.008177] resource sanity check: requesting [mem 0x000c0000-0x000fffff], which spans more than PCI Bus 0000:00 [mem 0x000d4000-0x000d7fff window]
[  +0.000115] caller _nv001169rm+0xe3/0x1d0 [nvidia] mapping multiple BARs
[  +0.236123] nvidia-modeset: Allocated GPU:0 (GPU-6fc57796-c315-ebc6-93c2-ad9bfc4beb06) @ PCI:0000:01:00.0
[  +0.106591] ------------[ cut here ]------------
[  +0.000002] Bad or missing usercopy whitelist? Kernel memory exposure attempt detected from SLUB object 'nvidia_stack_cache' (offset 11440, size 3)!
[  +0.000008] WARNING: CPU: 3 PID: 510 at mm/usercopy.c:81 usercopy_warn+0x7d/0xa0
[  +0.000001] Modules linked in: snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic nvidia_drm(PO) nvidia_modeset(PO) nvidia(PO) intel_rapl x86_pkg_temp_thermal intel_powerclamp kvm_intel kvm drm_kms_helper irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc snd_hda_intel drm snd_hda_codec aesni_intel snd_hda_core gpio_ich iTCO_wdt iTCO_vendor_support aes_x86_64 crypto_simd snd_hwdep cryptd glue_helper mxm_wmi agpgart snd_pcm intel_cstate ipmi_devintf ipmi_msghandler input_leds syscopyarea snd_timer intel_uncore sysfillrect mei_me sysimgblt intel_smartconnect intel_rapl_perf pcspkr joydev led_class mousedev i2c_i801 e1000e lpc_ich fb_sys_fops mei snd soundcore shpchp rtc_cmos evdev mac_hid wmi bridge stp llc ip6t_REJECT nf_reject_ipv6 xt_hl ip6t_rt nf_conntrack_ipv6 nf_defrag_ipv6
[  +0.000024]  ipt_REJECT nf_reject_ipv4 xt_limit xt_tcpudp xt_addrtype nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack ip6table_filter ip6_tables nf_conntrack_netbios_ns nf_conntrack_broadcast nf_nat_ftp nf_nat nf_conntrack_ftp nf_conntrack libcrc32c iptable_filter xt_iprange xt_mark xt_NFQUEUE nct6775 hwmon_vid coretemp ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 fscrypto hid_microsoft sr_mod cdrom sd_mod hid_generic usbhid hid ahci libahci xhci_pci crc32c_intel libata ehci_pci xhci_hcd ehci_hcd scsi_mod usbcore usb_common
[  +0.000018] CPU: 3 PID: 510 Comm: Xorg Tainted: P           O      4.17.2-1-ARCH #1
[  +0.000000] Hardware name: MSI MS-7888/Z97 MPOWER MAX AC (MS-7888), BIOS V1.11 02/16/2016
[  +0.000001] RIP: 0010:usercopy_warn+0x7d/0xa0
[  +0.000001] RSP: 0018:ffffad7a8804fb60 EFLAGS: 00010286
[  +0.000001] RAX: 0000000000000000 RBX: 0000000000000003 RCX: 0000000000000001
[  +0.000000] RDX: 0000000080000001 RSI: ffffffffa7e83166 RDI: 00000000ffffffff
[  +0.000001] RBP: 0000000000000001 R08: 0000000000000098 R09: 0000000000000383
[  +0.000000] R10: 0000000000000000 R11: 0000000000000001 R12: ffffa10f38a1dcb3
[  +0.000001] R13: ffffa10f38a1dcb0 R14: 0000000000000000 R15: ffffa10f38a1dcf8
[  +0.000000] FS:  00007f6768fb6980(0000) GS:ffffa10f5ecc0000(0000) knlGS:0000000000000000
[  +0.000001] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  +0.000001] CR2: 00007f675fd10004 CR3: 00000007f1048006 CR4: 00000000001606e0
[  +0.000000] Call Trace:
[  +0.000003]  __check_object_size+0xf0/0x180
[  +0.000105]  os_memcpy_to_user+0x21/0x40 [nvidia]
[  +0.000107]  _nv009384rm+0xbf/0xe0 [nvidia]
[  +0.000093]  ? _nv028088rm+0x79/0x90 [nvidia]
[  +0.000087]  ? _nv028088rm+0x55/0x90 [nvidia]
[  +0.000079]  ? _nv013695rm+0xee/0x100 [nvidia]
[  +0.000081]  ? _nv015343rm+0x154/0x270 [nvidia]
[  +0.000099]  ? _nv008317rm+0x134/0x1a0 [nvidia]
[  +0.000099]  ? _nv008296rm+0x29c/0x2b0 [nvidia]
[  +0.000098]  ? _nv001072rm+0xe/0x20 [nvidia]
[  +0.000097]  ? _nv007324rm+0xd8/0x100 [nvidia]
[  +0.000096]  ? _nv001171rm+0x627/0x830 [nvidia]
[  +0.000096]  ? rm_ioctl+0x73/0x100 [nvidia]
[  +0.000050]  ? nvidia_ioctl+0x60/0x710 [nvidia]
[  +0.000049]  ? nvidia_ioctl+0x55a/0x710 [nvidia]
[  +0.000047]  ? nvidia_frontend_unlocked_ioctl+0x3a/0x50 [nvidia]
[  +0.000002]  ? do_vfs_ioctl+0xa4/0x610
[  +0.000002]  ? __do_page_fault+0x237/0x570
[  +0.000001]  ? ksys_ioctl+0x60/0x90
[  +0.000001]  ? __x64_sys_ioctl+0x16/0x20
[  +0.000002]  ? do_syscall_64+0x5b/0x170
[  +0.000002]  ? entry_SYSCALL_64_after_hwframe+0x44/0xa9
[  +0.000001] Code: d5 e8 a7 41 51 4d 89 d8 48 c7 c0 ec c9 e7 a7 49 89 f1 48 89 f9 48 0f 45 c2 48 c7 c7 58 d5 e8 a7 4c 89 d2 48 89 c6 e8 5d f9 e2 ff <0f> 0b 48 83 c4 18 c3 48 c7 c6 66 31 e8 a7 49 89 f1 49 89 f3 eb 
[  +0.000016] ---[ end trace 1a5065b7e24a73d0 ]---

This patch: https://bugzilla.redhat.com/attachment.cgi?id=1425704
from here: https://bugzilla.redhat.com/show_bug.cgi?id=1570493
should fix the issue.

@nvidia.com9las3 - Indeed it does, thank you for posting the links:

[  +0.058458] resource sanity check: requesting [mem 0x000c0000-0x000fffff], which spans more than PCI Bus 0000:00 [mem 0x000d4000-0x000d7fff window]
[  +0.000113] caller _nv001169rm+0xe3/0x1d0 [nvidia] mapping multiple BARs
[  +0.222513] nvidia-modeset: Allocated GPU:0 (GPU-6fc57796-c315-ebc6-93c2-ad9bfc4beb06) @ PCI:0000:01:00.0
[  +2.027649] e1000e: eno1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx

Is nvidia upstream planning on applying this patch to a future release of the 390.xx driver?

Asus G752VS, Solus OS, Nvidia 390.87, Kernel 4.18.11

Dmesg:

[    5.211247] Bad or missing usercopy whitelist? Kernel memory exposure attempt detected from SLUB object 'nvidia_stack_cache' (offset 11440, size 3)!
[    5.211253] WARNING: CPU: 2 PID: 708 at mm/usercopy.c:81 usercopy_warn+0x7d/0xa0
[    5.211254] Modules linked in: hid_multitouch arc4 nvidia_uvm(PO) nvidia_drm(PO) asus_nb_wmi nvidia_modeset(PO) asus_wmi sparse_keymap iTCO_wdt iTCO_vendor_support snd_hda_codec_realtek intel_rapl nvidia(PO) snd_hda_codec_generic intel_wmi_thunderbolt iwlmvm uvcvideo x86_pkg_temp_thermal intel_powerclamp snd_hda_intel coretemp videobuf2_vmalloc mac80211 videobuf2_memops snd_hda_codec videobuf2_v4l2 kvm_intel videobuf2_common snd_hda_core drm_kms_helper hid_asus iwlwifi syscopyarea videodev sysfillrect kvm sysimgblt fb_sys_fops snd_hwdep ip6t_REJECT joydev media nf_reject_ipv6 irqbypass snd_pcm drm r8169 nf_log_ipv6 evdev snd_timer ipmi_devintf cfg80211 snd efivars ipmi_msghandler mei_me rfkill soundcore i2c_designware_platform mii mei i2c_i801 i2c_designware_core xt_hl ip6t_rt thermal wmi nf_conntrack_ipv6
[    5.211281]  nf_defrag_ipv6 tpm_tis ac tpm_tis_core tpm video battery ipt_REJECT rng_core nf_reject_ipv4 asus_wireless acpi_pad nf_log_ipv4 button nf_log_common xt_LOG xt_limit xt_tcpudp xt_addrtype nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack ip6table_filter ip6_tables nf_conntrack_netbios_ns nf_conntrack_broadcast nf_nat_ftp nf_nat nf_conntrack_ftp nf_conntrack iptable_filter ip_tables x_tables hid_generic usbhid sr_mod sd_mod cdrom xhci_pci xhci_hcd serio_raw ahci libahci usbcore usb_common i2c_hid hid
[    5.211301] CPU: 2 PID: 708 Comm: Xorg Tainted: P           O      4.18.11-93.current #1
[    5.211302] Hardware name: ASUSTeK COMPUTER INC. G752VS/G752VS, BIOS G752VS.310 06/30/2017
[    5.211303] RIP: 0010:usercopy_warn+0x7d/0xa0
[    5.211303] Code: fb 81 41 51 4d 89 d8 48 c7 c0 5d 81 fa 81 49 89 f1 48 89 f9 48 0f 45 c2 48 c7 c7 78 59 fb 81 4c 89 d2 48 89 c6 e8 cd b0 e4 ff <0f> 0b 48 83 c4 18 c3 48 c7 c6 d2 52 fd 81 49 89 f1 49 89 f3 eb 96 
[    5.211323] RSP: 0018:ffffc90002b6fb60 EFLAGS: 00010286
[    5.211324] RAX: 0000000000000000 RBX: 0000000000000003 RCX: 0000000000000001
[    5.211325] RDX: 0000000080000001 RSI: ffffffff81fd52d2 RDI: 00000000ffffffff
[    5.211325] RBP: 0000000000000001 R08: 0000000000000001 R09: 00000000000003a0
[    5.211326] R10: 0000000000000003 R11: 0000000000000000 R12: ffff88049ebdacb3
[    5.211326] R13: ffff88049ebdacb0 R14: 0000000000000000 R15: ffff88049ebdacf8
[    5.211327] FS:  00007fbc439e9080(0000) GS:ffff8804c6480000(0000) knlGS:0000000000000000
[    5.211328] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    5.211329] CR2: 00007fbc40067d20 CR3: 00000004ae876002 CR4: 00000000003606e0
[    5.211330] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[    5.211330] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[    5.211331] Call Trace:
[    5.211334]  __check_object_size+0xf5/0x179
[    5.211433]  os_memcpy_to_user+0x21/0x40 [nvidia]
[    5.211537]  _nv009384rm+0xbf/0xe0 [nvidia]
[    5.211629]  ? _nv028097rm+0x79/0x90 [nvidia]
[    5.211719]  ? _nv028097rm+0x55/0x90 [nvidia]
[    5.211804]  ? _nv013699rm+0xee/0x100 [nvidia]
[    5.211888]  ? _nv015347rm+0x154/0x270 [nvidia]
[    5.211990]  ? _nv008317rm+0x134/0x1a0 [nvidia]
[    5.212118]  ? _nv008296rm+0x29c/0x2b0 [nvidia]
[    5.212213]  ? _nv001072rm+0xe/0x20 [nvidia]
[    5.212309]  ? _nv007324rm+0xd8/0x100 [nvidia]
[    5.212405]  ? _nv001171rm+0x627/0x830 [nvidia]
[    5.212502]  ? rm_ioctl+0x73/0x100 [nvidia]
[    5.212557]  ? nvidia_ioctl+0x55a/0x710 [nvidia]
[    5.212612]  ? nvidia_frontend_unlocked_ioctl+0x3a/0x50 [nvidia]
[    5.212614]  ? do_vfs_ioctl+0xa4/0x620
[    5.212616]  ? syscall_slow_exit_work+0x19b/0x1b0
[    5.212617]  ? syscall_trace_enter+0x1d3/0x2d0
[    5.212619]  ? ksys_ioctl+0x60/0x90
[    5.212620]  ? __x64_sys_ioctl+0x16/0x20
[    5.212621]  ? do_syscall_64+0x65/0x180
[    5.212623]  ? entry_SYSCALL_64_after_hwframe+0x44/0xa9
[    5.212624] ---[ end trace ec5603f740933e7a ]---
[    6.599393] fuse init (API version 7.27)

Related bug: https://forums.geforce.com/default/topic/1098094/geforce-drivers/kernel-crash-at-_nv009384rm-os_memcpy_to_user-bad-or-missing-usercopy-whitelist-/

It is fixed in later version of the driver. I have 415.27.

Please, fix the same issue with nvidia driver v340.107.