================================================================== BUG: KASAN: slab-out-of-bounds in tcp_retransmit_timer+0x2d4c/0x3240 net/ipv4/tcp_timer.c:500 Read of size 8 at addr ffff8880603562d0 by task syz-executor.5/15159 CPU: 1 PID: 15159 Comm: syz-executor.5 Not tainted 5.9.0-rc8-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_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+0xb3/0x1d0 kernel/time/timer.c:1768 __do_softirq+0x1f8/0xb23 kernel/softirq.c:298 asm_call_irq_on_stack+0xf/0x20 __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline] do_softirq_own_stack+0x9b/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+0x235/0x280 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_cmp4+0x4/0x20 kernel/kcov.c:258 Code: 84 00 00 00 00 00 48 8b 0c 24 0f b7 d6 0f b7 f7 bf 02 00 00 00 e9 4c ff ff ff 66 90 66 2e 0f 1f 84 00 00 00 00 00 48 8b 0c 24 <89> f2 89 fe bf 04 00 00 00 e9 2e ff ff ff 0f 1f 40 00 66 2e 0f 1f RSP: 0018:ffffc90005857638 EFLAGS: 00000202 RAX: 0000000000000000 RBX: 00000000000001fe RCX: ffffffff819b420b RDX: ffff888084a0a3c0 RSI: 00000000000000e5 RDI: 00000000000001fe RBP: 00000000000000e5 R08: 0000000000000001 R09: ffffea0001823537 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000004 R13: ffffea0001823500 R14: ffff88805bfe5738 R15: dffffc0000000000 release_pages+0x50b/0x1810 mm/swap.c:838 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:1348 [inline] zap_pmd_range mm/memory.c:1386 [inline] zap_pud_range mm/memory.c:1415 [inline] zap_p4d_range mm/memory.c:1436 [inline] unmap_page_range+0x1d2d/0x2a30 mm/memory.c:1457 unmap_single_vma+0x198/0x300 mm/memory.c:1502 unmap_vmas+0x168/0x2e0 mm/memory.c:1534 exit_mmap+0x2b1/0x530 mm/mmap.c:3183 __mmput+0x122/0x470 kernel/fork.c:1077 mmput+0x53/0x60 kernel/fork.c:1098 exit_mm kernel/exit.c:483 [inline] do_exit+0xa8b/0x29f0 kernel/exit.c:793 do_group_exit+0x125/0x310 kernel/exit.c:903 get_signal+0x428/0x1f00 kernel/signal.c:2757 arch_do_signal+0x82/0x2520 arch/x86/kernel/signal.c:811 exit_to_user_mode_loop kernel/entry/common.c:161 [inline] exit_to_user_mode_prepare+0x1ae/0x200 kernel/entry/common.c:192 syscall_exit_to_user_mode+0x7e/0x2e0 kernel/entry/common.c:267 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45de59 Code: Bad RIP value. RSP: 002b:00007f2647740cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 000000000118bfd0 RCX: 000000000045de59 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 000000000118bfd0 RBP: 000000000118bfc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118bfd4 R13: 00007ffc7fb7cbcf R14: 00007f26477419c0 R15: 000000000118bfd4 Allocated by task 3922: 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:3316 [inline] kmem_cache_alloc+0x13a/0x3f0 mm/slab.c:3486 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 3922: 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:3422 [inline] kmem_cache_free.part.0+0x74/0x1e0 mm/slab.c:3697 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 ffff888060356400 which belongs to the cache names_cache of size 4096 The buggy address is located 304 bytes to the left of 4096-byte region [ffff888060356400, ffff888060357400) The buggy address belongs to the page: page:000000000b2e63f0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x60356 head:000000000b2e63f0 order:1 compound_mapcount:0 flags: 0xfffe0000010200(slab|head) raw: 00fffe0000010200 ffffea00016a1c88 ffffea0002568b88 ffff88821bc47a00 raw: 0000000000000000 ffff888060356400 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888060356180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888060356200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888060356280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888060356300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888060356380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================