================================================================== 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 ffff888092bf05d0 by task kworker/u4:5/8849 CPU: 0 PID: 8849 Comm: kworker/u4:5 Not tainted 5.2.0+ #97 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: 0x0 (bat_events) 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:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:169 [inline] RIP: 0010:_raw_spin_unlock_irq+0x54/0x90 kernel/locking/spinlock.c:199 Code: c0 20 f0 d2 88 48 ba 00 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 10 00 75 33 48 83 3d a5 d9 99 01 00 74 20 fb 66 0f 1f 44 00 00 01 00 00 00 e8 e2 96 15 fa 65 8b 05 f3 e6 c8 78 85 c0 74 06 41 RSP: 0018:ffff888066317cf0 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13 RAX: 1ffffffff11a5e04 RBX: ffff8880663066c0 RCX: 0000000000000000 RDX: dffffc0000000000 RSI: 0000000000000006 RDI: ffff888066306f4c RBP: ffff888066317cf8 R08: ffff8880663066c0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880ae835540 R13: ffff8880a98ac2c0 R14: ffff88806445eac0 R15: 0000000000000001 finish_lock_switch kernel/sched/core.c:3004 [inline] finish_task_switch+0x147/0x720 kernel/sched/core.c:3104 context_switch kernel/sched/core.c:3257 [inline] __schedule+0x75d/0x1580 kernel/sched/core.c:3880 schedule+0xa8/0x270 kernel/sched/core.c:3944 worker_thread+0x248/0xe40 kernel/workqueue.c:2436 kthread+0x361/0x430 kernel/kthread.c:255 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 Allocated by task 13054: 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 user_path_at_empty+0x2f/0x50 fs/namei.c:2606 user_path_at include/linux/namei.h:60 [inline] vfs_statx+0x129/0x200 fs/stat.c:187 vfs_stat include/linux/fs.h:3182 [inline] __do_sys_newstat+0xa4/0x130 fs/stat.c:341 __se_sys_newstat fs/stat.c:337 [inline] __x64_sys_newstat+0x54/0x80 fs/stat.c:337 do_syscall_64+0xfd/0x6a0 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 13054: 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 filename_lookup+0x28f/0x410 fs/namei.c:2355 user_path_at_empty+0x43/0x50 fs/namei.c:2606 user_path_at include/linux/namei.h:60 [inline] vfs_statx+0x129/0x200 fs/stat.c:187 vfs_stat include/linux/fs.h:3182 [inline] __do_sys_newstat+0xa4/0x130 fs/stat.c:341 __se_sys_newstat fs/stat.c:337 [inline] __x64_sys_newstat+0x54/0x80 fs/stat.c:337 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 ffff888092bf0cc0 which belongs to the cache names_cache of size 4096 The buggy address is located 1776 bytes to the left of 4096-byte region [ffff888092bf0cc0, ffff888092bf1cc0) The buggy address belongs to the page: page:ffffea00024afc00 refcount:1 mapcount:0 mapping:ffff88821bc46380 index:0x0 compound_mapcount: 0 flags: 0x1fffc0000010200(slab|head) raw: 01fffc0000010200 ffffea0001a3f388 ffffea0001750188 ffff88821bc46380 raw: 0000000000000000 ffff888092bf0cc0 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888092bf0480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888092bf0500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888092bf0580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888092bf0600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888092bf0680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================