R13: 00007ffe380379ff R14: 00007fce7a96e300 R15: 0000000000022000
netlink: 12 bytes leftover after parsing attributes in process `syz-executor.5'.
==================================================================
BUG: KASAN: slab-out-of-bounds in _copy_to_iter+0x493/0x1420
Read of size 4087 at addr ffff88803e6da011 by task syz-executor.3/44439
CPU: 1 PID: 44439 Comm: syz-executor.3 Not tainted 5.19.0-rc6-next-20220715 #1
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014
Call Trace:
dump_stack_lvl+0x8b/0xb3
print_report.cold+0x5e/0x5e5
kasan_report+0xb1/0x1c0
kasan_check_range+0x35/0x1c0
memcpy+0x20/0x60
_copy_to_iter+0x493/0x1420
seq_read_iter+0x71a/0x12b0
generic_file_splice_read+0x187/0x4d0
do_splice_to+0x1bc/0x240
splice_direct_to_actor+0x2ac/0x8c0
do_splice_direct+0x1b8/0x290
do_sendfile+0xb1d/0x1280
__x64_sys_sendfile64+0x149/0x210
do_syscall_64+0x3b/0x90
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3d6fa7eb19
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f3d6cff4188 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007f3d6fb91f60 RCX: 00007f3d6fa7eb19
RDX: 0000000020000140 RSI: 0000000000000006 RDI: 0000000000000003
RBP: 00007f3d6fad8f6d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000009 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff43f6895f R14: 00007f3d6cff4300 R15: 0000000000022000
Allocated by task 44439:
kasan_save_stack+0x1e/0x40
__kasan_kmalloc+0x81/0xa0
kvmalloc_node+0x41/0x1e0
seq_read_iter+0x81c/0x12b0
do_iter_readv_writev+0x2f0/0x3c0
do_iter_read+0x2fb/0x750
vfs_readv+0xe5/0x160
__x64_sys_preadv+0x22f/0x310
do_syscall_64+0x3b/0x90
entry_SYSCALL_64_after_hwframe+0x63/0xcd
The buggy address belongs to the object at ffff88803e6da000
which belongs to the cache kmalloc-cg-4k of size 4096
The buggy address is located 17 bytes inside of
4096-byte region [ffff88803e6da000, ffff88803e6db000)
The buggy address belongs to the physical page:
page:00000000b5fccc56 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x3e6d8
head:00000000b5fccc56 order:3 compound_mapcount:0 compound_pincount:0
memcg:ffff88800d10f341
flags: 0x100000000010200(slab|head|node=0|zone=1)
raw: 0100000000010200 dead000000000100 dead000000000122 ffff88800784c280
raw: 0000000000000000 0000000080040004 00000001ffffffff ffff88800d10f341
page dumped because: kasan: bad access detected
Memory state around the buggy address:
ffff88803e6daf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88803e6daf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88803e6db000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
^
ffff88803e6db080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff88803e6db100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================
netlink: 12 bytes leftover after parsing attributes in process `syz-executor.0'.
FAULT_INJECTION: forcing a failure.
name fail_usercopy, interval 1, probability 0, space 0, times 0
CPU: 1 PID: 44482 Comm: syz-executor.7 Tainted: G B 5.19.0-rc6-next-20220715 #1
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014
Call Trace:
dump_stack_lvl+0x8b/0xb3
should_fail.cold+0x5/0xa
_copy_from_user+0x2a/0x170
iovec_from_user+0x23a/0x3c0
__import_iovec+0x64/0x600
import_iovec+0x83/0xb0
copy_msghdr_from_user+0xed/0x150
___sys_sendmsg+0xdd/0x1b0
__x64_sys_sendmsg+0x132/0x220
do_syscall_64+0x3b/0x90
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f69c3fb8b19
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f69c152e188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f69c40cbf60 RCX: 00007f69c3fb8b19
RDX: 0000000000000000 RSI: 0000000020000b00 RDI: 0000000000000004
RBP: 00007f69c152e1d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffda2341faf R14: 00007f69c152e300 R15: 0000000000022000