================================================================== 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+0x90f/0x930 net/ipv4/tcp_timer.c:591 Read of size 4 at addr ffff88806ec74868 by task syz-executor4/9929 CPU: 1 PID: 9929 Comm: syz-executor4 Not tainted 5.0.0-rc3+ #15 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+0x1db/0x2d0 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:134 tcp_orphan_retries net/ipv4/tcp_timer.c:127 [inline] tcp_probe_timer net/ipv4/tcp_timer.c:362 [inline] tcp_write_timer_handler+0x90f/0x930 net/ipv4/tcp_timer.c:591 tcp_write_timer+0x10e/0x1d0 net/ipv4/tcp_timer.c:607 call_timer_fn+0x254/0x900 kernel/time/timer.c:1325 expire_timers kernel/time/timer.c:1362 [inline] __run_timers+0x6fc/0xd50 kernel/time/timer.c:1681 run_timer_softirq+0x52/0xb0 kernel/time/timer.c:1694 __do_softirq+0x30b/0xb11 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0x180/0x1d0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0x1b7/0x760 arch/x86/kernel/apic/apic.c:1062 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:807 RIP: 0010:clear_subpage+0xd7/0x110 mm/memory.c:4460 netlink: 11 bytes leftover after parsing attributes in process `syz-executor0'. Code: 04 3c 03 7e 43 83 ab 30 13 00 00 01 bf 01 00 00 00 e8 bd 34 a3 ff 65 8b 1d b6 fc 4c 7e 31 ff 89 de e8 4d 0f cd ff 85 db 74 0a c4 0d cd ff 5b 41 5c 5d c3 e8 ba 0d cd ff e8 d4 8a 4b ff e8 b0 RSP: 0000:ffff88808e647918 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000000 RBX: 0000000080000000 RCX: ffffffff81b4f123 RDX: 0000000080000000 RSI: 0000000000000000 RDI: 0000000000000005 RBP: ffff88808e647928 R08: ffff8880620443c0 R09: 0000000000000000 R10: ffffed1015ce5b8f R11: ffff8880ae72dc7b R12: ffff8880620443c0 R13: 00000000000000df R14: 0000000000000000 R15: 0000000000000000 process_huge_page mm/memory.c:4413 [inline] clear_huge_page+0xb5/0x4d0 mm/memory.c:4473 __do_huge_pmd_anonymous_page mm/huge_memory.c:577 [inline] do_huge_pmd_anonymous_page+0x82b/0x17f0 mm/huge_memory.c:744 create_huge_pmd mm/memory.c:3678 [inline] __handle_mm_fault+0x385a/0x55a0 mm/memory.c:3882 handle_mm_fault+0x4ec/0xc80 mm/memory.c:3948 do_user_addr_fault arch/x86/mm/fault.c:1475 [inline] __do_page_fault+0x5da/0xd60 arch/x86/mm/fault.c:1541 do_page_fault+0xe6/0x7d8 arch/x86/mm/fault.c:1572 page_fault+0x1e/0x30 arch/x86/entry/entry_64.S:1143 RIP: 0033:0x400489 Code: 00 e9 00 02 00 00 48 8b 44 24 10 48 0b 44 24 28 75 1f 48 8b 14 24 48 8b 7c 24 20 be 01 00 00 00 e8 cc 4c 00 00 48 8b 74 24 08 <88> 06 e9 25 02 00 00 48 8b 44 24 08 48 8b 14 24 be 01 00 00 00 0f RSP: 002b:00007ffcb24294e0 EFLAGS: 00010206 RAX: 00000000000000aa RBX: 0000000000000003 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000020000200 RDI: 00000000000000aa RBP: fffffffffffffffe R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000075 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 000000000000053b R15: 0000000000000004 Allocated by task 9274: save_stack+0x45/0xd0 mm/kasan/common.c:73 set_track mm/kasan/common.c:85 [inline] __kasan_kmalloc mm/kasan/common.c:496 [inline] __kasan_kmalloc.constprop.0+0xcf/0xe0 mm/kasan/common.c:469 kasan_kmalloc mm/kasan/common.c:504 [inline] kasan_slab_alloc+0xf/0x20 mm/kasan/common.c:411 kmem_cache_alloc+0x12d/0x710 mm/slab.c:3543 getname_flags fs/namei.c:140 [inline] getname_flags+0xd6/0x5b0 fs/namei.c:129 getname+0x1a/0x20 fs/namei.c:211 do_sys_open+0x3a5/0x7c0 fs/open.c:1057 __do_sys_open fs/open.c:1081 [inline] __se_sys_open fs/open.c:1076 [inline] __x64_sys_open+0x7e/0xc0 fs/open.c:1076 do_syscall_64+0x1a3/0x800 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 9274: save_stack+0x45/0xd0 mm/kasan/common.c:73 set_track mm/kasan/common.c:85 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/common.c:458 kasan_slab_free+0xe/0x10 mm/kasan/common.c:466 __cache_free mm/slab.c:3487 [inline] kmem_cache_free+0x86/0x260 mm/slab.c:3749 putname+0xef/0x130 fs/namei.c:261 do_sys_open+0x3f4/0x7c0 fs/open.c:1072 __do_sys_open fs/open.c:1081 [inline] __se_sys_open fs/open.c:1076 [inline] __x64_sys_open+0x7e/0xc0 fs/open.c:1076 do_syscall_64+0x1a3/0x800 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff88806ec742c0 which belongs to the cache names_cache of size 4096 The buggy address is located 1448 bytes inside of 4096-byte region [ffff88806ec742c0, ffff88806ec752c0) The buggy address belongs to the page: page:ffffea0001bb1d00 count:1 mapcount:0 mapping:ffff88821bc45380 index:0x0 compound_mapcount: 0 flags: 0x1fffc0000010200(slab|head) raw: 01fffc0000010200 ffffea0001912408 ffffea00024e1508 ffff88821bc45380 raw: 0000000000000000 ffff88806ec742c0 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88806ec74700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88806ec74780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88806ec74800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88806ec74880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88806ec74900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb kobject: 'brif' (0000000034420db7): kobject_cleanup, parent 000000004ce40016 ==================================================================