INFO: task syz-executor.1:23134 blocked for more than 143 seconds. Not tainted 6.4.0-rc6-syzkaller-00269-g1b29d271614a #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:25304 pid:23134 ppid:5034 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5343 [inline] __schedule+0x187b/0x4900 kernel/sched/core.c:6669 schedule+0xc3/0x180 kernel/sched/core.c:6745 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6804 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:775 [inline] f2fs_release_file+0x9b/0x100 fs/f2fs/file.c:1866 __fput+0x3b7/0x890 fs/file_table.c:321 task_work_run+0x24a/0x300 kernel/task_work.c:179 get_signal+0x160e/0x17e0 kernel/signal.c:2652 arch_do_signal_or_restart+0x91/0x670 arch/x86/kernel/signal.c:306 exit_to_user_mode_loop+0x6a/0x100 kernel/entry/common.c:168 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x64/0x280 kernel/entry/common.c:297 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f64c248c389 RSP: 002b:00007f64c310f168 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: fffffffffffffffb RBX: 00007f64c25ac120 RCX: 00007f64c248c389 RDX: 0000000000000002 RSI: 00000000200001c0 RDI: 0000000000000004 RBP: 00007f64c24d7493 R08: 0000000000000009 R09: 0000000000000010 R10: 0000000000000003 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff1b4a90cf R14: 00007f64c310f300 R15: 0000000000022000 INFO: task syz-executor.1:23143 blocked for more than 144 seconds. Not tainted 6.4.0-rc6-syzkaller-00269-g1b29d271614a #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:28984 pid:23143 ppid:5034 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5343 [inline] __schedule+0x187b/0x4900 kernel/sched/core.c:6669 schedule+0xc3/0x180 kernel/sched/core.c:6745 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6804 rwsem_down_write_slowpath+0xedd/0x13a0 kernel/locking/rwsem.c:1178 __down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306 inode_lock_nested include/linux/fs.h:810 [inline] filename_create+0x260/0x530 fs/namei.c:3884 do_mkdirat+0xb7/0x520 fs/namei.c:4130 __do_sys_mkdir fs/namei.c:4158 [inline] __se_sys_mkdir fs/namei.c:4156 [inline] __x64_sys_mkdir+0x6e/0x80 fs/namei.c:4156 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:0x7f64c248c389 RSP: 002b:00007f64b9dbc168 EFLAGS: 00000246 ORIG_RAX: 0000000000000053 RAX: ffffffffffffffda RBX: 00007f64c25ac1f0 RCX: 00007f64c248c389 RDX: 0000000000000000 RSI: 000000000000001a RDI: 00000000200000c0 RBP: 00007f64c24d7493 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff1b4a90cf R14: 00007f64b9dbc300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/13: #0: ffffffff8cf276f0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:518 1 lock held by rcu_tasks_trace/14: #0: ffffffff8cf27ab0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:518 1 lock held by khungtaskd/28: #0: ffffffff8cf27520 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 4 locks held by kworker/u4:3/46: #0: ffff888012ac5938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2378 #1: ffffc90000b77d20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2380 #2: ffff8880790480e0 (&type->s_umount_key#55){++++}-{3:3}, at: trylock_super+0x1f/0xf0 fs/super.c:414 #3: ffff88803cc452a8 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_down_write fs/f2fs/f2fs.h:2112 [inline] #3: ffff88803cc452a8 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_balance_fs+0x51a/0x6f0 fs/f2fs/segment.c:435 2 locks held by kworker/u4:4/75: 2 locks held by getty/4746: #0: ffff88802853d098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900015b02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6ab/0x1db0 drivers/tty/n_tty.c:2176 2 locks held by syz-executor.0/5019: #0: ffff88808c6b60e0 (&type->s_umount_key#72){++++}-{3:3}, at: deactivate_super+0xad/0xf0 fs/super.c:361 #1: ffffffff8cf2cbf8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:293 [inline] #1: ffffffff8cf2cbf8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x3a3/0x890 kernel/rcu/tree_exp.h:992 1 lock held by syz-executor.5/5025: #0: ffffffff8cf2cbf8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:325 [inline] #0: ffffffff8cf2cbf8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x46c/0x890 kernel/rcu/tree_exp.h:992 2 locks held by kworker/1:27/6417: #0: ffff888012472538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2378 #1: ffffc90016557d20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2380 4 locks held by kworker/u4:9/18149: #0: ffff888012ac5938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2378 #1: ffffc9000526fd20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2380 #2: ffff88807cc780e0 (&type->s_umount_key#55){++++}-{3:3}, at: trylock_super+0x1f/0xf0 fs/super.c:414 #3: ffff888027a052a8 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_down_write fs/f2fs/f2fs.h:2112 [inline] #3: ffff888027a052a8 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_balance_fs+0x51a/0x6f0 fs/f2fs/segment.c:435 5 locks held by syz-executor.1/23082: 1 lock held by syz-executor.1/23134: #0: ffff888080956298 (&sb->s_type->i_mutex_key#28){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:775 [inline] #0: ffff888080956298 (&sb->s_type->i_mutex_key#28){+.+.}-{3:3}, at: f2fs_release_file+0x9b/0x100 fs/f2fs/file.c:1866 2 locks held by syz-executor.1/23143: #0: ffff888079048460 (sb_writers#16){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:394 #1: ffff888080951300 (&type->i_mutex_dir_key#9/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:810 [inline] #1: ffff888080951300 (&type->i_mutex_dir_key#9/1){+.+.}-{3:3}, at: filename_create+0x260/0x530 fs/namei.c:3884 1 lock held by syz-executor.4/23179: #0: ffff8880809524b0 (&sb->s_type->i_mutex_key#28){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:775 [inline] #0: ffff8880809524b0 (&sb->s_type->i_mutex_key#28){+.+.}-{3:3}, at: f2fs_release_file+0x9b/0x100 fs/f2fs/file.c:1866 5 locks held by syz-executor.4/23180: 2 locks held by syz-executor.4/23224: #0: ffff88807cc78460 (sb_writers#16){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:394 #1: ffff888080956b70 (&type->i_mutex_dir_key#9/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:810 [inline] #1: ffff888080956b70 (&type->i_mutex_dir_key#9/1){+.+.}-{3:3}, at: filename_create+0x260/0x530 fs/namei.c:3884 1 lock held by syz-executor.3/23975: ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.4.0-rc6-syzkaller-00269-g1b29d271614a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/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+0x2b8/0x350 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 23975 Comm: syz-executor.3 Not tainted 6.4.0-rc6-syzkaller-00269-g1b29d271614a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 RIP: 0010:_test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] RIP: 0010:cpumask_test_cpu include/linux/cpumask.h:504 [inline] RIP: 0010:cpu_online include/linux/cpumask.h:1082 [inline] RIP: 0010:trace_lock_acquire include/trace/events/lock.h:24 [inline] RIP: 0010:lock_acquire+0xbb/0x520 kernel/locking/lockdep.c:5676 Code: 11 f3 f3 f3 f3 66 43 c7 44 2c 15 f3 f3 43 c6 44 2c 17 f3 0f 1f 44 00 00 65 8b 05 1c a3 98 7e 83 f8 08 0f 83 e6 02 00 00 89 c3 <48> 89 d8 48 c1 e8 06 48 8d 3c c5 28 e2 55 8e be 08 00 00 00 e8 1c RSP: 0018:ffffc90000007c20 EFLAGS: 00000093 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000002 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff8cf40748 RBP: ffffc90000007d68 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000002 R11: ffff88808c463b80 R12: 1ffff92000000f8c R13: dffffc0000000000 R14: 0000000000000000 R15: 1ffff92000000fb0 FS: 00007f9f5f5c9700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9f5f5ca000 CR3: 0000000025536000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: seqcount_lockdep_reader_access+0xfc/0x220 include/linux/seqlock.h:102 ktime_get+0x35/0x270 kernel/time/timekeeping.c:846 clockevents_program_event+0xe5/0x310 kernel/time/clockevents.c:326 hrtimer_interrupt+0x54a/0x980 kernel/time/hrtimer.c:1824 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline] __sysvec_apic_timer_interrupt+0x13f/0x480 arch/x86/kernel/apic/apic.c:1112 sysvec_apic_timer_interrupt+0x90/0xb0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645 RIP: 0010:console_trylock_spinning+0x3b8/0x460 Code: ed 0f 84 48 ff ff ff e8 86 cd 1c 00 fb 31 db eb 45 e8 7c cd 1c 00 e8 07 2b 41 09 4d 85 ed 74 cd e8 6d cd 1c 00 fb f3 0f 1e fa 01 00 00 00 48 c7 c7 20 32 e0 8c 31 f6 ba 01 00 00 00 31 c9 41 RSP: 0018:ffffc9000ae3f380 EFLAGS: 00000246 RAX: ffffffff816eb233 RBX: 0000000000000000 RCX: 0000000000040000 RDX: ffffc9000c05e000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffffc9000ae3f448 R08: ffffffff816eb1ec R09: fffffbfff206566e R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff920015c7e70 R13: 0000000000000200 R14: 0000000000000046 R15: dffffc0000000000 vprintk_emit+0xbc/0x1f0 kernel/printk/printk.c:2306 _printk+0xd5/0x120 kernel/printk/printk.c:2328 _btrfs_printk+0x5aa/0x5d0 fs/btrfs/messages.c:244 btrfs_init_csum_hash fs/btrfs/disk-io.c:2272 [inline] open_ctree+0xdab/0x2fa0 fs/btrfs/disk-io.c:3411 btrfs_fill_super+0x1c7/0x2f0 fs/btrfs/super.c:1156 btrfs_mount_root+0x807/0x940 fs/btrfs/super.c:1524 legacy_get_tree+0xef/0x190 fs/fs_context.c:610 vfs_get_tree+0x8c/0x270 fs/super.c:1510 fc_mount fs/namespace.c:1035 [inline] vfs_kern_mount+0xbc/0x150 fs/namespace.c:1065 btrfs_mount+0x39f/0xb50 fs/btrfs/super.c:1584 legacy_get_tree+0xef/0x190 fs/fs_context.c:610 vfs_get_tree+0x8c/0x270 fs/super.c:1510 do_new_mount+0x28f/0xae0 fs/namespace.c:3039 do_mount fs/namespace.c:3382 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount+0x2d9/0x3c0 fs/namespace.c:3568 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:0x7f9f5e88d8ba Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 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:00007f9f5f5c8f88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00000000000051ab RCX: 00007f9f5e88d8ba RDX: 00000000200051c0 RSI: 0000000020005200 RDI: 00007f9f5f5c8fe0 RBP: 00007f9f5f5c9020 R08: 00007f9f5f5c9020 R09: 0000000001000008 R10: 0000000001000008 R11: 0000000000000202 R12: 00000000200051c0 R13: 0000000020005200 R14: 00007f9f5f5c8fe0 R15: 0000000020000280