================================================================== 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 ffff88809483e910 by task syz-executor.5/32127 CPU: 0 PID: 32127 Comm: syz-executor.5 Not tainted 5.2.0+ #97 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:828 RIP: 0010:arch_local_save_flags arch/x86/include/asm/paravirt.h:762 [inline] RIP: 0010:arch_local_irq_save arch/x86/include/asm/paravirt.h:784 [inline] RIP: 0010:lock_is_held_type+0x69/0x320 kernel/locking/lockdep.c:4447 Code: f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 4d 02 00 00 41 8b 94 24 8c 08 00 00 85 d2 0f 85 2f 02 00 00 48 c7 c0 08 f0 d2 88 <48> ba 00 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 10 00 0f 85 58 02 RSP: 0018:ffff8880648afb18 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: ffffffff88d2f008 RBX: 0000000000000000 RCX: 1ffffffff134a52e RDX: 0000000000000000 RSI: 00000000ffffffff RDI: ffff888069eb4ccc RBP: ffff8880648afb60 R08: ffff888069eb4440 R09: ffff888069eb4cc8 R10: fffffbfff1349eef R11: ffffffff89a4f77f R12: ffff888069eb4440 R13: 000000000000010b R14: ffffffff88dabf00 R15: dffffc0000000000 lock_is_held include/linux/lockdep.h:365 [inline] ___might_sleep+0x1c4/0x280 kernel/sched/core.c:6570 inet_twsk_purge+0x96/0x5e8 net/ipv4/inet_timewait_sock.c:267 dccp_v6_exit_batch+0x1a/0x20 net/dccp/ipv6.c:1113 ops_exit_list.isra.0+0xfc/0x150 net/core/net_namespace.c:175 setup_net+0x527/0x890 net/core/net_namespace.c:357 copy_net_ns+0x290/0x41f net/core/net_namespace.c:475 create_new_namespaces+0x400/0x7b0 kernel/nsproxy.c:103 unshare_nsproxy_namespaces+0xc2/0x200 kernel/nsproxy.c:202 ksys_unshare+0x444/0x980 kernel/fork.c:2831 __do_sys_unshare kernel/fork.c:2899 [inline] __se_sys_unshare kernel/fork.c:2897 [inline] __x64_sys_unshare+0x31/0x40 kernel/fork.c:2897 do_syscall_64+0xfd/0x6a0 arch/x86/entry/common.c:296 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:00007f38bde32c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000110 RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 0000000000459829 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000060000200 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f38bde336d4 R13: 00000000004c8f3a R14: 00000000004dfff0 R15: 00000000ffffffff Allocated by task 31841: 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:1064 __do_sys_open fs/open.c:1088 [inline] __se_sys_open fs/open.c:1083 [inline] __x64_sys_open+0x7e/0xc0 fs/open.c:1083 do_syscall_64+0xfd/0x6a0 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 31841: 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:1079 __do_sys_open fs/open.c:1088 [inline] __se_sys_open fs/open.c:1083 [inline] __x64_sys_open+0x7e/0xc0 fs/open.c:1083 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 ffff88809483eec0 which belongs to the cache names_cache of size 4096 The buggy address is located 1456 bytes to the left of 4096-byte region [ffff88809483eec0, ffff88809483fec0) The buggy address belongs to the page: page:ffffea0002520f80 refcount:1 mapcount:0 mapping:ffff88821bc46380 index:0x0 compound_mapcount: 0 flags: 0x1fffc0000010200(slab|head) raw: 01fffc0000010200 ffffea0002605008 ffffea0001da1708 ffff88821bc46380 raw: 0000000000000000 ffff88809483eec0 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88809483e800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88809483e880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88809483e900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88809483e980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88809483ea00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================