==================================================================
BUG: KASAN: slab-out-of-bounds in tcp_orphan_retries net/ipv4/tcp_timer.c:127 [inline]
BUG: KASAN: slab-out-of-bounds in tcp_probe_timer net/ipv4/tcp_timer.c:369 [inline]
BUG: KASAN: slab-out-of-bounds in tcp_write_timer_handler+0xa4b/0xa60 net/ipv4/tcp_timer.c:597
Read of size 4 at addr ffff888046620a68 by task syz-executor.1/8141
CPU: 1 PID: 8141 Comm: syz-executor.1 Not tainted 4.19.211-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+0x1fc/0x2ef lib/dump_stack.c:118
print_address_description.cold+0x54/0x219 mm/kasan/report.c:256
kasan_report_error.cold+0x8a/0x1b9 mm/kasan/report.c:354
kasan_report mm/kasan/report.c:412 [inline]
__asan_report_load4_noabort+0x88/0x90 mm/kasan/report.c:432
tcp_orphan_retries net/ipv4/tcp_timer.c:127 [inline]
tcp_probe_timer net/ipv4/tcp_timer.c:369 [inline]
tcp_write_timer_handler+0xa4b/0xa60 net/ipv4/tcp_timer.c:597
tcp_write_timer+0x103/0x1b0 net/ipv4/tcp_timer.c:613
call_timer_fn+0x177/0x700 kernel/time/timer.c:1338
expire_timers+0x243/0x4e0 kernel/time/timer.c:1375
__run_timers kernel/time/timer.c:1696 [inline]
run_timer_softirq+0x21c/0x670 kernel/time/timer.c:1709
__do_softirq+0x265/0x980 kernel/softirq.c:292
invoke_softirq kernel/softirq.c:372 [inline]
irq_exit+0x215/0x260 kernel/softirq.c:412
exiting_irq arch/x86/include/asm/apic.h:536 [inline]
smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1098
apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894
RIP: 0010:write_comp_data+0x6c/0x70 kernel/kcov.c:146
Code: 00 00 4e 8d 04 dd 28 00 00 00 4c 39 c6 72 1b 48 83 c7 01 4e 89 54 00 e0 4e 89 4c 00 e8 4a 89 54 00 f0 4a 89 4c d8 20 48 89 38 0f 1f 00 48 8b 0c 24 40 0f b6 d6 40 0f b6 f7 31 ff eb 80 48 8b
RSP: 0018:ffff88809ddbfa20 EFLAGS: 00000293 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff818c7438
RDX: 0000000000000000 RSI: ffff8880a157c340 RDI: 0000000000000007
RBP: dead000000000100 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000007 R11: 00000000d2cc1d79 R12: 0000000000000000
R13: dffffc0000000000 R14: ffffea0002d48580 R15: 0000000000000000
compound_head include/linux/page-flags.h:144 [inline]
PageSwapBacked include/linux/page-flags.h:295 [inline]
mm_counter_file include/linux/mm.h:1642 [inline]
mm_counter include/linux/mm.h:1651 [inline]
copy_one_pte mm/memory.c:1054 [inline]
copy_pte_range mm/memory.c:1114 [inline]
copy_pmd_range mm/memory.c:1165 [inline]
copy_pud_range mm/memory.c:1199 [inline]
copy_p4d_range mm/memory.c:1221 [inline]
copy_page_range+0x11a8/0x2ff0 mm/memory.c:1283
dup_mmap kernel/fork.c:549 [inline]
dup_mm kernel/fork.c:1285 [inline]
copy_mm kernel/fork.c:1341 [inline]
copy_process.part.0+0x5b22/0x8260 kernel/fork.c:1913
copy_process kernel/fork.c:1710 [inline]
_do_fork+0x22f/0xf30 kernel/fork.c:2219
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fce68afc5db
Code: ed 0f 85 60 01 00 00 64 4c 8b 0c 25 10 00 00 00 45 31 c0 4d 8d 91 d0 02 00 00 31 d2 31 f6 bf 11 00 20 01 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 87 89 00 00 00 41 89 c5 85 c0 0f 85 90 00 00
RSP: 002b:00007ffd8be1ffc0 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fce68afc5db
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
RBP: 0000000000000001 R08: 0000000000000000 R09: 00005555563f3400
R10: 00005555563f36d0 R11: 0000000000000246 R12: 0000000000000001
R13: 0000000000000000 R14: 0000000000000001 R15: 00007ffd8be200a0
Allocated by task 4696:
kmem_cache_alloc+0x122/0x370 mm/slab.c:3559
getname_flags+0xce/0x590 fs/namei.c:140
user_path_at_empty+0x2a/0x50 fs/namei.c:2609
user_path_at include/linux/namei.h:57 [inline]
vfs_statx+0x113/0x210 fs/stat.c:185
vfs_lstat include/linux/fs.h:3137 [inline]
__do_sys_newlstat fs/stat.c:350 [inline]
__se_sys_newlstat+0x96/0x120 fs/stat.c:344
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
Freed by task 4696:
__cache_free mm/slab.c:3503 [inline]
kmem_cache_free+0x7f/0x260 mm/slab.c:3765
putname+0xe1/0x120 fs/namei.c:261
filename_lookup+0x3d0/0x5a0 fs/namei.c:2358
user_path_at include/linux/namei.h:57 [inline]
vfs_statx+0x113/0x210 fs/stat.c:185
vfs_lstat include/linux/fs.h:3137 [inline]
__do_sys_newlstat fs/stat.c:350 [inline]
__se_sys_newlstat+0x96/0x120 fs/stat.c:344
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
The buggy address belongs to the object at ffff888046620b40
which belongs to the cache names_cache of size 4096
The buggy address is located 216 bytes to the left of
4096-byte region [ffff888046620b40, ffff888046621b40)
The buggy address belongs to the page:
page:ffffea0001198800 count:1 mapcount:0 mapping:ffff88823b843380 index:0x0 compound_mapcount: 0
flags: 0xfff00000008100(slab|head)
raw: 00fff00000008100 ffffea0001387288 ffffea0001198888 ffff88823b843380
raw: 0000000000000000 ffff888046620b40 0000000100000001 0000000000000000
page dumped because: kasan: bad access detected
Memory state around the buggy address:
ffff888046620900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff888046620980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
>ffff888046620a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
^
ffff888046620a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff888046620b00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb
==================================================================
----------------
Code disassembly (best guess):
0: 00 00 add %al,(%rax)
2: 4e 8d 04 dd 28 00 00 lea 0x28(,%r11,8),%r8
9: 00
a: 4c 39 c6 cmp %r8,%rsi
d: 72 1b jb 0x2a
f: 48 83 c7 01 add $0x1,%rdi
13: 4e 89 54 00 e0 mov %r10,-0x20(%rax,%r8,1)
18: 4e 89 4c 00 e8 mov %r9,-0x18(%rax,%r8,1)
1d: 4a 89 54 00 f0 mov %rdx,-0x10(%rax,%r8,1)
22: 4a 89 4c d8 20 mov %rcx,0x20(%rax,%r11,8)
27: 48 89 38 mov %rdi,(%rax)
* 2a: c3 retq <-- trapping instruction
2b: 0f 1f 00 nopl (%rax)
2e: 48 8b 0c 24 mov (%rsp),%rcx
32: 40 0f b6 d6 movzbl %sil,%edx
36: 40 0f b6 f7 movzbl %dil,%esi
3a: 31 ff xor %edi,%edi
3c: eb 80 jmp 0xffffffbe
3e: 48 rex.W
3f: 8b .byte 0x8b