amdgpu_bo_vm_destroy null pointer dereference in kernel 5.15.119
Before submitting your bug report:
Brief summary of the problem:
Trying to boot with a 5.15.119 kernel results in a NULL pointer dereference:
[ 23.473152] BUG: kernel NULL pointer dereference, address: 00000000000002b0
[ 23.474605] #PF: supervisor read access in kernel mode
[ 23.475424] #PF: error_code(0x0000) - not-present page
[ 23.476242] PGD 0 P4D 0
[ 23.476982] Oops: 0000 [#1] SMP NOPTI
[ 23.477700] CPU: 8 PID: 1328 Comm: Xorg.wrap Tainted: G E 5.15.119 #640
[ 23.478452] Hardware name: HP HP Pavilion Aero Laptop 13-be0xxx/8916, BIOS F.12 04/11/2023
[ 23.479335] RIP: 0010:amdgpu_bo_vm_destroy+0x1a/0x90 [amdgpu]
[ 23.480191] Code: 8b e0 5b 41 5c 5d 31 f6 31 ff c3 cc cc cc cc 90 0f 1f 44 00 00 55 48 89 e5 41 56 41 55 41 54 53 4c 8b a7 e8 01 00 00 48 89 fb <49> 8b 84 24 b0 02 00 00 4d 8d ac 24 b0 02 00 00 49 39 c5 74 45 48
[ 23.480952] RSP: 0018:ffffab62810a7c58 EFLAGS: 00010246
[ 23.481740] RAX: ffffffffc0432890 RBX: ffff8fc8c8730058 RCX: 0000000000000000
[ 23.482503] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8fc8c8730058
[ 23.483268] RBP: ffffab62810a7c78 R08: 0000000000000000 R09: 0000000000000000
[ 23.484033] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
[ 23.484805] R13: ffff8fc8d1205350 R14: ffff8fc8c8730058 R15: 0000000000008001
[ 23.485626] FS: 00007f4166351740(0000) GS:ffff8fcbce800000(0000) knlGS:0000000000000000
[ 23.486390] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 23.487149] CR2: 00000000000002b0 CR3: 000000010528a000 CR4: 0000000000750ee0
[ 23.487945] PKRU: 55555554
[ 23.488735] Call Trace:
[ 23.489511] <TASK>
[ 23.490259] ? __die_body.cold+0x1a/0x1f
[ 23.491057] ? __die+0x2a/0x3b
[ 23.491895] ? page_fault_oops+0x170/0x2f0
[ 23.492764] ? do_user_addr_fault+0x328/0x670
[ 23.493623] ? exc_page_fault+0x81/0x190
[ 23.494480] ? asm_exc_page_fault+0x27/0x30
[ 23.495340] ? amdgpu_bo_destroy+0x80/0x80 [amdgpu]
[ 23.496309] ? amdgpu_bo_vm_destroy+0x1a/0x90 [amdgpu]
[ 23.497107] ttm_bo_release+0x23c/0x370 [ttm]
[ 23.497828] ttm_bo_put+0x3c/0x70 [ttm]
[ 23.498544] amdgpu_bo_unref+0x1e/0x40 [amdgpu]
[ 23.499314] amdgpu_driver_postclose_kms+0x19c/0x250 [amdgpu]
[ 23.500104] drm_file_free.part.0+0x218/0x2e0 [drm]
[ 23.500836] drm_close_helper.isra.0+0x60/0x70 [drm]
[ 23.501557] drm_release+0x6a/0xf0 [drm]
[ 23.502273] __fput+0x98/0x270
[ 23.502975] ____fput+0xe/0x20
[ 23.503674] task_work_run+0x6d/0xb0
[ 23.504373] exit_to_user_mode_prepare+0x1b8/0x1c0
[ 23.505099] syscall_exit_to_user_mode+0x27/0x50
[ 23.505793] ? __x64_sys_close+0x11/0x50
[ 23.506483] do_syscall_64+0x67/0x90
[ 23.507169] ? syscall_exit_to_user_mode+0x27/0x50
[ 23.507857] ? do_syscall_64+0x67/0x90
[ 23.508554] ? do_syscall_64+0x67/0x90
[ 23.509238] ? do_user_addr_fault+0x1da/0x670
[ 23.509920] ? exit_to_user_mode_prepare+0x39/0x1c0
[ 23.510605] ? irqentry_exit_to_user_mode+0x9/0x20
[ 23.511285] ? irqentry_exit+0x21/0x40
[ 23.511954] ? exc_page_fault+0x93/0x190
[ 23.512632] entry_SYSCALL_64_after_hwframe+0x61/0xcb
[ 23.513304] RIP: 0033:0x7f416644c7c0
[ 23.513971] Code: 0d 00 00 00 eb b2 e8 3f f7 01 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 80 3d 21 1e 0e 00 00 74 17 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 48 c3 0f 1f 80 00 00 00 00 48 83 ec 18 89 7c
[ 23.514672] RSP: 002b:00007ffee0d7e458 EFLAGS: 00000202 ORIG_RAX: 0000000000000003
[ 23.515375] RAX: 0000000000000000 RBX: 0000000000000003 RCX: 00007f416644c7c0
[ 23.516075] RDX: 0000000000000000 RSI: 00000000c04064a0 RDI: 0000000000000003
[ 23.516780] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000064
[ 23.517477] R10: 00007f416636b478 R11: 0000000000000202 R12: 00007ffee0d7e550
[ 23.518170] R13: 0000000000000001 R14: 00000000c04064a0 R15: 0000000000000000
[ 23.518866] </TASK>
[ 23.519552] Modules linked in: overlay(E) qrtr(E) cmac(E) algif_hash(E) algif_skcipher(E) af_alg(E) bnep(E) binfmt_misc(E) nls_iso8859_1(E) snd_hda_codec_realtek(E) joydev(E) snd_hda_codec_generic(E) uvcvideo(E) snd_hda_codec_hdmi(E) ledtrig_audio(E) btusb(E) videobuf2_vmalloc(E) intel_rapl_msr(E) videobuf2_memops(E) btrtl(E) snd_hda_intel(E) intel_rapl_common(E) snd_intel_dspcfg(E) btbcm(E) videobuf2_v4l2(E) snd_hda_codec(E) kvm_amd(E) btintel(E) videobuf2_common(E) snd_acp3x_pdm_dma(E) hp_wmi(E) sparse_keymap(E) snd_acp3x_rn(E) snd_soc_dmic(E) platform_profile(E) wmi_bmof(E) snd_soc_core(E) snd_hwdep(E) kvm(E) videodev(E) irqbypass(E) bluetooth(E) mc(E) snd_hda_core(E) ecdh_generic(E) snd_pci_acp5x(E) ecc(E) rapl(E) snd_pcm(E) snd_rn_pci_acp3x(E) pcspkr(E) snd_timer(E) ucsi_acpi(E) snd_pci_acp3x(E) snd(E) typec_ucsi(E) soundcore(E) ccp(E) k10temp(E) typec(E) wmi(E) video(E) acpi_tad(E) amd_pmc(E) input_leds(E) mac_hid(E) hid_multitouch(E) serio_raw(E) parport_pc(E) ppdev(E) lp(E)
[ 23.519584] parport(E) efi_pstore(E) dmi_sysfs(E) ip_tables(E) x_tables(E) autofs4(E) btrfs(E) blake2b_generic(E) libcrc32c(E) xor(E) zstd_compress(E) raid6_pq(E) dm_crypt(E) uas(E) usb_storage(E) amdgpu(E) drm_ttm_helper(E) ttm(E) iommu_v2(E) gpu_sched(E) i2c_algo_bit(E) drm_kms_helper(E) syscopyarea(E) sysfillrect(E) sysimgblt(E) fb_sys_fops(E) crct10dif_pclmul(E) crc32_pclmul(E) cec(E) ghash_clmulni_intel(E) aesni_intel(E) rc_core(E) xhci_pci(E) nvme(E) crypto_simd(E) hid_generic(E) cryptd(E) drm(E) i2c_piix4(E) amd_sfh(E) xhci_pci_renesas(E) nvme_core(E) i2c_hid_acpi(E) i2c_hid(E) hid(E)
[ 23.524400] CR2: 00000000000002b0
[ 23.525270] ---[ end trace dd6304f8d7a85c0a ]---
[ 26.591102] RIP: 0010:amdgpu_bo_vm_destroy+0x1a/0x90 [amdgpu]
[ 26.592575] Code: 8b e0 5b 41 5c 5d 31 f6 31 ff c3 cc cc cc cc 90 0f 1f 44 00 00 55 48 89 e5 41 56 41 55 41 54 53 4c 8b a7 e8 01 00 00 48 89 fb <49> 8b 84 24 b0 02 00 00 4d 8d ac 24 b0 02 00 00 49 39 c5 74 45 48
[ 26.594511] RSP: 0018:ffffab62810a7c58 EFLAGS: 00010246
[ 26.595847] RAX: ffffffffc0432890 RBX: ffff8fc8c8730058 RCX: 0000000000000000
[ 26.596811] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8fc8c8730058
[ 26.597754] RBP: ffffab62810a7c78 R08: 0000000000000000 R09: 0000000000000000
[ 26.598713] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
[ 26.599667] R13: ffff8fc8d1205350 R14: ffff8fc8c8730058 R15: 0000000000008001
[ 26.600633] FS: 00007f4166351740(0000) GS:ffff8fcbce800000(0000) knlGS:0000000000000000
[ 26.601621] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 26.602542] CR2: 00000000000002b0 CR3: 000000010528a000 CR4: 0000000000750ee0
[ 26.603476] PKRU: 55555554
Hardware description: HP Pavilion Aero Laptop 13-be0xxx/8916, BIOS F.12 04/11/2023
- CPU: AMD Ryzen 7 5800U with Radeon Graphics
- GPU: [AMD/ATI] Cezanne [Radeon Vega Series / Radeon Vega Mobile Series] [1002:1638] (rev c1)
- System Memory: 16GB
- Display(s): laptop
- Type of Display Connection: eDP
System information:
- Debian 12
- Custom kernel:
- AMD official driver version: N/A