================================================================== 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:162 Read of size 1 at addr ffff888028a58968 by task syz.6.2811/20778 CPU: 1 UID: 0 PID: 20778 Comm: syz.6.2811 Not tainted syzkaller #0 PREEMPT_{RT,(full)} 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 mm/kasan/report.c:378 [inline] print_report+0xba/0x230 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+0x79/0x2e0 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:162 rt_mutex_slowunlock+0xbf/0x8b0 kernel/locking/rtmutex.c:1417 end_dirop fs/namei.c:2954 [inline] end_creating include/linux/namei.h:126 [inline] end_creating_path fs/namei.c:4968 [inline] filename_mknodat+0x464/0x670 fs/namei.c:5162 __do_sys_mknod fs/namei.c:5185 [inline] __se_sys_mknod+0x3a/0x150 fs/namei.c:5182 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd8003ec819 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:00007fd7fe63e028 EFLAGS: 00000246 ORIG_RAX: 0000000000000085 RAX: ffffffffffffffda RBX: 00007fd800665fa0 RCX: 00007fd8003ec819 RDX: 0000000000000000 RSI: 0000000008001420 RDI: 0000200000000040 RBP: 00007fd800482c91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fd800666038 R14: 00007fd800665fa0 R15: 00007fff9b1495d8 Allocated by task 20778: 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:4538 [inline] slab_alloc_node mm/slub.c:4866 [inline] kmem_cache_alloc_lru_noprof+0x33c/0x680 mm/slub.c:4885 __d_alloc+0x37/0x6f0 fs/dcache.c:1740 d_alloc+0x4b/0x190 fs/dcache.c:1819 lookup_one_qstr_excl+0xdc/0x360 fs/namei.c:1801 __start_dirop fs/namei.c:2931 [inline] start_dirop fs/namei.c:2940 [inline] filename_create+0x20e/0x370 fs/namei.c:4928 filename_mknodat+0x18c/0x670 fs/namei.c:5136 __do_sys_mknod fs/namei.c:5185 [inline] __se_sys_mknod+0x3a/0x150 fs/namei.c:5182 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 20: 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:2685 [inline] slab_free mm/slub.c:6165 [inline] kmem_cache_free+0x185/0x6b0 mm/slub.c:6295 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+0x51e/0xb90 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+0x469/0x5e0 fs/dcache.c:689 finish_dput+0xc9/0x480 fs/dcache.c:879 ocfs2_dentry_attach_lock+0x748/0xe20 fs/ocfs2/dcache.c:328 ocfs2_lookup+0x3fe/0xa50 fs/ocfs2/namei.c:163 lookup_open fs/namei.c:4462 [inline] open_last_lookups fs/namei.c:4589 [inline] path_openat+0x11cb/0x38a0 fs/namei.c:4833 do_file_open+0x23e/0x4a0 fs/namei.c:4865 do_sys_openat2+0x113/0x200 fs/open.c:1366 do_sys_open fs/open.c:1372 [inline] __do_sys_openat fs/open.c:1388 [inline] __se_sys_openat fs/open.c:1383 [inline] __x64_sys_openat+0x138/0x170 fs/open.c:1383 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff888028a58898 which belongs to the cache dentry of size 376 The buggy address is located 208 bytes inside of freed 376-byte region [ffff888028a58898, ffff888028a58a10) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x28a58 head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff8880358df301 flags: 0x80000000000040(head|node=0|zone=1) page_type: f5(slab) raw: 0080000000000040 ffff88801b2a18c0 dead000000000100 dead000000000122 raw: 0000000000000000 0000000800120012 00000000f5000000 ffff8880358df301 head: 0080000000000040 ffff88801b2a18c0 dead000000000100 dead000000000122 head: 0000000000000000 0000000800120012 00000000f5000000 ffff8880358df301 head: 0080000000000001 ffffea0000a29601 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 5181, tgid 5181 (udevadm), ts 36033904550, free_ts 35987001422 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x231/0x280 mm/page_alloc.c:1889 prep_new_page mm/page_alloc.c:1897 [inline] get_page_from_freelist+0x28bb/0x2950 mm/page_alloc.c:3962 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5250 alloc_slab_page mm/slub.c:3292 [inline] allocate_slab+0x77/0x660 mm/slub.c:3481 new_slab mm/slub.c:3539 [inline] refill_objects+0x334/0x3c0 mm/slub.c:7175 refill_sheaf mm/slub.c:2812 [inline] __pcs_replace_empty_main+0x35c/0x710 mm/slub.c:4615 alloc_from_pcs mm/slub.c:4717 [inline] slab_alloc_node mm/slub.c:4851 [inline] kmem_cache_alloc_lru_noprof+0x433/0x680 mm/slub.c:4885 __d_alloc+0x37/0x6f0 fs/dcache.c:1740 d_alloc_parallel+0xe6/0x1610 fs/dcache.c:2604 __lookup_slow+0x152/0x440 fs/namei.c:1901 lookup_slow+0x53/0x70 fs/namei.c:1933 walk_component fs/namei.c:2279 [inline] link_path_walk+0xd1e/0x18d0 fs/namei.c:2653 path_lookupat+0xe4/0x8c0 fs/namei.c:2809 filename_lookup+0x256/0x5d0 fs/namei.c:2839 vfs_statx+0xfc/0x200 fs/stat.c:353 vfs_fstatat+0x11b/0x170 fs/stat.c:373 page last free pid 5174 tgid 5174 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1433 [inline] __free_frozen_pages+0xfe3/0x1170 mm/page_alloc.c:2978 __slab_free+0x24f/0x2a0 mm/slub.c:5573 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x97/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:4538 [inline] slab_alloc_node mm/slub.c:4866 [inline] kmem_cache_alloc_noprof+0x33b/0x680 mm/slub.c:4873 alloc_filename fs/namei.c:142 [inline] do_getname+0x2e/0x250 fs/namei.c:182 getname include/linux/fs.h:2512 [inline] class_filename_constructor include/linux/fs.h:2539 [inline] do_sys_openat2+0xca/0x200 fs/open.c:1365 do_sys_open fs/open.c:1372 [inline] __do_sys_openat fs/open.c:1388 [inline] __se_sys_openat fs/open.c:1383 [inline] __x64_sys_openat+0x138/0x170 fs/open.c:1383 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff888028a58800: fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc fc ffff888028a58880: fc fc fc fa fb fb fb fb fb fb fb fb fb fb fb fb >ffff888028a58900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888028a58980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888028a58a00: fb fb fc fc fc fc fc fc fc fc 00 00 00 00 00 00 ==================================================================