================================================================== 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 ffff888039e70440 by task syz.1.519/9361 CPU: 0 UID: 0 PID: 9361 Comm: syz.1.519 Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/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 shrink_dentry_list+0x2e3/0x5e0 fs/dcache.c:1222 prune_dcache_sb+0x119/0x180 fs/dcache.c:1304 super_cache_scan+0x369/0x4b0 fs/super.c:223 do_shrink_slab+0x6fb/0x1150 mm/shrinker.c:436 shrink_slab_memcg mm/shrinker.c:553 [inline] shrink_slab+0x835/0x11f0 mm/shrinker.c:631 drop_slab_node mm/vmscan.c:415 [inline] drop_slab+0x14a/0x290 mm/vmscan.c:433 drop_caches_sysctl_handler+0xc7/0x170 fs/drop_caches.c:68 proc_sys_call_handler+0x4c9/0x830 fs/proc/proc_sysctl.c:600 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x629/0xba0 fs/read_write.c:688 ksys_pwrite64 fs/read_write.c:795 [inline] __do_sys_pwrite64 fs/read_write.c:803 [inline] __se_sys_pwrite64 fs/read_write.c:800 [inline] __x64_sys_pwrite64+0x19c/0x230 fs/read_write.c:800 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ff2b5cdce59 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:00007ff2b3f0d028 EFLAGS: 00000246 ORIG_RAX: 0000000000000012 RAX: ffffffffffffffda RBX: 00007ff2b5f56090 RCX: 00007ff2b5cdce59 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005 RBP: 00007ff2b5d72d6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000008 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ff2b5f56128 R14: 00007ff2b5f56090 R15: 00007ffdca9793f8 Allocated by task 9363: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 unpoison_slab_object mm/kasan/common.c:340 [inline] __kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:366 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4570 [inline] slab_alloc_node mm/slub.c:4899 [inline] kmem_cache_alloc_lru_noprof+0x33c/0x680 mm/slub.c:4918 __d_alloc+0x37/0x6f0 fs/dcache.c:1807 d_alloc_parallel+0xe6/0x1610 fs/dcache.c:2671 __lookup_slow+0x152/0x440 fs/namei.c:1900 lookup_slow+0x53/0x70 fs/namei.c:1932 walk_component fs/namei.c:2278 [inline] link_path_walk+0x1273/0x18d0 fs/namei.c:2649 path_openat+0x2d5/0x38a0 fs/namei.c:4854 do_file_open+0x23e/0x4a0 fs/namei.c:4887 do_sys_openat2+0x113/0x200 fs/open.c:1364 do_sys_open fs/open.c:1370 [inline] __do_sys_openat fs/open.c:1386 [inline] __se_sys_openat fs/open.c:1381 [inline] __x64_sys_openat+0x138/0x170 fs/open.c:1381 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 28: 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:6251 [inline] kmem_cache_free+0x187/0x6c0 mm/slub.c:6378 rcu_do_batch kernel/rcu/tree.c:2617 [inline] rcu_core kernel/rcu/tree.c:2869 [inline] rcu_cpu_kthread+0x99e/0x1470 kernel/rcu/tree.c:2957 smpboot_thread_fn+0x541/0xa50 kernel/smpboot.c:160 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 Last potentially related work creation: kasan_save_stack+0x3e/0x60 mm/kasan/common.c:57 kasan_record_aux_stack+0xbd/0xd0 mm/kasan/generic.c:556 __call_rcu_common kernel/rcu/tree.c:3131 [inline] call_rcu+0xee/0x890 kernel/rcu/tree.c:3251 __dentry_kill+0x4a9/0x690 fs/dcache.c:737 finish_dput+0xc9/0x480 fs/dcache.c:927 proc_invalidate_siblings_dcache+0x3db/0x6c0 fs/proc/inode.c:143 release_task+0x1207/0x16f0 kernel/exit.c:291 wait_task_zombie kernel/exit.c:1281 [inline] wait_consider_task+0x1966/0x2e30 kernel/exit.c:1508 do_wait_thread kernel/exit.c:1571 [inline] __do_wait+0x155/0x740 kernel/exit.c:1689 do_wait+0x1e7/0x510 kernel/exit.c:1723 kernel_wait4+0x232/0x2b0 kernel/exit.c:1882 __do_sys_wait4 kernel/exit.c:1910 [inline] __se_sys_wait4 kernel/exit.c:1906 [inline] __x64_sys_wait4+0x166/0x240 kernel/exit.c:1906 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff888039e70370 which belongs to the cache dentry of size 376 The buggy address is located 208 bytes inside of freed 376-byte region [ffff888039e70370, ffff888039e704e8) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x39e70 head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff888032271801 flags: 0x80000000000040(head|node=0|zone=1) page_type: f5(slab) raw: 0080000000000040 ffff88801b6e23c0 dead000000000100 dead000000000122 raw: 0000000000000000 0000000800120012 00000000f5000000 ffff888032271801 head: 0080000000000040 ffff88801b6e23c0 dead000000000100 dead000000000122 head: 0000000000000000 0000000800120012 00000000f5000000 ffff888032271801 head: 0080000000000001 ffffffffffffff81 00000000ffffffff 00000000ffffffff head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000002 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 1, migratetype Reclaimable, gfp_mask 0xd20d0(__GFP_RECLAIMABLE|__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 4971, tgid 4971 (udevadm), ts 27464587397, free_ts 0 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x22d/0x280 mm/page_alloc.c:1853 prep_new_page mm/page_alloc.c:1861 [inline] get_page_from_freelist+0x28b2/0x2930 mm/page_alloc.c:3941 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5221 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:7272 refill_sheaf mm/slub.c:2816 [inline] __pcs_replace_empty_main+0x373/0x720 mm/slub.c:4652 alloc_from_pcs mm/slub.c:4750 [inline] slab_alloc_node mm/slub.c:4884 [inline] kmem_cache_alloc_lru_noprof+0x433/0x680 mm/slub.c:4918 __d_alloc+0x37/0x6f0 fs/dcache.c:1807 d_alloc_parallel+0xe6/0x1610 fs/dcache.c:2671 lookup_open fs/namei.c:4426 [inline] open_last_lookups fs/namei.c:4611 [inline] path_openat+0xcc3/0x38a0 fs/namei.c:4855 do_file_open+0x23e/0x4a0 fs/namei.c:4887 do_sys_openat2+0x113/0x200 fs/open.c:1364 do_sys_open fs/open.c:1370 [inline] __do_sys_openat fs/open.c:1386 [inline] __se_sys_openat fs/open.c:1381 [inline] __x64_sys_openat+0x138/0x170 fs/open.c:1381 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f page_owner free stack trace missing Memory state around the buggy address: ffff888039e70300: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fa fb ffff888039e70380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888039e70400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888039e70480: fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc ffff888039e70500: fc fc fc fc fc 00 00 00 00 00 00 00 00 00 00 00 ==================================================================