BUG: kernel NULL pointer dereference, address: 0000000000000038
Brief summary of the problem:
When I play SecondLife with high graphics prefs (reflections, shadows), [after a thaw] then the screen freezes and power consumption increases a lot, while ping (on another box) is still receiving ICMP replies... It happens every time so far. There are lots of kernel messages, that I could harvest after a reset. It worked fine with 5.19.14.
Hardware description:
- CPU: AMD A10-5800K
- GPU: 01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Lexa PRO [Radeon 540/540X/550/550X / RX 540X/550/550X] [1002:699f] (rev c7)
- System Memory: 8GiB
- Display: 2560*1080
- Type of Display Connection: HDMI-A-0
System information:
- Distro name and Version: Archlinux with kernel from kernel.org
- Kernel version: Linux vaako.intern.wgboome.org 6.0.2-ARNE #2 SMP PREEMPT_DYNAMIC Sat Oct 15 18:11:38 TAI 2022 x86_64 GNU/Linux
- Custom kernel: my own .config file to keep the size small
- AMD official driver version: I use the amdgpu from kernel.org
- i use the ondemand cpufreq scaling governor
How to reproduce the issue:
- reboot
- play SecondLife (works fine)
- echo disk > /sys/power/state
- thaw
- play SecondLife (freezes when another avatar comes near and fps goes down from 20 to 5)
Log files (for system lockups / game freezes / crashes)
kernel messages about the BUG
BUG: kernel NULL pointer dereference, address: 0000000000000038
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 0 P4D 0
Oops: 0000 [#1] PREEMPT SMP NOPTI
CPU: 0 PID: 26584 Comm: do-not-dir:cs0 Not tainted 6.0.2-ARNE #2
Hardware name: Gigabyte Technology Co., Ltd. To be filled by O.E.M./F2A88XM-D3H, BIOS F10a 02/23/2016
RIP: 0010:ttm_resource_del_bulk_move+0x57/0xb0 [ttm]
Code: 0c b1 48 c1 e1 04 48 01 ca 48 3b 3a 48 8b 4a 08 74 46 48 39 cf 74 30 48 8b 70 40 48 8d 57 38 48 8b 7f 38 48 89 77 08 48 89 3e <48> 8b 71 38 48 89 56 08 48 89 70 38 48 8d 71 38 48 89 70 40 48 89
RSP: 0018:ffffa7cb84623840 EFLAGS: 00010282
RAX: ffff8e08dcc5d540 RBX: ffff8e08e74259b0 RCX: 0000000000000000
RDX: ffff8e08dcc5d578 RSI: ffff8e094819ddb8 RDI: ffff8e094b2921b8
RBP: ffff8e08e7425858 R08: 0000000000000400 R09: 0000000000000001
R10: 0000000000000001 R11: 0000000000000001 R12: ffff8e098034ce00
R13: 0000000000000001 R14: ffff8e0945c65b98 R15: ffff8e0945c65aa0
FS: 00007fe5eeb0f6c0(0000) GS:ffff8e0a76c00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000038 CR3: 0000000105b30000 CR4: 00000000000406f0
Call Trace:
ttm_resource_free+0x2c/0x80 [ttm]
ttm_bo_move_accel_cleanup+0xbc/0x290 [ttm]
amdgpu_bo_move+0x1b1/0x750 [amdgpu]
ttm_bo_handle_move_mem+0xbc/0x180 [ttm]
ttm_mem_evict_first+0x1d9/0x490 [ttm]
ttm_bo_mem_space+0x1f0/0x240 [ttm]
ttm_bo_validate+0xb7/0x140 [ttm]
? asm_common_interrupt+0x22/0x40
amdgpu_cs_bo_validate+0xa7/0x2a0 [amdgpu]
amdgpu_cs_list_validate+0xf4/0x130 [amdgpu]
amdgpu_cs_ioctl+0xf5f/0x1ed0 [amdgpu]
? ttwu_do_wakeup.constprop.0+0x34/0x100
? amdgpu_cs_find_mapping+0x110/0x110 [amdgpu]
drm_ioctl_kernel+0xe2/0x190
drm_ioctl+0x244/0x480
? amdgpu_cs_find_mapping+0x110/0x110 [amdgpu]
? ioctl_has_perm.constprop.0.isra.0+0xc8/0x130
amdgpu_drm_ioctl+0x59/0xa0 [amdgpu]
__x64_sys_ioctl+0xb3/0xe0
? exit_to_user_mode_prepare+0x40/0x140
do_syscall_64+0x3a/0x90
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fe60c7a4c0f
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 18 48 8b 44 24 18 64 48 2b 04 25 28 00 00
RSP: 002b:00007fe5eeb082b0 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fe5eeb09188 RCX: 00007fe60c7a4c0f
RDX: 00007fe5eeb08380 RSI: 00000000c0186444 RDI: 0000000000000025
RBP: 00007fe5eeb08380 R08: 00007fe5eeb091f0 R09: 00007fe5eeb08350
R10: 00007fe60c129a00 R11: 0000000000000246 R12: 00000000c0186444
R13: 0000000000000025 R14: 00007fe5eeb09188 R15: 0000000000000004
Modules linked in: fuse configfs amdgpu drm_ttm_helper ttm gpu_sched drm_buddy drm_display_helper drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops [last unloaded: cpufreq_ondemand]
CR2: 0000000000000038
---[ end trace 0000000000000000 ]---
RIP: 0010:ttm_resource_del_bulk_move+0x57/0xb0 [ttm]
Code: 0c b1 48 c1 e1 04 48 01 ca 48 3b 3a 48 8b 4a 08 74 46 48 39 cf 74 30 48 8b 70 40 48 8d 57 38 48 8b 7f 38 48 89 77 08 48 89 3e <48> 8b 71 38 48 89 56 08 48 89 70 38 48 8d 71 38 48 89 70 40 48 89
RSP: 0018:ffffa7cb84623840 EFLAGS: 00010282
RAX: ffff8e08dcc5d540 RBX: ffff8e08e74259b0 RCX: 0000000000000000
RDX: ffff8e08dcc5d578 RSI: ffff8e094819ddb8 RDI: ffff8e094b2921b8
RBP: ffff8e08e7425858 R08: 0000000000000400 R09: 0000000000000001
R10: 0000000000000001 R11: 0000000000000001 R12: ffff8e098034ce00
R13: 0000000000000001 R14: ffff8e0945c65b98 R15: ffff8e0945c65aa0
FS: 00007fe5eeb0f6c0(0000) GS:ffff8e0a76c00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000038 CR3: 0000000105b30000 CR4: 00000000000406f0
note: do-not-dir:cs0[26584] exited with preempt_count 1