sysctl could not get directory: /fs -12 CPU: 1 PID: 20441 Comm: syz-executor.2 Not tainted 6.0.0-rc1-next-20220819-syzkaller #0 BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1521 in_atomic(): 0, irqs_disabled(): 1, non_block: 0, pid: 20441, name: syz-executor.2 preempt_count: 0, expected: 0 RCU nest depth: 0, expected: 0 no locks held by syz-executor.2/20441. irq event stamp: 814 hardirqs last enabled at (813): [] kasan_quarantine_put+0xf5/0x210 mm/kasan/quarantine.c:242 hardirqs last disabled at (814): [] dump_stack_lvl+0x2e/0x134 lib/dump_stack.c:139 softirqs last enabled at (796): [] invoke_softirq kernel/softirq.c:445 [inline] softirqs last enabled at (796): [] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:650 softirqs last disabled at (657): [] invoke_softirq kernel/softirq.c:445 [inline] softirqs last disabled at (657): [] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:650 CPU: 1 PID: 20441 Comm: syz-executor.2 Not tainted 6.0.0-rc1-next-20220819-syzkaller #0 syz-executor.2[20441] cmdline: /root/syz-executor.2 exec Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 Call Trace: __dump_stack lib/dump_stack.c:122 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:140 __might_resched.cold+0x222/0x26b kernel/sched/core.c:9896 down_read_killable+0x75/0x490 kernel/locking/rwsem.c:1521 mmap_read_lock_killable include/linux/mmap_lock.h:126 [inline] __access_remote_vm+0xac/0x6f0 mm/memory.c:5461 get_mm_cmdline.part.0+0x217/0x620 fs/proc/base.c:299 get_mm_cmdline fs/proc/base.c:367 [inline] get_task_cmdline_kernel+0x1d9/0x220 fs/proc/base.c:367 dump_stack_print_cmdline.part.0+0x82/0x150 lib/dump_stack.c:61 dump_stack_print_cmdline lib/dump_stack.c:89 [inline] dump_stack_print_info+0x185/0x190 lib/dump_stack.c:97 __dump_stack lib/dump_stack.c:121 [inline] dump_stack_lvl+0xc1/0x134 lib/dump_stack.c:140 __register_sysctl_table+0xdc1/0x10a0 fs/proc/proc_sysctl.c:1392 setup_mq_sysctls+0x13c/0x230 ipc/mq_sysctl.c:112 create_ipc_ns ipc/namespace.c:63 [inline] copy_ipcs+0x388/0x5e0 ipc/namespace.c:94 create_new_namespaces+0x210/0xb20 kernel/nsproxy.c:90 unshare_nsproxy_namespaces+0xc1/0x1f0 kernel/nsproxy.c:227 ksys_unshare+0x445/0x920 kernel/fork.c:3194 __do_sys_unshare kernel/fork.c:3265 [inline] __se_sys_unshare kernel/fork.c:3263 [inline] __x64_sys_unshare+0x2d/0x40 kernel/fork.c:3263 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f2448e89279 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f244a042168 EFLAGS: 00000246 ORIG_RAX: 0000000000000110 RAX: ffffffffffffffda RBX: 00007f2448f9bf80 RCX: 00007f2448e89279 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000006c060000 RBP: 00007f244a0421d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007ffc74a1747f R14: 00007f244a042300 R15: 0000000000022000 syz-executor.2[20441] cmdline: /root/syz-executor.2 exec Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 Call Trace: __dump_stack lib/dump_stack.c:122 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:140 __register_sysctl_table+0xdc1/0x10a0 fs/proc/proc_sysctl.c:1392 setup_mq_sysctls+0x13c/0x230 ipc/mq_sysctl.c:112 create_ipc_ns ipc/namespace.c:63 [inline] copy_ipcs+0x388/0x5e0 ipc/namespace.c:94 create_new_namespaces+0x210/0xb20 kernel/nsproxy.c:90 unshare_nsproxy_namespaces+0xc1/0x1f0 kernel/nsproxy.c:227 ksys_unshare+0x445/0x920 kernel/fork.c:3194 __do_sys_unshare kernel/fork.c:3265 [inline] __se_sys_unshare kernel/fork.c:3263 [inline] __x64_sys_unshare+0x2d/0x40 kernel/fork.c:3263 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f2448e89279 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f244a042168 EFLAGS: 00000246 ORIG_RAX: 0000000000000110 RAX: ffffffffffffffda RBX: 00007f2448f9bf80 RCX: 00007f2448e89279 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000006c060000 RBP: 00007f244a0421d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007ffc74a1747f R14: 00007f244a042300 R15: 0000000000022000