INFO: task jfsCommit:133 blocked for more than 143 seconds. Not tainted 6.1.0-rc5-next-20221116-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:jfsCommit state:D stack:27600 pid:133 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5229 [inline] __schedule+0xb8a/0x5450 kernel/sched/core.c:6541 schedule+0xde/0x1b0 kernel/sched/core.c:6617 io_schedule+0xbe/0x130 kernel/sched/core.c:8797 __lock_metapage fs/jfs/jfs_metapage.c:50 [inline] lock_metapage+0x235/0x4d0 fs/jfs/jfs_metapage.c:64 __get_metapage+0x3dc/0xf00 fs/jfs/jfs_metapage.c:639 diIAGRead.isra.0+0xcd/0x140 fs/jfs/jfs_imap.c:2662 diFree+0x9f1/0x2660 fs/jfs/jfs_imap.c:955 jfs_evict_inode+0x3c5/0x4b0 fs/jfs/inode.c:156 evict+0x2ed/0x6b0 fs/inode.c:664 iput_final fs/inode.c:1747 [inline] iput.part.0+0x59b/0x880 fs/inode.c:1773 iput+0x5c/0x80 fs/inode.c:1763 txUpdateMap+0x972/0xbe0 fs/jfs/jfs_txnmgr.c:2362 txLazyCommit fs/jfs/jfs_txnmgr.c:2659 [inline] jfs_lazycommit+0x5bf/0xaa0 fs/jfs/jfs_txnmgr.c:2727 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8c78fb30 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xc70 kernel/rcu/tasks.h:507 1 lock held by rcu_tasks_trace/13: #0: ffffffff8c78f830 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xc70 kernel/rcu/tasks.h:507 1 lock held by khungtaskd/28: #0: ffffffff8c790680 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x57/0x264 kernel/locking/lockdep.c:6494 7 locks held by kworker/u4:2/30: #0: ffff8880b983b358 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2f/0x120 kernel/sched/core.c:537 #1: ffff8880b98287c8 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x2de/0x930 kernel/sched/psi.c:976 #2: ffffffff91de2b38 (&obj_hash[i].lock){-.-.}-{2:2}, at: __debug_check_no_obj_freed lib/debugobjects.c:984 [inline] #2: ffffffff91de2b38 (&obj_hash[i].lock){-.-.}-{2:2}, at: debug_check_no_obj_freed+0xcb/0x420 lib/debugobjects.c:1027 #3: ffff8880b98287c8 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x2de/0x930 kernel/sched/psi.c:976 #4: ffff8880b983ab98 (&pool->lock){-.-.}-{2:2}, at: __queue_work+0x367/0x13b0 kernel/workqueue.c:1474 #5: ffff88813ff7c3f0 (&p->pi_lock){-.-.}-{2:2}, at: try_to_wake_up+0xb2/0x2080 kernel/sched/core.c:4096 #6: ffff8880b983b358 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2f/0x120 kernel/sched/core.c:537 2 locks held by jfsCommit/133: #0: ffff888026668920 (&(imap->im_aglock[index])){+.+.}-{3:3}, at: diFree+0x28f/0x2660 fs/jfs/jfs_imap.c:885 #1: ffff888073d02638 (&jfs_ip->rdwrlock/1){.+.+}-{3:3}, at: diFree+0x2ac/0x2660 fs/jfs/jfs_imap.c:890 2 locks held by getty/4975: #0: ffff88814b5b9098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x26/0x80 drivers/tty/tty_ldisc.c:244 #1: ffffc900015952f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xef4/0x13e0 drivers/tty/n_tty.c:2177 6 locks held by sshd/5291: 2 locks held by strace-static-x/5293: ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.1.0-rc5-next-20221116-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd1/0x138 lib/dump_stack.c:106 nmi_cpu_backtrace.cold+0x24/0x18a lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x333/0x3c0 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:220 [inline] watchdog+0xc75/0xfc0 kernel/hung_task.c:377 kthread+0x2e8/0x3a0 kernel/kthread.c:376 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: 1046 Comm: kworker/u4:5 Not tainted 6.1.0-rc5-next-20221116-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:preempt_count arch/x86/include/asm/preempt.h:27 [inline] RIP: 0010:preempt_latency_start kernel/sched/core.c:5670 [inline] RIP: 0010:preempt_count_add+0x58/0x140 kernel/sched/core.c:5696 Code: 84 d2 0f 85 e1 00 00 00 8b 15 b4 13 6b 10 65 01 1d f5 53 ad 7e 85 d2 75 11 65 8b 05 ea 53 ad 7e 0f b6 c0 3d f4 00 00 00 7f 64 <65> 8b 05 d9 53 ad 7e 25 ff ff ff 7f 39 c3 74 03 5b 5d c3 48 8b 5c RSP: 0018:ffffc90005aefc28 EFLAGS: 00000293 RAX: 0000000000000001 RBX: 0000000000000001 RCX: 1ffffffff2382d30 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000001 RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000002 R13: ffffffff91c3bb40 R14: ffff888146f05a00 R15: ffff888012479800 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff39f89a98 CR3: 000000000c48e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: percpu_up_read include/linux/percpu-rwsem.h:101 [inline] cpus_read_unlock+0x25/0x130 kernel/cpu.c:322 toggle_allocation_gate mm/kfence/core.c:799 [inline] toggle_allocation_gate+0xf8/0x230 mm/kfence/core.c:791 process_one_work+0x9bf/0x1710 kernel/workqueue.c:2289 worker_thread+0x669/0x1090 kernel/workqueue.c:2436 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308