FAULT_INJECTION: forcing a failure.
name fail_usercopy, interval 1, probability 0, space 0, times 1
CPU: 1 PID: 4575 Comm: syz-executor.2 Not tainted 6.0.0-rc1-next-20220818 #1
BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1521
in_atomic(): 0, irqs_disabled(): 1, non_block: 0, pid: 4575, name: syz-executor.2
preempt_count: 0, expected: 0
RCU nest depth: 0, expected: 0
no locks held by syz-executor.2/4575.
irq event stamp: 314
hardirqs last  enabled at (313): [<ffffffff812bd8c8>] __up_console_sem+0x78/0x80
hardirqs last disabled at (314): [<ffffffff84123196>] dump_stack_lvl+0x2e/0xb3
softirqs last  enabled at (308): [<ffffffff8116ba5b>] __irq_exit_rcu+0x11b/0x180
softirqs last disabled at (295): [<ffffffff8116ba5b>] __irq_exit_rcu+0x11b/0x180
CPU: 1 PID: 4575 Comm: syz-executor.2 Not tainted 6.0.0-rc1-next-20220818 #1
loop1: detected capacity change from 0 to 40
loop6: detected capacity change from 0 to 40
syz-executor.2[4575] cmdline: /syz-executor.2 exec
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014
Call Trace:
 <TASK>
 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
 strncpy_from_user+0x34/0x3e0
 getname_flags.part.0+0x95/0x4f0
 getname+0x8e/0xd0
 do_sys_openat2+0xf9/0x4c0
 __x64_sys_openat+0x13f/0x1f0
 do_syscall_64+0x3b/0x90
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f0184bc5a04
Code: 84 00 00 00 00 00 44 89 54 24 0c e8 96 f9 ff ff 44 8b 54 24 0c 44 89 e2 48 89 ee 41 89 c0 bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 77 34 44 89 c7 89 44 24 0c e8 c8 f9 ff ff 8b 44
RSP: 002b:00007f0182188060 EFLAGS: 00000293 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f0184d25f60 RCX: 00007f0184bc5a04
RDX: 0000000000000002 RSI: 00007f01821880f0 RDI: 00000000ffffff9c
RBP: 00007f01821880f0 R08: 0000000000000000 R09: 00007f0182187f70
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000002
R13: 00007ffdf3ed12df R14: 00007f0182188300 R15: 0000000000022000
 </TASK>
syz-executor.6: attempt to access beyond end of device
loop6: rw=2049, sector=40, nr_sectors = 4 limit=40
Buffer I/O error on dev loop6, logical block 10, lost async page write
syz-executor.6: attempt to access beyond end of device
loop6: rw=2049, sector=40, nr_sectors = 4 limit=40
Buffer I/O error on dev loop6, logical block 10, lost async page write
syz-executor.2[4575] cmdline: /syz-executor.2 exec
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0x8b/0xb3
 should_fail.cold+0x5/0xa
 strncpy_from_user+0x34/0x3e0
 getname_flags.part.0+0x95/0x4f0
 getname+0x8e/0xd0
 do_sys_openat2+0xf9/0x4c0
 __x64_sys_openat+0x13f/0x1f0
 do_syscall_64+0x3b/0x90
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f0184bc5a04
Code: 84 00 00 00 00 00 44 89 54 24 0c e8 96 f9 ff ff 44 8b 54 24 0c 44 89 e2 48 89 ee 41 89 c0 bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 77 34 44 89 c7 89 44 24 0c e8 c8 f9 ff ff 8b 44
RSP: 002b:00007f0182188060 EFLAGS: 00000293 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f0184d25f60 RCX: 00007f0184bc5a04
RDX: 0000000000000002 RSI: 00007f01821880f0 RDI: 00000000ffffff9c
RBP: 00007f01821880f0 R08: 0000000000000000 R09: 00007f0182187f70
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000002
R13: 00007ffdf3ed12df R14: 00007f0182188300 R15: 0000000000022000
 </TASK>
loop1: detected capacity change from 0 to 40
syz-executor.7 (4570) used greatest stack depth: 23320 bytes left