================================================================== BUG: KASAN: slab-out-of-bounds in tcp_probe_timer net/ipv4/tcp_timer.c:360 [inline] BUG: KASAN: slab-out-of-bounds in tcp_write_timer_handler+0x8c6/0x8d0 net/ipv4/tcp_timer.c:596 Read of size 4 at addr ffff8880a222e7d0 by task syz-executor.4/2149 CPU: 0 PID: 2149 Comm: syz-executor.4 Not tainted 5.3.0-rc3+ #155 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+0xd4/0x306 mm/kasan/report.c:351 __kasan_report.cold+0x1b/0x36 mm/kasan/report.c:482 kasan_report+0x12/0x17 mm/kasan/common.c:612 __asan_report_load4_noabort+0x14/0x20 mm/kasan/generic_report.c:131 tcp_probe_timer net/ipv4/tcp_timer.c:360 [inline] tcp_write_timer_handler+0x8c6/0x8d0 net/ipv4/tcp_timer.c:596 tcp_write_timer+0xa8/0x1e0 net/ipv4/tcp_timer.c:612 call_timer_fn+0x1ac/0x780 kernel/time/timer.c:1322 expire_timers kernel/time/timer.c:1366 [inline] __run_timers kernel/time/timer.c:1685 [inline] __run_timers kernel/time/timer.c:1653 [inline] run_timer_softirq+0x697/0x17a0 kernel/time/timer.c:1698 __do_softirq+0x262/0x98c kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0x19b/0x1e0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:537 [inline] smp_apic_timer_interrupt+0x1a3/0x610 arch/x86/kernel/apic/apic.c:1095 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:830 RIP: 0010:__sanitizer_cov_trace_pc+0x1/0x50 kernel/kcov.c:95 Code: 25 a4 28 19 09 41 bc f4 ff ff ff e8 ed 9f e9 ff 48 c7 05 8e 28 19 09 00 00 00 00 e9 77 e9 ff ff 90 90 90 90 90 90 90 90 90 55 <48> 89 e5 65 48 8b 04 25 40 fe 01 00 65 8b 15 74 74 8f 7e 81 e2 00 RSP: 0018:ffff88808d927720 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000000 RBX: 00007f73d4a86000 RCX: ffffffff819d58dc RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000007 RBP: ffff88808d927890 R08: ffff8880623746c0 R09: fffff940004f2097 R10: fffff940004f2096 R11: ffffea00027904b3 R12: ffffea0002924ac0 R13: ffff88808d927a00 R14: ffffea0002924ac0 R15: dffffc0000000000 unmap_single_vma+0x19d/0x300 mm/memory.c:1277 unmap_vmas+0x135/0x280 mm/memory.c:1309 exit_mmap+0x2ba/0x530 mm/mmap.c:3145 __mmput kernel/fork.c:1064 [inline] mmput+0x179/0x4d0 kernel/fork.c:1085 exit_mm kernel/exit.c:547 [inline] do_exit+0x84e/0x2e50 kernel/exit.c:866 do_group_exit+0x135/0x360 kernel/exit.c:983 get_signal+0x47c/0x2500 kernel/signal.c:2729 do_signal+0x87/0x1700 arch/x86/kernel/signal.c:815 exit_to_usermode_loop+0x286/0x380 arch/x86/entry/common.c:159 prepare_exit_to_usermode arch/x86/entry/common.c:194 [inline] syscall_return_slowpath arch/x86/entry/common.c:274 [inline] do_syscall_64+0x5a9/0x6a0 arch/x86/entry/common.c:299 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x459829 Code: fd b7 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 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f73d2fefcf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: 0000000000000001 RBX: 000000000075bfd0 RCX: 0000000000459829 RDX: 00000000004c85e3 RSI: 0000000000000081 RDI: 000000000075bfd4 RBP: 000000000075bfc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000004 R11: 0000000000000246 R12: 000000000075bfd4 R13: 00007ffd829d57bf R14: 00007f73d2ff09c0 R15: 000000000075bfd4 Allocated by task 660: save_stack+0x23/0x90 mm/kasan/common.c:69 set_track mm/kasan/common.c:77 [inline] __kasan_kmalloc mm/kasan/common.c:487 [inline] __kasan_kmalloc.constprop.0+0xcf/0xe0 mm/kasan/common.c:460 kasan_slab_alloc+0xf/0x20 mm/kasan/common.c:495 slab_post_alloc_hook mm/slab.h:520 [inline] slab_alloc mm/slab.c:3319 [inline] kmem_cache_alloc+0x121/0x710 mm/slab.c:3483 getname_flags fs/namei.c:138 [inline] getname_flags+0xd6/0x5b0 fs/namei.c:128 getname+0x1a/0x20 fs/namei.c:209 do_sys_open+0x2c9/0x5d0 fs/open.c:1083 __do_sys_open fs/open.c:1107 [inline] __se_sys_open fs/open.c:1102 [inline] __x64_sys_open+0x7e/0xc0 fs/open.c:1102 do_syscall_64+0xfd/0x6a0 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 660: save_stack+0x23/0x90 mm/kasan/common.c:69 set_track mm/kasan/common.c:77 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/common.c:449 kasan_slab_free+0xe/0x10 mm/kasan/common.c:457 __cache_free mm/slab.c:3425 [inline] kmem_cache_free+0x86/0x320 mm/slab.c:3693 putname+0xef/0x130 fs/namei.c:259 do_sys_open+0x318/0x5d0 fs/open.c:1098 __do_sys_open fs/open.c:1107 [inline] __se_sys_open fs/open.c:1102 [inline] __x64_sys_open+0x7e/0xc0 fs/open.c:1102 do_syscall_64+0xfd/0x6a0 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff8880a222eb40 which belongs to the cache names_cache of size 4096 The buggy address is located 880 bytes to the left of 4096-byte region [ffff8880a222eb40, ffff8880a222fb40) The buggy address belongs to the page: page:ffffea0002888b80 refcount:1 mapcount:0 mapping:ffff88821bc46380 index:0x0 compound_mapcount: 0 flags: 0x1fffc0000010200(slab|head) raw: 01fffc0000010200 ffffea00017bf588 ffffea0002948988 ffff88821bc46380 raw: 0000000000000000 ffff8880a222eb40 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a222e680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880a222e700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880a222e780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880a222e800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880a222e880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================