================================================================== BUG: KASAN: slab-out-of-bounds in tcp_retransmit_timer+0x2d30/0x3220 net/ipv4/tcp_timer.c:499 Read of size 8 at addr ffff888063f3c290 by task systemd-udevd/3927 CPU: 1 PID: 3927 Comm: systemd-udevd Not tainted 5.9.0-syzkaller #0 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+0x198/0x1fb lib/dump_stack.c:118 print_address_description.constprop.0.cold+0xae/0x497 mm/kasan/report.c:385 __kasan_report mm/kasan/report.c:545 [inline] kasan_report.cold+0x1f/0x37 mm/kasan/report.c:562 tcp_retransmit_timer+0x2d30/0x3220 net/ipv4/tcp_timer.c:499 tcp_write_timer_handler+0x79b/0xa60 net/ipv4/tcp_timer.c:610 tcp_write_timer+0xa2/0x2b0 net/ipv4/tcp_timer.c:630 call_timer_fn+0x1a5/0x6b0 kernel/time/timer.c:1415 expire_timers kernel/time/timer.c:1460 [inline] __run_timers.part.0+0x67c/0xa50 kernel/time/timer.c:1757 __run_timers kernel/time/timer.c:1738 [inline] run_timer_softirq+0xb3/0x1d0 kernel/time/timer.c:1770 __do_softirq+0x203/0xac5 kernel/softirq.c:298 asm_call_irq_on_stack+0xf/0x20 __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline] do_softirq_own_stack+0xaa/0xd0 arch/x86/kernel/irq_64.c:77 invoke_softirq kernel/softirq.c:393 [inline] __irq_exit_rcu kernel/softirq.c:423 [inline] irq_exit_rcu+0x235/0x280 kernel/softirq.c:435 sysvec_apic_timer_interrupt+0x4d/0x100 arch/x86/kernel/apic/apic.c:1091 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:631 RIP: 0010:get_current arch/x86/include/asm/current.h:15 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x0/0x60 kernel/kcov.c:196 Code: 48 89 ef 5d e9 e1 6a 41 00 5d be 03 00 00 00 e9 16 59 45 02 66 0f 1f 44 00 00 48 8b be b0 01 00 00 e8 b4 ff ff ff 31 c0 c3 90 <65> 48 8b 14 25 c0 fe 01 00 65 8b 05 90 c8 8c 7e a9 00 01 ff 00 48 RSP: 0018:ffffc90000e77d88 EFLAGS: 00000246 RAX: 0000000000000000 RBX: 0000000000018800 RCX: ffffffff81c10b75 RDX: 0000000000000000 RSI: ffff8880a2bc0140 RDI: 0000000000000007 RBP: ffffc90000e77e00 R08: 0000000000000001 R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000098800 R13: ffffc90000e77eb8 R14: 0000000000000000 R15: 0000000000000000 build_open_flags+0x113/0x650 fs/open.c:1021 do_sys_openat2+0x85/0x420 fs/open.c:1156 do_sys_open fs/open.c:1184 [inline] __do_sys_open fs/open.c:1192 [inline] __se_sys_open fs/open.c:1188 [inline] __x64_sys_open+0x119/0x1c0 fs/open.c:1188 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7f414fa499b1 Code: f7 d8 bf ff ff ff ff 64 89 02 eb cb 0f 1f 00 66 2e 0f 1f 84 00 00 00 00 00 80 3f 00 74 1b be 00 08 09 00 b8 02 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 1f 89 c7 e9 00 ff ff ff 48 8b 05 b1 54 2e 00 RSP: 002b:00007ffee0cb6b78 EFLAGS: 00000202 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 000055f853163840 RCX: 00007f414fa499b1 RDX: 00000000000000fd RSI: 0000000000090800 RDI: 000055f853135e20 RBP: 00007f4150bfe710 R08: 000055f85314a840 R09: 0000000000001010 R10: 0000000000000030 R11: 0000000000000202 R12: 0000000000000000 R13: 000055f853135e20 R14: 00000000000000fd R15: 000055f853135e20 Allocated by task 13021: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:48 kasan_set_track mm/kasan/common.c:56 [inline] __kasan_kmalloc.constprop.0+0xbf/0xd0 mm/kasan/common.c:461 slab_post_alloc_hook mm/slab.h:530 [inline] slab_alloc mm/slab.c:3314 [inline] kmem_cache_alloc+0x139/0x3d0 mm/slab.c:3484 getname_flags.part.0+0x50/0x4f0 fs/namei.c:138 getname_flags include/linux/audit.h:320 [inline] getname+0x8e/0xd0 fs/namei.c:209 do_sys_openat2+0xf5/0x420 fs/open.c:1162 do_sys_open fs/open.c:1184 [inline] __do_sys_open fs/open.c:1192 [inline] __se_sys_open fs/open.c:1188 [inline] __x64_sys_open+0x119/0x1c0 fs/open.c:1188 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Freed by task 13021: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:48 kasan_set_track+0x1c/0x30 mm/kasan/common.c:56 kasan_set_free_info+0x1b/0x30 mm/kasan/generic.c:355 __kasan_slab_free+0xd8/0x120 mm/kasan/common.c:422 __cache_free mm/slab.c:3420 [inline] kmem_cache_free.part.0+0x74/0x1d0 mm/slab.c:3695 putname+0xe1/0x120 fs/namei.c:259 do_sys_openat2+0x153/0x420 fs/open.c:1177 do_sys_open fs/open.c:1184 [inline] __do_sys_open fs/open.c:1192 [inline] __se_sys_open fs/open.c:1188 [inline] __x64_sys_open+0x119/0x1c0 fs/open.c:1188 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 The buggy address belongs to the object at ffff888063f3cd00 which belongs to the cache names_cache of size 4096 The buggy address is located 2672 bytes to the left of 4096-byte region [ffff888063f3cd00, ffff888063f3dd00) The buggy address belongs to the page: page:000000004b6f0368 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x63f3c head:000000004b6f0368 order:1 compound_mapcount:0 flags: 0xfffe0000010200(slab|head) raw: 00fffe0000010200 ffffea000246de08 ffffea0002a38608 ffff8880aa2a8d00 raw: 0000000000000000 ffff888063f3cd00 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888063f3c180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888063f3c200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888063f3c280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888063f3c300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888063f3c380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================