================================================================== BUG: KASAN: slab-out-of-bounds in tcp_retransmit_timer+0x2a56/0x2e70 net/ipv4/tcp_timer.c:500 Read of size 8 at addr ffff88809168a390 by task syz-executor.0/22326 CPU: 1 PID: 22326 Comm: syz-executor.0 Not tainted 5.6.0-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/0x315 mm/kasan/report.c:382 __kasan_report.cold+0x35/0x4d mm/kasan/report.c:511 kasan_report+0x33/0x50 mm/kasan/common.c:625 tcp_retransmit_timer+0x2a56/0x2e70 net/ipv4/tcp_timer.c:500 tcp_write_timer_handler+0x686/0x8a0 net/ipv4/tcp_timer.c:611 tcp_write_timer+0xa2/0x2b0 net/ipv4/tcp_timer.c:631 call_timer_fn+0x1ac/0x780 kernel/time/timer.c:1405 expire_timers kernel/time/timer.c:1450 [inline] __run_timers kernel/time/timer.c:1774 [inline] __run_timers kernel/time/timer.c:1741 [inline] run_timer_softirq+0x623/0x1600 kernel/time/timer.c:1787 __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:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:169 [inline] RIP: 0010:_raw_spin_unlock_irq+0x4b/0x80 kernel/locking/spinlock.c:199 Code: c0 f0 92 94 89 48 ba 00 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 10 00 75 31 48 83 3d fe d7 c5 01 00 74 25 fb 66 0f 1f 44 00 00 01 00 00 00 e8 3b 46 80 f9 65 8b 05 bc 63 33 78 85 c0 74 02 5d RSP: 0018:ffffc900017e7b38 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff13 RAX: 1ffffffff132925e RBX: ffff88804b33a500 RCX: 0000000000000000 RDX: dffffc0000000000 RSI: 0000000000000006 RDI: ffff88804b33adc4 RBP: ffff8880ae737980 R08: ffff88804b33a500 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880ae737980 R13: ffff888084a98440 R14: 0000000000000000 R15: 0000000000000001 finish_lock_switch kernel/sched/core.c:3117 [inline] finish_task_switch+0x147/0x750 kernel/sched/core.c:3217 context_switch kernel/sched/core.c:3381 [inline] __schedule+0x93f/0x1ff0 kernel/sched/core.c:4094 schedule+0xd0/0x2a0 kernel/sched/core.c:4168 freezable_schedule include/linux/freezer.h:172 [inline] do_nanosleep+0x21f/0x640 kernel/time/hrtimer.c:1879 hrtimer_nanosleep+0x1df/0x3a0 kernel/time/hrtimer.c:1932 __do_sys_nanosleep kernel/time/hrtimer.c:1966 [inline] __se_sys_nanosleep kernel/time/hrtimer.c:1953 [inline] __x64_sys_nanosleep+0x1dc/0x260 kernel/time/hrtimer.c:1953 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 RIP: 0033:0x45ad51 Code: 75 14 b8 23 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 d4 d1 fb ff c3 48 83 ec 08 e8 ea 46 00 00 48 89 04 24 b8 23 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 33 47 00 00 48 89 d0 48 83 c4 08 48 3d 01 RSP: 002b:00007ffc62d2f620 EFLAGS: 00000293 ORIG_RAX: 0000000000000023 RAX: ffffffffffffffda RBX: 0000000000093875 RCX: 000000000045ad51 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007ffc62d2f630 RBP: 0000000000000001 R08: 00000000676c026a R09: 00000000676c026e R10: 00007ffc62d2f720 R11: 0000000000000293 R12: 000000000076bf00 R13: 000000000076c900 R14: 000000000009363e R15: 000000000076c04c Allocated by task 4109: 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 4109: 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 putname+0xe1/0x120 fs/namei.c:259 do_sys_openat2+0x467/0x7d0 fs/open.c:1157 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 ffff88809168a5c0 which belongs to the cache names_cache of size 4096 The buggy address is located 560 bytes to the left of 4096-byte region [ffff88809168a5c0, ffff88809168b5c0) The buggy address belongs to the page: page:ffffea000245a280 refcount:1 mapcount:0 mapping:000000009802fdc3 index:0x0 head:ffffea000245a280 order:1 compound_mapcount:0 flags: 0xfffe0000010200(slab|head) raw: 00fffe0000010200 ffffea0001869208 ffffea0002631708 ffff8880aa1eb000 raw: 0000000000000000 ffff88809168a5c0 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88809168a280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88809168a300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88809168a380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88809168a400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88809168a480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================