================================================================== 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 ffff888062d3c8d0 by task udevd/9219 CPU: 0 PID: 9219 Comm: udevd Not tainted 5.2.0+ #67 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_irq_restore arch/x86/include/asm/paravirt.h:767 [inline] RIP: 0010:lock_acquire+0x20b/0x410 kernel/locking/lockdep.c:4416 Code: 8c 08 00 00 00 00 00 00 48 c1 e8 03 80 3c 10 00 0f 85 d3 01 00 00 48 83 3d 21 19 7a 07 00 0f 84 53 01 00 00 48 8b 7d c8 57 9d <0f> 1f 44 00 00 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 65 8b RSP: 0018:ffff88809f847d20 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13 RAX: 1ffffffff11a5e02 RBX: ffff8880976ce180 RCX: ffffffff81588822 RDX: dffffc0000000000 RSI: 0000000000000008 RDI: 0000000000000286 RBP: ffff88809f847d68 R08: 0000000000006bf6 R09: fffffbfff14a7747 R10: ffff8880976cea10 R11: ffff8880976ce180 R12: ffff88821a10a960 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2f/0x40 kernel/locking/spinlock.c:151 spin_lock include/linux/spinlock.h:338 [inline] d_instantiate+0x68/0xa0 fs/dcache.c:1887 alloc_file_pseudo+0x174/0x280 fs/file_table.c:231 anon_inode_getfile fs/anon_inodes.c:91 [inline] anon_inode_getfile+0xda/0x200 fs/anon_inodes.c:74 do_epoll_create+0x2a2/0x3c0 fs/eventpoll.c:2068 __do_sys_epoll_create1 fs/eventpoll.c:2087 [inline] __se_sys_epoll_create1 fs/eventpoll.c:2085 [inline] __x64_sys_epoll_create1+0x31/0x40 fs/eventpoll.c:2085 do_syscall_64+0xfd/0x6a0 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fd714a578d7 Code: 73 01 c3 48 8b 0d 61 85 2a 00 31 d2 48 29 c2 64 89 11 48 83 c8 ff eb ea 90 90 90 90 90 90 90 90 90 90 90 b8 23 01 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 31 85 2a 00 31 d2 48 29 c2 64 RSP: 002b:00007fffe8520718 EFLAGS: 00000246 ORIG_RAX: 0000000000000123 RAX: ffffffffffffffda RBX: 000000000126a250 RCX: 00007fd714a578d7 RDX: 0000000000000000 RSI: 00007fd714d01e40 RDI: 0000000000080000 RBP: 0000000000625500 R08: 0000000000002403 R09: 0000000000002403 R10: 00007fd715343a70 R11: 0000000000000246 R12: 000000000127e6a0 R13: 00007fffe8521837 R14: 0000000000000005 R15: 000000000126a250 Allocated by task 15816: 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 15816: 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 ffff888062d3c9c0 which belongs to the cache names_cache of size 4096 The buggy address is located 240 bytes to the left of 4096-byte region [ffff888062d3c9c0, ffff888062d3d9c0) The buggy address belongs to the page: page:ffffea00018b4f00 refcount:1 mapcount:0 mapping:ffff88821bc46380 index:0x0 compound_mapcount: 0 flags: 0x1fffc0000010200(slab|head) raw: 01fffc0000010200 ffffea0002488408 ffffea0002910308 ffff88821bc46380 raw: 0000000000000000 ffff888062d3c9c0 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888062d3c780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888062d3c800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888062d3c880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888062d3c900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888062d3c980: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ==================================================================