================================================================== BUG: KASAN: slab-out-of-bounds in tcp_retransmit_timer+0x2d30/0x3220 net/ipv4/tcp_timer.c:500 Read of size 8 at addr ffff88805f4d2310 by task syz-executor.4/13948 CPU: 0 PID: 13948 Comm: syz-executor.4 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+0x2d30/0x3220 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:arch_local_irq_restore arch/x86/include/asm/paravirt.h:770 [inline] RIP: 0010:lock_release+0x48c/0x8e0 kernel/locking/lockdep.c:5026 Code: 00 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 10 00 0f 85 7f 03 00 00 48 83 3d c8 d1 5b 08 00 0f 84 a9 01 00 00 48 8b 3c 24 57 9d <0f> 1f 44 00 00 48 b8 00 00 00 00 00 fc ff df 48 01 c5 48 c7 45 00 RSP: 0018:ffffc900057976c0 EFLAGS: 00000286 RAX: 1ffffffff136c781 RBX: ffff8880a8890580 RCX: 0000000000000000 RDX: dffffc0000000000 RSI: ffffffff89bd6b40 RDI: 0000000000000286 RBP: 1ffff92000af2eda R08: 0000000000000001 R09: ffff8880a8890e80 R10: fffffbfff1565309 R11: 0000000000000000 R12: 0000000000000001 R13: ffffffff81ba59cf R14: 0000000000000002 R15: ffff8880a8890580 zap_pte_range mm/memory.c:1091 [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+0xf3c/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 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:136 [inline] exit_to_user_mode_prepare+0x15d/0x1c0 kernel/entry/common.c:167 syscall_exit_to_user_mode+0x59/0x2b0 kernel/entry/common.c:242 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45d5f9 Code: Bad RIP value. RSP: 002b:00007f35c83ddc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: 0000000000000009 RBX: 0000000000022440 RCX: 000000000045d5f9 RDX: 0000000000007a05 RSI: 0000000020000340 RDI: ffffffffffffff9c RBP: 000000000118d028 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000001700 R11: 0000000000000246 R12: 000000000118cfec R13: 00007fffb3b2621f R14: 00007f35c83de9c0 R15: 000000000118cfec Allocated by task 13767: 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_kernel+0x4e/0x370 fs/namei.c:218 kernel_execve+0x24/0x460 fs/exec.c:2043 call_usermodehelper_exec_async+0x27a/0x500 kernel/umh.c:101 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 Freed by task 13767: 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 kernel_execve+0x38d/0x460 fs/exec.c:2084 call_usermodehelper_exec_async+0x27a/0x500 kernel/umh.c:101 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 The buggy address belongs to the object at ffff88805f4d2e40 which belongs to the cache names_cache of size 4096 The buggy address is located 2864 bytes to the left of 4096-byte region [ffff88805f4d2e40, ffff88805f4d3e40) The buggy address belongs to the page: page:00000000fe991797 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5f4d2 head:00000000fe991797 order:1 compound_mapcount:0 flags: 0xfffe0000010200(slab|head) raw: 00fffe0000010200 ffffea0001813c08 ffffea0002375d88 ffff8880aa241c00 raw: 0000000000000000 ffff88805f4d2e40 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88805f4d2200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88805f4d2280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88805f4d2300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88805f4d2380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88805f4d2400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================