Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #196294 > unrolled thread

Nvidia 340 driver bug

Started byPétùr <peturvilj@gmail.com>
First post2018-05-31 16:30 +0200
Last post2018-06-03 22:00 +0200
Articles 9 — 3 participants

Back to article view | Back to linux.debian.user


Contents

  Nvidia 340 driver bug Pétùr <peturvilj@gmail.com> - 2018-05-31 16:30 +0200
    Re: Nvidia 340 driver bug floris <jkfloris@dds.nl> - 2018-06-01 19:00 +0200
      Re: Re: Nvidia 340 driver bug dekkzz78@gmail.com - 2018-06-02 17:10 +0200
        Re: Nvidia 340 driver bug floris <jkfloris@dds.nl> - 2018-06-03 21:10 +0200
        Re: Nvidia 340 driver bug Pétùr <peturvilj@gmail.com> - 2018-07-03 12:10 +0200
      Re: Nvidia 340 driver bug Pétùr <peturvilj@gmail.com> - 2018-06-02 17:50 +0200
        Re: Nvidia 340 driver bug Pétùr <peturvilj@gmail.com> - 2018-06-02 18:10 +0200
        Re: Nvidia 340 driver bug floris <jkfloris@dds.nl> - 2018-06-03 20:50 +0200
          Nvidia 340 driver bug Pétùr <peturvilj@gmail.com> - 2018-06-03 22:00 +0200

#196294 — Nvidia 340 driver bug

FromPétùr <peturvilj@gmail.com>
Date2018-05-31 16:30 +0200
SubjectNvidia 340 driver bug
Message-ID<vVwKt-6hp-7@gated-at.bofh.it>
I have a recurrent bug with the nvidia 340 driver.

Here is the trace. Any idea is welcomed.

Pétùr

[    6.748358] ------------[ cut here ]------------
[    6.748361] Bad or missing usercopy whitelist? Kernel memory exposure attempt detected from SLUB object 'nvidia_stack_t' (offset 11864, size 3)!
[    6.748371] WARNING: CPU: 6 PID: 702 at /build/linux-43CEzF/linux-4.16.12/mm/usercopy.c:81 usercopy_warn+0x7e/0xa0
[    6.748372] Modules linked in: snd_hda_codec_hdmi pktcdvd arc4 pcmcia dell_rbtn iwldvm dell_wmi wmi_bmof iTCO_wdt sparse_keymap iTCO_vendor_support snd_hda_codec_idt uvcvideo dell_laptop intel_powerclamp snd_hda_codec_generic mac80211 dell_smbios coretemp videobuf2_vmalloc dell_wmi_descriptor videobuf2_memops kvm_intel dcdbas videobuf2_v4l2 dell_smm_hwmon snd_hda_intel videobuf2_common kvm videodev irqbypass snd_hda_codec iwlwifi intel_cstate media evdev yenta_socket joydev snd_hda_core intel_uncore snd_hwdep serio_raw snd_pcm pcspkr pcmcia_rsrc sg cfg80211 pcmcia_core snd_timer rfkill snd mei_me soundcore i7core_edac mei lpc_ich shpchp nvidia(PO) wmi battery binfmt_misc dell_smo8800 video ac acpi_cpufreq button drm parport_pc ppdev lp parport sunrpc ip_tables x_tables autofs4 ext4 crc16 mbcache
[    6.748407]  jbd2 fscrypto ecb crypto_simd cryptd glue_helper aes_x86_64 raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor hid_logitech_hidpp hid_logitech_dj hid_generic usbhid hid raid6_pq libcrc32c crc32c_generic raid1 raid0 multipath linear md_mod sr_mod cdrom sd_mod sdhci_pci ehci_pci cqhci ahci libahci ehci_hcd libata crc32c_intel sdhci psmouse firewire_ohci i2c_i801 scsi_mod firewire_core mmc_core crc_itu_t usbcore e1000e usb_common
[    6.748432] CPU: 6 PID: 702 Comm: Xorg Tainted: P           O     4.16.0-2-amd64 #1 Debian 4.16.12-1
[    6.748432] Hardware name: Dell Inc. Precision M4500/, BIOS A14 07/11/2013
[    6.748434] RIP: 0010:usercopy_warn+0x7e/0xa0
[    6.748435] RSP: 0018:ffffa77b01ef3bb8 EFLAGS: 00010286
[    6.748436] RAX: 0000000000000000 RBX: ffff98d83805ae58 RCX: 0000000000000006
[    6.748437] RDX: 0000000000000007 RSI: 0000000000000082 RDI: ffff98d86fd96730
[    6.748438] RBP: 0000000000000003 R08: 000000000000035b R09: 0000000000000004
[    6.748438] R10: ffffffffa3a77220 R11: 0000000000000001 R12: 0000000000000001
[    6.748439] R13: ffff98d83805ae5b R14: ffff98d83805ae58 R15: ffff98d83805aea0
[    6.748440] FS:  00007fb60fa256c0(0000) GS:ffff98d86fd80000(0000) knlGS:0000000000000000
[    6.748441] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    6.748442] CR2: 00007fb6069ca000 CR3: 000000020e118000 CR4: 00000000000006e0
[    6.748443] Call Trace:
[    6.748448]  __check_object_size+0x9c/0x1a0
[    6.748540]  os_memcpy_to_user+0x21/0x40 [nvidia]
[    6.748618]  _nv001372rm+0xa5/0x260 [nvidia]
[    6.748696]  ? _nv004784rm+0x4eba/0x5500 [nvidia]
[    6.748773]  ? _nv004331rm+0xec/0xf0 [nvidia]
[    6.748849]  ? _nv004326rm+0xca/0x650 [nvidia]
[    6.748923]  ? _nv015126rm+0x576/0x5c0 [nvidia]
[    6.748999]  ? _nv000694rm+0x2e/0x60 [nvidia]
[    6.749068]  ? _nv000789rm+0x5f5/0x8b0 [nvidia]
[    6.749134]  ? rm_ioctl+0x73/0x100 [nvidia]
[    6.749182]  ? nvidia_ioctl+0x221/0x460 [nvidia]
[    6.749231]  ? nvidia_frontend_ioctl+0x2d/0x60 [nvidia]
[    6.749279]  ? nvidia_frontend_unlocked_ioctl+0x19/0x20 [nvidia]
[    6.749281]  ? do_vfs_ioctl+0xa4/0x630
[    6.749283]  ? vfs_write+0x12f/0x1a0
[    6.749284]  ? SyS_ioctl+0x74/0x80
[    6.749287]  ? do_syscall_64+0x6c/0x130
[    6.749290]  ? entry_SYSCALL_64_after_hwframe+0x3d/0xa2
[    6.749291] Code: 48 c7 c0 f1 d2 a3 a3 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 38 d3 a3 a3 e8 62 4c e4 ff <0f> 0b 48 83 c4 18 c3 48 c7 c6 3c d3 a4 a3 49 89 f1 49 89 f3 eb 
[    6.749313] ---[ end trace dc2afdad83c552e7 ]---

[toc] | [next] | [standalone]


#196333

Fromfloris <jkfloris@dds.nl>
Date2018-06-01 19:00 +0200
Message-ID<vVVzb-3IW-1@gated-at.bofh.it>
In reply to#196294
Pétùr schreef op 2018-05-31 16:20:
> I have a recurrent bug with the nvidia 340 driver.
> 
> Here is the trace. Any idea is welcomed.
> 
> Pétùr
> 
> [    6.748358] ------------[ cut here ]------------
> [    6.748361] Bad or missing usercopy whitelist? Kernel memory
> exposure attempt detected from SLUB object 'nvidia_stack_t' (offset
> 11864, size 3)!
> [    6.748371] WARNING: CPU: 6 PID: 702 at
> /build/linux-43CEzF/linux-4.16.12/mm/usercopy.c:81
> usercopy_warn+0x7e/0xa0
> [    6.748372] Modules linked in: snd_hda_codec_hdmi pktcdvd arc4
> pcmcia dell_rbtn iwldvm dell_wmi wmi_bmof iTCO_wdt sparse_keymap
> iTCO_vendor_support snd_hda_codec_idt uvcvideo dell_laptop
> intel_powerclamp snd_hda_codec_generic mac80211 dell_smbios coretemp
> videobuf2_vmalloc dell_wmi_descriptor videobuf2_memops kvm_intel
> dcdbas videobuf2_v4l2 dell_smm_hwmon snd_hda_intel videobuf2_common
> kvm videodev irqbypass snd_hda_codec iwlwifi intel_cstate media evdev
> yenta_socket joydev snd_hda_core intel_uncore snd_hwdep serio_raw
> snd_pcm pcspkr pcmcia_rsrc sg cfg80211 pcmcia_core snd_timer rfkill
> snd mei_me soundcore i7core_edac mei lpc_ich shpchp nvidia(PO) wmi
> battery binfmt_misc dell_smo8800 video ac acpi_cpufreq button drm
> parport_pc ppdev lp parport sunrpc ip_tables x_tables autofs4 ext4
> crc16 mbcache
> [    6.748407]  jbd2 fscrypto ecb crypto_simd cryptd glue_helper
> aes_x86_64 raid10 raid456 async_raid6_recov async_memcpy async_pq
> async_xor async_tx xor hid_logitech_hidpp hid_logitech_dj hid_generic
> usbhid hid raid6_pq libcrc32c crc32c_generic raid1 raid0 multipath
> linear md_mod sr_mod cdrom sd_mod sdhci_pci ehci_pci cqhci ahci
> libahci ehci_hcd libata crc32c_intel sdhci psmouse firewire_ohci
> i2c_i801 scsi_mod firewire_core mmc_core crc_itu_t usbcore e1000e
> usb_common
> [    6.748432] CPU: 6 PID: 702 Comm: Xorg Tainted: P           O
> 4.16.0-2-amd64 #1 Debian 4.16.12-1
> [    6.748432] Hardware name: Dell Inc. Precision M4500/, BIOS A14 
> 07/11/2013
> [    6.748434] RIP: 0010:usercopy_warn+0x7e/0xa0
> [    6.748435] RSP: 0018:ffffa77b01ef3bb8 EFLAGS: 00010286
> [    6.748436] RAX: 0000000000000000 RBX: ffff98d83805ae58 RCX: 
> 0000000000000006
> [    6.748437] RDX: 0000000000000007 RSI: 0000000000000082 RDI: 
> ffff98d86fd96730
> [    6.748438] RBP: 0000000000000003 R08: 000000000000035b R09: 
> 0000000000000004
> [    6.748438] R10: ffffffffa3a77220 R11: 0000000000000001 R12: 
> 0000000000000001
> [    6.748439] R13: ffff98d83805ae5b R14: ffff98d83805ae58 R15: 
> ffff98d83805aea0
> [    6.748440] FS:  00007fb60fa256c0(0000) GS:ffff98d86fd80000(0000)
> knlGS:0000000000000000
> [    6.748441] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> [    6.748442] CR2: 00007fb6069ca000 CR3: 000000020e118000 CR4: 
> 00000000000006e0
> [    6.748443] Call Trace:
> [    6.748448]  __check_object_size+0x9c/0x1a0
> [    6.748540]  os_memcpy_to_user+0x21/0x40 [nvidia]
> [    6.748618]  _nv001372rm+0xa5/0x260 [nvidia]
> [    6.748696]  ? _nv004784rm+0x4eba/0x5500 [nvidia]
> [    6.748773]  ? _nv004331rm+0xec/0xf0 [nvidia]
> [    6.748849]  ? _nv004326rm+0xca/0x650 [nvidia]
> [    6.748923]  ? _nv015126rm+0x576/0x5c0 [nvidia]
> [    6.748999]  ? _nv000694rm+0x2e/0x60 [nvidia]
> [    6.749068]  ? _nv000789rm+0x5f5/0x8b0 [nvidia]
> [    6.749134]  ? rm_ioctl+0x73/0x100 [nvidia]
> [    6.749182]  ? nvidia_ioctl+0x221/0x460 [nvidia]
> [    6.749231]  ? nvidia_frontend_ioctl+0x2d/0x60 [nvidia]
> [    6.749279]  ? nvidia_frontend_unlocked_ioctl+0x19/0x20 [nvidia]
> [    6.749281]  ? do_vfs_ioctl+0xa4/0x630
> [    6.749283]  ? vfs_write+0x12f/0x1a0
> [    6.749284]  ? SyS_ioctl+0x74/0x80
> [    6.749287]  ? do_syscall_64+0x6c/0x130
> [    6.749290]  ? entry_SYSCALL_64_after_hwframe+0x3d/0xa2
> [    6.749291] Code: 48 c7 c0 f1 d2 a3 a3 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 38 d3 a3 a3 e8
> 62 4c e4 ff <0f> 0b 48 83 c4 18 c3 48 c7 c6 3c d3 a4 a3 49 89 f1 49 89
> f3 eb [    6.749313] ---[ end trace dc2afdad83c552e7 ]---

This is a bug in the nvidia driver module. There is not much you can do 
until it is fixed upstream.

https://devtalk.nvidia.com/default/topic/1031067/
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=899201

---
Floris

[toc] | [prev] | [next] | [standalone]


#196350

Fromdekkzz78@gmail.com
Date2018-06-02 17:10 +0200
Message-ID<vWgki-7zU-3@gated-at.bofh.it>
In reply to#196333

[Multipart message — attachments visible in raw view] — view raw

On 06/01, floris wrote:
>Pétùr schreef op 2018-05-31 16:20:
>>I have a recurrent bug with the nvidia 340 driver.
>>
>>Here is the trace. Any idea is welcomed.
>>
>>Pétùr
>>
>>[    6.748358] ------------[ cut here ]------------

snip

>f3 eb [    6.749313] ---[ end trace dc2afdad83c552e7 ]---
>
>This is a bug in the nvidia driver module. There is not much you can 
>do until it is fixed upstream.
>
>https://devtalk.nvidia.com/default/topic/1031067/
>https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=899201
>

That devtalk is for 390 i don't see any reference to 340. FWIW i've blocked updating xorg-server 1.20 on 2 nvidia machines that run 340, as of today no fix on debian or arch. 

-- 
regards.....

Thinkpad T60p 2.33Ghz 2GB SXGA+

Jabber IM: dekkzz76@jabber.hot-chilli.net

[toc] | [prev] | [next] | [standalone]


#196373

Fromfloris <jkfloris@dds.nl>
Date2018-06-03 21:10 +0200
Message-ID<vWGy6-7rl-29@gated-at.bofh.it>
In reply to#196350
dekkzz78@gmail.com schreef op 2018-06-02 17:17:
> On 06/01, floris wrote:
>> Pétùr schreef op 2018-05-31 16:20:
>>> I have a recurrent bug with the nvidia 340 driver.
>>> 
>>> Here is the trace. Any idea is welcomed.
>>> 
>>> Pétùr
>>> 
>>> [    6.748358] ------------[ cut here ]------------
> 
> snip
> 
>> f3 eb [    6.749313] ---[ end trace dc2afdad83c552e7 ]---
>> 
>> This is a bug in the nvidia driver module. There is not much you can 
>> do until it is fixed upstream.
>> 
>> https://devtalk.nvidia.com/default/topic/1031067/
>> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=899201
>> 
> 
> That devtalk is for 390 i don't see any reference to 340. FWIW i've
> blocked updating xorg-server 1.20 on 2 nvidia machines that run 340,
> as of today no fix on debian or arch.

xserver-xorg-video-nvidia-legacy-340xx depends on xserver-xorg-core < 
2:1.19.99, so you don't have to block the xserver manually.

---
Floris

[toc] | [prev] | [next] | [standalone]


#197160

FromPétùr <peturvilj@gmail.com>
Date2018-07-03 12:10 +0200
Message-ID<w7qpX-2jp-13@gated-at.bofh.it>
In reply to#196350
Le 02/06/2018 à 17:17, dekkzz78@gmail.com a écrit :
> 
> 
> This is a bug in the nvidia driver module. There is not much you can do
> until it is fixed upstream.
> 
> https://devtalk.nvidia.com/default/topic/1031067/
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=899201


There is a patch :

https://bugzilla.redhat.com/attachment.cgi?id=1425704

https://bugzilla.redhat.com/show_bug.cgi?id=1570493

Pétùr

[toc] | [prev] | [next] | [standalone]


#196354

FromPétùr <peturvilj@gmail.com>
Date2018-06-02 17:50 +0200
Message-ID<vWgX0-7LZ-7@gated-at.bofh.it>
In reply to#196333
> This is a bug in the nvidia driver module. There is not much you can do
> until it is fixed upstream.

Thanks!

I would like to use the nouveau driver waiting for the fix.

However I an unable to boot X with the nouveau driver.

I did:

# apt-get purge nvidia.
# apt-get install --reinstall xserver-xorg xserver-xorg-video-nouveau
# reboot

I have no xorg.conf.

$ startx

says:

XF86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)

[toc] | [prev] | [next] | [standalone]


#196355

FromPétùr <peturvilj@gmail.com>
Date2018-06-02 18:10 +0200
Message-ID<vWhgl-874-3@gated-at.bofh.it>
In reply to#196354
Le 02/06/2018 à 17:46, Pétùr a écrit :
> 
>> This is a bug in the nvidia driver module. There is not much you can do
>> until it is fixed upstream.
> 
> Thanks!
> 
> I would like to use the nouveau driver waiting for the fix.
> 
> However I an unable to boot X with the nouveau driver.

Here is the log for the nouveau driver fail:


> [   104.269] (II) NOUVEAU(0): EDID vendor "SEC", prod id 21579
> [   104.269] (II) NOUVEAU(0): DDCModeFromDetailedTiming: Ignoring tiny 0x822 mode
> [   104.269] (II) NOUVEAU(0): DDCModeFromDetailedTiming: Ignoring tiny 0x0 mode
> [   104.269] (II) NOUVEAU(0): Printing DDC gathered Modelines:
> [   104.269] (II) NOUVEAU(0): Modeline "1600x900"x0.0  107.80  1600 1648 1680 1932  900 902 907 930 +hsync -vsync (55.8 kHz eP)
> [   104.269] (II) NOUVEAU(0): Modeline "1600x900"x0.0   71.87  1600 1648 1680 1932  900 902 907 930 +hsync -vsync (37.2 kHz e)
> [   104.422] (EE) 
> [   104.422] (EE) Backtrace:
> [   104.424] (EE) 0: /usr/lib/xorg/Xorg (xorg_backtrace+0x4d) [0x558f4c3b46fd]
> [   104.424] (EE) 1: /usr/lib/xorg/Xorg (0x558f4c201000+0x1b73b9) [0x558f4c3b83b9]
> [   104.424] (EE) 2: /lib/x86_64-linux-gnu/libpthread.so.0 (0x7fad3be58000+0x11f50) [0x7fad3be69f50]
> [   104.424] (EE) 3: /usr/lib/xorg/Xorg (miRenderColorToPixel+0xe) [0x558f4c328a9e]
> [   104.424] (EE) 4: /usr/lib/xorg/modules/libexa.so (0x7fad38900000+0xf12b) [0x7fad3890f12b]
> [   104.424] (EE) 5: /usr/lib/xorg/Xorg (0x558f4c201000+0x13a786) [0x558f4c33b786]
> [   104.424] (EE) 6: /usr/lib/xorg/Xorg (0x558f4c201000+0x12eaec) [0x558f4c32faec]
> [   104.424] (EE) 7: /usr/lib/xorg/Xorg (0x558f4c201000+0x5b008) [0x558f4c25c008]
> [   104.424] (EE) 8: /usr/lib/xorg/Xorg (0x558f4c201000+0x5f008) [0x558f4c260008]
> [   104.424] (EE) 9: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+0xe7) [0x7fad3babfa87]
> [   104.425] (EE) 10: /usr/lib/xorg/Xorg (_start+0x2a) [0x558f4c249d0a]
> [   104.425] (EE) 
> [   104.425] (EE) Segmentation fault at address 0x8
> [   104.425] (EE) 
> Fatal server error:
> [   104.425] (EE) Caught signal 11 (Segmentation fault). Server aborting
> [   104.425] (EE) 
> [   104.425] (EE) 
> Please consult the The X.Org Foundation support 
> 	 at http://wiki.x.org
>  for help. 
> [   104.425] (EE) Please also check the log file at "/home/pierre/.local/share/xorg/Xorg.0.log" for additional information.
> [   104.425] (EE) 
> [   104.425] (II) AIGLX: Suspending AIGLX clients for VT switch
> [   104.425] (II) NOUVEAU(0): NVLeaveVT is called.
> [   104.435] (EE) Server terminated with error (1). Closing log file.

[toc] | [prev] | [next] | [standalone]


#196372

Fromfloris <jkfloris@dds.nl>
Date2018-06-03 20:50 +0200
Message-ID<vWGeK-75B-3@gated-at.bofh.it>
In reply to#196354
Pétùr schreef op 2018-06-02 17:46:
>> This is a bug in the nvidia driver module. There is not much you can 
>> do
>> until it is fixed upstream.
> 
> Thanks!
> 
> I would like to use the nouveau driver waiting for the fix.
> 
> However I an unable to boot X with the nouveau driver.
> 
> I did:
> 
> # apt-get purge nvidia.
> # apt-get install --reinstall xserver-xorg xserver-xorg-video-nouveau
> # reboot
> 
> I have no xorg.conf.
> 
> $ startx
> 
> says:
> 
> XF86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)

Did you also removed the NVidia symlinks? I'm not sure if they are 
removed when you purge the NVidia packages.

Try:
sudo update-glx --config glx
If there are any options choose mesa

and rebuild initramfs with:
sudo update-initramfs -u


---
Floris

[toc] | [prev] | [next] | [standalone]


#196377

FromPétùr <peturvilj@gmail.com>
Date2018-06-03 22:00 +0200
Message-ID<vWHkt-7Gt-3@gated-at.bofh.it>
In reply to#196372
Le 03/06/2018 à 20:47, floris a écrit :
> Pétùr schreef op 2018-06-02 17:46:
>>> This is a bug in the nvidia driver module. There is not much you can do
>>> until it is fixed upstream.
>>
>> Thanks!
>>
>> I would like to use the nouveau driver waiting for the fix.
>>
>> However I an unable to boot X with the nouveau driver.
>>
>> I did:
>>
>> # apt-get purge nvidia.
>> # apt-get install --reinstall xserver-xorg xserver-xorg-video-nouveau
>> # reboot
>>
>> I have no xorg.conf.
>>
>> $ startx
>>
>> says:
>>
>> XF86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
> 
> Did you also removed the NVidia symlinks? I'm not sure if they are
> removed when you purge the NVidia packages.
> 
> Try:
> sudo update-glx --config glx
> If there are any options choose mesa
> 
> and rebuild initramfs with:
> sudo update-initramfs -u

Thanks for the idea.

In fact, there is a bug with xorg-server-1.20.0 and the "compositor" of
Xfce.

See this bug report and message:

https://lists.debian.org/debian-user/2018/05/msg01008.html

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=900550

For the ones affected, if X doesn't start, you have to downgrade
xserver-xorg-core and xserver-org-video-nouveau (apt install
xserver-xorg-core/testing xserver-xorg-video-nouveau/testing), then you
can start X and uncheck the compositor activation check in Xfce. After
that, you can upgrade back the package and reboot.

Pétùr

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web