Null pointer when rearranging screen layout in XFCE.
Brief summary of the problem:
I originally opened the bug here and was asked to report it here as well.
I was rearranging the monitors using the "display" section of settings manager in XFCE 4.18 (Debian trixie) Any attempt to apply the settings after moving either of the 1080p screens to above the 4k monitors causes this crash. It is important to note that the 1080p monitors were connected via a DisplayPort Switch. If I take one of the monitors off of the switch and move it back to direct HDMI, the crash goes away. The 4K monitors were always directly connected via DisplayPort and not through the switch.
Hardware description:
- CPU: AMD Ryzen 9 5950X 16-Core Processor (32 threads)
- GPU: 0d:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] [1002:67df] (rev e7)
- System Memory: 64 GB DDR4 (4x CORSAIR Vengeance LPX 16GB CMK32GX4M2E3200C16)
- Display(s): 2x Idea Display 4k monitors 2x Koorui 1080p monitors
- Type of Display Connection: DisplayPort
- HEZOOMS 8k DisplayPort Splitter 1 in 3 Out 8K@30Hz 4K@120Hz DP 1.4 Splitter Triple MST SST Hub Adapter 1x3 Port for 1 DisplayPort Ultra HD Source to 3 HD Display Port (asin B09B9KDZRQ)
System information:
- Distro name and Version: Debian Trixie
- Kernel version: Linux fpc 6.6.1 #108 (closed) SMP PREEMPT_DYNAMIC Sun Nov 12 18:45:04 EST 2023 x86_64 GNU/Linux
- Custom kernel: <TODO: e.g., N/A or Kernel from amd-staging-drm-next >
- AMD official driver version: <TODO: e.g., N/A or released from AMD website version XYZ>
How to reproduce the issue:
Connect two monitors via Displayport switch and try to rearrange the layout using XFCE's display widget.
Xorg.1.log
Attached files:Log files (for system lockups / game freezes / crashes)
[ T8277] [drm] enabling link 2 failed: 15
[T735019] [drm] DM_MST: starting TM on aconnector: 00000000c46ac3ce [id: 90]
[T735019] [drm] DM_MST: DP14, 4-lane link detected
[ T1964] [drm] Downstream port present 1, type 0
[ T1964] [drm] Downstream port present 1, type 0
[ T1964] BUG: kernel NULL pointer dereference, address: 0000000000000008
[ T1964] #PF: supervisor read access in kernel mode
[ T1964] #PF: error_code(0x0000) - not-present page
[ T1964] PGD 0 P4D 0
[ T1964] Oops: 0000 [#1] PREEMPT SMP NOPTI
[ T1964] CPU: 18 PID: 1964 Comm: Xorg Not tainted 6.6.1 #105 f5daab5eed957cb04dc67ffe7686855edcd2952d
[ T1964] Hardware name: To Be Filled By O.E.M. B550 Taichi/B550 Taichi, BIOS P3.20 09/27/2023
[ T1964] RIP: 0010:drm_dp_atomic_find_time_slots+0x57/0x1e0 [drm_display_helper]
[ T1964] Code: 0f 87 9d 01 00 00 48 8b 85 28 05 00 00 31 d2 48 63 80 88 00 00 00 41 3b 44 24 28 7d 0d 48 6b c0 28 49 03 44 24 30 48 8b 50 18 <48> 8b 42 08 48 89 ee 48 89 df 8b 88 90 00 00 00 b8 01 00 00 00 d3
[ T1964] RSP: 0018:ffff9fae41d23740 EFLAGS: 00010286
[ T1964] RAX: ffff8fff3e8b34a0 RBX: ffff8fff5566bea0 RCX: 0000000000000002
[ T1964] RDX: 0000000000000000 RSI: ffff8ffb54d8a578 RDI: ffff8ffb40cba380
[ T1964] RBP: ffff8ffbab871000 R08: ffff9fae41d23ac0 R09: 0000000000000001
[ T1964] R10: 0000000000000001 R11: 0000000000000000 R12: ffff8ffb40cba380
[ T1964] R13: ffff8ffb54d8a578 R14: 0000000000000224 R15: 000000005566bea0
[ T1964] FS: 00007f5d493b9ac0(0000) GS:ffff900a3ec80000(0000) knlGS:0000000000000000
[ T1964] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ T1964] CR2: 0000000000000008 CR3: 000000012c414000 CR4: 0000000000f50ee0
[ T1964] PKRU: 55555554
[ T1964] Call Trace:
[ T1964] <TASK>
[ T1964] ? __die_body+0x15/0x54
[ T1964] ? page_fault_oops+0x323/0x36d
[ T1964] ? prep_new_page+0x2c/0x41
[ T1964] ? __zone_watermark_ok+0x12/0x129
[ T1964] ? zone_watermark_fast.isra.0+0x3a/0xa8
[ T1964] ? exc_page_fault+0x159/0x4f9
[ T1964] ? asm_exc_page_fault+0x26/0x30
[ T1964] ? drm_dp_atomic_find_time_slots+0x57/0x1e0 [drm_display_helper 13cd3e40727f81da5f41f67251f92c3e185bfce2]
[ T1964] compute_mst_dsc_configs_for_link+0x29b/0x7fd [amdgpu fbf1bf60e08d117709867e08fb9a7a26125134a3]
[ T1964] ? do_mprotect_pkey+0x1b1/0x3ae
[ T1964] ? __rmqueue_pcplist+0x98/0x3e6
[ T1964] compute_mst_dsc_configs_for_state+0x119/0x1a8 [amdgpu fbf1bf60e08d117709867e08fb9a7a26125134a3]
[ T1964] amdgpu_dm_atomic_check+0x9ba/0xd9e [amdgpu fbf1bf60e08d117709867e08fb9a7a26125134a3]
[ T1964] ? kmem_cache_debug_flags+0x5/0x11
[ T1964] ? slab_post_alloc_hook+0x70/0x17f
[ T1964] ? slab_pre_alloc_hook.constprop.0+0x49/0x14c
[ T1964] ? amdgpu_dm_connector_atomic_duplicate_state+0x24/0xa4 [amdgpu fbf1bf60e08d117709867e08fb9a7a26125134a3]
[ T1964] ? __kmem_cache_alloc_node+0x10b/0x137
[ T1964] drm_atomic_check_only+0x6df/0x812
[ T1964] drm_atomic_commit+0x6a/0xc1
[ T1964] ? __drm_printfn_seq_file+0x17/0x17
[ T1964] ? __drm_printfn_seq_file+0x17/0x17
[ T1964] drm_atomic_helper_set_config+0x54/0x6b
[ T1964] drm_mode_setcrtc+0x457/0x56b
[ T1964] ? drm_mode_getcrtc+0x13f/0x13f
[ T1964] drm_ioctl_kernel+0xe9/0x13c
[ T1964] drm_ioctl+0x278/0x3a4
[ T1964] ? drm_mode_getcrtc+0x13f/0x13f
[ T1964] amdgpu_drm_ioctl+0x4a/0x79 [amdgpu fbf1bf60e08d117709867e08fb9a7a26125134a3]
[ T1964] vfs_ioctl+0x1d/0x2b
[ T1964] __do_sys_ioctl+0x67/0x8a
[ T1964] do_syscall_64+0x82/0xa3
[ T1964] ? do_syscall_64+0x9c/0xa3
[ T1964] ? exit_to_user_mode_prepare+0x15/0x108
[ T1964] entry_SYSCALL_64_after_hwframe+0x63/0xcd
[ T1964] RIP: 0033:0x7f5d4971b51b
[ T1964] 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
[ T1964] RSP: 002b:00007fff64f3c570 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[ T1964] RAX: ffffffffffffffda RBX: 0000556fd09e6af0 RCX: 00007f5d4971b51b
[ T1964] RDX: 00007fff64f3c600 RSI: 00000000c06864a2 RDI: 000000000000000f
[ T1964] RBP: 00007fff64f3c600 R08: 0000000000000000 R09: 0000556fd0922010
[ T1964] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000c06864a2
[ T1964] R13: 000000000000000f R14: 0000556fce97b680 R15: 0000556fceb92d00
[ T1964] </TASK>
[ T1964] Modules linked in: xfs cifs cifs_arc4 dns_resolver nls_ucs2_utils fscache netfs cifs_md4 snd_seq_dummy snd_hrtimer tun l2tp_ppp l2tp_netlink l2tp_core pppox ppp_generic slhc xfrm_interface xfrm6_tunnel tunnel6 tunnel4 xfrm_user xfrm_algo binfmt_misc nls_utf8 nls_cp437 vfat fat squashfs crc32_pclmul polyval_clmulni polyval_generic ghash_clmulni_intel sha512_ssse3 aesni_intel uvcvideo crypto_simd wmi_bmof cryptd btusb videobuf2_vmalloc btrtl uvc videobuf2_memops pcspkr btintel ccp btbcm videobuf2_v4l2 videobuf2_common btmtk snd_usb_audio joydev snd_usbmidi_lib tpm_tis snd_ump snd_rawmidi tpm_tis_core sg evdev bonding tls lm92 msr loop efi_pstore dm_mod tpm rng_core ip_tables x_tables autofs4 sd_mod raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx raid1 raid0 multipath linear md_mod amdgpu drm_ttm_helper ttm video amdxcp drm_exec mfd_core crc32c_intel gpu_sched hid_generic i2c_algo_bit drm_buddy atlantic usb_storage drm_suballoc_helper drm_display_helper sr_mod cdrom wmi
[ T1964] CR2: 0000000000000008
[ T1964] ---[ end trace 0000000000000000 ]---
[ T1964] RIP: 0010:drm_dp_atomic_find_time_slots+0x57/0x1e0 [drm_display_helper]
[ T1964] Code: 0f 87 9d 01 00 00 48 8b 85 28 05 00 00 31 d2 48 63 80 88 00 00 00 41 3b 44 24 28 7d 0d 48 6b c0 28 49 03 44 24 30 48 8b 50 18 <48> 8b 42 08 48 89 ee 48 89 df 8b 88 90 00 00 00 b8 01 00 00 00 d3
[ T1964] RSP: 0018:ffff9fae41d23740 EFLAGS: 00010286
[ T1964] RAX: ffff8fff3e8b34a0 RBX: ffff8fff5566bea0 RCX: 0000000000000002
[ T1964] RDX: 0000000000000000 RSI: ffff8ffb54d8a578 RDI: ffff8ffb40cba380
[ T1964] RBP: ffff8ffbab871000 R08: ffff9fae41d23ac0 R09: 0000000000000001
[ T1964] R10: 0000000000000001 R11: 0000000000000000 R12: ffff8ffb40cba380
[ T1964] R13: ffff8ffb54d8a578 R14: 0000000000000224 R15: 000000005566bea0
[ T1964] FS: 00007f5d493b9ac0(0000) GS:ffff900a3ec80000(0000) knlGS:0000000000000000
[ T1964] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ T1964] CR2: 0000000000000008 CR3: 000000012c414000 CR4: 0000000000f50ee0
[ T1964] PKRU: 55555554
[ T1964] note: Xorg[1964] exited with irqs disabled