FAULT_INJECTION: forcing a failure. name fail_usercopy, interval 1, probability 0, space 0, times 1 CPU: 0 PID: 5925 Comm: syz-executor.4 Not tainted 6.0.0-rc1-next-20220819 #1 BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1521 in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 5925, name: syz-executor.4 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 3 locks held by syz-executor.4/5925: #0: ffff8880441cd268 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe7/0x100 #1: ffff8880454a0438 (sb_writers#17){.+.+}-{0:0}, at: ksys_write+0x127/0x250 #2: ffff88801d6f78b8 (&sb->s_type->i_mutex_key#18){++++}-{3:3}, at: generic_file_write_iter+0x8e/0x350 irq event stamp: 3076 hardirqs last enabled at (3075): [] __up_console_sem+0x78/0x80 hardirqs last disabled at (3076): [] dump_stack_lvl+0x2e/0xb3 softirqs last enabled at (3070): [] __irq_exit_rcu+0x11b/0x180 softirqs last disabled at (3061): [] __irq_exit_rcu+0x11b/0x180 Preemption disabled at: [] copy_page_from_iter_atomic+0x8a/0x16b0 CPU: 0 PID: 5925 Comm: syz-executor.4 Not tainted 6.0.0-rc1-next-20220819 #1 syz-executor.4[5925] cmdline: /syz-executor.4 exec 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 __might_resched.cold+0x222/0x26b down_read_killable+0x75/0x490 __access_remote_vm+0xac/0x6f0 get_mm_cmdline.part.0+0x214/0x600 get_task_cmdline_kernel+0x1e9/0x230 dump_stack_print_cmdline.part.0+0x82/0x150 dump_stack_print_info+0x185/0x190 dump_stack_lvl+0x7f/0xb3 should_fail.cold+0x5/0xa copyin+0x19/0x120 copy_page_from_iter_atomic+0x416/0x16b0 generic_perform_write+0x2bf/0x570 __generic_file_write_iter+0x2da/0x480 generic_file_write_iter+0xe3/0x350 vfs_write+0x9c3/0xd90 ksys_write+0x127/0x250 do_syscall_64+0x3b/0x90 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f32a7983b19 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:00007f32a4ef9188 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f32a7a96f60 RCX: 00007f32a7983b19 RDX: 0000000000000220 RSI: 0000000020001180 RDI: 0000000000000003 RBP: 00007f32a4ef91d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007fff47ab649f R14: 00007f32a4ef9300 R15: 0000000000022000 syz-executor.4[5925] cmdline: /syz-executor.4 exec 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 copyin+0x19/0x120 copy_page_from_iter_atomic+0x416/0x16b0 generic_perform_write+0x2bf/0x570 __generic_file_write_iter+0x2da/0x480 generic_file_write_iter+0xe3/0x350 vfs_write+0x9c3/0xd90 ksys_write+0x127/0x250 do_syscall_64+0x3b/0x90 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f32a7983b19 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:00007f32a4ef9188 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f32a7a96f60 RCX: 00007f32a7983b19 RDX: 0000000000000220 RSI: 0000000020001180 RDI: 0000000000000003 RBP: 00007f32a4ef91d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007fff47ab649f R14: 00007f32a4ef9300 R15: 0000000000022000 loop7: detected capacity change from 0 to 40 kworker/u4:3: attempt to access beyond end of device loop0: rw=1, sector=124, nr_sectors = 4 limit=40 Buffer I/O error on dev loop0, logical block 31, lost async page write loop0: detected capacity change from 0 to 40 kworker/u4:0: attempt to access beyond end of device loop6: rw=1, sector=124, nr_sectors = 4 limit=40 Buffer I/O error on dev loop6, logical block 31, lost async page write kworker/u4:4: attempt to access beyond end of device loop4: rw=1, sector=124, nr_sectors = 4 limit=40 Buffer I/O error on dev loop4, logical block 31, lost async page write loop6: detected capacity change from 0 to 40 loop4: detected capacity change from 0 to 40 loop7: detected capacity change from 0 to 40 kworker/u4:0: attempt to access beyond end of device loop0: rw=1, sector=124, nr_sectors = 4 limit=40 Buffer I/O error on dev loop0, logical block 31, lost async page write kworker/u4:0: attempt to access beyond end of device loop6: rw=1, sector=124, nr_sectors = 4 limit=40 Buffer I/O error on dev loop6, logical block 31, lost async page write kworker/u4:4: attempt to access beyond end of device loop4: rw=1, sector=124, nr_sectors = 4 limit=40 Buffer I/O error on dev loop4, logical block 31, lost async page write