================================================================== BUG: KASAN: slab-out-of-bounds in tcp_orphan_retries net/ipv4/tcp_timer.c:139 [inline] BUG: KASAN: slab-out-of-bounds in tcp_probe_timer net/ipv4/tcp_timer.c:374 [inline] BUG: KASAN: slab-out-of-bounds in tcp_write_timer_handler+0xa4b/0xa60 net/ipv4/tcp_timer.c:602 Read of size 4 at addr ffff888045c2c8a8 by task syz-executor.4/6539 CPU: 1 PID: 6539 Comm: syz-executor.4 Not tainted 4.19.200-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 print_address_description.cold+0x54/0x219 mm/kasan/report.c:256 kasan_report_error.cold+0x8a/0x1b9 mm/kasan/report.c:354 kasan_report mm/kasan/report.c:412 [inline] __asan_report_load4_noabort+0x88/0x90 mm/kasan/report.c:432 tcp_orphan_retries net/ipv4/tcp_timer.c:139 [inline] tcp_probe_timer net/ipv4/tcp_timer.c:374 [inline] tcp_write_timer_handler+0xa4b/0xa60 net/ipv4/tcp_timer.c:602 tcp_write_timer+0x103/0x1b0 net/ipv4/tcp_timer.c:618 call_timer_fn+0x177/0x700 kernel/time/timer.c:1338 expire_timers+0x243/0x4e0 kernel/time/timer.c:1375 __run_timers kernel/time/timer.c:1696 [inline] run_timer_softirq+0x21c/0x670 kernel/time/timer.c:1709 __do_softirq+0x265/0x980 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:372 [inline] irq_exit+0x215/0x260 kernel/softirq.c:412 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1098 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894 RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:789 [inline] RIP: 0010:lock_acquire+0x1ec/0x3c0 kernel/locking/lockdep.c:3911 Code: 08 00 00 00 00 00 00 48 c1 e8 03 80 3c 10 00 0f 85 b7 01 00 00 48 83 3d a9 2f a6 08 00 0f 84 2a 01 00 00 48 8b 7c 24 08 57 9d <0f> 1f 44 00 00 48 83 c4 18 5b 5d 41 5c 41 5d 41 5e 41 5f c3 65 8b RSP: 0018:ffff88804580fa90 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff13 RAX: 1ffffffff13e3051 RBX: ffff888030830200 RCX: 2899c70d3473ce9a RDX: dffffc0000000000 RSI: 00000000a9489d20 RDI: 0000000000000282 RBP: ffffffff89f85f60 R08: 000000005c56b8f8 R09: 0000000000000002 R10: ffff888030830ad8 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000002 R15: 0000000000000000 rcu_lock_acquire include/linux/rcupdate.h:242 [inline] rcu_read_lock include/linux/rcupdate.h:627 [inline] ext4_get_group_desc+0x11c/0x4e0 fs/ext4/balloc.c:284 recently_deleted fs/ext4/ialloc.c:680 [inline] find_inode_bit+0x1a0/0x520 fs/ext4/ialloc.c:724 __ext4_new_inode+0x160c/0x5a20 fs/ext4/ialloc.c:916 ext4_symlink+0x3f5/0xc00 fs/ext4/namei.c:3176 vfs_symlink+0x453/0x6c0 fs/namei.c:4129 do_symlinkat+0x258/0x2c0 fs/namei.c:4156 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x465ef7 Code: 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 58 00 00 00 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:00007ffc489af2b8 EFLAGS: 00000206 ORIG_RAX: 0000000000000058 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000465ef7 RDX: 00007ffc489af3a3 RSI: 00000000004bfd7b RDI: 00007ffc489af390 RBP: 0000000000000000 R08: 0000000000000000 R09: 00007ffc489af150 R10: 00007ffc489af007 R11: 0000000000000206 R12: 0000000000000001 R13: 0000000000000000 R14: 0000000000000001 R15: 00007ffc489af390 Allocated by task 4696: kmem_cache_alloc+0x122/0x370 mm/slab.c:3559 getname_flags+0xce/0x590 fs/namei.c:140 user_path_at_empty+0x2a/0x50 fs/namei.c:2609 do_readlinkat+0xcd/0x2f0 fs/stat.c:394 __do_sys_readlinkat fs/stat.c:421 [inline] __se_sys_readlinkat fs/stat.c:418 [inline] __x64_sys_readlinkat+0x93/0xf0 fs/stat.c:418 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 4696: __cache_free mm/slab.c:3503 [inline] kmem_cache_free+0x7f/0x260 mm/slab.c:3765 putname+0xe1/0x120 fs/namei.c:261 filename_lookup+0x3d0/0x5a0 fs/namei.c:2358 do_readlinkat+0xcd/0x2f0 fs/stat.c:394 __do_sys_readlinkat fs/stat.c:421 [inline] __se_sys_readlinkat fs/stat.c:418 [inline] __x64_sys_readlinkat+0x93/0xf0 fs/stat.c:418 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff888045c2ce80 which belongs to the cache names_cache of size 4096 The buggy address is located 1496 bytes to the left of 4096-byte region [ffff888045c2ce80, ffff888045c2de80) The buggy address belongs to the page: page:ffffea0001170b00 count:1 mapcount:0 mapping:ffff88823b843380 index:0x0 compound_mapcount: 0 flags: 0xfff00000008100(slab|head) raw: 00fff00000008100 ffffea0001225d88 ffffea0001170b88 ffff88823b843380 raw: 0000000000000000 ffff888045c2ce80 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888045c2c780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888045c2c800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888045c2c880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888045c2c900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888045c2c980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================