INFO: task kworker/1:16:4571 blocked for more than 143 seconds.
Not tainted 5.15.175-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/1:16 state:D stack:23800 pid: 4571 ppid: 2 flags:0x00004000
Workqueue: gfs_recovery gfs2_recover_func
Call Trace:
context_switch kernel/sched/core.c:5027 [inline]
__schedule+0x12c4/0x45b0 kernel/sched/core.c:6373
schedule+0x11b/0x1f0 kernel/sched/core.c:6456
io_schedule+0x88/0x100 kernel/sched/core.c:8481
wait_on_page_bit_common+0xa13/0x1180 mm/filemap.c:1356
wait_on_page_locked include/linux/pagemap.h:688 [inline]
gfs2_jhead_process_page+0x25e/0xbf0 fs/gfs2/lops.c:476
gfs2_find_jhead+0xa5c/0x10c0 fs/gfs2/lops.c:586
gfs2_recover_func+0x6ce/0x1f00 fs/gfs2/recovery.c:462
process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310
worker_thread+0xaca/0x1280 kernel/workqueue.c:2457
kthread+0x3f6/0x4f0 kernel/kthread.c:334
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
INFO: task syz.1.48:4574 blocked for more than 144 seconds.
Not tainted 5.15.175-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.1.48 state:D stack:23160 pid: 4574 ppid: 4169 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:5027 [inline]
__schedule+0x12c4/0x45b0 kernel/sched/core.c:6373
schedule+0x11b/0x1f0 kernel/sched/core.c:6456
bit_wait+0xe/0xc0 kernel/sched/wait_bit.c:199
__wait_on_bit+0xb9/0x180 kernel/sched/wait_bit.c:49
out_of_line_wait_on_bit+0x1d0/0x250 kernel/sched/wait_bit.c:64
wait_on_bit include/linux/wait_bit.h:76 [inline]
gfs2_recover_journal+0x110/0x160 fs/gfs2/recovery.c:579
init_journal+0x1804/0x23c0 fs/gfs2/ops_fstype.c:837
init_inodes+0xdc/0x310 fs/gfs2/ops_fstype.c:891
gfs2_fill_super+0x1c2c/0x2750 fs/gfs2/ops_fstype.c:1249
get_tree_bdev+0x3fe/0x620 fs/super.c:1325
gfs2_get_tree+0x50/0x210 fs/gfs2/ops_fstype.c:1332
vfs_get_tree+0x88/0x270 fs/super.c:1530
do_new_mount+0x2ba/0xb40 fs/namespace.c:3012
do_mount fs/namespace.c:3355 [inline]
__do_sys_mount fs/namespace.c:3563 [inline]
__se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3540
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f40970184ca
RSP: 002b:00007f4094e86e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f4094e86ef0 RCX: 00007f40970184ca
RDX: 0000000020037f40 RSI: 0000000020037f80 RDI: 00007f4094e86eb0
RBP: 0000000020037f40 R08: 00007f4094e86ef0 R09: 000000000100c408
R10: 000000000100c408 R11: 0000000000000246 R12: 0000000020037f80
R13: 00007f4094e86eb0 R14: 0000000000037fa9 R15: 00000000200000c0
Showing all locks held in the system:
1 lock held by khungtaskd/27:
#0: ffffffff8cb1fd20 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
1 lock held by udevd/3548:
#0: ffff88802100bd18 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev+0x14d/0xa50 block/bdev.c:817
2 locks held by getty/3924:
#0: ffff88802c6ec098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:252
#1: ffffc900025c62e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6af/0x1db0 drivers/tty/n_tty.c:2158
1 lock held by udevd/4160:
#0: ffffffff8d011628 (uuid_mutex){+.+.}-{3:3}, at: btrfs_control_ioctl+0xbe/0x210 fs/btrfs/super.c:2454
2 locks held by kworker/1:16/4571:
#0: ffff88801e61dd38 ((wq_completion)gfs_recovery){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283
#1: ffffc9000132fd20 ((work_completion)(&jd->jd_work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285
1 lock held by syz.1.48/4574:
#0: ffff8880239740e0 (&type->s_umount_key#65/1){+.+.}-{3:3}, at: alloc_super+0x210/0x940 fs/super.c:229
2 locks held by syz-executor/4688:
#0: ffff88802100a118 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_put+0xfb/0x790 block/bdev.c:912
#1: ffff888147747468 (&lo->lo_mutex){+.+.}-{3:3}, at: __loop_clr_fd+0xa9/0xbe0 drivers/block/loop.c:1365
1 lock held by syz.0.374/6466:
#0: ffff8880239740e0 (&type->s_umount_key#108){.+.+}-{3:3}, at: iterate_supers+0xac/0x1e0 fs/super.c:716
1 lock held by syz.3.437/6855:
2 locks held by syz.6.438/6862:
#0: ffff88802100bd18 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_put+0xfb/0x790 block/bdev.c:912
#1: ffff88814775a468 (&lo->lo_mutex){+.+.}-{3:3}, at: lo_release+0x4d/0x1f0 drivers/block/loop.c:2070
=============================================
NMI backtrace for cpu 1
CPU: 1 PID: 27 Comm: khungtaskd Not tainted 5.15.175-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106
nmi_cpu_backtrace+0x46a/0x4a0 lib/nmi_backtrace.c:111
nmi_trigger_cpumask_backtrace+0x181/0x2a0 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:210 [inline]
watchdog+0xe72/0xeb0 kernel/hung_task.c:295
kthread+0x3f6/0x4f0 kernel/kthread.c:334
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 6855 Comm: syz.3.437 Not tainted 5.15.175-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:__lock_acquire+0xad/0x1ff0 kernel/locking/lockdep.c:4886
Code: 48 c7 c0 c0 8f 4f 90 48 39 07 75 03 45 31 ff 89 5c 24 60 83 fd 01 77 33 89 e8 48 8d 5c c7 08 48 89 d8 48 c1 e8 03 80 3c 10 00 <74> 17 48 89 df e8 19 8d 67 00 48 8b 7c 24 08 48 ba 00 00 00 00 00
RSP: 0018:ffffc90000007b40 EFLAGS: 00000046
RAX: 1ffffffff1966482 RBX: ffffffff8cb32410 RCX: 0000000000000002
RDX: dffffc0000000000 RSI: 0000000000000000 RDI: ffffffff8cb32408
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001
R13: ffff88801e64bb80 R14: 0000000000000002 R15: 0000000000000001
FS: 00007fd685fea6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007faa49d48000 CR3: 0000000049dd4000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623
seqcount_lockdep_reader_access+0xf8/0x220 include/linux/seqlock.h:103
timekeeping_get_delta kernel/time/timekeeping.c:254 [inline]
timekeeping_get_ns kernel/time/timekeeping.c:388 [inline]
ktime_get_update_offsets_now+0x89/0x420 kernel/time/timekeeping.c:2303
hrtimer_update_base kernel/time/hrtimer.c:631 [inline]
hrtimer_interrupt+0x12f/0x980 kernel/time/hrtimer.c:1796
local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1097 [inline]
__sysvec_apic_timer_interrupt+0x13b/0x4b0 arch/x86/kernel/apic/apic.c:1114
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
sysvec_apic_timer_interrupt+0x9b/0xc0 arch/x86/kernel/apic/apic.c:1108
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676
RIP: 0010:console_trylock_spinning+0x36b/0x3f0 kernel/printk/printk.c:1909
Code: 0f 84 75 ff ff ff e8 14 16 1a 00 fb 31 db eb 48 e8 0a 16 1a 00 e8 55 80 d8 08 4d 85 ed 74 cd e8 fb 15 1a 00 fb bb 01 00 00 00 <48> c7 c7 e0 c5 9f 8c 31 f6 ba 01 00 00 00 31 c9 41 b8 01 00 00 00
RSP: 0018:ffffc900031cf260 EFLAGS: 00000283
RAX: ffffffff81666ee5 RBX: 0000000000000001 RCX: 0000000000080000
RDX: ffffc9000c4c1000 RSI: 000000000007af06 RDI: 000000000007af07
RBP: ffffc900031cf330 R08: ffffffff81666e9e R09: fffffbfff2131246
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92000639e4c
R13: 0000000000000200 R14: 0000000000000046 R15: dffffc0000000000
vprintk_emit+0xa6/0x150 kernel/printk/printk.c:2273
_printk+0xd1/0x120 kernel/printk/printk.c:2299
btrfs_printk+0x4d2/0x510 fs/btrfs/super.c:245
__btrfs_clear_fs_compat_ro fs/btrfs/ctree.h:3737 [inline]
btrfs_clear_free_space_tree+0x991/0xbd0 fs/btrfs/free-space-tree.c:1243
btrfs_start_pre_rw_mount+0x2b0/0x680 fs/btrfs/disk-io.c:3079
open_ctree+0x2dcf/0x3500 fs/btrfs/disk-io.c:3634
btrfs_fill_super+0x1c7/0x2d0 fs/btrfs/super.c:1387
btrfs_mount_root+0x803/0x930 fs/btrfs/super.c:1752
legacy_get_tree+0xeb/0x180 fs/fs_context.c:611
vfs_get_tree+0x88/0x270 fs/super.c:1530
fc_mount fs/namespace.c:1000 [inline]
vfs_kern_mount+0xb8/0x150 fs/namespace.c:1030
btrfs_mount+0x395/0xb40 fs/btrfs/super.c:1812
legacy_get_tree+0xeb/0x180 fs/fs_context.c:611
vfs_get_tree+0x88/0x270 fs/super.c:1530
do_new_mount+0x2ba/0xb40 fs/namespace.c:3012
do_mount fs/namespace.c:3355 [inline]
__do_sys_mount fs/namespace.c:3563 [inline]
__se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3540
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7fd68817b4ca
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 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:00007fd685fe9e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fd685fe9ef0 RCX: 00007fd68817b4ca
RDX: 00000000200055c0 RSI: 0000000020000380 RDI: 00007fd685fe9eb0
RBP: 00000000200055c0 R08: 00007fd685fe9ef0 R09: 0000000000000008
R10: 0000000000000008 R11: 0000000000000246 R12: 0000000020000380
R13: 00007fd685fe9eb0 R14: 00000000000055ae R15: 0000000020000300