================================================================== BUG: KASAN: slab-use-after-free in __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:132 [inline] BUG: KASAN: slab-use-after-free in _raw_spin_lock_irqsave+0x40/0x60 kernel/locking/spinlock.c:166 Read of size 1 at addr ffff888064a00068 by task syz.5.3842/18074 CPU: 1 UID: 0 PID: 18074 Comm: syz.5.3842 Tainted: G L syzkaller #0 PREEMPT_{RT,(full)} Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description+0x55/0x1e0 mm/kasan/report.c:378 print_report+0x58/0x70 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 __kasan_check_byte+0x2a/0x40 mm/kasan/common.c:574 kasan_check_byte include/linux/kasan.h:402 [inline] lock_acquire+0x84/0x350 kernel/locking/lockdep.c:5842 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:132 [inline] _raw_spin_lock_irqsave+0x40/0x60 kernel/locking/spinlock.c:166 rt_mutex_slowunlock+0xbf/0x8b0 kernel/locking/rtmutex.c:1426 spin_unlock include/linux/spinlock_rt.h:109 [inline] class_spinlock_destructor include/linux/spinlock.h:587 [inline] dma_buf_fd+0x178/0x330 drivers/dma-buf/dma-buf.c:796 udmabuf_create+0xf26/0xfe0 drivers/dma-buf/udmabuf.c:453 udmabuf_ioctl_create drivers/dma-buf/udmabuf.c:484 [inline] udmabuf_ioctl+0x1f6/0x310 drivers/dma-buf/udmabuf.c:515 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xff/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fea451ec819 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fea433fc028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fea45466180 RCX: 00007fea451ec819 RDX: 0000200000000000 RSI: 0000000040187542 RDI: 0000000000000007 RBP: 00007fea45282c91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fea45466218 R14: 00007fea45466180 R15: 00007ffc16b17f98 Allocated by task 18074: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 poison_kmalloc_redzone mm/kasan/common.c:398 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415 kasan_kmalloc include/linux/kasan.h:263 [inline] __do_kmalloc_node mm/slub.c:5295 [inline] __kmalloc_noprof+0x3e7/0x7b0 mm/slub.c:5307 kmalloc_noprof include/linux/slab.h:954 [inline] kzalloc_noprof include/linux/slab.h:1188 [inline] dma_buf_export+0x3ba/0xad0 drivers/dma-buf/dma-buf.c:739 export_udmabuf drivers/dma-buf/udmabuf.c:320 [inline] udmabuf_create+0xee5/0xfe0 drivers/dma-buf/udmabuf.c:442 udmabuf_ioctl_create drivers/dma-buf/udmabuf.c:484 [inline] udmabuf_ioctl+0x1f6/0x310 drivers/dma-buf/udmabuf.c:515 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xff/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x15f/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 18072: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 kasan_save_free_info+0x46/0x50 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:253 [inline] __kasan_slab_free+0x5c/0x80 mm/kasan/common.c:285 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2689 [inline] slab_free mm/slub.c:6246 [inline] kfree+0x1c5/0x6c0 mm/slub.c:6561 __dentry_kill+0x211/0x5e0 fs/dcache.c:675 finish_dput+0xc9/0x480 fs/dcache.c:879 __fput+0x6a3/0xa70 fs/file_table.c:518 task_work_run+0x1d9/0x270 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:67 [inline] exit_to_user_mode_loop+0xed/0x480 kernel/entry/common.c:98 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:238 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:328 [inline] do_syscall_64+0x33e/0xf80 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff888064a00000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 104 bytes inside of freed 1024-byte region [ffff888064a00000, ffff888064a00400) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x64a00 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x80000000000040(head|node=0|zone=1) page_type: f5(slab) raw: 0080000000000040 ffff88801a020dc0 dead000000000100 dead000000000122 raw: 0000000000000000 0000000800100010 00000000f5000000 0000000000000000 head: 0080000000000040 ffff88801a020dc0 dead000000000100 dead000000000122 head: 0000000000000000 0000000800100010 00000000f5000000 0000000000000000 head: 0080000000000003 fffffffffffffe01 00000000ffffffff 00000000ffffffff head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 6572, tgid 6572 (kworker/u8:16), ts 212836225085, free_ts 212699822459 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x231/0x280 mm/page_alloc.c:1860 prep_new_page mm/page_alloc.c:1868 [inline] get_page_from_freelist+0x27c8/0x2840 mm/page_alloc.c:3948 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5228 alloc_slab_page mm/slub.c:3278 [inline] allocate_slab+0x77/0x660 mm/slub.c:3467 new_slab mm/slub.c:3525 [inline] refill_objects+0x33c/0x3d0 mm/slub.c:7251 refill_sheaf mm/slub.c:2816 [inline] __pcs_replace_empty_main+0x373/0x720 mm/slub.c:4651 alloc_from_pcs mm/slub.c:4749 [inline] slab_alloc_node mm/slub.c:4883 [inline] __do_kmalloc_node mm/slub.c:5294 [inline] __kmalloc_noprof+0x530/0x7b0 mm/slub.c:5307 kmalloc_noprof include/linux/slab.h:954 [inline] kzalloc_noprof include/linux/slab.h:1188 [inline] ieee802_11_parse_elems_full+0x159/0x2ab0 net/mac80211/parse.c:1051 ieee802_11_parse_elems net/mac80211/ieee80211_i.h:2518 [inline] ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1565 [inline] ieee80211_ibss_rx_queued_mgmt+0x4ca/0x2cb0 net/mac80211/ibss.c:1596 ieee80211_iface_process_skb net/mac80211/iface.c:1795 [inline] ieee80211_iface_work+0x845/0x1390 net/mac80211/iface.c:1849 cfg80211_wiphy_work+0x2cf/0x460 net/wireless/core.c:513 process_one_work kernel/workqueue.c:3302 [inline] process_scheduled_works+0xb5d/0x1860 kernel/workqueue.c:3385 worker_thread+0xa53/0xfc0 kernel/workqueue.c:3466 kthread+0x388/0x470 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 page last free pid 6746 tgid 6743 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1404 [inline] __free_frozen_pages+0xfa6/0x10f0 mm/page_alloc.c:2945 __slab_free+0x252/0x2a0 mm/slub.c:5608 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x99/0x100 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:350 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4569 [inline] slab_alloc_node mm/slub.c:4898 [inline] kmem_cache_alloc_noprof+0x33b/0x680 mm/slub.c:4905 ptlock_alloc+0x20/0x70 mm/memory.c:7563 ptlock_init include/linux/mm.h:3736 [inline] pagetable_pte_ctor include/linux/mm.h:3785 [inline] __pte_alloc_one_noprof include/asm-generic/pgalloc.h:79 [inline] pte_alloc_one+0x7e/0x380 arch/x86/mm/pgtable.c:18 __pte_alloc+0x25/0x1a0 mm/memory.c:453 copy_pte_range mm/memory.c:1237 [inline] copy_pmd_range+0x4c75/0x5550 mm/memory.c:1392 copy_pud_range mm/memory.c:1429 [inline] copy_p4d_range mm/memory.c:1453 [inline] copy_page_range+0xaf4/0x1120 mm/memory.c:1539 dup_mmap+0xf4c/0x1d50 mm/mmap.c:1840 dup_mm kernel/fork.c:1533 [inline] copy_mm+0x13b/0x4a0 kernel/fork.c:1585 copy_process+0x1f24/0x4460 kernel/fork.c:2261 kernel_clone+0x283/0x870 kernel/fork.c:2718 __do_sys_clone kernel/fork.c:2859 [inline] __se_sys_clone kernel/fork.c:2843 [inline] __x64_sys_clone+0x1b6/0x230 kernel/fork.c:2843 Memory state around the buggy address: ffff8880649fff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8880649fff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff888064a00000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888064a00080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888064a00100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================