loop6: detected capacity change from 0 to 256 EXT4-fs warning (device sda): __ext4_ioctl:1161: Setting inode version is not supported with metadata_csum enabled. ================================================================== BUG: KASAN: slab-out-of-bounds in _copy_to_iter+0x48f/0x1420 FAULT_INJECTION: forcing a failure. name fail_usercopy, interval 1, probability 0, space 0, times 0 Read of size 4096 at addr ffff888044e53000 by task syz-executor.1/4618 CPU: 1 PID: 4627 Comm: syz-executor.0 Not tainted 5.19.0-rc6-next-20220711 #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_to_user+0x2a/0x140 simple_read_from_buffer+0xcc/0x160 proc_fail_nth_read+0x194/0x220 vfs_read+0x253/0x930 ksys_read+0x127/0x250 do_syscall_64+0x3b/0x90 entry_SYSCALL_64_after_hwframe+0x46/0xb0 RIP: 0033:0x7fe888ebd69c Code: ec 28 48 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 f9 fc ff ff 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 31 c0 0f 05 <48> 3d 00 f0 ff ff 77 34 44 89 c7 48 89 44 24 08 e8 2f fd ff ff 48 RSP: 002b:00007fe886480170 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 00007fe888ebd69c RDX: 000000000000000f RSI: 00007fe8864801e0 RDI: 0000000000000003 RBP: 00007fe8864801d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007ffc8cf70ecf R14: 00007fe886480300 R15: 0000000000022000 CPU: 0 PID: 4618 Comm: syz-executor.1 Not tainted 5.19.0-rc6-next-20220711 #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/0x5e1 kasan_report+0xb1/0x1b0 kasan_check_range+0x35/0x1b0 memcpy+0x20/0x60 _copy_to_iter+0x48f/0x1420 seq_read_iter+0xdc7/0x12b0 proc_reg_read_iter+0x206/0x2e0 generic_file_splice_read+0x187/0x4d0 do_splice_to+0x1bc/0x240 splice_direct_to_actor+0x2ac/0x8c0 do_splice_direct+0x1b8/0x280 do_sendfile+0xb19/0x1270 __x64_sys_sendfile64+0x1cd/0x210 do_syscall_64+0x3b/0x90 entry_SYSCALL_64_after_hwframe+0x46/0xb0 RIP: 0033:0x7f3e2b74ab19 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:00007f3e28cc0188 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f3e2b85df60 RCX: 00007f3e2b74ab19 RDX: 0000000000000000 RSI: 0000000000000007 RDI: 0000000000000004 RBP: 00007f3e2b7a4f6d R08: 0000000000000000 R09: 0000000000000000 R10: 000000010000027f R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff14864b6f R14: 00007f3e28cc0300 R15: 0000000000022000 Allocated by task 4618: kasan_save_stack+0x1e/0x40 __kasan_kmalloc+0x81/0xa0 kvmalloc_node+0x41/0x1e0 seq_read_iter+0x818/0x12b0 proc_reg_read_iter+0x206/0x2e0 generic_file_splice_read+0x187/0x4d0 do_splice_to+0x1bc/0x240 splice_direct_to_actor+0x2ac/0x8c0 do_splice_direct+0x1b8/0x280 do_sendfile+0xb19/0x1270 __x64_sys_sendfile64+0x1cd/0x210 do_syscall_64+0x3b/0x90 entry_SYSCALL_64_after_hwframe+0x46/0xb0 The buggy address belongs to the object at ffff888044e52000 which belongs to the cache kmalloc-cg-4k of size 4096 The buggy address is located 0 bytes to the right of 4096-byte region [ffff888044e52000, ffff888044e53000) The buggy address belongs to the physical page: page:000000001469ffb7 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x44e50 head:000000001469ffb7 order:3 compound_mapcount:0 compound_pincount:0 memcg:ffff88800e357ec1 flags: 0x100000000010200(slab|head|node=0|zone=1) raw: 0100000000010200 0000000000000000 dead000000000001 ffff88800784c280 raw: 0000000000000000 0000000080040004 00000001ffffffff ffff88800e357ec1 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888044e52f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888044e52f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888044e53000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888044e53080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888044e53100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== FAT-fs (loop6): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) EXT4-fs warning (device sda): __ext4_ioctl:1161: Setting inode version is not supported with metadata_csum enabled. loop7: detected capacity change from 0 to 256 FAT-fs (loop7): Invalid FSINFO signature: 0x00000000, 0x00000000 (sector = 1) ------------[ cut here ]------------ WARNING: CPU: 0 PID: 4618 at lib/iov_iter.c:1026 iov_iter_pipe+0x23c/0x2b0 Modules linked in: CPU: 0 PID: 4618 Comm: syz-executor.1 Tainted: G B 5.19.0-rc6-next-20220711 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 RIP: 0010:iov_iter_pipe+0x23c/0x2b0 Code: 83 c0 03 38 d0 7c 04 84 d2 75 30 44 89 63 24 48 83 c4 08 5b 5d 41 5c 41 5d 41 5e 41 5f c3 e8 fb 04 3f ff 0f 0b e8 f4 04 3f ff <0f> 0b e9 ac fe ff ff e8 48 40 71 ff e9 1b fe ff ff e8 ae 40 71 ff RSP: 0018:ffff8880459479d8 EFLAGS: 00010246 RAX: 0000000000040000 RBX: ffff888045947a68 RCX: ffffc900011da000 RDX: 0000000000040000 RSI: ffffffff8205786c RDI: 0000000000000004 RBP: ffff88804455d400 R08: 0000000000000004 R09: 0000000000000010 R10: 0000000000000010 R11: 0000000000000001 R12: 0000000000000010 R13: 0000000000000000 R14: 0000000000000010 R15: 0000000000000010 FS: 00007f3e28cc0700(0000) GS:ffff88806ce00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000559543d5f020 CR3: 00000000433e4000 CR4: 0000000000350ef0 Call Trace: generic_file_splice_read+0x95/0x4d0 do_splice_to+0x1bc/0x240 splice_direct_to_actor+0x2ac/0x8c0 do_splice_direct+0x1b8/0x280 do_sendfile+0xb19/0x1270 __x64_sys_sendfile64+0x1cd/0x210 do_syscall_64+0x3b/0x90 entry_SYSCALL_64_after_hwframe+0x46/0xb0 RIP: 0033:0x7f3e2b74ab19 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:00007f3e28cc0188 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f3e2b85df60 RCX: 00007f3e2b74ab19 RDX: 0000000000000000 RSI: 0000000000000007 RDI: 0000000000000004 RBP: 00007f3e2b7a4f6d R08: 0000000000000000 R09: 0000000000000000 R10: 000000010000027f R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff14864b6f R14: 00007f3e28cc0300 R15: 0000000000022000 irq event stamp: 4399 hardirqs last enabled at (4399): [] asm_sysvec_apic_timer_interrupt+0x1b/0x20 hardirqs last disabled at (4398): [] __do_softirq+0x6ba/0x8cc softirqs last enabled at (3050): [] __irq_exit_rcu+0x113/0x170 softirqs last disabled at (2903): [] __irq_exit_rcu+0x113/0x170 ---[ end trace 0000000000000000 ]--- loop2: detected capacity change from 0 to 256 I/O error, dev loop2, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2