BUG: MAX_LOCKDEP_CHAINS too low! turning off the locking correctness validator. CPU: 1 UID: 0 PID: 12830 Comm: syz.9.2424 Not tainted syzkaller #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/14/2026 Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:499 (C) __dump_stack+0x30/0x40 lib/dump_stack.c:94 dump_stack_lvl+0xd8/0x12c lib/dump_stack.c:120 dump_stack+0x1c/0x28 lib/dump_stack.c:129 add_chain_cache kernel/locking/lockdep.c:-1 [inline] lookup_chain_cache_add kernel/locking/lockdep.c:3899 [inline] validate_chain kernel/locking/lockdep.c:3920 [inline] __lock_acquire+0xed4/0x2b08 kernel/locking/lockdep.c:5288 lock_acquire+0x13c/0x320 kernel/locking/lockdep.c:5942 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:155 [inline] _raw_spin_lock_irqsave+0x5c/0x7c kernel/locking/spinlock.c:181 class_raw_spinlock_irqsave_constructor include/linux/spinlock.h:595 [inline] try_to_wake_up+0x68/0xdc4 kernel/sched/core.c:4315 wake_up_process+0x18/0x24 kernel/sched/core.c:4570 __queue_work+0xc08/0x1204 kernel/workqueue.c:2458 queue_work_on+0xc0/0x130 kernel/workqueue.c:2501 queue_work include/linux/workqueue.h:700 [inline] wiphy_work_queue+0x1dc/0x3b4 net/wireless/core.c:1918 wiphy_locked_debugfs_write+0x328/0x40c net/wireless/debugfs.c:296 ieee80211_if_write_sdata net/mac80211/debugfs_netdev.c:91 [inline] ieee80211_if_write_active_links+0x128/0x184 net/mac80211/debugfs_netdev.c:743 short_proxy_write+0x120/0x164 fs/debugfs/file.c:384 vfs_write+0x2a4/0xa0c fs/read_write.c:685 ksys_write+0x12c/0x228 fs/read_write.c:739 __do_sys_write fs/read_write.c:750 [inline] __se_sys_write fs/read_write.c:747 [inline] __arm64_sys_write+0x84/0x98 fs/read_write.c:747 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x244 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xec/0x23c arch/arm64/kernel/syscall.c:121 do_el0_svc+0x4c/0x5c arch/arm64/kernel/syscall.c:140 el0_svc+0x60/0x1d8 arch/arm64/kernel/entry-common.c:796 el0t_64_sync_handler+0x44/0x104 arch/arm64/kernel/entry-common.c:815 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:606 block device autoloading is deprecated and will be removed. ================================================================== BUG: KASAN: slab-use-after-free in snapshot_ctr+0x4ec/0x1030 drivers/md/dm-snap.c:1282 Read of size 8 at addr ffff0000cf739918 by task syz.9.2424/12830 CPU: 0 UID: 0 PID: 12830 Comm: syz.9.2424 Not tainted syzkaller #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/14/2026 Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:499 (C) __dump_stack+0x30/0x40 lib/dump_stack.c:94 dump_stack_lvl+0xd8/0x12c lib/dump_stack.c:120 print_address_description+0xb0/0x238 mm/kasan/report.c:378 print_report+0x68/0x84 mm/kasan/report.c:482 kasan_report+0x8c/0xc4 mm/kasan/report.c:595 __asan_report_load8_noabort+0x20/0x2c mm/kasan/report_generic.c:381 snapshot_ctr+0x4ec/0x1030 drivers/md/dm-snap.c:1282 dm_table_add_target+0x44c/0xb18 drivers/md/dm-table.c:749 populate_table drivers/md/dm-ioctl.c:1602 [inline] table_load+0x27c/0x764 drivers/md/dm-ioctl.c:1645 ctl_ioctl drivers/md/dm-ioctl.c:2221 [inline] dm_ctl_ioctl+0x884/0xbbc drivers/md/dm-ioctl.c:2243 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl fs/ioctl.c:583 [inline] __arm64_sys_ioctl+0x154/0x1cc fs/ioctl.c:583 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x244 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xec/0x23c arch/arm64/kernel/syscall.c:121 do_el0_svc+0x4c/0x5c arch/arm64/kernel/syscall.c:140 el0_svc+0x60/0x1d8 arch/arm64/kernel/entry-common.c:796 el0t_64_sync_handler+0x44/0x104 arch/arm64/kernel/entry-common.c:815 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:606 Allocated by task 12830: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x40/0x78 mm/kasan/common.c:78 kasan_save_alloc_info+0x40/0x50 mm/kasan/generic.c:570 poison_kmalloc_redzone mm/kasan/common.c:409 [inline] __kasan_kmalloc+0x9c/0xb4 mm/kasan/common.c:426 kasan_kmalloc include/linux/kasan.h:263 [inline] __kmalloc_cache_node_noprof+0x39c/0x618 mm/slub.c:5582 _kmalloc_node_noprof include/linux/slab.h:1196 [inline] open_table_device drivers/md/dm.c:733 [inline] dm_get_table_device+0x1f0/0x62c drivers/md/dm.c:821 dm_get_device+0x2b0/0x634 drivers/md/dm-table.c:388 snapshot_ctr+0x258/0x1030 drivers/md/dm-snap.c:1267 dm_table_add_target+0x44c/0xb18 drivers/md/dm-table.c:749 populate_table drivers/md/dm-ioctl.c:1602 [inline] table_load+0x27c/0x764 drivers/md/dm-ioctl.c:1645 ctl_ioctl drivers/md/dm-ioctl.c:2221 [inline] dm_ctl_ioctl+0x884/0xbbc drivers/md/dm-ioctl.c:2243 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl fs/ioctl.c:583 [inline] __arm64_sys_ioctl+0x154/0x1cc fs/ioctl.c:583 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x244 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xec/0x23c arch/arm64/kernel/syscall.c:121 do_el0_svc+0x4c/0x5c arch/arm64/kernel/syscall.c:140 el0_svc+0x60/0x1d8 arch/arm64/kernel/entry-common.c:796 el0t_64_sync_handler+0x44/0x104 arch/arm64/kernel/entry-common.c:815 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:606 Freed by task 12830: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x40/0x78 mm/kasan/common.c:78 kasan_save_free_info+0x54/0x6c mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:264 [inline] __kasan_slab_free+0x74/0xa4 mm/kasan/common.c:296 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2748 [inline] slab_free mm/slub.c:6509 [inline] kfree+0x188/0x658 mm/slub.c:6802 close_table_device drivers/md/dm.c:798 [inline] dm_put_table_device+0x238/0x2a0 drivers/md/dm.c:841 upgrade_mode drivers/md/dm-table.c:326 [inline] dm_get_device+0x468/0x634 drivers/md/dm-table.c:399 snapshot_ctr+0x3d0/0x1030 drivers/md/dm-snap.c:1277 dm_table_add_target+0x44c/0xb18 drivers/md/dm-table.c:749 populate_table drivers/md/dm-ioctl.c:1602 [inline] table_load+0x27c/0x764 drivers/md/dm-ioctl.c:1645 ctl_ioctl drivers/md/dm-ioctl.c:2221 [inline] dm_ctl_ioctl+0x884/0xbbc drivers/md/dm-ioctl.c:2243 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl fs/ioctl.c:583 [inline] __arm64_sys_ioctl+0x154/0x1cc fs/ioctl.c:583 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x244 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xec/0x23c arch/arm64/kernel/syscall.c:121 do_el0_svc+0x4c/0x5c arch/arm64/kernel/syscall.c:140 el0_svc+0x60/0x1d8 arch/arm64/kernel/entry-common.c:796 el0t_64_sync_handler+0x44/0x104 arch/arm64/kernel/entry-common.c:815 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:606 The buggy address belongs to the object at ffff0000cf739900 which belongs to the cache kmalloc-96 of size 96 The buggy address is located 24 bytes inside of freed 96-byte region [ffff0000cf739900, ffff0000cf739960) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10f739 flags: 0x5ffc00000000000(node=0|zone=2|lastcpupid=0x7ff) page_type: f5(slab) raw: 05ffc00000000000 ffff0000c0001280 dead000000000100 dead000000000122 raw: 0000000000000000 0000000000200020 00000000f5000000 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000cf739800: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc ffff0000cf739880: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc >ffff0000cf739900: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ^ ffff0000cf739980: 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc ffff0000cf739a00: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc ================================================================== device-mapper: table: 248:6: device 1:18 not in table devices list device-mapper: table: 248:6: snapshot-merge: COW device cannot be the same as origin device (-EINVAL) device-mapper: ioctl: error adding target to table device-mapper: table: 248:6: dm_table_destroy: dm_put_device call missing for 1:18