================================================================== BUG: KASAN: slab-out-of-bounds in tcp_retransmit_timer+0x2d4c/0x3240 net/ipv4/tcp_timer.c:500 Read of size 8 at addr ffff88808fe3a310 by task syz-executor.0/30078 CPU: 0 PID: 30078 Comm: syz-executor.0 Not tainted 5.9.0-rc1-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+0x18f/0x20d 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_retransmit_timer+0x2d4c/0x3240 net/ipv4/tcp_timer.c:500 tcp_write_timer_handler+0x79b/0xa60 net/ipv4/tcp_timer.c:611 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+0xae/0x1a0 kernel/time/timer.c:1768 __do_softirq+0x2de/0xa24 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 invoke_softirq kernel/softirq.c:393 [inline] __irq_exit_rcu kernel/softirq.c:423 [inline] irq_exit_rcu+0x1f3/0x230 kernel/softirq.c:435 sysvec_apic_timer_interrupt+0x51/0xf0 arch/x86/kernel/apic/apic.c:1091 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:581 RIP: 0010:__sanitizer_cov_trace_pc+0x55/0x60 kernel/kcov.c:207 Code: 82 00 14 00 00 83 f8 02 75 20 48 8b 8a 08 14 00 00 8b 92 04 14 00 00 48 8b 01 48 83 c0 01 48 39 c2 76 07 48 89 34 c1 48 89 01 66 2e 0f 1f 84 00 00 00 00 00 41 55 41 54 49 89 fc 55 48 bd eb RSP: 0018:ffffc900056a7918 EFLAGS: 00000293 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff81ad3bba RDX: ffff8880629942c0 RSI: ffffffff81ad3bc8 RDI: 0000000000000007 RBP: ffffea00024ade80 R08: 0000000000000000 R09: ffffea000215b947 R10: 0000000000000000 R11: 0000000000000000 R12: ffffea00024ade80 R13: ffffea00024ade88 R14: dead000000000100 R15: ffffc900056a7cd0 compound_head include/linux/page-flags.h:182 [inline] PageSwapBacked include/linux/page-flags.h:348 [inline] PageSwapCache include/linux/page-flags.h:393 [inline] free_swap_cache+0x58/0x300 mm/swap_state.c:325 free_pages_and_swap_cache+0x58/0x90 mm/swap_state.c:353 tlb_batch_pages_flush mm/mmu_gather.c:49 [inline] tlb_flush_mmu_free mm/mmu_gather.c:242 [inline] tlb_flush_mmu+0xe9/0x6b0 mm/mmu_gather.c:249 zap_pte_range mm/memory.c:1157 [inline] zap_pmd_range mm/memory.c:1195 [inline] zap_pud_range mm/memory.c:1224 [inline] zap_p4d_range mm/memory.c:1245 [inline] unmap_page_range+0x1e22/0x2b20 mm/memory.c:1266 unmap_single_vma+0x198/0x300 mm/memory.c:1311 unmap_vmas+0x168/0x2e0 mm/memory.c:1343 exit_mmap+0x2b1/0x530 mm/mmap.c:3183 __mmput+0x122/0x470 kernel/fork.c:1076 mmput+0x53/0x60 kernel/fork.c:1097 exit_mm kernel/exit.c:483 [inline] do_exit+0xa8b/0x29f0 kernel/exit.c:793 do_group_exit+0x125/0x310 kernel/exit.c:903 __do_sys_exit_group kernel/exit.c:914 [inline] __se_sys_exit_group kernel/exit.c:912 [inline] __x64_sys_exit_group+0x3a/0x50 kernel/exit.c:912 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45d579 Code: Bad RIP value. RSP: 002b:00007ffde1bd9928 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 000000000000001e RCX: 000000000045d579 RDX: 0000000000416ec1 RSI: fffffffffffffff7 RDI: 0000000000000000 RBP: 0000000000000000 R08: 00000000c0aa0ce4 R09: 00007ffde1bd9980 R10: ffffffff81c6cbad R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffde1bd9980 R14: 0000000000000000 R15: 00007ffde1bd9990 Allocated by task 28208: 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+0x138/0x3a0 mm/slab.c:3482 getname_flags.part.0+0x50/0x4f0 fs/namei.c:138 getname_flags+0x9a/0xe0 include/linux/audit.h:320 getname fs/namei.c:209 [inline] do_renameat2+0x1ac/0xbf0 fs/namei.c:4381 __do_sys_rename fs/namei.c:4502 [inline] __se_sys_rename fs/namei.c:4500 [inline] __x64_sys_rename+0x5d/0x80 fs/namei.c:4500 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Freed by task 28208: 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+0x67/0x1f0 mm/slab.c:3693 putname+0xe1/0x120 fs/namei.c:259 do_renameat2+0x25a/0xbf0 fs/namei.c:4475 __do_sys_rename fs/namei.c:4502 [inline] __se_sys_rename fs/namei.c:4500 [inline] __x64_sys_rename+0x5d/0x80 fs/namei.c:4500 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 ffff88808fe3a640 which belongs to the cache names_cache of size 4096 The buggy address is located 816 bytes to the left of 4096-byte region [ffff88808fe3a640, ffff88808fe3b640) The buggy address belongs to the page: page:000000001278cc24 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x8fe3a head:000000001278cc24 order:1 compound_mapcount:0 flags: 0xfffe0000010200(slab|head) raw: 00fffe0000010200 ffffea0002591d88 ffffea0001e7ba88 ffff88821bc47a00 raw: 0000000000000000 ffff88808fe3a640 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88808fe3a200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88808fe3a280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88808fe3a300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88808fe3a380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88808fe3a400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================