================================================================== BUG: KASAN: slab-out-of-bounds in tcp_probe_timer net/ipv4/tcp_timer.c:372 [inline] BUG: KASAN: slab-out-of-bounds in tcp_write_timer_handler+0x8c6/0x8d0 net/ipv4/tcp_timer.c:615 Read of size 4 at addr ffff888048724714 by task syz-executor.3/10909 CPU: 1 PID: 10909 Comm: syz-executor.3 Not tainted 5.6.0-rc3-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+0x197/0x210 lib/dump_stack.c:118 print_address_description.constprop.0.cold+0xd4/0x30b mm/kasan/report.c:374 __kasan_report.cold+0x1b/0x32 mm/kasan/report.c:506 kasan_report+0x12/0x20 mm/kasan/common.c:641 __asan_report_load4_noabort+0x14/0x20 mm/kasan/generic_report.c:134 tcp_probe_timer net/ipv4/tcp_timer.c:372 [inline] tcp_write_timer_handler+0x8c6/0x8d0 net/ipv4/tcp_timer.c:615 tcp_write_timer+0xac/0x2e0 net/ipv4/tcp_timer.c:631 call_timer_fn+0x1ac/0x780 kernel/time/timer.c:1404 expire_timers kernel/time/timer.c:1449 [inline] __run_timers kernel/time/timer.c:1773 [inline] __run_timers kernel/time/timer.c:1740 [inline] run_timer_softirq+0x6c3/0x1790 kernel/time/timer.c:1786 __do_softirq+0x262/0x98c kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0x19b/0x1e0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:546 [inline] smp_apic_timer_interrupt+0x1a3/0x610 arch/x86/kernel/apic/apic.c:1146 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:829 RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:752 [inline] RIP: 0010:slab_alloc mm/slab.c:3313 [inline] RIP: 0010:kmem_cache_alloc+0x283/0x710 mm/slab.c:3484 Code: 7e 0f 85 dc fe ff ff e8 6c 9e 4c ff e9 d2 fe ff ff e8 51 65 c7 ff 48 83 3d a1 e5 ff 07 00 0f 84 51 03 00 00 48 8b 7d d0 57 9d <0f> 1f 44 00 00 e9 68 fe ff ff 31 d2 be 35 02 00 00 48 c7 c7 1e f1 RSP: 0018:ffffc90002217c70 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000007 RBX: 0000000000000cc0 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000282 RBP: ffffc90002217cd8 R08: ffff88804cde0300 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff88821bc50a80 R13: ffff88821bc50a80 R14: 0000000000000cc0 R15: ffff88803f7f6a40 getname_flags fs/namei.c:138 [inline] getname_flags+0xd6/0x5b0 fs/namei.c:128 getname+0x1a/0x20 fs/namei.c:209 do_sys_openat2+0x45c/0x7e0 fs/open.c:1143 do_sys_open+0xf2/0x180 fs/open.c:1165 ksys_open include/linux/syscalls.h:1386 [inline] __do_sys_open fs/open.c:1171 [inline] __se_sys_open fs/open.c:1169 [inline] __x64_sys_open+0x7e/0xc0 fs/open.c:1169 do_syscall_64+0xfa/0x790 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45a3f0 Code: 31 c0 e9 45 ff ff ff 0f 1f 00 80 3f 00 0f 84 f7 00 00 00 55 53 b9 02 00 00 00 be 00 08 09 00 89 c8 48 81 ec 98 00 00 00 0f 05 <48> 3d 00 f0 ff ff 48 89 c3 0f 87 e9 00 00 00 85 db 0f 88 2f 01 00 RSP: 002b:00007ffe459c0870 EFLAGS: 00000202 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 0000000000086da8 RCX: 000000000045a3f0 RDX: 000000000000000c RSI: 0000000000090800 RDI: 00007ffe459c1a50 RBP: 00000000000001e1 R08: 0000000000000001 R09: 0000000002a7a940 R10: 0000000000000000 R11: 0000000000000202 R12: 00007ffe459c1a50 R13: 00007ffe459c1a40 R14: 0000000000000000 R15: 00007ffe459c1a50 Allocated by task 14056: save_stack+0x23/0x90 mm/kasan/common.c:72 set_track mm/kasan/common.c:80 [inline] __kasan_kmalloc mm/kasan/common.c:515 [inline] __kasan_kmalloc.constprop.0+0xcf/0xe0 mm/kasan/common.c:488 kasan_slab_alloc+0xf/0x20 mm/kasan/common.c:523 slab_post_alloc_hook mm/slab.h:584 [inline] slab_alloc mm/slab.c:3320 [inline] kmem_cache_alloc+0x121/0x710 mm/slab.c:3484 getname_flags fs/namei.c:138 [inline] getname_flags+0xd6/0x5b0 fs/namei.c:128 user_path_at_empty+0x2f/0x50 fs/namei.c:2746 user_path_at include/linux/namei.h:58 [inline] vfs_statx+0x12f/0x200 fs/stat.c:197 vfs_stat include/linux/fs.h:3271 [inline] __do_sys_newstat+0xa4/0x130 fs/stat.c:351 __se_sys_newstat fs/stat.c:347 [inline] __x64_sys_newstat+0x54/0x80 fs/stat.c:347 do_syscall_64+0xfa/0x790 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 14056: save_stack+0x23/0x90 mm/kasan/common.c:72 set_track mm/kasan/common.c:80 [inline] kasan_set_free_info mm/kasan/common.c:337 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/common.c:476 kasan_slab_free+0xe/0x10 mm/kasan/common.c:485 __cache_free mm/slab.c:3426 [inline] kmem_cache_free+0x86/0x320 mm/slab.c:3694 putname+0xef/0x130 fs/namei.c:259 filename_lookup+0x282/0x3e0 fs/namei.c:2475 user_path_at_empty+0x43/0x50 fs/namei.c:2746 user_path_at include/linux/namei.h:58 [inline] vfs_statx+0x12f/0x200 fs/stat.c:197 vfs_stat include/linux/fs.h:3271 [inline] __do_sys_newstat+0xa4/0x130 fs/stat.c:351 __se_sys_newstat fs/stat.c:347 [inline] __x64_sys_newstat+0x54/0x80 fs/stat.c:347 do_syscall_64+0xfa/0x790 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff888048724a00 which belongs to the cache names_cache of size 4096 The buggy address is located 748 bytes to the left of 4096-byte region [ffff888048724a00, ffff888048725a00) The buggy address belongs to the page: page:ffffea000121c900 refcount:1 mapcount:0 mapping:ffff88821bc50a80 index:0x0 compound_mapcount: 0 flags: 0xfffe0000010200(slab|head) raw: 00fffe0000010200 ffffea0000f54b08 ffffea000130c688 ffff88821bc50a80 raw: 0000000000000000 ffff888048724a00 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888048724600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888048724680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888048724700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888048724780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888048724800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================