INFO: task kworker/u4:2:10636 blocked for more than 140 seconds. Not tainted 4.19.211-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. kworker/u4:2 D25712 10636 2 0x80000000 Workqueue: writeback wb_workfn (flush-7:2) Call Trace: context_switch kernel/sched/core.c:2828 [inline] __schedule+0x887/0x2040 kernel/sched/core.c:3517 audit: type=1804 audit(1677597572.101:8169): pid=22622 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.3" name="/root/syzkaller-testdir3013609562/syzkaller.AXDIOM/1132/bus" dev="sda1" ino=15652 res=1 EXT4-fs (loop5): mounted filesystem without journal. Opts: ,errors=continue schedule+0x8d/0x1b0 kernel/sched/core.c:3561 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:3619 __mutex_lock_common kernel/locking/mutex.c:1016 [inline] __mutex_lock+0x5f0/0x1190 kernel/locking/mutex.c:1078 f2fs_balance_fs+0x709/0xd80 fs/f2fs/segment.c:512 f2fs_write_inode+0x500/0x600 fs/f2fs/inode.c:630 write_inode fs/fs-writeback.c:1244 [inline] __writeback_single_inode+0x733/0x11d0 fs/fs-writeback.c:1442 writeback_sb_inodes+0x537/0xef0 fs/fs-writeback.c:1647 __writeback_inodes_wb+0xc6/0x280 fs/fs-writeback.c:1716 wb_writeback+0x841/0xcc0 fs/fs-writeback.c:1822 wb_check_old_data_flush fs/fs-writeback.c:1924 [inline] wb_do_writeback fs/fs-writeback.c:1977 [inline] wb_workfn+0x8ba/0x1250 fs/fs-writeback.c:2006 process_one_work+0x864/0x1570 kernel/workqueue.c:2153 worker_thread+0x64c/0x1130 kernel/workqueue.c:2296 kthread+0x33f/0x460 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 Showing all locks held in the system: 3 locks held by kworker/u4:1/23: 1 lock held by khungtaskd/1571: #0: 000000007bdb9677 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441 2 locks held by kworker/1:2/3687: #0: 000000001ac8bfed ((wq_completion)"rcu_gp"){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124 #1: 000000006aed91e7 ((work_completion)(&rew.rew_work)){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128 1 lock held by in:imklog/7792: #0: 0000000078f05c05 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767 2 locks held by agetty/8031: #0: 00000000631c31e5 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:272 #1: 00000000cdb5f71b (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x217/0x1950 drivers/tty/n_tty.c:2154 1 lock held by syz-executor.5/8132: #0: 0000000075977e9d (rcu_preempt_state.exp_mutex){+.+.}, at: exp_funnel_lock kernel/rcu/tree_exp.h:329 [inline] #0: 0000000075977e9d (rcu_preempt_state.exp_mutex){+.+.}, at: _synchronize_rcu_expedited+0x256/0x6f0 kernel/rcu/tree_exp.h:667 1 lock held by syz-executor.3/8168: 4 locks held by kworker/u4:2/10636: #0: 00000000c10c0074 ((wq_completion)"writeback"){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124 #1: 00000000293f890f ((work_completion)(&(&wb->dwork)->work)){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128 #2: 000000009586e71e (&type->s_umount_key#57){++++}, at: trylock_super+0x1d/0x100 fs/super.c:412 #3: 00000000d87f4b8f (&sbi->gc_mutex){+.+.}, at: f2fs_balance_fs+0x709/0xd80 fs/f2fs/segment.c:512 4 locks held by syz-executor.2/14401: ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 1571 Comm: khungtaskd Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 nmi_cpu_backtrace.cold+0x63/0xa2 lib/nmi_backtrace.c:101 nmi_trigger_cpumask_backtrace+0x1a6/0x1f0 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:203 [inline] watchdog+0x991/0xe60 kernel/hung_task.c:287 kthread+0x33f/0x460 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 22621 Comm: syz-executor.2 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023 RIP: 0010:lookup_chain_cache kernel/locking/lockdep.c:2318 [inline] RIP: 0010:lookup_chain_cache_add kernel/locking/lockdep.c:2337 [inline] RIP: 0010:validate_chain kernel/locking/lockdep.c:2391 [inline] RIP: 0010:__lock_acquire+0xbed/0x3ff0 kernel/locking/lockdep.c:3416 Code: db 74 55 48 83 eb 08 74 4f 48 bd 00 00 00 00 00 fc ff df eb 06 48 83 eb 08 74 3d 48 8d 7b 18 48 89 f8 48 c1 e8 03 80 3c 28 00 <0f> 85 8c 1e 00 00 4c 3b 63 18 0f 84 f1 fc ff ff 48 8d 7b 08 48 89 RSP: 0018:ffff888034266f20 EFLAGS: 00000046 RAX: 1ffffffff190ccd7 RBX: ffffffff8c8666a0 RCX: 0000000000002d5d RDX: 1ffffffff19a5c05 RSI: 00000000e50f35c1 RDI: ffffffff8c8666b8 RBP: dffffc0000000000 R08: ffffffff8cd2e028 R09: 0000000000000003 R10: ffff8880a1324c00 R11: ffffffff8c66501b R12: e8aab868c6d2298e R13: ffff8880a1324300 R14: ffff8880a1324c18 R15: 0000000000000000 FS: 00007f55cceec700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8ff226f000 CR3: 000000009c59e000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3908 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x8c/0xc0 kernel/locking/spinlock.c:152 lock_hrtimer_base kernel/time/hrtimer.c:174 [inline] hrtimer_start_range_ns+0xe6/0xd60 kernel/time/hrtimer.c:1180 perf_swevent_start_hrtimer kernel/events/core.c:9276 [inline] cpu_clock_event_start kernel/events/core.c:9346 [inline] cpu_clock_event_add+0xbd/0xe0 kernel/events/core.c:9358 event_sched_in+0x414/0xdb0 kernel/events/core.c:2288 group_sched_in+0xbe/0x370 kernel/events/core.c:2324 flexible_sched_in+0x5e3/0x9f0 kernel/events/core.c:3330 visit_groups_merge.isra.0+0x2f3/0x550 kernel/events/core.c:3278 ctx_flexible_sched_in kernel/events/core.c:3367 [inline] ctx_sched_in+0x2f0/0x790 kernel/events/core.c:3412 perf_event_sched_in+0x69/0xa0 kernel/events/core.c:2433 perf_event_context_sched_in kernel/events/core.c:3452 [inline] __perf_event_task_sched_in+0x6a7/0x9b0 kernel/events/core.c:3491 perf_event_task_sched_in include/linux/perf_event.h:1115 [inline] finish_task_switch+0x437/0x760 kernel/sched/core.c:2676 context_switch kernel/sched/core.c:2831 [inline] __schedule+0x88f/0x2040 kernel/sched/core.c:3517 schedule+0x8d/0x1b0 kernel/sched/core.c:3561 _synchronize_rcu_expedited+0x419/0x6f0 kernel/rcu/tree_exp.h:686 synchronize_rcu+0xc6/0x160 kernel/rcu/tree_plugin.h:818 evdev_detach_client drivers/input/evdev.c:408 [inline] evdev_release+0x221/0x3e0 drivers/input/evdev.c:471 __fput+0x2ce/0x890 fs/file_table.c:278 task_work_run+0x148/0x1c0 kernel/task_work.c:113 exit_task_work include/linux/task_work.h:22 [inline] do_exit+0xbf3/0x2be0 kernel/exit.c:870 do_group_exit+0x125/0x310 kernel/exit.c:967 get_signal+0x3f2/0x1f70 kernel/signal.c:2589 do_signal+0x8f/0x1670 arch/x86/kernel/signal.c:799 exit_to_usermode_loop+0x204/0x2a0 arch/x86/entry/common.c:163 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f55ce97a0f9 Code: Bad RIP value. RSP: 002b:00007f55cceec218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 00007f55cea99f88 RCX: 00007f55ce97a0f9 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f55cea99f88 RBP: 00007f55cea99f80 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f55cea99f8c R13: 00007ffdf866119f R14: 00007f55cceec300 R15: 0000000000022000 audit: type=1804 audit(1677597574.051:8170): pid=22694 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.3" name="/root/syzkaller-testdir3013609562/syzkaller.AXDIOM/1133/bus" dev="sda1" ino=15491 res=1 EXT4-fs (loop5): mounted filesystem without journal. Opts: ,errors=continue