BUG: KASAN: slab-out-of-bounds in dm_resume+0x208c/0x2600 [amdgpu]
This is start happens on every boot on laptop with GPU Radeon 6800M
[ 41.017790] ==================================================================
[ 41.017794] BUG: KASAN: slab-out-of-bounds in dm_resume+0x208c/0x2600 [amdgpu]
[ 41.018136] Read of size 4 at addr ffff8881cfa789d4 by task plymouthd/552
[ 41.018143] CPU: 10 PID: 552 Comm: plymouthd Tainted: G W ------- --- 6.8.0-0.rc5.41.fc41.x86_64+debug #1
[ 41.018148] Hardware name: ASUSTeK COMPUTER INC. ROG Strix G513QY_G513QY/G513QY, BIOS G513QY.331 02/24/2023
[ 41.018151] Call Trace:
[ 41.018154] <TASK>
[ 41.018157] dump_stack_lvl+0x76/0xd0
[ 41.018164] print_report+0xcf/0x660
[ 41.018169] ? dm_resume+0x208c/0x2600 [amdgpu]
[ 41.018492] ? srso_alias_return_thunk+0x5/0xfbef5
[ 41.018496] ? __virt_addr_valid+0x1bd/0x410
[ 41.018502] ? srso_alias_return_thunk+0x5/0xfbef5
[ 41.018507] ? dm_resume+0x208c/0x2600 [amdgpu]
[ 41.018579] kasan_report+0xa9/0xe0
[ 41.018579] ? dm_resume+0x208c/0x2600 [amdgpu]
[ 41.018579] dm_resume+0x208c/0x2600 [amdgpu]
[ 41.018579] ? srso_alias_return_thunk+0x5/0xfbef5
[ 41.018579] ? _dev_info+0xd9/0x110
[ 41.018579] ? __pfx__dev_info+0x10/0x10
[ 41.018579] ? srso_alias_return_thunk+0x5/0xfbef5
[ 41.018579] ? srso_alias_return_thunk+0x5/0xfbef5
[ 41.018579] ? smu_smc_hw_setup+0x13d7/0x23c0 [amdgpu]
[ 41.018579] ? __pfx_smu_smc_hw_setup+0x10/0x10 [amdgpu]
[ 41.018579] ? __pfx_dm_resume+0x10/0x10 [amdgpu]
[ 41.018579] ? __entry_text_end+0x101f45/0x101f49
[ 41.018579] ? smu_v11_0_check_fw_status+0x5a/0x90 [amdgpu]
[ 41.018579] ? srso_alias_return_thunk+0x5/0xfbef5
[ 41.018579] ? srso_alias_return_thunk+0x5/0xfbef5
[ 41.018579] amdgpu_device_ip_resume_phase2+0x149/0x2e0 [amdgpu]
[ 41.018579] amdgpu_device_resume+0x16a/0x720 [amdgpu]
[ 41.018579] ? __pfx_pci_pm_runtime_resume+0x10/0x10
[ 41.018579] amdgpu_pmops_runtime_resume+0x141/0x250 [amdgpu]
[ 41.018579] __rpm_callback+0xac/0x390
[ 41.018579] ? __pfx_pci_pm_runtime_resume+0x10/0x10
[ 41.018579] rpm_callback+0x1aa/0x210
[ 41.018579] ? __pfx_pci_pm_runtime_resume+0x10/0x10
[ 41.018579] rpm_resume+0xb51/0x1730
[ 41.018579] ? srso_alias_return_thunk+0x5/0xfbef5
[ 41.018579] ? __pfx_rpm_resume+0x10/0x10
[ 41.018579] ? __pfx_lock_acquired+0x10/0x10
[ 41.018579] __pm_runtime_resume+0x76/0x110
[ 41.018579] amdgpu_driver_open_kms+0xd2/0x650 [amdgpu]
[ 41.018579] ? srso_alias_return_thunk+0x5/0xfbef5
[ 41.018579] ? debug_mutex_init+0x37/0x70
[ 41.018579] drm_file_alloc+0x4ed/0x910
[ 41.018579] drm_open_helper+0x165/0x450
[ 41.018579] drm_open+0x181/0x440
[ 41.018579] drm_stub_open+0x256/0x3e0
[ 41.018579] ? srso_alias_return_thunk+0x5/0xfbef5
[ 41.018579] chrdev_open+0x21b/0x620
[ 41.018579] ? __pfx_chrdev_open+0x10/0x10
[ 41.018579] do_dentry_open+0x5e0/0x1330
[ 41.018579] ? __pfx_chrdev_open+0x10/0x10
[ 41.018579] ? srso_alias_return_thunk+0x5/0xfbef5
[ 41.018579] ? may_open+0xea/0x300
[ 41.018579] path_openat+0x1a3b/0x27a0
[ 41.018579] ? __pfx_path_openat+0x10/0x10
[ 41.018579] ? __pfx___lock_acquire+0x10/0x10
[ 41.018579] do_filp_open+0x1c1/0x400
[ 41.018579] ? __pfx_do_filp_open+0x10/0x10
[ 41.018579] ? srso_alias_return_thunk+0x5/0xfbef5
[ 41.018579] ? srso_alias_return_thunk+0x5/0xfbef5
[ 41.018579] ? _raw_spin_unlock+0x2d/0x50
[ 41.018579] ? srso_alias_return_thunk+0x5/0xfbef5
[ 41.018579] ? alloc_fd+0x21c/0x600
[ 41.018579] do_sys_openat2+0x13b/0x180
[ 41.018579] ? __pfx_do_sys_openat2+0x10/0x10
[ 41.018579] ? srso_alias_return_thunk+0x5/0xfbef5
[ 41.018579] __x64_sys_openat+0x109/0x1d0
[ 41.018579] ? __pfx___x64_sys_openat+0x10/0x10
[ 41.018579] ? srso_alias_return_thunk+0x5/0xfbef5
[ 41.018579] do_syscall_64+0x9e/0x190
[ 41.018579] ? srso_alias_return_thunk+0x5/0xfbef5
[ 41.018579] ? lockdep_hardirqs_on_prepare+0x17f/0x410
[ 41.018579] ? do_syscall_64+0xab/0x190
[ 41.018579] ? srso_alias_return_thunk+0x5/0xfbef5
[ 41.018579] ? lockdep_hardirqs_on+0x81/0x110
[ 41.018579] ? srso_alias_return_thunk+0x5/0xfbef5
[ 41.018579] ? do_syscall_64+0xab/0x190
[ 41.018579] ? srso_alias_return_thunk+0x5/0xfbef5
[ 41.018579] ? lockdep_hardirqs_on+0x81/0x110
[ 41.018579] ? srso_alias_return_thunk+0x5/0xfbef5
[ 41.018579] ? do_syscall_64+0xab/0x190
[ 41.018579] ? srso_alias_return_thunk+0x5/0xfbef5
[ 41.018579] ? do_syscall_64+0xab/0x190
[ 41.018579] ? lockdep_hardirqs_on_prepare+0x17f/0x410
[ 41.018579] entry_SYSCALL_64_after_hwframe+0x6e/0x76
[ 41.018579] RIP: 0033:0x7f8f3b4a33a3
[ 41.018579] Code: 83 e2 40 75 52 89 f0 f7 d0 a9 00 00 41 00 74 47 80 3d b0 0c 0e 00 00 74 62 89 da 4c 89 e6 bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 87 81 00 00 00 48 8b 55 b8 64 48 2b 14 25 28
[ 41.018579] RSP: 002b:00007ffc2953a160 EFLAGS: 00000202 ORIG_RAX: 0000000000000101
[ 41.018579] RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007f8f3b4a33a3
[ 41.018579] RDX: 0000000000000002 RSI: 0000560b51876190 RDI: 00000000ffffff9c
[ 41.018579] RBP: 00007ffc2953a1d0 R08: 0000000560b51841 R09: 0000000000000007
[ 41.018579] R10: 0000000000000000 R11: 0000000000000202 R12: 0000560b51876190
[ 41.018579] R13: 00007f8f3b1e43c8 R14: 00007f8f3b5aeaf0 R15: 000000000000000b
[ 41.018579] </TASK>
[ 41.018579] Allocated by task 545:
[ 41.018579] kasan_save_stack+0x30/0x50
[ 41.018579] kasan_save_track+0x14/0x30
[ 41.018579] __kasan_kmalloc+0x8f/0xa0
[ 41.018579] __kmalloc_node_track_caller+0x242/0x540
[ 41.018579] kvasprintf+0xb5/0x140
[ 41.018579] kasprintf+0xb1/0xe0
[ 41.018579] __drm_encoder_init+0x33f/0x4d0
[ 41.018579] drm_encoder_init+0xd9/0x160
[ 41.018579] drm_writeback_connector_init+0x9e/0x110
[ 41.018579] amdgpu_dm_wb_connector_init+0x10b/0x1e0 [amdgpu]
[ 41.018579] amdgpu_dm_init.isra.0+0x2ed1/0x5f20 [amdgpu]
[ 41.018579] dm_hw_init+0x12/0x30 [amdgpu]
[ 41.018579] amdgpu_device_init+0x57e9/0x8970 [amdgpu]
[ 41.018579] amdgpu_driver_load_kms+0x1d/0x4b0 [amdgpu]
[ 41.018579] amdgpu_pci_probe+0x2fb/0xca0 [amdgpu]
[ 41.018579] local_pci_probe+0xdd/0x190
[ 41.018579] pci_device_probe+0x23c/0x7e0
[ 41.018579] really_probe+0x3e2/0xb80
[ 41.018579] __driver_probe_device+0x18c/0x450
[ 41.018579] driver_probe_device+0x4a/0x120
[ 41.018579] __driver_attach+0x194/0x4a0
[ 41.018579] bus_for_each_dev+0x109/0x190
[ 41.018579] bus_add_driver+0x2a1/0x570
[ 41.018579] driver_register+0x133/0x430
[ 41.018579] do_one_initcall+0xd6/0x430
[ 41.018579] do_init_module+0x238/0x770
[ 41.018579] load_module+0x5af9/0x7770
[ 41.018579] __do_sys_init_module+0x1ef/0x220
[ 41.018579] do_syscall_64+0x9e/0x190
[ 41.018579] entry_SYSCALL_64_after_hwframe+0x6e/0x76
[ 41.018579] The buggy address belongs to the object at ffff8881cfa789a0
which belongs to the cache kmalloc-16 of size 16
[ 41.018579] The buggy address is located 40 bytes to the right of
allocated 12-byte region [ffff8881cfa789a0, ffff8881cfa789ac)
[ 41.018579] The buggy address belongs to the physical page:
[ 41.018579] page:0000000081f44fae refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1cfa78
[ 41.018579] flags: 0x17ffffc0000800(slab|node=0|zone=2|lastcpupid=0x1fffff)
[ 41.018579] page_type: 0xffffffff()
[ 41.018579] raw: 0017ffffc0000800 ffff8881000423c0 dead000000000122 0000000000000000
[ 41.018579] raw: 0000000000000000 0000000000240024 00000001ffffffff 0000000000000000
[ 41.018579] page dumped because: kasan: bad access detected
[ 41.018579] Memory state around the buggy address:
[ 41.018579] ffff8881cfa78880: fc fc fc fc fc fc fc fc 00 01 fc fc fc fc fc fc
[ 41.018579] ffff8881cfa78900: fc fc fc fc fc fc fa fb fc fc fc fc fc fc fc fc
[ 41.018579] >ffff8881cfa78980: fc fc fc fc 00 04 fc fc fc fc fc fc fc fc fc fc
[ 41.018579] ^
[ 41.018579] ffff8881cfa78a00: fc fc 00 04 fc fc fc fc fc fc fc fc fc fc fc fc
[ 41.018579] ffff8881cfa78a80: 00 01 fc fc fc fc fc fc fc fc fc fc fc fc fa fb
[ 41.018579] ==================================================================
$ uname -r
6.8.0-0.rc5.41.fc41.x86_64+debug