Driver Issue ver 390.59-3 kernel 4.16.11-1 ArchLinux

Goodmorning to everyone,
I am encourting in an issue after having downgraded the nvidia driver version from the main branch to 390.xx (package nvidia-390xx 390.59-3) after my Geforce GT620M 1GB went out main branch support.
The problem is that the system is unable to load the module, seems due to an issue in userspace settings when compiled. I am on archlinux kernel 4.16.11-1 and Xorg package xorg-server 1.20.0-2. In particular I am using bumblebee and bbswitch, yet these are not causing the issue, since it does not load even directly using them.
I am attaching the dmesg and the issue reported by bumblebee in addition to Xorg.8.log

Dmesg:

[   24.006497] bbswitch: enabling discrete graphics
[   24.216307] ipmi message handler version 39.2
[   24.219122] ipmi device interface
[   24.352449] nvidia: module license 'NVIDIA' taints kernel.
[   24.352452] Disabling lock debugging due to kernel taint
[   24.369626] nvidia-nvlink: Nvlink Core is being initialized, major device number 240
[   24.369959] nvidia 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none
[   24.370127] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  390.59  Wed May  9 22:33:42 PDT 2018 (using threaded interrupts)
[   24.927506] ------------[ cut here ]------------
[   24.927510] Bad or missing usercopy whitelist? Kernel memory exposure attempt detected from SLUB object 'nvidia_stack_cache' (offset 11440, size 3)!
[   24.927521] WARNING: CPU: 0 PID: 1221 at mm/usercopy.c:81 usercopy_warn+0x7d/0xa0
[   24.927522] 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 snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic 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 iptable_filter joydev bnep bbswitch(O) 8021q mrp arc4 uvcvideo videobuf2_vmalloc videobuf2_memops iwldvm videobuf2_v4l2 videobuf2_common mac80211 btusb mousedev videodev btrtl btbcm btintel hid_generic i915 iTCO_wdt
[   24.927560]  bluetooth iTCO_vendor_support media iwlwifi intel_rapl pktcdvd usbhid hid x86_pkg_temp_thermal intel_powerclamp coretemp nls_iso8859_1 kvm_intel nls_cp437 vfat fat ecdh_generic i2c_algo_bit snd_hda_intel crc16 fuse kvm snd_hda_codec drm_kms_helper cfg80211 snd_hda_core snd_hwdep drm snd_pcm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel cryptd intel_cstate intel_uncore psmouse intel_rapl_perf snd_timer input_leds pcspkr intel_gtt snd rfkill i2c_i801 agpgart r8169 mei_me lpc_ich syscopyarea mii vboxnetflt(O) sysfillrect vboxnetadp(O) mei soundcore vboxpci(O) sysimgblt shpchp fb_sys_fops fujitsu_laptop rtc_cmos sparse_keymap battery led_class evdev mac_hid vboxdrv(O) ac usbip_host usbip_core sg crypto_user ip_tables x_tables btrfs xor zstd_decompress zstd_compress xxhash raid6_pq
[   24.927605]  sr_mod cdrom sd_mod uas usb_storage serio_raw atkbd libps2 ahci xhci_pci libahci ehci_pci xhci_hcd ehci_hcd libata crc32c_intel usbcore scsi_mod usb_common i8042 serio
[   24.927618] CPU: 0 PID: 1221 Comm: Xorg Tainted: P           O     4.16.11-1-ARCH #1
[   24.927619] Hardware name: FUJITSU LIFEBOOK AH532/G21/FJNBB1D, BIOS Version 1.10 09/13/2012
[   24.927621] RIP: 0010:usercopy_warn+0x7d/0xa0
[   24.927623] RSP: 0018:ffffb2a141d87b60 EFLAGS: 00010286
[   24.927624] RAX: 0000000000000000 RBX: 0000000000000003 RCX: 0000000000000001
[   24.927625] RDX: 0000000080000001 RSI: ffffffffa4e70adc RDI: 00000000ffffffff
[   24.927626] RBP: 0000000000000001 R08: 0000000000000098 R09: 0000000000000391
[   24.927627] R10: 0000000000000000 R11: 0000000000000001 R12: ffff91c36b45dcb3
[   24.927628] R13: ffff91c36b45dcb0 R14: 0000000000000000 R15: ffff91c36b45dcf8
[   24.927629] FS:  00007f33d9fe1980(0000) GS:ffff91c3ff200000(0000) knlGS:0000000000000000
[   24.927630] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   24.927631] CR2: 00007f33d0d11d40 CR3: 0000000100c04002 CR4: 00000000001606f0
[   24.927632] Call Trace:
[   24.927637]  __check_object_size+0xf0/0x180
[   24.927821]  ? os_memcpy_to_user+0x21/0x40 [nvidia]
[   24.928012]  ? _nv009383rm+0xbf/0xe0 [nvidia]
[   24.928168]  ? _nv028084rm+0x79/0x90 [nvidia]
[   24.928322]  ? _nv028084rm+0x55/0x90 [nvidia]
[   24.928468]  ? _nv013694rm+0xee/0x100 [nvidia]
[   24.928614]  ? _nv015342rm+0x154/0x270 [nvidia]
[   24.928794]  ? _nv008316rm+0x134/0x1a0 [nvidia]
[   24.928973]  ? _nv008295rm+0x29c/0x2b0 [nvidia]
[   24.929169]  ? _nv001072rm+0xe/0x20 [nvidia]
[   24.929351]  ? _nv007322rm+0xd8/0x100 [nvidia]
[   24.929522]  ? _nv001171rm+0x627/0x830 [nvidia]
[   24.929693]  ? rm_ioctl+0x73/0x100 [nvidia]
[   24.929794]  ? nvidia_ioctl+0x54d/0x700 [nvidia]
[   24.929892]  ? nvidia_frontend_unlocked_ioctl+0x3a/0x50 [nvidia]
[   24.929896]  ? do_vfs_ioctl+0xa4/0x610
[   24.929900]  ? __do_page_fault+0x237/0x570
[   24.929902]  ? SyS_ioctl+0x74/0x80
[   24.929905]  ? do_syscall_64+0x74/0x190
[   24.929907]  ? entry_SYSCALL_64_after_hwframe+0x3d/0xa2
[   24.929909] Code: ad e7 a4 41 51 4d 89 d8 48 c7 c0 c1 ab e6 a4 49 89 f1 48 89 f9 48 0f 45 c2 48 c7 c7 f8 ad e7 a4 4c 89 d2 48 89 c6 e8 8d d2 e3 ff <0f> 0b 48 83 c4 18 c3 48 c7 c6 dc 0a e7 a4 49 89 f1 49 89 f3 eb 
[   24.929940] ---[ end trace eb717a4affa23bf5 ]---
[   24.999849] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  390.59  Wed May  9 21:59:27 PDT 2018
[   25.001103] nvidia-modeset: Allocated GPU:0 (GPU-a88e735c-0047-aab8-1ed0-668ef8cd0678) @ PCI:0000:01:00.0
[   25.041694] nvidia-modeset: Freed GPU:0 (GPU-a88e735c-0047-aab8-1ed0-668ef8cd0678) @ PCI:0000:01:00.0

Xorg.8.log

[    24.379] 
X.Org X Server 1.20.0
X Protocol Version 11, Revision 0
[    24.379] Build Operating System: Linux Arch Linux
[    24.379] Current Operating System: Linux test1 4.16.11-1-ARCH #1 SMP PREEMPT Tue May 22 21:40:27 UTC 2018 x86_64
[    24.379] Kernel command line: BOOT_IMAGE=/AL/boot/vmlinuz-linux root=UUID=b002cc06-2474-4078-a3e2-2c32e5a2b792 rw rootflags=subvol=AL resume=UUID=d0b425b5-626d-4fa1-a3ea-91e8310c1bc8 quiet
[    24.379] Build Date: 16 May 2018  05:24:07PM
[    24.379]  
[    24.379] Current version of pixman: 0.34.0
[    24.379] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[    24.379] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    24.379] (==) Log file: "/var/log/Xorg.8.log", Time: Mon May 28 19:57:44 2018
[    24.379] (++) Using config file: "/etc/bumblebee/xorg.conf.nvidia"
[    24.379] (++) Using config directory: "/etc/bumblebee/xorg.conf.d"
[    24.379] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    24.380] (==) ServerLayout "Layout0"
[    24.380] (==) No screen section available. Using defaults.
[    24.380] (**) |-->Screen "Default Screen Section" (0)
[    24.380] (**) |   |-->Monitor "<default monitor>"
[    24.380] (==) No device specified for screen "Default Screen Section".
	Using the first device section listed.
[    24.380] (**) |   |-->Device "DiscreteNvidia"
[    24.380] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[    24.380] (**) Option "AutoAddDevices" "false"
[    24.380] (**) Option "AutoAddGPU" "false"
[    24.380] (**) Not automatically adding devices
[    24.380] (==) Automatically enabling devices
[    24.380] (**) Not automatically adding GPU devices
[    24.380] (==) Automatically binding GPU devices
[    24.380] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    24.380] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/misc".
[    24.380] 	Entry deleted from font path.
[    24.380] 	(Run 'mkfontdir' on "/usr/share/fonts/misc").
[    24.380] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[    24.380] 	Entry deleted from font path.
[    24.380] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[    24.380] 	Entry deleted from font path.
[    24.380] (==) FontPath set to:
	/usr/share/fonts/TTF,
	/usr/share/fonts/100dpi,
	/usr/share/fonts/75dpi
[    24.380] (++) ModulePath set to "/usr/lib/nvidia/xorg,/usr/lib/xorg/modules"
[    24.380] (==) |-->Input Device "<default pointer>"
[    24.380] (==) |-->Input Device "<default keyboard>"
[    24.380] (==) The core pointer device wasn't specified explicitly in the layout.
	Using the default mouse configuration.
[    24.380] (==) The core keyboard device wasn't specified explicitly in the layout.
	Using the default keyboard configuration.
[    24.380] (II) Module ABI versions:
[    24.380] 	X.Org ANSI C Emulation: 0.4
[    24.380] 	X.Org Video Driver: 24.0
[    24.380] 	X.Org XInput driver : 24.1
[    24.380] 	X.Org Server Extension : 10.0
[    24.381] (--) using VT number 7

[    24.381] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[    24.382] (II) xfree86: Adding drm device (/dev/dri/card0)
[    24.382] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
[    24.384] (--) PCI:*(1@0:0:0) 10de:0de8:10cf:1767 rev 161, Mem @ 0xf0000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x00004000/128, BIOS @ 0x????????/524288
[    24.384] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[    24.384] (II) LoadModule: "glx"
[    24.384] (II) Loading /usr/lib/nvidia/xorg/libglx.so
[    24.436] (II) Module glx: vendor="NVIDIA Corporation"
[    24.436] 	compiled for 4.0.2, module version = 1.0.0
[    24.436] 	Module class: X.Org Server Extension
[    24.436] (II) NVIDIA GLX Module  390.59  Wed May  9 21:54:15 PDT 2018
[    24.440] (II) LoadModule: "nvidia"
[    24.440] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[    24.451] (II) Module nvidia: vendor="NVIDIA Corporation"
[    24.451] 	compiled for 4.0.2, module version = 1.0.0
[    24.451] 	Module class: X.Org Video Driver
[    24.451] (II) LoadModule: "mouse"
[    24.451] (II) Loading /usr/lib/xorg/modules/input/mouse_drv.so
[    24.456] (II) Module mouse: vendor="X.Org Foundation"
[    24.456] 	compiled for 1.19.0, module version = 1.9.2
[    24.456] 	Module class: X.Org XInput Driver
[    24.456] 	ABI class: X.Org XInput driver, version 24.1
[    24.456] (II) LoadModule: "kbd"
[    24.456] (II) Loading /usr/lib/xorg/modules/input/kbd_drv.so
[    24.457] (II) Module kbd: vendor="X.Org Foundation"
[    24.457] 	compiled for 1.19.0, module version = 1.9.0
[    24.457] 	Module class: X.Org XInput Driver
[    24.457] 	ABI class: X.Org XInput driver, version 24.1
[    24.457] (II) NVIDIA dlloader X Driver  390.59  Wed May  9 21:30:06 PDT 2018
[    24.457] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[    24.457] (II) Loading sub module "fb"
[    24.457] (II) LoadModule: "fb"
[    24.457] (II) Loading /usr/lib/xorg/modules/libfb.so
[    24.457] (II) Module fb: vendor="X.Org Foundation"
[    24.457] 	compiled for 1.20.0, module version = 1.0.0
[    24.457] 	ABI class: X.Org ANSI C Emulation, version 0.4
[    24.457] (II) Loading sub module "wfb"
[    24.457] (II) LoadModule: "wfb"
[    24.457] (II) Loading /usr/lib/xorg/modules/libwfb.so
[    24.458] (II) Module wfb: vendor="X.Org Foundation"
[    24.458] 	compiled for 1.20.0, module version = 1.0.0
[    24.458] 	ABI class: X.Org ANSI C Emulation, version 0.4
[    24.458] (II) Loading sub module "ramdac"
[    24.458] (II) LoadModule: "ramdac"
[    24.458] (II) Module "ramdac" already built-in
[    24.459] (II) NVIDIA(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 24/32
[    24.459] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[    24.459] (==) NVIDIA(0): RGB weight 888
[    24.459] (==) NVIDIA(0): Default visual is TrueColor
[    24.459] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[    24.459] (**) NVIDIA(0): Option "ProbeAllGpus" "false"
[    24.459] (**) NVIDIA(0): Option "UseEDID" "false"
[    24.459] (**) NVIDIA(0): Option "UseDisplayDevice" "none"
[    24.459] (**) NVIDIA(0): Enabling 2D acceleration
[    24.459] (**) NVIDIA(0): Ignoring EDIDs
[    24.459] (**) NVIDIA(0): Option "UseDisplayDevice" set to "none"; enabling NoScanout
[    24.459] (**) NVIDIA(0):     mode
[    24.902] (II) NVIDIA(0): NVIDIA GPU GeForce GT 620M (GF108) at PCI:1:0:0 (GPU-0)
[    24.902] (--) NVIDIA(0): Memory: 1048576 kBytes
[    24.902] (--) NVIDIA(0): VideoBIOS: 70.08.a8.00.5c
[    24.902] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[    24.902] (II) NVIDIA(0): Validated MetaModes:
[    24.902] (II) NVIDIA(0):     "NULL"
[    24.902] (II) NVIDIA(0): Virtual screen size determined to be 640 x 480
[    24.902] (WW) NVIDIA(0): Unable to get display device for DPI computation.
[    24.902] (==) NVIDIA(0): DPI set to (75, 75); computed from built-in default
[    24.903] (II) NVIDIA: Using 6144.00 MB of virtual memory for indirect memory
[    24.903] (II) NVIDIA:     access.
[    24.906] (II) NVIDIA(0): ACPI: failed to connect to the ACPI event daemon; the daemon
[    24.906] (II) NVIDIA(0):     may not be running or the "AcpidSocketPath" X
[    24.906] (II) NVIDIA(0):     configuration option may not be set correctly.  When the
[    24.906] (II) NVIDIA(0):     ACPI event daemon is available, the NVIDIA X driver will
[    24.906] (II) NVIDIA(0):     try to use it to receive ACPI event notifications.  For
[    24.906] (II) NVIDIA(0):     details, please see the "ConnectToAcpid" and
[    24.906] (II) NVIDIA(0):     "AcpidSocketPath" X configuration options in Appendix B: X
[    24.906] (II) NVIDIA(0):     Config Options in the README.
[    24.925] (II) NVIDIA(0): Setting mode "NULL"
[    24.932] (==) NVIDIA(0): Disabling shared memory pixmaps
[    24.932] (==) NVIDIA(0): Backing store enabled
[    24.932] (==) NVIDIA(0): Silken mouse disabled
[    24.932] (==) NVIDIA(0): DPMS enabled
[    24.932] (WW) NVIDIA(0): Option "NoLogo" is not used
[    24.932] (II) Loading sub module "dri2"
[    24.932] (II) LoadModule: "dri2"
[    24.932] (II) Module "dri2" already built-in
[    24.932] (II) NVIDIA(0): [DRI2] Setup complete
[    24.932] (II) NVIDIA(0): [DRI2]   VDPAU driver: nvidia
[    24.932] (II) Initializing extension Generic Event Extension
[    24.932] (II) Initializing extension SHAPE
[    24.932] (II) Initializing extension MIT-SHM
[    24.932] (II) Initializing extension XInputExtension
[    24.933] (II) Initializing extension XTEST
[    24.933] (II) Initializing extension BIG-REQUESTS
[    24.933] (II) Initializing extension SYNC
[    24.933] (II) Initializing extension XKEYBOARD
[    24.933] (II) Initializing extension XC-MISC
[    24.933] (II) Initializing extension SECURITY
[    24.933] (II) Initializing extension XFIXES
[    24.934] (II) Initializing extension RENDER
[    24.934] (II) Initializing extension RANDR
[    24.934] (II) Initializing extension COMPOSITE
[    24.934] (II) Initializing extension DAMAGE
[    24.934] (II) Initializing extension MIT-SCREEN-SAVER
[    24.934] (II) Initializing extension DOUBLE-BUFFER
[    24.934] (II) Initializing extension RECORD
[    24.935] (II) Initializing extension DPMS
[    24.935] (II) Initializing extension Present
[    24.935] (II) Initializing extension DRI3
[    24.935] (II) Initializing extension X-Resource
[    24.935] (II) Initializing extension XVideo
[    24.935] (II) Initializing extension XVideo-MotionCompensation
[    24.935] (II) Initializing extension XFree86-VidModeExtension
[    24.935] (II) Initializing extension XFree86-DGA
[    24.935] (II) Initializing extension XFree86-DRI
[    24.935] (II) Initializing extension DRI2
[    24.935] (II) Initializing extension GLX
[    24.935] (II) Initializing extension GLX
[    24.935] (II) Indirect GLX disabled.
[    24.936] (II) Initializing extension NV-GLX
[    24.936] (II) Initializing extension NV-CONTROL
[    25.036] (II) Using input driver 'mouse' for '<default pointer>'
[    25.036] (**) Option "CorePointer" "on"
[    25.036] (**) <default pointer>: always reports core events

Bumblebee error

filippo@test1> optirun -vv glxgears                                           ~
[  885.412905] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf
[  885.413509] [DEBUG]optirun version 3.2.1 starting...
[  885.413536] [DEBUG]Active configuration:
[  885.413544] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf
[  885.413550] [DEBUG] X display: :8
[  885.413556] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia:/usr/lib32/nvidia:/usr/lib:/usr/lib32
[  885.413562] [DEBUG] Socket path: /var/run/bumblebee.socket
[  885.413572] [DEBUG] Accel/display bridge: primus
[  885.413578] [DEBUG] VGL Compression: proxy
[  885.413597] [DEBUG] VGLrun extra options: 
[  885.413609] [DEBUG] Primus LD Path: /usr/lib/primus:/usr/lib32/primus
[  885.708871] [INFO]Response: No - error: X did not start properly

[  885.708913] [ERROR]Cannot access secondary GPU - error: X did not start properly

[  885.708926] [DEBUG]Socket closed.
[  885.708943] [ERROR]Aborting because fallback start is disabled.
[  885.708949] [DEBUG]Killing all remaining processes.

The kernel oops is a warning only, you can ignore that, known issue.
The Xorg.log tells that X is coming up well.
Did you look into the trobubleshooting steps regarding bumblebee?
https://wiki.archlinux.org/index.php/bumblebee#.5BERROR.5DCannot_access_secondary_GPU_-_error:_X_did_not_start_properly

Solved, thank you. Actually I saw that part on archlinux forum, yet I didn’t notice that I had to change the boolean… My mistake, thanks again :)

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.