R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007fffbf90080f R14: 00007faf253f3300 R15: 0000000000022000 ================================================================== BUG: KASAN: slab-use-after-free in iput.part.0+0x9c/0xeb0 Write of size 4 at addr ffff8880571edec0 by task syz-executor.4/39018 CPU: 0 UID: 0 PID: 39018 Comm: syz-executor.4 Not tainted 6.18.0-rc7-next-20251127 #1 PREEMPT(voluntary) Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 Call Trace: dump_stack_lvl+0xca/0x120 print_report+0xcb/0x610 kasan_report+0xca/0x100 kasan_check_range+0x39/0x1b0 iput.part.0+0x9c/0xeb0 iput+0x35/0x40 __sock_release+0x20b/0x270 __sys_socket+0x274/0x2e0 __x64_sys_socket+0x73/0xb0 do_syscall_64+0xbf/0x420 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7faf27e7db19 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007faf253f3128 EFLAGS: 00000246 ORIG_RAX: 0000000000000029 RAX: ffffffffffffffda RBX: 00007faf27f90f60 RCX: 00007faf27e7db19 RDX: 0000000000000000 RSI: 0000000000000003 RDI: 0000000000000024 RBP: 0000000000000005 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007fffbf90080f R14: 00007faf253f3300 R15: 0000000000022000 Allocated by task 39018: kasan_save_stack+0x24/0x50 kasan_save_track+0x14/0x30 __kasan_slab_alloc+0x59/0x70 kmem_cache_alloc_lru_noprof+0x217/0x720 sock_alloc_inode+0x27/0x1d0 alloc_inode+0x67/0x250 sock_alloc+0x40/0x270 __sock_create+0xc1/0x810 __sys_socket+0x145/0x2e0 __x64_sys_socket+0x73/0xb0 do_syscall_64+0xbf/0x420 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 68: kasan_save_stack+0x24/0x50 kasan_save_track+0x14/0x30 loop2: detected capacity change from 0 to 2048 kasan_save_free_info+0x3a/0x60 __kasan_slab_free+0x43/0x70 kmem_cache_free+0x2cd/0x660 i_callback+0x46/0x70 rcu_core+0x73c/0x1ed0 handle_softirqs+0x1b1/0x740 __irq_exit_rcu+0xc4/0x100 irq_exit_rcu+0x9/0x20 sysvec_apic_timer_interrupt+0x70/0x80 asm_sysvec_apic_timer_interrupt+0x1a/0x20 Last potentially related work creation: kasan_save_stack+0x24/0x50 kasan_record_aux_stack+0x89/0xa0 __call_rcu_common.constprop.0+0x70/0xad0 destroy_inode+0x12b/0x1b0 evict+0x4fe/0x9e0 iput.part.0+0x7ea/0xeb0 iput+0x35/0x40 __sock_release+0x20b/0x270 sock_alloc_file+0x1bf/0x220 __sys_socket+0x1be/0x2e0 __x64_sys_socket+0x73/0xb0 do_syscall_64+0xbf/0x420 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff8880571edc00 which belongs to the cache sock_inode_cache of size 1344 The buggy address is located 704 bytes inside of freed 1344-byte region [ffff8880571edc00, ffff8880571ee140) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x571e8 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff888055fd6301 flags: 0x100000000000040(head|node=0|zone=1) page_type: f5(slab) raw: 0100000000000040 ffff8880096cbdc0 ffffea00013b7600 0000000000000002 raw: 0000000000000000 0000000080160016 00000000f5000000 ffff888055fd6301 head: 0100000000000040 ffff8880096cbdc0 ffffea00013b7600 0000000000000002 head: 0000000000000000 0000000080160016 00000000f5000000 ffff888055fd6301 head: 0100000000000003 ffffea00015c7a01 00000000ffffffff 00000000ffffffff head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880571edd80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880571ede00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8880571ede80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880571edf00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880571edf80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== workqueue: Failed to create a rescuer kthread for wq "ext4-rsv-conversion": -EINTR EXT4-fs: failed to create workqueue EXT4-fs (loop2): mount failed