================================================================== 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+0x9d0/0xa60 net/ipv4/tcp_timer.c:615 Read of size 4 at addr ffff88808936e8bc by task syz-executor.2/29784 CPU: 0 PID: 29784 Comm: syz-executor.2 Not tainted 5.9.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+0x198/0x1fd lib/dump_stack.c:118 print_address_description.constprop.0.cold+0xae/0x497 mm/kasan/report.c:383 __kasan_report mm/kasan/report.c:513 [inline] kasan_report.cold+0x1f/0x37 mm/kasan/report.c:530 tcp_probe_timer net/ipv4/tcp_timer.c:372 [inline] tcp_write_timer_handler+0x9d0/0xa60 net/ipv4/tcp_timer.c:615 tcp_write_timer+0xa2/0x2b0 net/ipv4/tcp_timer.c:631 call_timer_fn+0x1ac/0x760 kernel/time/timer.c:1413 expire_timers kernel/time/timer.c:1458 [inline] __run_timers.part.0+0x67c/0xaa0 kernel/time/timer.c:1755 __run_timers kernel/time/timer.c:1736 [inline] run_timer_softirq+0xb3/0x1d0 kernel/time/timer.c:1768 __do_softirq+0x1f8/0xb23 kernel/softirq.c:298 asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:706 __run_on_irqstack arch/x86/include/asm/irq_stack.h:22 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:48 [inline] do_softirq_own_stack+0x9d/0xd0 arch/x86/kernel/irq_64.c:77 do_softirq kernel/softirq.c:343 [inline] do_softirq+0x154/0x1b0 kernel/softirq.c:330 __local_bh_enable_ip+0x196/0x1f0 kernel/softirq.c:195 local_bh_enable include/linux/bottom_half.h:32 [inline] rcu_read_unlock_bh include/linux/rcupdate.h:723 [inline] __dev_queue_xmit+0x1aaf/0x2d70 net/core/dev.c:4163 __bpf_tx_skb net/core/filter.c:2112 [inline] __bpf_redirect_no_mac net/core/filter.c:2137 [inline] __bpf_redirect+0x52e/0xc60 net/core/filter.c:2160 ____bpf_clone_redirect net/core/filter.c:2191 [inline] bpf_clone_redirect+0x2ae/0x420 net/core/filter.c:2163 bpf_prog_bebbfe2050753572+0x5c/0xf88 bpf_dispatcher_nop_func include/linux/bpf.h:586 [inline] bpf_test_run+0x3be/0xcf0 net/bpf/test_run.c:49 bpf_prog_test_run_skb+0xa4c/0x1c10 net/bpf/test_run.c:496 bpf_prog_test_run kernel/bpf/syscall.c:2996 [inline] __do_sys_bpf+0x1770/0x4c60 kernel/bpf/syscall.c:4196 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45dd99 Code: 0d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f97e46b5c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 0000000000001780 RCX: 000000000045dd99 RDX: 0000000000000028 RSI: 0000000020000080 RDI: 000000000000000a RBP: 000000000118bf60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118bf2c R13: 00007fffb0cae6af R14: 00007f97e46b69c0 R15: 000000000118bf2c Allocated by task 29634: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:48 kasan_set_track mm/kasan/common.c:56 [inline] __kasan_kmalloc.constprop.0+0xbf/0xd0 mm/kasan/common.c:461 slab_post_alloc_hook mm/slab.h:518 [inline] slab_alloc mm/slab.c:3312 [inline] kmem_cache_alloc+0x13a/0x3f0 mm/slab.c:3482 getname_flags.part.0+0x50/0x4f0 fs/namei.c:138 getname_flags include/linux/audit.h:320 [inline] getname+0x8e/0xd0 fs/namei.c:209 do_sys_openat2+0xf5/0x420 fs/open.c:1162 do_sys_open fs/open.c:1184 [inline] __do_sys_open fs/open.c:1192 [inline] __se_sys_open fs/open.c:1188 [inline] __x64_sys_open+0x119/0x1c0 fs/open.c:1188 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Freed by task 29634: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:48 kasan_set_track+0x1c/0x30 mm/kasan/common.c:56 kasan_set_free_info+0x1b/0x30 mm/kasan/generic.c:355 __kasan_slab_free+0xd8/0x120 mm/kasan/common.c:422 __cache_free mm/slab.c:3418 [inline] kmem_cache_free.part.0+0x74/0x1e0 mm/slab.c:3693 putname+0xe1/0x120 fs/namei.c:259 do_sys_openat2+0x153/0x420 fs/open.c:1177 do_sys_open fs/open.c:1184 [inline] __do_sys_open fs/open.c:1192 [inline] __se_sys_open fs/open.c:1188 [inline] __x64_sys_open+0x119/0x1c0 fs/open.c:1188 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 The buggy address belongs to the object at ffff88808936e980 which belongs to the cache names_cache of size 4096 The buggy address is located 196 bytes to the left of 4096-byte region [ffff88808936e980, ffff88808936f980) The buggy address belongs to the page: page:000000002ca2815c refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x8936e head:000000002ca2815c order:1 compound_mapcount:0 flags: 0xfffe0000010200(slab|head) raw: 00fffe0000010200 ffffea0001715808 ffffea0002771488 ffff88821bc47a00 raw: 0000000000000000 ffff88808936e980 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88808936e780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88808936e800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88808936e880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88808936e900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88808936e980: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================