INFO: task syz-executor.4:11584 blocked for more than 143 seconds. Not tainted 6.3.0-rc3-syzkaller-00005-g7d31677bb7b1 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:27560 pid:11584 ppid:5107 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5304 [inline] __schedule+0x173b/0x4630 kernel/sched/core.c:6622 schedule+0xc3/0x180 kernel/sched/core.c:6698 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6757 rwsem_down_write_slowpath+0xedd/0x13a0 kernel/locking/rwsem.c:1178 __down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306 inode_lock include/linux/fs.h:758 [inline] open_last_lookups fs/namei.c:3481 [inline] path_openat+0x7ba/0x3170 fs/namei.c:3712 do_filp_open+0x234/0x490 fs/namei.c:3742 do_sys_openat2+0x13f/0x500 fs/open.c:1348 do_sys_open fs/open.c:1364 [inline] __do_sys_open fs/open.c:1372 [inline] __se_sys_open fs/open.c:1368 [inline] __x64_sys_open+0x225/0x270 fs/open.c:1368 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f8b79a8c0f9 RSP: 002b:00007f8b7a703168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007f8b79bac050 RCX: 00007f8b79a8c0f9 RDX: 0000000000000000 RSI: 00000000001e9542 RDI: 0000000020000180 RBP: 00007f8b79ae7b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc2937b84f R14: 00007f8b7a703300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8cf255f0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:510 1 lock held by rcu_tasks_trace/13: #0: ffffffff8cf25df0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:510 1 lock held by khungtaskd/28: #0: ffffffff8cf25420 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by getty/4749: #0: ffff88814b840098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc900015a02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6ab/0x1db0 drivers/tty/n_tty.c:2177 1 lock held by syz-executor.3/5117: 3 locks held by kworker/u4:9/6436: 6 locks held by syz-executor.4/11577: 2 locks held by syz-executor.4/11584: #0: ffff8880220be460 (sb_writers#31){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:394 #1: ffff8880357cef90 (&type->i_mutex_dir_key#18){++++}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline] #1: ffff8880357cef90 (&type->i_mutex_dir_key#18){++++}-{3:3}, at: open_last_lookups fs/namei.c:3481 [inline] #1: ffff8880357cef90 (&type->i_mutex_dir_key#18){++++}-{3:3}, at: path_openat+0x7ba/0x3170 fs/namei.c:3712 6 locks held by syz-executor.0/11705: 2 locks held by syz-executor.0/11707: #0: ffff888030cfc460 (sb_writers#31){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:394 #1: ffff88803dc3d5f0 (&type->i_mutex_dir_key#18){++++}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline] #1: ffff88803dc3d5f0 (&type->i_mutex_dir_key#18){++++}-{3:3}, at: open_last_lookups fs/namei.c:3481 [inline] #1: ffff88803dc3d5f0 (&type->i_mutex_dir_key#18){++++}-{3:3}, at: path_openat+0x7ba/0x3170 fs/namei.c:3712 2 locks held by syz-executor.5/12672: 1 lock held by syz-executor.2/12671: #0: ffff8880483d40e0 (&type->s_umount_key#51/1){+.+.}-{3:3}, at: alloc_super+0x217/0x930 fs/super.c:228 2 locks held by syz-executor.4/12678: ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.3.0-rc3-syzkaller-00005-g7d31677bb7b1 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 nmi_cpu_backtrace+0x498/0x4d0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x187/0x300 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline] watchdog+0xec2/0xf00 kernel/hung_task.c:379 kthread+0x270/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 12672 Comm: syz-executor.5 Not tainted 6.3.0-rc3-syzkaller-00005-g7d31677bb7b1 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 RIP: 0010:lockdep_recursion_finish kernel/locking/lockdep.c:467 [inline] RIP: 0010:lock_is_held_type+0x106/0x190 kernel/locking/lockdep.c:5713 Code: 31 c0 f6 45 22 03 0f 95 c0 31 ed 44 39 f0 40 0f 94 c5 eb 05 bd 01 00 00 00 48 c7 c7 e0 8e ea 8a e8 6f 17 00 00 b8 ff ff ff ff <65> 0f c1 05 ea 27 62 75 83 f8 01 75 40 48 c7 04 24 00 00 00 00 9c RSP: 0018:ffffc900036ff628 EFLAGS: 00000086 RAX: 00000000ffffffff RBX: 0000000000000003 RCX: ffff88802e12d7c0 RDX: ffff88802e12d7c0 RSI: ffffffff8aea8ee0 RDI: ffffffff8b3801c0 RBP: 0000000000000000 R08: ffffffff8a9c5d33 R09: fffffbfff205be39 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000246 R13: ffff88802e12d7c0 R14: 00000000ffffffff R15: ffff88807b94cee0 FS: 00007ff9a4742700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f218af84998 CR3: 00000000223a8000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_is_held include/linux/lockdep.h:283 [inline] xa_head include/linux/xarray.h:1182 [inline] xas_start+0x21c/0x7b0 lib/xarray.c:188 xas_load+0x2c/0x140 lib/xarray.c:235 mapping_get_entry mm/filemap.c:1858 [inline] __filemap_get_folio+0x209/0xe50 mm/filemap.c:1920 shmem_get_folio_gfp+0x35a/0x36b0 mm/shmem.c:1877 shmem_get_folio mm/shmem.c:2068 [inline] shmem_write_begin+0x172/0x4f0 mm/shmem.c:2561 generic_perform_write+0x300/0x5e0 mm/filemap.c:3926 __generic_file_write_iter+0x17a/0x400 mm/filemap.c:4054 generic_file_write_iter+0xaf/0x310 mm/filemap.c:4086 call_write_iter include/linux/fs.h:1851 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x7b2/0xbb0 fs/read_write.c:584 ksys_write+0x1a0/0x2c0 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7ff9a3a3de7f Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 99 fd ff ff 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 cc fd ff ff 48 RSP: 002b:00007ff9a4741f10 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007ff9a3a3de7f RDX: 0000000001ee4e54 RSI: 00007ff99a1ff000 RDI: 0000000000000003 RBP: 00007ff99a1ff000 R08: 0000000000000000 R09: 0000000000007e5e R10: 0000000001ee4e54 R11: 0000000000000293 R12: 0000000000000000 R13: 00007ff9a4741fdc R14: 00007ff9a4741fe0 R15: 0000000020000102