================================================================== 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 ffff888061590910 by task syz-executor.3/5087 CPU: 0 PID: 5087 Comm: syz-executor.3 Not tainted 5.3.0-rc3+ #168 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:super_cache_count+0x8d/0x2e0 fs/super.c:143 Code: ff 49 8d bd 28 f9 ff ff 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 29 02 00 00 49 8b 9d 28 f9 ff ff <45> 31 e4 48 85 db 74 4a e8 86 51 bc ff 48 8d bb c0 00 00 00 48 b8 RSP: 0018:ffff8880542078f0 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: dffffc0000000000 RBX: ffffffff87996ae0 RCX: ffffc9000c580000 RDX: 1ffff11011809906 RSI: ffffffff81b637b4 RDI: ffff88808c04c830 RBP: ffff888054207928 R08: ffff888094f3e480 R09: fffffbfff134af50 R10: fffffbfff134af4f R11: ffffffff89a57a7f R12: 0000000020000000 R13: ffff88808c04cf08 R14: ffff888054207a20 R15: 0000000000000400 do_shrink_slab+0x109/0xad0 mm/vmscan.c:484 shrink_slab_memcg mm/vmscan.c:631 [inline] shrink_slab+0x4c5/0x630 mm/vmscan.c:710 shrink_node+0x63f/0x1710 mm/vmscan.c:2718 shrink_zones mm/vmscan.c:2947 [inline] do_try_to_free_pages+0x3cb/0x11e0 mm/vmscan.c:3005 try_to_free_mem_cgroup_pages+0x314/0xa80 mm/vmscan.c:3307 reclaim_high.constprop.0+0x12f/0x1a0 mm/memcontrol.c:2308 mem_cgroup_handle_over_high+0x8e/0x130 mm/memcontrol.c:2333 tracehook_notify_resume include/linux/tracehook.h:197 [inline] exit_to_usermode_loop+0x230/0x380 arch/x86/entry/common.c:163 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:00007f68081f7c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: 0000000000000001 RBX: 0000000000000006 RCX: 0000000000459829 RDX: 0000000000000001 RSI: 0000000020000180 RDI: 0000000000000003 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000008000 R11: 0000000000000246 R12: 00007f68081f86d4 R13: 00000000004c77e7 R14: 00000000004dd068 R15: 00000000ffffffff Allocated by task 19975: 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 fs/namei.c:209 [inline] __do_sys_unlink fs/namei.c:4110 [inline] __se_sys_unlink fs/namei.c:4108 [inline] __x64_sys_unlink+0x35/0x50 fs/namei.c:4108 do_syscall_64+0xfd/0x6a0 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 19975: 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_unlinkat+0x146/0x6d0 fs/namei.c:4084 __do_sys_unlink fs/namei.c:4110 [inline] __se_sys_unlink fs/namei.c:4108 [inline] __x64_sys_unlink+0x42/0x50 fs/namei.c:4108 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 ffff888061590b80 which belongs to the cache names_cache of size 4096 The buggy address is located 624 bytes to the left of 4096-byte region [ffff888061590b80, ffff888061591b80) The buggy address belongs to the page: page:ffffea0001856400 refcount:1 mapcount:0 mapping:ffff88821bc46380 index:0x0 compound_mapcount: 0 flags: 0x1fffc0000010200(slab|head) raw: 01fffc0000010200 ffffea00022e5408 ffffea0001878308 ffff88821bc46380 raw: 0000000000000000 ffff888061590b80 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888061590800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888061590880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888061590900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888061590980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888061590a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================