================================================================== BUG: KASAN: use-after-free in tcp_orphan_retries net/ipv4/tcp_timer.c:127 [inline] BUG: KASAN: use-after-free in tcp_probe_timer net/ipv4/tcp_timer.c:362 [inline] BUG: KASAN: use-after-free in tcp_write_timer_handler+0x889/0x8a0 net/ipv4/tcp_timer.c:591 Read of size 4 at addr ffff888069458a68 by task syz-executor.4/11001 CPU: 1 PID: 11001 Comm: syz-executor.4 Not tainted 5.1.0-rc5+ #149 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+0x172/0x1f0 lib/dump_stack.c:113 print_address_description.cold+0x7c/0x20d mm/kasan/report.c:187 kasan_report.cold+0x1b/0x40 mm/kasan/report.c:317 __asan_report_load4_noabort+0x14/0x20 mm/kasan/generic_report.c:131 tcp_orphan_retries net/ipv4/tcp_timer.c:127 [inline] tcp_probe_timer net/ipv4/tcp_timer.c:362 [inline] tcp_write_timer_handler+0x889/0x8a0 net/ipv4/tcp_timer.c:591 tcp_write_timer+0x10e/0x1d0 net/ipv4/tcp_timer.c:607 call_timer_fn+0x190/0x720 kernel/time/timer.c:1325 expire_timers kernel/time/timer.c:1362 [inline] __run_timers kernel/time/timer.c:1681 [inline] __run_timers kernel/time/timer.c:1649 [inline] run_timer_softirq+0x652/0x1700 kernel/time/timer.c:1694 __do_softirq+0x266/0x95a kernel/softirq.c:293 invoke_softirq kernel/softirq.c:374 [inline] irq_exit+0x180/0x1d0 kernel/softirq.c:414 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0x14a/0x570 arch/x86/kernel/apic/apic.c:1062 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:807 RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:767 [inline] RIP: 0010:lock_release+0x4c1/0xa00 kernel/locking/lockdep.c:4233 Code: 00 00 00 00 00 48 c1 e8 03 80 3c 10 00 0f 85 28 03 00 00 48 83 3d ee 05 3b 07 00 0f 84 cf 01 00 00 48 8b bd 68 ff ff ff 57 9d <0f> 1f 44 00 00 48 b8 00 00 00 00 00 fc ff df 48 c7 04 03 00 00 00 RSP: 0018:ffff888046a5f5c0 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13 RAX: 1ffffffff11252d6 RBX: 1ffff11008d4bebe RCX: 1ffff1100cb335ee RDX: dffffc0000000000 RSI: 1ffff1100cb335f5 RDI: 0000000000000286 RBP: ffff888046a5f678 R08: ffff88806599a700 R09: 0000000000000002 R10: ffffed1015d25bbf R11: ffff8880ae92ddfb R12: ffff88806599a700 R13: ffffffff81ae48d3 R14: ffffffff8a5d0a20 R15: ffff888046a5f650 rcu_lock_release include/linux/rcupdate.h:215 [inline] rcu_read_unlock include/linux/rcupdate.h:649 [inline] __unlock_page_memcg+0x70/0x100 mm/memcontrol.c:1944 unlock_page_memcg+0x2c/0x40 mm/memcontrol.c:1953 page_remove_file_rmap mm/rmap.c:1251 [inline] page_remove_rmap+0x57b/0x12c0 mm/rmap.c:1302 zap_pte_range mm/memory.c:1091 [inline] zap_pmd_range mm/memory.c:1193 [inline] zap_pud_range mm/memory.c:1222 [inline] zap_p4d_range mm/memory.c:1243 [inline] unmap_page_range+0xd70/0x2330 mm/memory.c:1264 unmap_single_vma+0x19d/0x300 mm/memory.c:1309 unmap_vmas+0x115/0x250 mm/memory.c:1340 exit_mmap+0x2c2/0x530 mm/mmap.c:3138 __mmput kernel/fork.c:1046 [inline] mmput+0x15f/0x4c0 kernel/fork.c:1067 exit_mm kernel/exit.c:546 [inline] do_exit+0x816/0x2fa0 kernel/exit.c:863 do_group_exit+0x135/0x370 kernel/exit.c:980 get_signal+0x399/0x1d50 kernel/signal.c:2577 do_signal+0x87/0x1940 arch/x86/kernel/signal.c:816 exit_to_usermode_loop+0x244/0x2c0 arch/x86/entry/common.c:162 prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline] syscall_return_slowpath arch/x86/entry/common.c:268 [inline] do_syscall_64+0x52d/0x610 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x458c29 Code: ad b8 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 7b b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007faf68d1acf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 000000000073bf08 RCX: 0000000000458c29 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 000000000073bf08 RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000073bf0c R13: 00007ffd6a869f2f R14: 00007faf68d1b9c0 R15: 000000000073bf0c The buggy address belongs to the page: page:ffffea0001a51600 count:0 mapcount:-128 mapping:0000000000000000 index:0xffff888069458300 flags: 0x1fffc0000000000() raw: 01fffc0000000000 ffffea0000dc5808 ffffea0002664608 0000000000000000 raw: ffff888069458300 0000000000000002 00000000ffffff7f 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888069458900: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888069458980: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff888069458a00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888069458a80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888069458b00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================