INFO: task kworker/0:3:5884 blocked for more than 143 seconds. Not tainted 6.13.0-rc3-next-20241220-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/0:3 state:D stack:20024 pid:5884 tgid:5884 ppid:2 flags:0x00004000 Workqueue: gfs2_recovery gfs2_recover_func Call Trace: context_switch kernel/sched/core.c:5371 [inline] __schedule+0x189f/0x4c80 kernel/sched/core.c:6758 __schedule_loop kernel/sched/core.c:6835 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6850 io_schedule+0x8d/0x110 kernel/sched/core.c:7683 folio_wait_bit_common+0x839/0xee0 mm/filemap.c:1309 folio_wait_locked include/linux/pagemap.h:1247 [inline] gfs2_jhead_process_page+0x16e/0x510 fs/gfs2/lops.c:470 gfs2_find_jhead+0xd68/0xf10 fs/gfs2/lops.c:587 gfs2_recover_func+0x6c1/0x1f10 fs/gfs2/recovery.c:460 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0xa66/0x1840 kernel/workqueue.c:3310 worker_thread+0x870/0xd30 kernel/workqueue.c:3391 kthread+0x7a9/0x920 kernel/kthread.c:464 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 INFO: task syz.4.35:6108 blocked for more than 143 seconds. Not tainted 6.13.0-rc3-next-20241220-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.4.35 state:D stack:22928 pid:6108 tgid:6107 ppid:5850 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5371 [inline] __schedule+0x189f/0x4c80 kernel/sched/core.c:6758 __schedule_loop kernel/sched/core.c:6835 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6850 bit_wait+0x12/0xd0 kernel/sched/wait_bit.c:237 __wait_on_bit+0xb0/0x2f0 kernel/sched/wait_bit.c:49 out_of_line_wait_on_bit+0x1d5/0x260 kernel/sched/wait_bit.c:64 wait_on_bit include/linux/wait_bit.h:77 [inline] gfs2_recover_journal+0xf2/0x160 fs/gfs2/recovery.c:577 init_journal+0x1855/0x2410 fs/gfs2/ops_fstype.c:811 init_inodes+0xdc/0x320 fs/gfs2/ops_fstype.c:864 gfs2_fill_super+0x1bd1/0x24d0 fs/gfs2/ops_fstype.c:1249 get_tree_bdev_flags+0x48c/0x5c0 fs/super.c:1636 gfs2_get_tree+0x54/0x220 fs/gfs2/ops_fstype.c:1330 vfs_get_tree+0x90/0x2b0 fs/super.c:1814 do_new_mount+0x2be/0xb40 fs/namespace.c:3556 do_mount fs/namespace.c:3896 [inline] __do_sys_mount fs/namespace.c:4107 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:4084 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f1840d874ca RSP: 002b:00007f1841c6be68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f1841c6bef0 RCX: 00007f1840d874ca RDX: 0000000020037f40 RSI: 0000000020000040 RDI: 00007f1841c6beb0 RBP: 0000000020037f40 R08: 00007f1841c6bef0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000020000040 R13: 00007f1841c6beb0 R14: 0000000000037f9a R15: 0000000020000000 Showing all locks held in the system: 1 lock held by khungtaskd/30: #0: ffffffff8e937da0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #0: ffffffff8e937da0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #0: ffffffff8e937da0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6744 2 locks held by kworker/u8:8/4892: 2 locks held by getty/5594: #0: ffff88814d2e30a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc90002fde2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x6a6/0x1e00 drivers/tty/n_tty.c:2211 2 locks held by kworker/0:3/5884: #0: ffff888141a9b948 ((wq_completion)gfs2_recovery){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline] #0: ffff888141a9b948 ((wq_completion)gfs2_recovery){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1840 kernel/workqueue.c:3310 #1: ffffc9000444fc60 ((work_completion)(&jd->jd_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline] #1: ffffc9000444fc60 ((work_completion)(&jd->jd_work)){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1840 kernel/workqueue.c:3310 1 lock held by syz.4.35/6108: #0: ffff888032f040e0 (&type->s_umount_key#76/1){+.+.}-{4:4}, at: alloc_super+0x221/0x9d0 fs/super.c:344 1 lock held by syz.7.435/8705: #0: ffffffff8f169888 (tty_mutex){+.+.}-{4:4}, at: tty_release_struct+0xb1/0xe0 drivers/tty/tty_io.c:1700 2 locks held by syz.8.421/8755: 4 locks held by syz.9.443/8774: 2 locks held by syz.6.445/8773: #0: ffff888049eac0e0 (&type->s_umount_key#58/1){+.+.}-{4:4}, at: alloc_super+0x221/0x9d0 fs/super.c:344 #1: ffffffff8e7e2e88 (wq_pool_mutex){+.+.}-{4:4}, at: apply_wqattrs_lock kernel/workqueue.c:5170 [inline] #1: ffffffff8e7e2e88 (wq_pool_mutex){+.+.}-{4:4}, at: __alloc_workqueue+0xa55/0x1f20 kernel/workqueue.c:5724 1 lock held by syz.1.446/8787: #0: ffff88807c7d15e0 (&mm->mmap_lock){++++}-{4:4}, at: mmap_write_lock_killable include/linux/mmap_lock.h:152 [inline] #0: ffff88807c7d15e0 (&mm->mmap_lock){++++}-{4:4}, at: vm_mmap_pgoff+0x182/0x430 mm/util.c:578 3 locks held by syz.1.446/8788: ============================================= NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.13.0-rc3-next-20241220-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 nmi_cpu_backtrace+0x49c/0x4d0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x198/0x320 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:234 [inline] watchdog+0xff6/0x1040 kernel/hung_task.c:397 kthread+0x7a9/0x920 kernel/kthread.c:464 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 8788 Comm: syz.1.446 Not tainted 6.13.0-rc3-next-20241220-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:__bfs_next kernel/locking/lockdep.c:1698 [inline] RIP: 0010:__bfs kernel/locking/lockdep.c:1748 [inline] RIP: 0010:__bfs_backwards kernel/locking/lockdep.c:1856 [inline] RIP: 0010:check_irq_usage kernel/locking/lockdep.c:2827 [inline] RIP: 0010:check_prev_add kernel/locking/lockdep.c:3165 [inline] RIP: 0010:check_prevs_add kernel/locking/lockdep.c:3280 [inline] RIP: 0010:validate_chain+0x1cbf/0x5920 kernel/locking/lockdep.c:3904 Code: 83 c6 30 4d 8b 7d 00 48 8d bc 24 20 01 00 00 48 89 fb 48 c1 eb 03 42 80 3c 23 00 74 05 e8 d9 40 8a 00 4c 89 bc 24 20 01 00 00 <4d> 39 f7 74 21 42 80 3c 23 00 74 0d 48 8d bc 24 20 01 00 00 e8 c8 RSP: 0018:ffffc90004d96860 EFLAGS: 00000046 RAX: 1ffffffff2dbb137 RBX: 1ffff920009b2d30 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffc90004d96980 RBP: ffffc90004d96b60 R08: ffffffff942d7847 R09: 1ffffffff285af08 R10: dffffc0000000000 R11: fffffbfff285af09 R12: dffffc0000000000 R13: ffffffff96dd89b8 R14: ffffffff93c57818 R15: ffffffff96ddc998 FS: 00007fd4e88d16c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c3239a1 CR3: 000000004a1e8000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __lock_acquire+0x1397/0x2100 kernel/locking/lockdep.c:5226 lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5849 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154 class_raw_spinlock_constructor include/linux/spinlock.h:535 [inline] pcpu_alloc+0x246/0x300 lib/debugobjects.c:273 alloc_object+0xbf/0x310 lib/debugobjects.c:458 lookup_object_or_alloc lib/debugobjects.c:685 [inline] debug_object_activate+0x257/0x580 lib/debugobjects.c:820 debug_rcu_head_queue kernel/rcu/rcu.h:224 [inline] __call_rcu_common kernel/rcu/tree.c:3050 [inline] call_rcu+0x97/0xac0 kernel/rcu/tree.c:3172 discard_slab mm/slub.c:2684 [inline] __put_partials+0x160/0x1c0 mm/slub.c:3153 put_cpu_partial+0x17c/0x250 mm/slub.c:3228 __slab_free+0x290/0x380 mm/slub.c:4479 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4115 [inline] slab_alloc_node mm/slub.c:4164 [inline] kmem_cache_alloc_noprof+0x1d9/0x380 mm/slub.c:4171 ptlock_alloc+0x20/0x70 mm/memory.c:7045 ptlock_init include/linux/mm.h:2972 [inline] pagetable_pte_ctor include/linux/mm.h:2999 [inline] __pte_alloc_one_noprof include/asm-generic/pgalloc.h:73 [inline] pte_alloc_one+0xd3/0x510 arch/x86/mm/pgtable.c:41 do_fault_around mm/memory.c:5345 [inline] do_read_fault mm/memory.c:5384 [inline] do_fault mm/memory.c:5527 [inline] do_pte_missing mm/memory.c:4048 [inline] handle_pte_fault+0x2913/0x5ee0 mm/memory.c:5890 __handle_mm_fault mm/memory.c:6033 [inline] handle_mm_fault+0x11f5/0x1d50 mm/memory.c:6202 faultin_page mm/gup.c:1196 [inline] __get_user_pages+0x1a92/0x4140 mm/gup.c:1491 populate_vma_page_range+0x264/0x330 mm/gup.c:1929 __mm_populate+0x27a/0x460 mm/gup.c:2032 mm_populate include/linux/mm.h:3400 [inline] vm_mmap_pgoff+0x303/0x430 mm/util.c:585 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd4e7b85d29 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd4e88d1038 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007fd4e7d75fa0 RCX: 00007fd4e7b85d29 RDX: b635773f06ebbeee RSI: 0000000000b36000 RDI: 0000000020000000 RBP: 00007fd4e7c01b08 R08: ffffffffffffffff R09: 0000000000000000 R10: 0000000000008031 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fd4e7d75fa0 R15: 00007ffe44c319a8