nvidia-* kernel module failed to build [error: too many arguments to function ‘get_user_pages’]

Bug #1815752 reported by Jarno Suni
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers-304 (Ubuntu)
Confirmed
Undecided
Unassigned
nvidia-graphics-drivers-340 (Ubuntu)
Confirmed
Undecided
Unassigned
nvidia-graphics-drivers-384 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I installed new kernel from xenial-proposed and this happened.

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: nvidia-340 340.104-0ubuntu0.16.04.1
ProcVersionSignature: Ubuntu 4.4.0-142.168-generic 4.4.167
Uname: Linux 4.4.0-142-generic x86_64
NonfreeKernelModules: nvidia_uvm nvidia
.proc.driver.nvidia.gpus.0000.01.00.0: Error: [Errno 21] Is a directory: '/proc/driver/nvidia/gpus/0000:01:00.0'
.proc.driver.nvidia.registry: Binary: ""
.proc.driver.nvidia.version:
 NVRM version: NVIDIA UNIX x86_64 Kernel Module 340.104 Thu Sep 14 17:13:13 PDT 2017
 GCC version: gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.11)
ApportVersion: 2.20.1-0ubuntu2.18
Architecture: amd64
BootLog: root: clean, 318706/1281120 files, 2426738/5120000 blocks
CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins'
CompositorRunning: None
DKMSKernelVersion: 4.4.0-143-generic
Date: Wed Feb 13 12:18:21 2019
DistUpgraded: Fresh install
DistroCodename: xenial
DistroVariant: ubuntu
DuplicateSignature: dkms:nvidia-340:340.104-0ubuntu0.16.04.1:/var/lib/dkms/nvidia-340/340.104/build/nv-linux.h:2161:9: error: too many arguments to function ‘get_user_pages’
GraphicsCard:
 NVIDIA Corporation G84GLM [Quadro FX 570M] [10de:040c] (rev a1) (prog-if 00 [VGA controller])
   Subsystem: Hewlett-Packard Company G84GLM [Quadro FX 570M] [103c:30c5]
InstallationDate: Installed on 2015-11-21 (1179 days ago)
InstallationMedia: Xubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
LightdmGreeterLogOld:
 ** Message: Starting lightdm-gtk-greeter 2.0.1 (Aug 7 2015, 01:24:18)
 ** Message: [Configuration] Reading file: /etc/lightdm/lightdm-gtk-greeter.conf.d/01_ubuntu.conf
 ** Message: [Configuration] Reading file: /etc/lightdm/lightdm-gtk-greeter.conf.d/30_xubuntu.conf
 ** Message: [Configuration] Reading file: /etc/lightdm/lightdm-gtk-greeter.conf
 upstart: indicator-application main process (970) killed by TERM signal
PackageVersion: 340.104-0ubuntu0.16.04.1
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.4.0-142-generic root=UUID=bdc3be24-dee9-4ead-bca0-c9b1e45a87e5 ro persistent quiet splash
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.5
 apt 1.2.29ubuntu0.1
SourcePackage: nvidia-graphics-drivers-340
Title: nvidia-340 340.104-0ubuntu0.16.04.1: nvidia-340 kernel module failed to build
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 12/01/2011
dmi.bios.vendor: Hewlett-Packard
dmi.bios.version: 68MVD Ver. F.20
dmi.board.name: 30C5
dmi.board.vendor: Hewlett-Packard
dmi.board.version: KBC Version 71.36
dmi.chassis.type: 10
dmi.chassis.vendor: Hewlett-Packard
dmi.modalias: dmi:bvnHewlett-Packard:bvr68MVDVer.F.20:bd12/01/2011:svnHewlett-Packard:pn:pvrF.20:rvnHewlett-Packard:rn30C5:rvrKBCVersion71.36:cvnHewlett-Packard:ct10:cvr:
dmi.product.version: F.20
dmi.sys.vendor: Hewlett-Packard
modified.conffile..etc.modprobe.d.nvidia-340_hybrid.conf: [deleted]
version.compiz: compiz N/A
version.ia32-libs: ia32-libs N/A
version.libdrm2: libdrm2 2.4.91-2~16.04.1
version.libgl1-mesa-dri: libgl1-mesa-dri 18.0.5-0ubuntu0~16.04.1
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 18.0.5-0ubuntu0~16.04.1
version.nvidia-graphics-drivers: nvidia-graphics-drivers-* N/A
version.xserver-xorg-core: xserver-xorg-core 2:1.18.4-0ubuntu0.8
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.10.1-1ubuntu2
version.xserver-xorg-video-ati: xserver-xorg-video-ati N/A
version.xserver-xorg-video-intel: xserver-xorg-video-intel N/A
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau N/A
xserver.bootTime: Wed Feb 13 12:57:38 2019
xserver.configfile: default
xserver.logfile: /var/log/Xorg.0.log
xserver.outputs:

xserver.version: 2:1.18.4-0ubuntu0.8

Revision history for this message
Jarno Suni (jarnos) wrote :
tags: removed: need-duplicate-check
Revision history for this message
daniel CURTIS (anoda) wrote :

Hello.

There is a similar raport about failed 'nvidia_304' module build on latest '-proposed' v4.4.0-143-generic kernel:

https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-304/+bug/1815858

Mentioned issue happened on both: amd64 and i385/i686 architectures.

Best regards.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nvidia-graphics-drivers-340 (Ubuntu):
status: New → Confirmed
Revision history for this message
daniel CURTIS (anoda) wrote :

Hello.

Once agains - I'm sorry for writing post by post, but there is a very interesting comment I found, while checking patches/fixes in Linux v4.4.0-143.169 version (see '1.'). This is excatly the same error, that happened when I updated kernel to the latest '-proposed' release etc. In both cases, it's about "Processing triggers for linux-image-4.4.0-143-generic" and bad return status for 'nvidia' module build.

So, maybe the whole problem with building 'nvidia' module is related with "signing: only install a signed kernel (LP: #1764794)" (see '2.')?

Thanks, best regards.
_________________
[1] https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1764794/comments/6
[2] https://launchpad.net/ubuntu/+source/linux/4.4.0-143.169

Revision history for this message
Jarno Suni (jarnos) wrote :

I do not see how signing itself would be the cause. That could be tested, if there was linux-image-unsigned-4.4.0-143-generic available in xenial-proposed. However, there are other changes in 4.4.0-143-generic that might be the cause for incompatibility between the kernel and the nvidia driver.

summary: nvidia-340 340.104-0ubuntu0.16.04.1: nvidia-340 kernel module failed to
- build
+ build [error: too many arguments to function ‘get_user_pages’]
Changed in nvidia-graphics-drivers-304 (Ubuntu):
status: New → Confirmed
Changed in nvidia-graphics-drivers-384 (Ubuntu):
status: New → Confirmed
summary: - nvidia-340 340.104-0ubuntu0.16.04.1: nvidia-340 kernel module failed to
- build [error: too many arguments to function ‘get_user_pages’]
+ nvidia-* kernel module failed to build [error: too many arguments to
+ function ‘get_user_pages’]
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.