================================================================== 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+0x88c/0x8a0 net/ipv4/tcp_timer.c:615 Read of size 4 at addr ffff88806197077c by task syz-executor.0/7030 CPU: 1 PID: 7030 Comm: syz-executor.0 Not tainted 5.7.0-rc5-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+0x188/0x20d lib/dump_stack.c:118 print_address_description.constprop.0.cold+0xd3/0x413 mm/kasan/report.c:382 __kasan_report.cold+0x20/0x38 mm/kasan/report.c:511 kasan_report+0x33/0x50 mm/kasan/common.c:625 tcp_probe_timer net/ipv4/tcp_timer.c:372 [inline] tcp_write_timer_handler+0x88c/0x8a0 net/ipv4/tcp_timer.c:615 tcp_write_timer+0xa2/0x2b0 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+0x623/0x1600 kernel/time/timer.c:1786 __do_softirq+0x26c/0x9f7 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0x192/0x1d0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:546 [inline] smp_apic_timer_interrupt+0x19e/0x600 arch/x86/kernel/apic/apic.c:1140 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:829 RIP: 0010:get_current arch/x86/include/asm/current.h:15 [inline] RIP: 0010:do_syscall_64+0x56/0x7d0 arch/x86/entry/common.c:289 Code: ff df 48 c1 ea 03 80 3c 02 00 0f 85 bc 06 00 00 48 83 3d 8c 0f 94 08 00 0f 84 c2 04 00 00 e8 c1 81 72 00 fb 66 0f 1f 44 00 00 <65> 4c 8b 24 25 00 1f 02 00 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 RSP: 0018:ffffc9000535ff28 EFLAGS: 00000293 ORIG_RAX: ffffffffffffff13 RAX: ffff8880a86565c0 RBX: 000000000000003d RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff8100b0ef RDI: ffff8880a8656e84 RBP: ffffc9000535ff58 R08: ffff8880a86565c0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: ffffffff8994c070 R14: 0000000000000000 R15: 0000000000000000 entry_SYSCALL_64_after_hwframe+0x49/0xb3 RIP: 0033:0x4168ca Code: 0f 83 6a 18 00 00 c3 66 0f 1f 84 00 00 00 00 00 8b 05 ce 30 89 00 85 c0 75 36 45 31 d2 48 63 d2 48 63 ff b8 3d 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 06 c3 0f 1f 44 00 00 48 c7 c2 d4 ff ff ff f7 RSP: 002b:00007fff7990b968 EFLAGS: 00000246 ORIG_RAX: 000000000000003d RAX: ffffffffffffffda RBX: 0000000000045ea3 RCX: 00000000004168ca RDX: 0000000040000001 RSI: 00007fff7990b9a0 RDI: ffffffffffffffff RBP: 00000000000002c8 R08: 0000000000000001 R09: 0000000001d4f940 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000008 R13: 00007fff7990b9a0 R14: 0000000000045de6 R15: 00007fff7990b9b0 Allocated by task 14014: save_stack+0x1b/0x40 mm/kasan/common.c:49 set_track mm/kasan/common.c:57 [inline] __kasan_kmalloc mm/kasan/common.c:495 [inline] __kasan_kmalloc.constprop.0+0xbf/0xd0 mm/kasan/common.c:468 slab_post_alloc_hook mm/slab.h:586 [inline] slab_alloc mm/slab.c:3320 [inline] kmem_cache_alloc+0x11b/0x740 mm/slab.c:3484 getname_flags fs/namei.c:138 [inline] getname_flags+0xd2/0x5b0 fs/namei.c:128 do_sys_openat2+0x3fc/0x7d0 fs/open.c:1142 do_sys_open+0xc3/0x140 fs/open.c:1164 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 Freed by task 14014: save_stack+0x1b/0x40 mm/kasan/common.c:49 set_track mm/kasan/common.c:57 [inline] kasan_set_free_info mm/kasan/common.c:317 [inline] __kasan_slab_free+0xf7/0x140 mm/kasan/common.c:456 __cache_free mm/slab.c:3426 [inline] kmem_cache_free+0x7f/0x320 mm/slab.c:3694 getname_flags fs/namei.c:151 [inline] getname_flags+0x2fe/0x5b0 fs/namei.c:128 do_sys_openat2+0x3fc/0x7d0 fs/open.c:1142 do_sys_open+0xc3/0x140 fs/open.c:1164 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 The buggy address belongs to the object at ffff888061970c80 which belongs to the cache names_cache of size 4096 The buggy address is located 1284 bytes to the left of 4096-byte region [ffff888061970c80, ffff888061971c80) The buggy address belongs to the page: page:ffffea0001865c00 refcount:1 mapcount:0 mapping:000000004c453979 index:0x0 head:ffffea0001865c00 order:1 compound_mapcount:0 flags: 0xfffe0000010200(slab|head) raw: 00fffe0000010200 ffffea0002608108 ffffea00017b1488 ffff8880aa1eb000 raw: 0000000000000000 ffff888061970c80 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888061970600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888061970680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888061970700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888061970780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888061970800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================