FAULT_INJECTION: forcing a failure. name fail_usercopy, interval 1, probability 0, space 0, times 1 CPU: 0 PID: 4257 Comm: syz-executor.1 Not tainted 6.0.0-rc1-next-20220819 #1 BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1521 in_atomic(): 0, irqs_disabled(): 1, non_block: 0, pid: 4257, name: syz-executor.1 preempt_count: 0, expected: 0 RCU nest depth: 0, expected: 0 no locks held by syz-executor.1/4257. irq event stamp: 222 hardirqs last enabled at (221): [] __up_console_sem+0x78/0x80 hardirqs last disabled at (222): [] dump_stack_lvl+0x2e/0xb3 softirqs last enabled at (216): [] __irq_exit_rcu+0x11b/0x180 softirqs last disabled at (209): [] __irq_exit_rcu+0x11b/0x180 CPU: 0 PID: 4257 Comm: syz-executor.1 Not tainted 6.0.0-rc1-next-20220819 #1 syz-executor.1[4257] cmdline: /syz-executor.1 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 strncpy_from_user+0x34/0x3e0 getname_flags.part.0+0x95/0x4f0 __x64_sys_mkdir+0xda/0x140 do_syscall_64+0x3b/0x90 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f167ecf0c27 Code: 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 53 00 00 00 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:00007f167c266fa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000053 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f167ecf0c27 RDX: 0000000000000000 RSI: 00000000000001ff RDI: 0000000020000100 RBP: 00007f167c267040 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000020000100 R14: 00007f167c267000 R15: 0000000000000000 syz-executor.1[4257] cmdline: /syz-executor.1 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 strncpy_from_user+0x34/0x3e0 getname_flags.part.0+0x95/0x4f0 __x64_sys_mkdir+0xda/0x140 do_syscall_64+0x3b/0x90 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f167ecf0c27 Code: 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 53 00 00 00 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:00007f167c266fa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000053 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f167ecf0c27 RDX: 0000000000000000 RSI: 00000000000001ff RDI: 0000000020000100 RBP: 00007f167c267040 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000020000100 R14: 00007f167c267000 R15: 0000000000000000 Bluetooth: hci7: HCI_REQ-0x0406 Bluetooth: hci4: HCI_REQ-0x0406 Bluetooth: hci5: HCI_REQ-0x0406 Bluetooth: hci6: HCI_REQ-0x0406 Bluetooth: hci3: HCI_REQ-0x0406 Bluetooth: hci2: HCI_REQ-0x0406 Bluetooth: hci1: HCI_REQ-0x0406 Bluetooth: hci0: HCI_REQ-0x0406 Bluetooth: hci3: command 0x0406 tx timeout Bluetooth: hci0: command 0x0406 tx timeout Bluetooth: hci1: command 0x0406 tx timeout Bluetooth: hci2: command 0x0406 tx timeout Bluetooth: hci5: command 0x0406 tx timeout Bluetooth: hci6: command 0x0406 tx timeout Bluetooth: hci4: command 0x0406 tx timeout Bluetooth: hci7: command 0x0406 tx timeout