[Desktop-packages] [Bug 1750937] Re: 4.4.0-116 Kernel update on 2/21 breaks Nvidia drivers (on 14.04 and 16.04) by an insufficient compiler!
I manage 300+ machines that run openafs that has a dkms built kernel module like the nvidia module that needs to be built. I also manage dozens of nvidia gpu servers where users have sudo access and can install anything they want. Here is a snippet of what I found. Note this is for 16.04 systems but 14.04 systems running the 4.4.0-116 kernel will have similar problems: Short story, if your machine is not using the Ubuntu supplied gcc you will have issues with afs and nvidia built kernel modules or any dkms built kernel modules. Longer story below. NOTE! this problem affects at least, openafs, nvidia, virtual box or any dkms built module. I am going to forward this info to gr...@cs.unc.edu. This started with the latest Ubuntu 4.4.0-116 kernel version. Looking through that bug and testing took me hours. The short story is the machines having issues with openafs.ko module are ones that have the Ubuntu toolchain ppa that has a gcc compiler suite that does not support the "retpoline" feature which was recently put in to fix the Spectre security issue. The nvidia module will also have issues. The machines using the Ubuntu supplied gcc compiler are the ones that are not having issues. But, host olympia was a special case. The compiler that works, using "gcc -v" gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.9) The ones that don't work like host bvisionserver8: gcc version 5.4.1 20160904 You can use "apt-cache policy gcc" to show what repo the compiler comes from. WARNING, /usr/bin/gcc is a link to /usr/bin/gcc-5, the gcc package is a meta package and you need to query gcc-5. If you query gcc it shows coming from the standard Ubuntu repo but /usr/bin/gcc-5 is coming from the toolchain repo. A good gcc-5 shows: classroom:55% apt-cache policy gcc-5 gcc-5: Installed: 5.4.0-6ubuntu1~16.04.9 Candidate: 5.4.0-6ubuntu1~16.04.9 Version table: *** 5.4.0-6ubuntu1~16.04.9 500 500 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages 500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages 100 /var/lib/dpkg/status 5.3.1-14ubuntu2 500 500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages The bad compilers show: -- bvisionserver8:/> apt-cache policy gcc-5 gcc-5: Installed: 5.4.1-2ubuntu1~16.04 Candidate: 5.4.1-2ubuntu1~16.04 Version table: *** 5.4.1-2ubuntu1~16.04 500 500 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial/main amd64 Packages 100 /var/lib/dpkg/status 5.4.0-6ubuntu1~16.04.9 500 500 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages 500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages 5.3.1-14ubuntu2 500 500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages And you can see /etc/apt/sources.list.d/ubuntu-toolchain-r-ubuntu-test-xenial.list repo is configure on those machines. On a good machine modinfo openafs shows that retpoline is turned on in the vermagic: line: classroom:56% modinfo openafs filename: /lib/modules/4.4.0-116-generic/updates/dkms/openafs.ko license:http://www.openafs.org/dl/license10.html srcversion: 4E1BEB8CE16072EF8E64542 depends: vermagic: 4.4.0-116-generic SMP mod_unload modversions retpoline And not turned on a bad machine: bvisionserver8:/> modinfo openafs filename: /lib/modules/4.4.0-116-generic/updates/dkms/openafs.ko license:http://www.openafs.org/dl/license10.html srcversion: 66044F5DC18AA3288DB22FF depends: vermagic: 4.4.0-116-generic SMP mod_unload modversions -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xorg in Ubuntu. https://bugs.launchpad.net/bugs/1750937 Title: 4.4.0-116 Kernel update on 2/21 breaks Nvidia drivers (on 14.04 and 16.04) by an insufficient compiler! Status in gcc: New Status in linux package in Ubuntu: Confirmed Status in nvidia-graphics-drivers-384 package in Ubuntu: Confirmed Status in xorg package in Ubuntu: Confirmed Bug description: Running fine with nvidia-384 until this kernel update came along. When booted into the new kernel, got super low resolution and nvidia- settings was missing most of its functionality - could not change resolution. Rebooted into 4.4.0-112 kernel and all was well. The root cause of the problem has been found to be installing the -116 kernel without a sufficiently updated version of gcc. In my case, my system received the gcc update AFTER the kernel update. Uninstalling the -116 kernel and reinstalling it with the updated version of gcc solved the problem for me. ProblemType: Bug DistroRelease: Ubuntu 14.04 Package: xorg 1:7.7+1ubuntu8.1 ProcVersionSignature: Ubuntu 4.4.0-112.135~14.04.1-generic 4.4.98 Uname: Linux 4.4.0-112-generic x86_64 NonfreeKernelModules: nvidia_uvm
[Desktop-packages] [Bug 1316035] Re: matrox g200eR2 is unclaimed in 14.04
I did an online chat with Dell to see if they new anything about this and they could not help. Here was there response: Ok. Well, I had them review the article and they see many vendors having the same issue. We don't have any updates / patches for the Matrox graphics card for this kind of issue. Were feeling that this is a desktop OS that is likely a little more graphics intensive than what the server mobo onboard video can do. They had the linux group review this bug. BTW, window 7 and windows 8.1 work fine with this video card and mobo is a short for motherboard. We have put in an inexpensive nvida card in our servers if we need to use the gui to get around this issue. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xorg-server in Ubuntu. https://bugs.launchpad.net/bugs/1316035 Title: matrox g200eR2 is unclaimed in 14.04 Status in xorg-server package in Ubuntu: Confirmed Bug description: On a certified Dell PowerEdge T620 server (http://www.ubuntu.com/certification/hardware/201207-11426/) The matrox video card is not recognised: lspci | grep VGA 0a:00.0 VGA compatible controller: Matrox Electronics Systems Ltd. G200eR2 lshw -C display *-display UNCLAIMED description: VGA compatible controller product: G200eR2 vendor: Matrox Electronics Systems Ltd. physical id: 0 bus info: pci@:0a:00.0 version: 00 width: 32 bits clock: 33MHz capabilities: pm vga_controller bus_master cap_list configuration: latency=64 maxlatency=32 mingnt=16 resources: memory:d800-d8ff memory:deffc000-deff memory:de00-de7f Thus xserver is not hardver accelerated. Also /dev/dri and /dev/dri/card0 is missing. kernel module mga is not loaded, although if i manually load by modprobe it works fine modprobe mga lsmod | grep mga mga40811 0 drm 302817 1 mga To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/1316035/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 1316035] Re: matrox g200eR2 is unclaimed in 14.04
Still the same issue on 2 new Dell T630 servers Ubuntu 14.04 LTS. % lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:Ubuntu 14.04.2 LTS Release:14.04 Codename: trusty % lspci | grep VGA 09:00.0 VGA compatible controller: Matrox Electronics Systems Ltd. G200eR2 (rev 01) % lshw -C display PCI (sysfs) NCL *-display UNCLAIMED description: VGA compatible controller product: G200eR2 vendor: Matrox Electronics Systems Ltd. physical id: 0 bus info: pci@:09:00.0 version: 01 width: 32 bits clock: 33MHz capabilities: pm vga_controller bus_master cap_list configuration: latency=0 maxlatency=32 mingnt=16 resources: memory:9000-90ff memory:9180-91803fff memory:9100-917f % grep '(EE)' /var/log/Xorg.0.log (WW) warning, (EE) error, (NI) not implemented, (??) unknown. [ 2742.630] (EE) open /dev/dri/card0: No such file or directory [ 2742.733] (EE) MGA(0): [drm] Direct rendering only supported with G200/G400/G450/G550. [ 2742.742] (EE) AIGLX: reverting to software rendering -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xorg-server in Ubuntu. https://bugs.launchpad.net/bugs/1316035 Title: matrox g200eR2 is unclaimed in 14.04 Status in xorg-server package in Ubuntu: Confirmed Bug description: On a certified Dell PowerEdge T620 server (http://www.ubuntu.com/certification/hardware/201207-11426/) The matrox video card is not recognised: lspci | grep VGA 0a:00.0 VGA compatible controller: Matrox Electronics Systems Ltd. G200eR2 lshw -C display *-display UNCLAIMED description: VGA compatible controller product: G200eR2 vendor: Matrox Electronics Systems Ltd. physical id: 0 bus info: pci@:0a:00.0 version: 00 width: 32 bits clock: 33MHz capabilities: pm vga_controller bus_master cap_list configuration: latency=64 maxlatency=32 mingnt=16 resources: memory:d800-d8ff memory:deffc000-deff memory:de00-de7f Thus xserver is not hardver accelerated. Also /dev/dri and /dev/dri/card0 is missing. kernel module mga is not loaded, although if i manually load by modprobe it works fine modprobe mga lsmod | grep mga mga40811 0 drm 302817 1 mga To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/1316035/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 867806] Re: df -h permission denied error
I am seeing this in precise 12.04, latest patches, some machines have the issue, others do not: % lsb_release -dcr Description:Ubuntu 12.04 LTS Release:12.04 Codename: precise % df -hl df: `/var/lib/lightdm/.gvfs': Permission denied Filesystem Size Used Avail Use% Mounted on /dev/mapper/sdavg-root 9.3G 3.1G 5.8G 35% / udev 489M 4.0K 489M 1% /dev tmpfs 199M 804K 198M 1% /run none 5.0M 0 5.0M 0% /run/lock none 496M 144K 496M 1% /run/shm /dev/mapper/sdavg-backup20G 416M 18G 3% /backup /dev/sda1 184M 30M 146M 17% /boot -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to lightdm in Ubuntu. https://bugs.launchpad.net/bugs/867806 Title: df -h permission denied error Status in “lightdm” package in Ubuntu: Fix Released Bug description: Running df -h from the cli as a normal user returns: FilesystemSize Used Avail Use% Mounted on /dev/md0 37G 6.6G 29G 19% / udev 796M 8.0K 796M 1% /dev tmpfs 322M 888K 321M 1% /run none 5.0M 0 5.0M 0% /run/lock none 805M 92K 805M 1% /run/shm /dev/sda3 1.8T 265G 1.6T 15% /mnt/d1 /dev/sdb3 1.8T 1.7T 102G 95% /mnt/d2 /dev/sdc3 893G 33M 893G 1% /mnt/d3 df: `/var/lib/lightdm/.gvfs': Permission denied $ running with su $ sudo df -h FilesystemSize Used Avail Use% Mounted on /dev/md0 37G 6.6G 29G 19% / udev 796M 8.0K 796M 1% /dev tmpfs 322M 888K 321M 1% /run none 5.0M 0 5.0M 0% /run/lock none 805M 92K 805M 1% /run/shm /dev/sda3 1.8T 265G 1.6T 15% /mnt/d1 /dev/sdb3 1.8T 1.7T 102G 95% /mnt/d2 /dev/sdc3 893G 33M 893G 1% /mnt/d3 $ ProblemType: Bug DistroRelease: Ubuntu 11.10 Package: bash 4.2-0ubuntu4 ProcVersionSignature: Ubuntu 3.0.0-10.16-server 3.0.4 Uname: Linux 3.0.0-10-server x86_64 ApportVersion: 1.23-0ubuntu2 Architecture: amd64 Date: Tue Oct 4 14:17:28 2011 InstallationMedia: Ubuntu-Server 11.04 Natty Narwhal - Release amd64 (20110426) ProcEnviron: SHELL=/bin/bash LANG=en_US.UTF-8 SourcePackage: bash UpgradeStatus: Upgraded to oneiric on 2011-09-05 (29 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/867806/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 867806] Re: df -h permission denied error
If someone is logged into the desktop, gvfs mounts in there home dir, and df works if you ssh login as another user and do a df. The problem I am seeing is when no one is logged in and /var/lib/lightdm/.gvfs is mounted. For example: No one logged into the desktop: $ df df: `/var/lib/lightdm/.gvfs': Permission denied Filesystem1K-blocksUsed Available Use% Mounted on /dev/mapper/sdavg-root 9733688 3411164 5834284 37% / udev 495080 4495076 1% /dev tmpfs201656 808200848 1% /run none 5120 0 5120 0% /run/lock none 504140 152503988 1% /run/shm /dev/mapper/sdavg-backup 19932248 425728 18506688 3% /backup /dev/sda1188403 30626148049 18% /boot The mount command shows the mount: $ mount | grep gvfs gvfs-fuse-daemon on /var/lib/lightdm/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=lightdm) If another users is logged into the system mount shows: mount | grep gvfs gvfs-fuse-daemon on /home/sopkol/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=sopkol) and df works: $ df Filesystem1K-blocksUsed Available Use% Mounted on /dev/mapper/sdavg-root 9733688 3411196 5834252 37% / udev 495080 4495076 1% /dev tmpfs201656 808200848 1% /run none 5120 0 5120 0% /run/lock none 504140 152503988 1% /run/shm /dev/mapper/sdavg-backup 19932248 425728 18506688 3% /backup /dev/sda1188403 30626148049 18% /boot -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to lightdm in Ubuntu. https://bugs.launchpad.net/bugs/867806 Title: df -h permission denied error Status in Light Display Manager: New Status in “lightdm” package in Ubuntu: Fix Released Bug description: Running df -h from the cli as a normal user returns: FilesystemSize Used Avail Use% Mounted on /dev/md0 37G 6.6G 29G 19% / udev 796M 8.0K 796M 1% /dev tmpfs 322M 888K 321M 1% /run none 5.0M 0 5.0M 0% /run/lock none 805M 92K 805M 1% /run/shm /dev/sda3 1.8T 265G 1.6T 15% /mnt/d1 /dev/sdb3 1.8T 1.7T 102G 95% /mnt/d2 /dev/sdc3 893G 33M 893G 1% /mnt/d3 df: `/var/lib/lightdm/.gvfs': Permission denied $ running with su $ sudo df -h FilesystemSize Used Avail Use% Mounted on /dev/md0 37G 6.6G 29G 19% / udev 796M 8.0K 796M 1% /dev tmpfs 322M 888K 321M 1% /run none 5.0M 0 5.0M 0% /run/lock none 805M 92K 805M 1% /run/shm /dev/sda3 1.8T 265G 1.6T 15% /mnt/d1 /dev/sdb3 1.8T 1.7T 102G 95% /mnt/d2 /dev/sdc3 893G 33M 893G 1% /mnt/d3 $ ProblemType: Bug DistroRelease: Ubuntu 11.10 Package: bash 4.2-0ubuntu4 ProcVersionSignature: Ubuntu 3.0.0-10.16-server 3.0.4 Uname: Linux 3.0.0-10-server x86_64 ApportVersion: 1.23-0ubuntu2 Architecture: amd64 Date: Tue Oct 4 14:17:28 2011 InstallationMedia: Ubuntu-Server 11.04 Natty Narwhal - Release amd64 (20110426) ProcEnviron: SHELL=/bin/bash LANG=en_US.UTF-8 SourcePackage: bash UpgradeStatus: Upgraded to oneiric on 2011-09-05 (29 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/lightdm/+bug/867806/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp
[Desktop-packages] [Bug 867806] Re: df -h permission denied error
Another observation. When no one is logged in and /var/lib/lightdm is mounted the directory permissions do not allow other access: % ls -ld /var/lib/lightdm drwxr-x--- 9 lightdm lightdm 4096 May 6 09:50 /var/lib/lightdm If someone is logged into the desktop gui the gvfs directory permissions are set to whatever the users home directory is set to: % ls -ld /home/sopkol drwxr-xr-x 23 sopkol sopkol 4096 May 8 15:54 /home/sopkol So if you can read the directory mount df does not complain permission denied. If you chmod on /var/lib/lightdm so you can read the dir the problem goes away. Don't know if that is a security issue: % chmod 755 ld /var/lib/lightdm and df will not complain. I did a reboot and the permissions did not change and it still worked: % mount | grep gvfs gvfs-fuse-daemon on /var/lib/lightdm/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=lightdm) |% ls -ld /var/lib/lightdm drwxr-xr-x 9 lightdm lightdm 4096 May 8 16:01 /var/lib/lightdm/ |% df Filesystem1K-blocksUsed Available Use% Mounted on /dev/mapper/sdavg-root 9733688 3411316 5834132 37% / udev 495080 4495076 1% /dev tmpfs201656 804200852 1% /run none 5120 0 5120 0% /run/lock none 504140 144503996 1% /run/shm /dev/mapper/sdavg-backup 19932248 425728 18506688 3% /backup /dev/sda1188403 30626148049 18% /boot -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to lightdm in Ubuntu. https://bugs.launchpad.net/bugs/867806 Title: df -h permission denied error Status in Light Display Manager: New Status in “lightdm” package in Ubuntu: Fix Released Bug description: Running df -h from the cli as a normal user returns: FilesystemSize Used Avail Use% Mounted on /dev/md0 37G 6.6G 29G 19% / udev 796M 8.0K 796M 1% /dev tmpfs 322M 888K 321M 1% /run none 5.0M 0 5.0M 0% /run/lock none 805M 92K 805M 1% /run/shm /dev/sda3 1.8T 265G 1.6T 15% /mnt/d1 /dev/sdb3 1.8T 1.7T 102G 95% /mnt/d2 /dev/sdc3 893G 33M 893G 1% /mnt/d3 df: `/var/lib/lightdm/.gvfs': Permission denied $ running with su $ sudo df -h FilesystemSize Used Avail Use% Mounted on /dev/md0 37G 6.6G 29G 19% / udev 796M 8.0K 796M 1% /dev tmpfs 322M 888K 321M 1% /run none 5.0M 0 5.0M 0% /run/lock none 805M 92K 805M 1% /run/shm /dev/sda3 1.8T 265G 1.6T 15% /mnt/d1 /dev/sdb3 1.8T 1.7T 102G 95% /mnt/d2 /dev/sdc3 893G 33M 893G 1% /mnt/d3 $ ProblemType: Bug DistroRelease: Ubuntu 11.10 Package: bash 4.2-0ubuntu4 ProcVersionSignature: Ubuntu 3.0.0-10.16-server 3.0.4 Uname: Linux 3.0.0-10-server x86_64 ApportVersion: 1.23-0ubuntu2 Architecture: amd64 Date: Tue Oct 4 14:17:28 2011 InstallationMedia: Ubuntu-Server 11.04 Natty Narwhal - Release amd64 (20110426) ProcEnviron: SHELL=/bin/bash LANG=en_US.UTF-8 SourcePackage: bash UpgradeStatus: Upgraded to oneiric on 2011-09-05 (29 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/lightdm/+bug/867806/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp