Likewise, here is the trace.

[ 1359.082721] ------------[ cut here ]------------
[ 1359.082725] UBSAN: array-index-out-of-bounds in 
build/nvidia/535.183.01/build/nvidia-uvm/uvm_pmm_gpu.c:2364:28
[ 1359.082731] index 0 is out of range for type 'uvm_gpu_chunk_t *[*]'
[ 1359.082733] CPU: 3 PID: 27619 Comm: ffmpeg Tainted: P           OE      
6.8.0-45-generic #45-Ubuntu
[ 1359.082737] Hardware name: ASRock Z790 Nova WiFi/Z790 Nova WiFi, BIOS 1.39 
09/15/2023
[ 1359.082738] Call Trace:
[ 1359.082740]  <TASK>
[ 1359.082744]  dump_stack_lvl+0x76/0xa0
[ 1359.082754]  dump_stack+0x10/0x20
[ 1359.082757]  __ubsan_handle_out_of_bounds+0xc6/0x110
[ 1359.082763]  split_gpu_chunk+0x13f/0x410 [nvidia_uvm]
[ 1359.082827]  uvm_pmm_gpu_alloc+0x2da/0x6d0 [nvidia_uvm]
[ 1359.082880]  phys_mem_allocate+0xac/0x230 [nvidia_uvm]
[ 1359.082935]  ? __vmalloc_node+0x4e/0x80
[ 1359.082940]  allocate_directory+0xb4/0x130 [nvidia_uvm]
[ 1359.082991]  ? allocate_directory+0xb4/0x130 [nvidia_uvm]
[ 1359.083041]  uvm_page_tree_init+0x133/0x450 [nvidia_uvm]
[ 1359.083093]  uvm_gpu_retain_by_uuid+0x19df/0x2b80 [nvidia_uvm]
[ 1359.083143]  uvm_va_space_register_gpu+0x47/0x740 [nvidia_uvm]
[ 1359.083192]  uvm_api_register_gpu+0x5a/0x90 [nvidia_uvm]
[ 1359.083245]  uvm_ioctl+0x1a26/0x1cd0 [nvidia_uvm]
[ 1359.083288]  ? ovl_get_inode+0x327/0x5b0 [overlay]
[ 1359.083308]  ? __d_add+0x118/0x1e0
[ 1359.083313]  ? d_splice_alias+0x99/0x2f0
[ 1359.083317]  ? ovl_lookup+0x9e5/0xe50 [overlay]
[ 1359.083333]  ? xa_load+0x87/0xf0
[ 1359.083337]  ? _raw_spin_lock_irqsave+0xe/0x20
[ 1359.083342]  ? thread_context_non_interrupt_add+0x13a/0x250 [nvidia_uvm]
[ 1359.083394]  uvm_unlocked_ioctl_entry.part.0+0x7b/0xf0 [nvidia_uvm]
[ 1359.083423]  ? mntput+0x24/0x50
[ 1359.083426]  ? __seccomp_filter+0x368/0x570
[ 1359.083431]  uvm_unlocked_ioctl_entry+0x6b/0x90 [nvidia_uvm]
[ 1359.083460]  __x64_sys_ioctl+0xa0/0xf0
[ 1359.083463]  x64_sys_call+0x143b/0x25c0
[ 1359.083466]  do_syscall_64+0x7f/0x180
[ 1359.083470]  ? next_uptodate_folio+0xa9/0x320
[ 1359.083473]  ? filemap_map_pages+0x2fe/0x4c0
[ 1359.083476]  ? do_read_fault+0x112/0x1d0
[ 1359.083479]  ? do_fault+0x109/0x350
[ 1359.083481]  ? handle_pte_fault+0x114/0x1d0
[ 1359.083484]  ? __handle_mm_fault+0x653/0x790
[ 1359.083487]  ? __count_memcg_events+0x6b/0x120
[ 1359.083489]  ? count_memcg_events.constprop.0+0x2a/0x50
[ 1359.083493]  ? handle_mm_fault+0xad/0x380
[ 1359.083495]  ? do_user_addr_fault+0x32c/0x670
[ 1359.083498]  ? irqentry_exit_to_user_mode+0x7e/0x260
[ 1359.083502]  ? irqentry_exit+0x43/0x50
[ 1359.083505]  ? exc_page_fault+0x94/0x1b0
[ 1359.083508]  entry_SYSCALL_64_after_hwframe+0x78/0x80
[ 1359.083512] RIP: 0033:0x77ad264aac5b
[ 1359.083542] Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 
00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 
00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00
[ 1359.083544] RSP: 002b:00007ffff50a2190 EFLAGS: 00000246 ORIG_RAX: 
0000000000000010
[ 1359.083547] RAX: ffffffffffffffda RBX: 000077ad25f00860 RCX: 000077ad264aac5b
[ 1359.083549] RDX: 00007ffff50a2230 RSI: 0000000000000025 RDI: 0000000000000005
[ 1359.083550] RBP: 00007ffff50a2290 R08: 000077ad25f008f0 R09: 0000000000000000
[ 1359.083551] R10: 000077ad263b9900 R11: 0000000000000246 R12: 00005a57c9d6d1a6
[ 1359.083552] R13: 000077ad25f008f0 R14: 00007ffff50a2230 R15: 0000000000000005
[ 1359.083555]  </TASK>
[ 1359.083562] ---[ end trace ]---

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-restricted-modules in Ubuntu.
https://bugs.launchpad.net/bugs/2074120

Title:
  Hang after upgrading kernel+nvidia drivers

Status in linux-restricted-modules package in Ubuntu:
  Confirmed

Bug description:
  Machine hangs after upgrading kernel and drivers to
  linux-.*-6.8.0-39-generic

  After booting back into 6.8.0-36-generic I can see a kernel stack
  trace for the previous boot:

  2024-07-25T22:27:14.214014+02:00 pirx kernel: UBSAN: 
array-index-out-of-bounds in 
build/nvidia/535.183.01/build/nvidia-uvm/uvm_pmm_gpu.c:2364:28
  2024-07-25T22:27:14.214015+02:00 pirx kernel: index 0 is out of range for 
type 'uvm_gpu_chunk_t *[*]'
  2024-07-25T22:27:14.214017+02:00 pirx kernel: CPU: 14 PID: 3306 Comm: boinc 
Tainted: P           O       6.8.0-39-generic #39-Ubuntu
  2024-07-25T22:27:14.214017+02:00 pirx kernel: Hardware name: LENOVO 
20STCTO1WW/20STCTO1WW, BIOS N30ET54W (1.37 ) 03/06/2024
  2024-07-25T22:27:14.214018+02:00 pirx kernel: Call Trace:
  2024-07-25T22:27:14.214027+02:00 pirx kernel:  <TASK>
  2024-07-25T22:27:14.214028+02:00 pirx kernel:  dump_stack_lvl+0x76/0xa0
  2024-07-25T22:27:14.214028+02:00 pirx kernel:  dump_stack+0x10/0x20
  2024-07-25T22:27:14.214029+02:00 pirx kernel:  
__ubsan_handle_out_of_bounds+0xc6/0x110
  2024-07-25T22:27:14.214030+02:00 pirx kernel:  split_gpu_chunk+0x13f/0x410 
[nvidia_uvm]
  2024-07-25T22:27:14.214030+02:00 pirx kernel:  uvm_pmm_gpu_alloc+0x2da/0x6d0 
[nvidia_uvm]
  2024-07-25T22:27:14.214031+02:00 pirx kernel:  phys_mem_allocate+0xac/0x230 
[nvidia_uvm]
  2024-07-25T22:27:14.214032+02:00 pirx kernel:  allocate_directory+0xb4/0x130 
[nvidia_uvm]
  2024-07-25T22:27:14.214032+02:00 pirx kernel:  ? 
allocate_directory+0xb4/0x130 [nvidia_uvm]
  2024-07-25T22:27:14.214033+02:00 pirx kernel:  uvm_page_tree_init+0x133/0x450 
[nvidia_uvm]
  2024-07-25T22:27:14.214033+02:00 pirx kernel:  
uvm_gpu_retain_by_uuid+0x19df/0x2b80 [nvidia_uvm]
  2024-07-25T22:27:14.214034+02:00 pirx kernel:  
uvm_va_space_register_gpu+0x47/0x740 [nvidia_uvm]
  2024-07-25T22:27:14.214035+02:00 pirx kernel:  ? __find_get_block+0x9d/0xc0
  2024-07-25T22:27:14.214035+02:00 pirx kernel:  uvm_api_register_gpu+0x5a/0x90 
[nvidia_uvm]
  2024-07-25T22:27:14.214036+02:00 pirx kernel:  uvm_ioctl+0x1a26/0x1cd0 
[nvidia_uvm]
  2024-07-25T22:27:14.214036+02:00 pirx kernel:  ? unlock_new_inode+0x55/0x70
  2024-07-25T22:27:14.214037+02:00 pirx kernel:  ? __ext4_iget+0x9ca/0x1120
  2024-07-25T22:27:14.214037+02:00 pirx kernel:  ? __d_add+0x118/0x1e0
  2024-07-25T22:27:14.214037+02:00 pirx kernel:  ? xa_load+0x87/0xf0
  2024-07-25T22:27:14.214038+02:00 pirx kernel:  ? 
ktime_get_with_offset+0x5f/0xf0
  2024-07-25T22:27:14.214039+02:00 pirx kernel:  ? 
_raw_spin_lock_irqsave+0xe/0x20
  2024-07-25T22:27:14.214039+02:00 pirx kernel:  ? 
thread_context_non_interrupt_add+0x13a/0x250 [nvidia_uvm]
  2024-07-25T22:27:14.214040+02:00 pirx kernel:  
uvm_unlocked_ioctl_entry.part.0+0x7b/0xf0 [nvidia_uvm]
  2024-07-25T22:27:14.214041+02:00 pirx kernel:  ? 
next_uptodate_folio+0xa9/0x320
  2024-07-25T22:27:14.214041+02:00 pirx kernel:  
uvm_unlocked_ioctl_entry+0x6b/0x90 [nvidia_uvm]
  2024-07-25T22:27:14.214042+02:00 pirx kernel:  __x64_sys_ioctl+0xa0/0xf0
  2024-07-25T22:27:14.214043+02:00 pirx kernel:  x64_sys_call+0x143b/0x25c0
  2024-07-25T22:27:14.214043+02:00 pirx kernel:  do_syscall_64+0x7f/0x180
  2024-07-25T22:27:14.214044+02:00 pirx kernel:  ? do_read_fault+0x112/0x1d0
  2024-07-25T22:27:14.214044+02:00 pirx kernel:  ? do_fault+0x109/0x350
  2024-07-25T22:27:14.214045+02:00 pirx kernel:  ? handle_pte_fault+0x114/0x1d0

  ProblemType: Bug
  DistroRelease: Ubuntu 24.04
  Package: linux-modules-nvidia-535-generic-hwe-24.04 6.8.0-39.39
  ProcVersionSignature: Ubuntu 6.8.0-36.36-generic 6.8.4
  Uname: Linux 6.8.0-36-generic x86_64
  NonfreeKernelModules: zfs nvidia_modeset nvidia
  ApportVersion: 2.28.1-0ubuntu3
  Architecture: amd64
  CasperMD5CheckResult: pass
  CurrentDesktop: ubuntu:GNOME
  Date: Thu Jul 25 22:48:23 2024
  InstallationDate: Installed on 2024-05-27 (59 days ago)
  InstallationMedia: Ubuntu 24.04 LTS "Noble Numbat" - Release amd64 (20240424)
  SourcePackage: linux-restricted-modules
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-restricted-modules/+bug/2074120/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to