XFS (loop3): Unmounting Filesystem INFO: task kworker/u4:6:8833 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:6 D22864 8833 2 0x80000000 Workqueue: writeback wb_workfn (flush-7:1) Call Trace: context_switch kernel/sched/core.c:2828 [inline] __schedule+0x887/0x2040 kernel/sched/core.c:3517 f2fs_msg: 80839 callbacks suppressed F2FS-fs (loop1): Inconsistent segment (6) type [1, 0] in SSA and SIT F2FS-fs (loop1): Inconsistent segment (6) type [1, 0] in SSA and SIT schedule+0x8d/0x1b0 kernel/sched/core.c:3561 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:3619 F2FS-fs (loop1): Inconsistent segment (6) type [1, 0] in SSA and SIT __mutex_lock_common kernel/locking/mutex.c:1016 [inline] __mutex_lock+0x5f0/0x1190 kernel/locking/mutex.c:1078 F2FS-fs (loop1): Inconsistent segment (6) type [1, 0] in SSA and SIT XFS (loop5): Mounting V4 Filesystem f2fs_balance_fs+0x709/0xd80 fs/f2fs/segment.c:512 F2FS-fs (loop1): Inconsistent segment (6) type [1, 0] in SSA and SIT XFS (loop5): Ending clean mount XFS (loop5): Quotacheck needed: Please wait. f2fs_write_inode+0x500/0x600 fs/f2fs/inode.c:630 F2FS-fs (loop1): Inconsistent segment (6) type [1, 0] in SSA and SIT XFS (loop5): Quotacheck: Done. write_inode fs/fs-writeback.c:1244 [inline] __writeback_single_inode+0x733/0x11d0 fs/fs-writeback.c:1442 XFS (loop4): Mounting V4 Filesystem XFS (loop2): Mounting V4 Filesystem F2FS-fs (loop1): Inconsistent segment (6) type [1, 0] in SSA and SIT writeback_sb_inodes+0x537/0xef0 fs/fs-writeback.c:1647 audit: type=1804 audit(1674174752.701:2003): pid=30395 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.5" name="/root/syzkaller-testdir2149861071/syzkaller.nrY0EK/1439/file0/bus" dev="loop5" ino=42 res=1 XFS (loop4): Ending clean mount XFS (loop2): Ending clean mount XFS (loop4): Quotacheck needed: Please wait. audit: type=1804 audit(1674174752.791:2004): pid=30474 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.5" name="/root/syzkaller-testdir2149861071/syzkaller.nrY0EK/1439/file0/bus" dev="loop5" ino=42 res=1 F2FS-fs (loop1): Inconsistent segment (6) type [1, 0] in SSA and SIT XFS (loop4): Quotacheck: Done. XFS (loop2): Quotacheck needed: Please wait. XFS (loop2): Quotacheck: Done. F2FS-fs (loop1): Inconsistent segment (6) type [1, 0] in SSA and SIT F2FS-fs (loop1): Inconsistent segment (6) type [1, 0] in SSA and SIT __writeback_inodes_wb+0xc6/0x280 fs/fs-writeback.c:1716 XFS (loop0): Mounting V4 Filesystem wb_writeback+0x841/0xcc0 fs/fs-writeback.c:1822 XFS (loop0): Ending clean mount XFS (loop0): Quotacheck needed: Please wait. audit: type=1804 audit(1674174752.891:2005): pid=30394 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.4" name="/root/syzkaller-testdir1141309998/syzkaller.PJgDb4/1301/file0/bus" dev="loop4" ino=42 res=1 XFS (loop0): Quotacheck: Done. 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 audit: type=1804 audit(1674174752.981:2006): pid=30408 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.2" name="/root/syzkaller-testdir3209137785/syzkaller.eZ214P/1138/file0/bus" dev="loop2" ino=42 res=1 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 XFS (loop0): Unmounting Filesystem XFS (loop4): Unmounting Filesystem XFS (loop2): Unmounting Filesystem XFS (loop5): Unmounting Filesystem Showing all locks held in the system: 1 lock held by khungtaskd/1569: audit: type=1804 audit(1674174753.471:2007): pid=30498 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.1" name="/root/syzkaller-testdir1429962952/syzkaller.3tK73Y/93/bus" dev="sda1" ino=13864 res=1 #0: 00000000e21da2a6 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441 4 locks held by kworker/u4:4/2887: #0: 00000000edb96f87 (&rq->lock){-.-.}, at: rq_lock kernel/sched/sched.h:1826 [inline] #0: 00000000edb96f87 (&rq->lock){-.-.}, at: __schedule+0x1f9/0x2040 kernel/sched/core.c:3455 #1: 00000000e21da2a6 (rcu_read_lock){....}, at: trace_sched_stat_runtime include/trace/events/sched.h:428 [inline] #1: 00000000e21da2a6 (rcu_read_lock){....}, at: update_curr+0x2c3/0x870 kernel/sched/fair.c:857 #2: 0000000029c9c2c4 (&obj_hash[i].lock){-.-.}, at: __debug_check_no_obj_freed lib/debugobjects.c:776 [inline] #2: 0000000029c9c2c4 (&obj_hash[i].lock){-.-.}, at: debug_check_no_obj_freed+0xb5/0x490 lib/debugobjects.c:817 XFS (loop3): Mounting V4 Filesystem #3: 00000000e21da2a6 (rcu_read_lock){....}, at: sdata_assert_lock net/mac80211/ieee80211_i.h:994 [inline] #3: 00000000e21da2a6 (rcu_read_lock){....}, at: ieee80211_sta_active_ibss+0x86/0x350 net/mac80211/ibss.c:668 XFS (loop3): Ending clean mount 1 lock held by in:imklog/7813: XFS (loop3): Quotacheck needed: Please wait. #0: 00000000ae0d455f (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767 XFS (loop3): Quotacheck: Done. 4 locks held by kworker/u4:6/8833: #0: 0000000016df4eed ((wq_completion)"writeback"){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124 #1: 00000000a8b39a7b ((work_completion)(&(&wb->dwork)->work)){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128 #2: 00000000ef580e23 (&type->s_umount_key#67){++++}, at: trylock_super+0x1d/0x100 fs/super.c:412 #3: 00000000d3ccea06 (&sbi->gc_mutex){+.+.}, at: f2fs_balance_fs+0x709/0xd80 fs/f2fs/segment.c:512 2 locks held by kworker/1:2/18524: #0: 00000000bd0fc956 ((wq_completion)"rcu_gp"){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124 #1: 00000000e21879f8 ((work_completion)(&rew.rew_work)){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128 4 locks held by syz-executor.1/25222: 2 locks held by syz-executor.1/30524: 2 locks held by syz-executor.4/30540: 2 locks held by syz-executor.2/30549: XFS (loop3): Unmounting Filesystem ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 1569 Comm: khungtaskd Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/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 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 9672 Comm: syz-fuzzer Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 RIP: 0010:rcu_read_unlock include/linux/rcupdate.h:677 [inline] RIP: 0010:cgroup_account_cputime include/linux/cgroup.h:773 [inline] RIP: 0010:update_curr+0x3a3/0x870 kernel/sched/fair.c:858 Code: 28 01 00 00 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 8d 04 00 00 49 83 bd 28 01 00 00 00 74 0b 4c 89 e6 4c 89 ef e8 1d 1f 18 00 88 61 0b 00 85 c0 74 0d 80 3d 9b 4e c9 09 00 0f 84 85 02 00 00 RSP: 0018:ffff88809d6f7918 EFLAGS: 00000046 RAX: dffffc0000000000 RBX: ffff8880a1d12240 RCX: 0000000000000000 RDX: 1ffffffff13f4dcf RSI: 00000000ffffffff RDI: ffffffff89fa6e78 RBP: ffff8880ba12b180 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000005 R11: ffffffff8c66505b R12: 000000000000e576 R13: ffffffff89fa6d50 R14: 0000000000000009 R15: ffff8880a1d121c0 FS: 000000c022de9490(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe0d7a31000 CR3: 00000000a6106000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: dequeue_entity+0x1d/0x2800 kernel/sched/fair.c:4048 dequeue_task_fair+0x68/0x1b60 kernel/sched/fair.c:5241 __schedule+0x2d6/0x2040 kernel/sched/core.c:3467 schedule+0x8d/0x1b0 kernel/sched/core.c:3561 schedule_hrtimeout_range_clock+0x195/0x390 kernel/time/hrtimer.c:2014 ep_poll+0xabb/0xcb0 fs/eventpoll.c:1817 do_epoll_wait+0x1aa/0x200 fs/eventpoll.c:2190 __do_sys_epoll_pwait fs/eventpoll.c:2227 [inline] __se_sys_epoll_pwait+0x252/0x290 fs/eventpoll.c:2207 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x467800 Code: 0f 05 89 44 24 20 c3 cc cc cc 8b 7c 24 08 48 8b 74 24 10 8b 54 24 18 44 8b 54 24 1c 49 c7 c0 00 00 00 00 b8 19 01 00 00 0f 05 <89> 44 24 20 c3 cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc RSP: 002b:000000c0014717e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000119 RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 0000000000467800 RDX: 0000000000000080 RSI: 000000c001471840 RDI: 0000000000000004 RBP: 000000c001471e40 R08: 0000000000000000 R09: 0000010aeaac2b9a R10: 00000000000003d1 R11: 0000000000000246 R12: 000000c001471870 R13: 0000000000000004 R14: 000000c01cd2bba0 R15: 000001161b0eda5a