Kernel module crash 4.18.0-10 after upgrade from 18.04 to 18.10

Bug #1802050 reported by Daniel Mehrmann on 2018-11-07
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers-390 (Ubuntu)
High
Unassigned

Bug Description

[ 56.996976] ------------[ cut here ]------------
[ 56.996978] Bad or missing usercopy whitelist? Kernel memory exposure attempt detected from SLUB object 'nvidia_stack_cache' (offset 11440, size 3)!
[ 56.996985] WARNING: CPU: 3 PID: 2547 at mm/usercopy.c:81 usercopy_warn+0x81/0xa0
[ 56.996985] Modules linked in: ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter devlink bpfilter pci_stub vboxpci(OE) vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) nvidia_uvm(POE) eeepc_wmi asus_wmi snd_hda_codec_hdmi mxm_wmi wmi_bmof sparse_keymap nvidia_drm(POE) nvidia_modeset(POE) snd_hda_codec_realtek intel_rapl nvidia(POE) snd_hda_codec_generic x86_pkg_temp_thermal intel_powerclamp coretemp snd_hda_intel kvm_intel kvm snd_hda_codec joydev snd_hda_core snd_usb_audio snd_usbmidi_lib irqbypass snd_hwdep input_leds crct10dif_pclmul crc32_pclmul ghash_clmulni_intel snd_pcm pcbc aesni_intel snd_seq_midi snd_seq_midi_event aes_x86_64 snd_rawmidi crypto_simd cryptd snd_seq glue_helper drm_kms_helper intel_cstate drm ipmi_devintf ipmi_msghandler intel_rapl_perf snd_seq_device snd_timer fb_sys_fops
[ 56.997003] syscopyarea sysfillrect sysimgblt snd mac_hid soundcore wmi video mei_me mei acpi_pad sch_fq_codel parport_pc ppdev lp parport ip_tables x_tables autofs4 raid10 multipath linear raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq raid0 libcrc32c raid1 hid_generic usbhid hid gpio_ich r8169 i2c_i801 mii lpc_ich ahci libahci
[ 56.997016] CPU: 3 PID: 2547 Comm: Xorg Tainted: P OE 4.18.0-10-generic #11-Ubuntu
[ 56.997017] Hardware name: ASUS All Series/Z97-K, BIOS 2902 03/31/2016
[ 56.997018] RIP: 0010:usercopy_warn+0x81/0xa0
[ 56.997018] Code: b0 aa 41 51 4d 89 d8 48 c7 c0 89 8d af aa 49 89 f1 48 89 f9 48 0f 45 c2 48 c7 c7 f0 a1 b0 aa 4c 89 d2 48 89 c6 e8 f1 cf df ff <0f> 0b 48 83 c4 18 c9 c3 48 c7 c6 b2 8a b2 aa 49 89 f1 49 89 f3 eb
[ 56.997030] RSP: 0018:ffffb9550248bb08 EFLAGS: 00010286
[ 56.997031] RAX: 0000000000000000 RBX: ffff90fdc8535cb0 RCX: 0000000000000006
[ 56.997032] RDX: 0000000000000007 RSI: 0000000000000096 RDI: ffff90fdded964b0
[ 56.997032] RBP: ffffb9550248bb20 R08: 0000000000000001 R09: 000000000000038f
[ 56.997032] R10: 0000000000000004 R11: 0000000000000000 R12: 0000000000000003
[ 56.997033] R13: 0000000000000001 R14: ffff90fdc8535cb3 R15: ffff90fdc8535cf8
[ 56.997033] FS: 00007f854792ba80(0000) GS:ffff90fdded80000(0000) knlGS:0000000000000000
[ 56.997034] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 56.997034] CR2: 00007f8543fd2110 CR3: 0000000406668006 CR4: 00000000001606e0
[ 56.997035] Call Trace:
[ 56.997038] __check_heap_object+0xc2/0x110
[ 56.997039] __check_object_size+0x14c/0x178
[ 56.997148] os_memcpy_to_user+0x26/0x50 [nvidia]
[ 56.997254] _nv009384rm+0xbf/0xe0 [nvidia]
[ 56.997255] WARNING: kernel stack frame pointer at 000000008fe294b8 in Xorg:2547 has bad value 000000005fea09aa
[ 56.997256] unwind stack type:0 next_sp: (null) mask:0x2 graph_idx:0
[ 56.997257] 000000001bbff756: ffffb9550248bb30 (0xffffb9550248bb30)
[ 56.997258] 0000000021ffd201: ffffffffa9c69a82 (__check_heap_object+0xc2/0x110)
[ 56.997258] 000000002ec89026: ffffb9550248bb60 (0xffffb9550248bb60)
[ 56.997259] 00000000297b0120: ffffffffa9c91abc (__check_object_size+0x14c/0x178)
[ 56.997259] 000000008569feab: 0000000000000003 (0x3)
[ 56.997260] 00000000b2feea66: ffff90fdc8535cb0 (0xffff90fdc8535cb0)
[ 56.997260] 00000000a5345c20: 000055924226a63e (0x55924226a63e)
[ 56.997260] 00000000798de38a: 0000000000000000 ...
[ 56.997261] 00000000871cf253: ffffb9550248bb88 (0xffffb9550248bb88)
[ 56.997311] 000000005645fcd2: ffffffffc0b305b6 (os_memcpy_to_user+0x26/0x50 [nvidia])
[ 56.997311] 00000000929e7969: 0000000000000003 (0x3)
[ 56.997312] 00000000cbb9721c: 000055924226a63e (0x55924226a63e)
[ 56.997312] 00000000cf624d15: ffff90fdc8535cb0 (0xffff90fdc8535cb0)
[ 56.997312] 000000008fe294b8: ffff90fdc8535ca8 (0xffff90fdc8535ca8)
[ 56.997417] 000000007dbcdd8d: ffffffffc110087f (_nv009384rm+0xbf/0xe0 [nvidia])
[ 56.997418] 00000000c0dd2ba2: ffff90fdc8535c88 (0xffff90fdc8535c88)
[ 56.997418] 00000000a931d446: 0000000000000000 ...
[ 56.997418] 0000000028151017: ffff90fda8ed62e8 (0xffff90fda8ed62e8)
[ 56.997419] 00000000f1c853ed: ffff90fdc8535db8 (0xffff90fdc8535db8)
[ 56.997419] 00000000761fa9f3: 00007ffe66b4aa10 (0x7ffe66b4aa10)
[ 56.997505] 000000009e2ac77b: ffffffffc0cfa259 (_nv028097rm+0x79/0x90 [nvidia])
[ 56.997505] 00000000cc78d7b8: 0000000000000001 (0x1)
[ 56.997590] 00000000859e80f8: ffffffffc0cfa235 (_nv028097rm+0x55/0x90 [nvidia])
[ 56.997591] 00000000a092cc62: 0000000000000000 ...
[ 56.997591] 000000000a1cc0bb: ffff90fdc8535db8 (0xffff90fdc8535db8)
[ 56.997591] 000000005dd40a26: ffff90fdc416e008 (0xffff90fdc416e008)
[ 56.997671] 00000000cb4ddc09: ffffffffc0cb9a6e (_nv013699rm+0xee/0x100 [nvidia])
[ 56.997672] 0000000078a53429: ffff90fdc44a5010 (0xffff90fdc44a5010)
[ 56.997672] 0000000042aa04d2: 0000000000009870 (0x9870)
[ 56.997672] 000000007b5bf499: ffff90fdc416e008 (0xffff90fdc416e008)
[ 56.997673] 00000000f8c30ec1: ffff90fdc8535db8 (0xffff90fdc8535db8)
[ 56.997673] 0000000089fc9300: 00000000c1d00061 (0xc1d00061)
[ 56.997759] 000000003bac4fbf: ffffffffc0cb9bd4 (_nv015347rm+0x154/0x270 [nvidia])
[ 56.997759] 000000009b8cda71: 00007ffe66b4aa10 (0x7ffe66b4aa10)
[ 56.997760] 0000000078715b46: ffff90fdc8535d60 (0xffff90fdc8535d60)
[ 56.997760] 00000000cd4bbb3a: ffff90fdc8535db8 (0xffff90fdc8535db8)
[ 56.997761] 00000000168c5d42: ffff90fdc4499020 (0xffff90fdc4499020)
[ 56.997761] 0000000013a31c78: 00007ffe66b4aa10 (0x7ffe66b4aa10)
[ 56.997864] 0000000084a6cee1: ffffffffc1116124 (_nv008317rm+0x134/0x1a0 [nvidia])
[ 56.997864] 000000004c62bbe0: 0000000050700701 (0x50700701)
[ 56.997865] 000000000ba266b5: 00000000ffffffff (0xffffffff)
[ 56.997865] 00000000a4d0b0d2: 0000000000000010 (0x10)
[ 56.997968] 00000000d62065ad: ffffffffc111678c (_nv008296rm+0x29c/0x2b0 [nvidia])
[ 56.997968] 00000000901ea801: ffff90fda8ed6840 (0xffff90fda8ed6840)
[ 56.997969] 0000000082915b90: 0000000000000000 ...
[ 56.997969] 00000000d3babec5: 0000000000000001 (0x1)
[ 56.997969] 0000000062b27cde: ffff90fdc8535f20 (0xffff90fdc8535f20)
[ 56.998081] 000000006c77d3a7: ffffffffc11167ae (_nv001072rm+0xe/0x20 [nvidia])
[ 56.998081] 0000000096f561c7: 0000000000000001 (0x1)
[ 56.998081] 000000009d3b50ce: ffff90fda8ed6840 (0xffff90fda8ed6840)
[ 56.998081] 000000008357f4d3: 0000000000000000 ...
[ 56.998181] 000000009e6a678e: ffffffffc11022d8 (_nv007324rm+0xd8/0x100 [nvidia])
[ 56.998182] 00000000b0eb0811: 0000000000000000 ...
[ 56.998281] 00000000522bd384: ffffffffc1774300 (nv_ctl_waitqueue+0x30/0xffffffffffa4ad30 [nvidia])
[ 56.998282] 000000002521f736: ffff90fda8ed6840 (0xffff90fda8ed6840)
[ 56.998282] 00000000ea51cf52: ffff90fdc9182e00 (0xffff90fdc9182e00)
[ 56.998282] 00000000fbb49c5f: ffff90fdc9182e00 (0xffff90fdc9182e00)
[ 56.998379] 0000000082902a0c: ffffffffc118d5e7 (_nv001171rm+0x627/0x830 [nvidia])
[ 56.998379] 00000000bcb97ad6: 0000000000000020 (0x20)
[ 56.998380] 0000000021e836f6: ffff90fdc8533000 (0xffff90fdc8533000)
[ 56.998380] 0000000011400428: ffff90fda8ed6840 (0xffff90fda8ed6840)
[ 56.998380] 0000000022b5abbc: 000000000000002a (0x2a)
[ 56.998381] 000000001cd31b95: ffff90fdc9182e00 (0xffff90fdc9182e00)
[ 56.998478] 00000000a90378fe: ffffffffc1197d13 (rm_ioctl+0x73/0x100 [nvidia])
[ 56.998478] 00000000a1514138: ffffb9550248be48 (0xffffb9550248be48)
[ 56.998578] 0000000058c4077f: ffffffffc1774300 (nv_ctl_waitqueue+0x30/0xffffffffffa4ad30 [nvidia])
[ 56.998578] 000000006e3f6e84: 00000000000009f3 (0x9f3)
[ 56.998578] 00000000dc686d81: 6113e240000004ac (0x6113e240000004ac)
[ 56.998579] 00000000202c5152: 003d08c76bd53900 (0x3d08c76bd53900)
[ 56.998579] 0000000061818e1f: 003d08c85a406100 (0x3d08c85a406100)
[ 56.998579] 00000000812018b1: 003d08c85a406100 (0x3d08c85a406100)
[ 56.998580] 000000000b560a0f: 003d08c7e30acd00 (0x3d08c7e30acd00)
[ 56.998580] 0000000034dd3407: 0000000000000000 ...
[ 56.998580] 000000000a0ea0b8: 0000000000000200 (0x200)
[ 56.998581] 00000000408c4430: 0000002000000003 (0x2000000003)
[ 56.998581] 0000000043c14792: 00000000000009f3 (0x9f3)
[ 56.998581] 0000000058e84b39: 0000000000000000 ...
[ 56.998582] 00000000872e30cb: ffffb9550248bd00 (0xffffb9550248bd00)
[ 56.998582] 00000000e8663ba5: ffffffffa9c91a01 (__check_object_size+0x91/0x178)
[ 56.998583] 00000000edc997d9: 0000000000000020 (0x20)
[ 56.998583] 00000000b581cea7: ffff90fdc9182e00 (0xffff90fdc9182e00)
[ 56.998683] 000000003dbced7c: ffffffffc1774300 (nv_ctl_waitqueue+0x30/0xffffffffffa4ad30 [nvidia])
[ 56.998683] 000000008ed421cd: ffff90fdc9182e38 (0xffff90fdc9182e38)
[ 56.998683] 000000000bb8e733: ffff90fda8ed6840 (0xffff90fda8ed6840)
[ 56.998731] 00000000fb2e0eb9: ffffffffc0b28dd3 (nvidia_ioctl+0x563/0x720 [nvidia])
[ 56.998732] 000000009718f382: 0000002a00000121 (0x2a00000121)
[ 56.998732] 0000000071614f0f: 00007ffe66b4a730 (0x7ffe66b4a730)
[ 56.998732] 00000000a795a09d: ffff90fdc8533000 (0xffff90fdc8533000)
[ 56.998733] 000000008e9f6a27: ffff90fd00000020 (0xffff90fd00000020)
[ 56.998733] 00000000ca2d5093: 0000000000000000 ...
[ 56.998733] 00000000b03f6669: 6113e240bcacd500 (0x6113e240bcacd500)
[ 56.998733] 00000000658f964f: ffff90fdcad17808 (0xffff90fdcad17808)
[ 56.998734] 000000003ea6d0d4: 00007ffe66b4a730 (0x7ffe66b4a730)
[ 56.998734] 00000000fde2dbd2: 000000000000000d (0xd)
[ 56.998734] 0000000014f93b51: ffff90fdc516ae00 (0xffff90fdc516ae00)
[ 56.998735] 00000000bd550fd1: 00007ffe66b4a730 (0x7ffe66b4a730)
[ 56.998735] 000000004f056372: ffffb9550248be58 (0xffffb9550248be58)
[ 56.998782] 0000000037e01985: ffffffffc0b2407e (nvidia_frontend_unlocked_ioctl+0x3e/0x50 [nvidia])
[ 56.998783] 00000000238bb771: ffffb9550248bed8 (0xffffb9550248bed8)
[ 56.998784] 000000004e45fcf0: ffffffffa9cafea8 (do_vfs_ioctl+0xa8/0x620)
[ 56.998784] 00000000b8439212: 0000000000000154 (0x154)
[ 56.998785] 0000000038ebc94a: ffffb9550248bea0 (0xffffb9550248bea0)
[ 56.998786] 00000000900e4efd: ffffffffa9c30351 (handle_mm_fault+0xe1/0x210)
[ 56.998786] 00000000a0b82412: 0000000000000014 (0x14)
[ 56.998787] 000000004b1a1074: 00007f8543fd2110 (0x7f8543fd2110)
[ 56.998787] 000000007cdbf26b: ffffb9550248bf58 (0xffffb9550248bf58)
[ 56.998787] 0000000020b79c63: ffff90fdc61f4200 (0xffff90fdc61f4200)
[ 56.998788] 00000000527f9647: ffffb9550248bf18 (0xffffb9550248bf18)
[ 56.998788] 00000000bb984e14: 6113e240bcacd500 (0x6113e240bcacd500)
[ 56.998788] 00000000040b6201: ffff90fdc516ae00 (0xffff90fdc516ae00)
[ 56.998789] 00000000176d668d: ffff90fdc516ae00 (0xffff90fdc516ae00)
[ 56.998789] 000000005cdc13b5: 000000000000000d (0xd)
[ 56.998789] 00000000783f8dcd: 00000000c020462a (0xc020462a)
[ 56.998790] 00000000a035f993: 00007ffe66b4a730 (0x7ffe66b4a730)
[ 56.998790] 000000007bf7fbfe: ffffb9550248bf18 (0xffffb9550248bf18)
[ 56.998791] 00000000388a06ca: ffffffffa9cb0487 (ksys_ioctl+0x67/0x90)
[ 56.998791] 0000000055c89052: 6113e240bcacd500 (0x6113e240bcacd500)
[ 56.998791] 000000001a3c1369: 0000000000000000 ...
[ 56.998792] 00000000e302b5f3: ffffb9550248bf58 (0xffffb9550248bf58)
[ 56.998792] 000000006ce5177e: 0000000000000000 ...
[ 56.998792] 000000001897e30a: ffffb9550248bf28 (0xffffb9550248bf28)
[ 56.998793] 00000000d1b0ef8c: ffffffffa9cb04ca (__x64_sys_ioctl+0x1a/0x20)
[ 56.998794] 000000001f9cc402: ffffb9550248bf48 (0xffffb9550248bf48)
[ 56.998795] 000000004e027859: ffffffffa9a042ca (do_syscall_64+0x5a/0x110)
[ 56.998795] 0000000034805708: 0000000000000000 ...
[ 56.998796] 000000004b1ac661: ffffffffaa400088 (entry_SYSCALL_64_after_hwframe+0x44/0xa9)
[ 56.998797] 00000000297204d0: 000000000000002a (0x2a)
[ 56.998797] 00000000df06f247: 0000000000000020 (0x20)
[ 56.998797] 00000000e9724c1a: 00000000c020462a (0xc020462a)
[ 56.998798] 000000000b8a2e21: 00007ffe66b4a74c (0x7ffe66b4a74c)
[ 56.998798] 000000009763e5d2: 00007ffe66b4a730 (0x7ffe66b4a730)
[ 56.998798] 00000000bde817ee: 000000005be28296 (0x5be28296)
[ 56.998799] 0000000080f2857b: 0000000000003246 (0x3246)
[ 56.998799] 000000001757a8c1: 0000000050700701 (0x50700701)
[ 56.998799] 00000000db9ffb6a: 00007ffe66b4a74c (0x7ffe66b4a74c)
[ 56.998800] 000000005d603d2a: 00007ffe66b4a730 (0x7ffe66b4a730)
[ 56.998800] 00000000028f53b2: ffffffffffffffda (0xffffffffffffffda)
[ 56.998800] 0000000012309d13: 00007f8548c623c7 (0x7f8548c623c7)
[ 56.998801] 0000000032d816cf: 00007ffe66b4a730 (0x7ffe66b4a730)
[ 56.998801] 00000000613f6925: 00000000c020462a (0xc020462a)
[ 56.998801] 000000001bf77b37: 000000000000000d (0xd)
[ 56.998802] 0000000084867819: 0000000000000010 (0x10)
[ 56.998802] 000000005fa490e1: 00007f8548c623c7 (0x7f8548c623c7)
[ 56.998802] 0000000081546fd6: 0000000000000033 (0x33)
[ 56.998802] 000000007639221d: 0000000000003246 (0x3246)
[ 56.998803] 0000000021e61a60: 00007ffe66b4a538 (0x7ffe66b4a538)
[ 56.998803] 00000000c5c02ad2: 000000000000002b (0x2b)
[ 56.998886] ? _nv028097rm+0x79/0x90 [nvidia]
[ 56.998970] ? _nv028097rm+0x55/0x90 [nvidia]
[ 56.999049] ? _nv013699rm+0xee/0x100 [nvidia]
[ 56.999127] ? _nv015347rm+0x154/0x270 [nvidia]
[ 56.999229] ? _nv008317rm+0x134/0x1a0 [nvidia]
[ 56.999330] ? _nv008296rm+0x29c/0x2b0 [nvidia]
[ 56.999432] ? _nv001072rm+0xe/0x20 [nvidia]
[ 56.999533] ? _nv007324rm+0xd8/0x100 [nvidia]
[ 56.999630] ? _nv001171rm+0x627/0x830 [nvidia]
[ 56.999727] ? rm_ioctl+0x73/0x100 [nvidia]
[ 56.999728] ? __check_object_size+0x91/0x178
[ 56.999793] ? nvidia_ioctl+0x563/0x720 [nvidia]
[ 56.999857] ? nvidia_frontend_unlocked_ioctl+0x3e/0x50 [nvidia]
[ 56.999858] ? do_vfs_ioctl+0xa8/0x620
[ 56.999860] ? handle_mm_fault+0xe1/0x210
[ 56.999861] ? ksys_ioctl+0x67/0x90
[ 56.999862] ? __x64_sys_ioctl+0x1a/0x20
[ 56.999863] ? do_syscall_64+0x5a/0x110
[ 56.999864] ? entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 56.999865] ---[ end trace a57b4ec5e4632ec4 ]---

ProblemType: Bug
DistroRelease: Ubuntu 18.10
Package: ubuntu-release-upgrader-core 1:18.10.11.1
ProcVersionSignature: Ubuntu 4.18.0-10.11-generic 4.18.12
Uname: Linux 4.18.0-10-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.10-0ubuntu13
Architecture: amd64
CrashDB: ubuntu
CurrentDesktop: XFCE
Date: Wed Nov 7 07:26:20 2018
PackageArchitecture: all
SourcePackage: ubuntu-release-upgrader
Symptom: dist-upgrade
UpgradeStatus: Upgraded to cosmic on 2018-11-07 (0 days ago)
VarLogDistupgradeTermlog:

Kernel module crash after dist-upgrade from 18.04 to 18.10. This happens after every boot. I rebuild dkms modules twice. Everything else runs smoothly :-)

tags: added: bionic2cosmic
tags: added: third-party-packages
affects: ubuntu-release-upgrader (Ubuntu) → linux (Ubuntu)

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1802050

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Changed in linux (Ubuntu):
importance: Undecided → High
status: Incomplete → Triaged
tags: added: kernel-da-key
Changed in linux (Ubuntu):
status: Triaged → Confirmed
Tamer Hassan (tamer.hassan) wrote :

redhat fixed it https://bugzilla.redhat.com/show_bug.cgi?id=1570493
debian followed also with the same patch https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=901919

still affects me:

kubuntu 18.10
linux-image-4.18.0-13-generic = 4.18.0-13.14
nvidia-driver-390 = 390.87-0ubuntu1

affects: linux (Ubuntu) → nvidia-graphics-drivers-390 (Ubuntu)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

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