INFO: task jfsCommit:105 blocked for more than 143 seconds. Not tainted 6.1.0-syzkaller-13139-gf9ff5644bcc0 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:jfsCommit state:D stack:23416 pid:105 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5244 [inline] __schedule+0x995/0xe20 kernel/sched/core.c:6555 schedule+0xcb/0x190 kernel/sched/core.c:6631 io_schedule+0x83/0x100 kernel/sched/core.c:8811 __lock_metapage+0x209/0x330 fs/jfs/jfs_metapage.c:50 lock_metapage fs/jfs/jfs_metapage.c:64 [inline] __get_metapage+0x849/0xff0 fs/jfs/jfs_metapage.c:639 diIAGRead+0xca/0x130 fs/jfs/jfs_imap.c:2662 diFree+0x8fa/0x2c90 fs/jfs/jfs_imap.c:955 jfs_evict_inode+0x323/0x440 fs/jfs/inode.c:156 evict+0x2a4/0x620 fs/inode.c:664 txUpdateMap+0x8eb/0xaa0 fs/jfs/jfs_txnmgr.c:2362 txLazyCommit fs/jfs/jfs_txnmgr.c:2659 [inline] jfs_lazycommit+0x488/0xb80 fs/jfs/jfs_txnmgr.c:2727 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 INFO: task syz-executor.1:5105 blocked for more than 143 seconds. Not tainted 6.1.0-syzkaller-13139-gf9ff5644bcc0 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:18256 pid:5105 ppid:1 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5244 [inline] __schedule+0x995/0xe20 kernel/sched/core.c:6555 schedule+0xcb/0x190 kernel/sched/core.c:6631 jfs_flush_journal+0x6fb/0xec0 fs/jfs/jfs_logmgr.c:1564 jfs_sync_fs+0x7c/0xa0 fs/jfs/super.c:684 sync_filesystem+0x1bc/0x220 fs/sync.c:66 generic_shutdown_super+0x6b/0x310 fs/super.c:474 kill_block_super+0x79/0xd0 fs/super.c:1386 deactivate_locked_super+0xa7/0xf0 fs/super.c:332 cleanup_mnt+0x494/0x520 fs/namespace.c:1291 task_work_run+0x243/0x300 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0x124/0x150 kernel/entry/common.c:171 exit_to_user_mode_prepare+0xb2/0x140 kernel/entry/common.c:203 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x26/0x60 kernel/entry/common.c:296 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7ffa1c48d547 RSP: 002b:00007fffd7ed1278 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007ffa1c48d547 RDX: 00007fffd7ed134c RSI: 000000000000000a RDI: 00007fffd7ed1340 RBP: 00007fffd7ed1340 R08: 00000000ffffffff R09: 00007fffd7ed1110 R10: 00005555561d18b3 R11: 0000000000000246 R12: 00007ffa1c4e6b24 R13: 00007fffd7ed2400 R14: 00005555561d1810 R15: 00007fffd7ed2440 Showing all locks held in the system: 2 locks held by kworker/u4:1/11: #0: ffff8880b983a1d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x25/0x110 kernel/sched/core.c:537 #1: ffff8880b9827748 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x57b/0x9a0 kernel/sched/psi.c:964 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8d326e50 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507 1 lock held by rcu_tasks_trace/13: #0: ffffffff8d327650 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507 1 lock held by khungtaskd/28: #0: ffffffff8d326c80 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by jfsCommit/105: #0: ffff8880764d8920 (&(imap->im_aglock[index])){+.+.}-{3:3}, at: diFree+0x285/0x2c90 fs/jfs/jfs_imap.c:885 #1: ffff8880805ecb38 (&jfs_ip->rdwrlock/1){.+.+}-{3:3}, at: diFree+0x29b/0x2c90 fs/jfs/jfs_imap.c:890 2 locks held by getty/4744: #0: ffff8880279b6098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc900015802f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x53b/0x1650 drivers/tty/n_tty.c:2177 1 lock held by syz-executor.1/5105: #0: ffff88807daea0e0 (&type->s_umount_key#78){++++}-{3:3}, at: deactivate_super+0x96/0xd0 fs/super.c:362 2 locks held by kworker/u4:7/5356: ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.1.0-syzkaller-13139-gf9ff5644bcc0 #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+0x1b1/0x290 lib/dump_stack.c:106 nmi_cpu_backtrace+0x46f/0x4f0 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x1ba/0x420 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+0xcd5/0xd20 kernel/hung_task.c:377 kthread+0x266/0x300 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: 1162 Comm: kworker/u4:5 Not tainted 6.1.0-syzkaller-13139-gf9ff5644bcc0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Workqueue: bat_events batadv_nc_worker RIP: 0010:__lock_acquire+0x2b7/0x1f60 Code: 00 00 45 31 f6 48 c7 c7 80 b9 ed 8a 48 c7 c6 e0 e1 ed 8a 31 c0 e8 19 b8 e7 ff 0f 0b e9 c3 12 00 00 31 c0 eb 11 48 8b 6c 24 58 <48> 89 e8 83 fd 31 0f 83 b6 1a 00 00 48 8d 2c 80 48 8b 1c 24 4c 8d RSP: 0018:ffffc900063df9a8 EFLAGS: 00000006 RAX: 00000000000006c6 RBX: 1ffff1100428c4f8 RCX: ffff888021461d40 RDX: dffffc0000000000 RSI: 0000000000000000 RDI: ffffffff8d326c80 RBP: 0000000000000002 R08: 0000000000000000 R09: 0000000000000000 R10: fffffbfff1d2c9ce R11: 1ffffffff1d2c9cd R12: 00000000000406c6 R13: ffffffff8d326c80 R14: 0000000000000000 R15: 0000000000000021 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000558758b9f600 CR3: 000000007aef5000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire+0x182/0x3c0 kernel/locking/lockdep.c:5668 rcu_lock_acquire+0x2a/0x30 include/linux/rcupdate.h:325 rcu_read_lock include/linux/rcupdate.h:764 [inline] batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:408 [inline] batadv_nc_worker+0xc8/0x5b0 net/batman-adv/network-coding.c:719 process_one_work+0x877/0xdb0 kernel/workqueue.c:2289 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308