INFO: task kworker/1:5:5126 blocked for more than 143 seconds. Not tainted 6.8.0-syzkaller-08951-gfe46a7dd189e #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/1:5 state:D stack:22000 pid:5126 tgid:5126 ppid:2 flags:0x00004000 Workqueue: gfs2_recovery gfs2_recover_func Call Trace: context_switch kernel/sched/core.c:5409 [inline] __schedule+0x1781/0x49d0 kernel/sched/core.c:6736 __schedule_loop kernel/sched/core.c:6813 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6828 io_schedule+0x8d/0x110 kernel/sched/core.c:9034 folio_wait_bit_common+0x882/0x12b0 mm/filemap.c:1283 folio_wait_locked include/linux/pagemap.h:1123 [inline] gfs2_jhead_process_page+0x194/0x750 fs/gfs2/lops.c:470 gfs2_find_jhead+0xd68/0xf10 fs/gfs2/lops.c:587 gfs2_recover_func+0x6c1/0x1f20 fs/gfs2/recovery.c:460 process_one_work kernel/workqueue.c:3254 [inline] process_scheduled_works+0xa00/0x1770 kernel/workqueue.c:3335 worker_thread+0x86d/0xd70 kernel/workqueue.c:3416 kthread+0x2f0/0x390 kernel/kthread.c:388 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:243 INFO: task syz-executor.0:6205 blocked for more than 143 seconds. Not tainted 6.8.0-syzkaller-08951-gfe46a7dd189e #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:22808 pid:6205 tgid:6204 ppid:5639 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5409 [inline] __schedule+0x1781/0x49d0 kernel/sched/core.c:6736 __schedule_loop kernel/sched/core.c:6813 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6828 bit_wait+0x12/0xd0 kernel/sched/wait_bit.c:199 __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:76 [inline] gfs2_recover_journal+0xf2/0x160 fs/gfs2/recovery.c:577 init_journal+0x1845/0x23f0 fs/gfs2/ops_fstype.c:831 init_inodes+0xdc/0x320 fs/gfs2/ops_fstype.c:884 gfs2_fill_super+0x1edb/0x26c0 fs/gfs2/ops_fstype.c:1263 get_tree_bdev+0x3f7/0x570 fs/super.c:1614 gfs2_get_tree+0x54/0x220 fs/gfs2/ops_fstype.c:1341 vfs_get_tree+0x90/0x2a0 fs/super.c:1779 do_new_mount+0x2be/0xb40 fs/namespace.c:3352 do_mount fs/namespace.c:3692 [inline] __do_sys_mount fs/namespace.c:3898 [inline] __se_sys_mount+0x2d9/0x3c0 fs/namespace.c:3875 do_syscall_64+0xfb/0x240 entry_SYSCALL_64_after_hwframe+0x6d/0x75 RIP: 0033:0x7f2e3bc7f56a RSP: 002b:00007f2e3c9d6ef8 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f2e3c9d6f80 RCX: 00007f2e3bc7f56a RDX: 0000000020037f40 RSI: 0000000020037f80 RDI: 00007f2e3c9d6f40 RBP: 0000000020037f40 R08: 00007f2e3c9d6f80 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020037f80 R13: 00007f2e3c9d6f40 R14: 0000000000037f62 R15: 0000000020037fc0 Showing all locks held in the system: 1 lock held by khungtaskd/29: #0: ffffffff8e132020 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:298 [inline] #0: ffffffff8e132020 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:750 [inline] #0: ffffffff8e132020 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6614 2 locks held by getty/4814: #0: ffff88802a9230a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc90002f162f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b5/0x1e10 drivers/tty/n_tty.c:2201 3 locks held by syz-executor.4/5082: 2 locks held by kworker/1:5/5126: #0: ffff88801977c148 ((wq_completion)gfs2_recovery){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3229 [inline] #0: ffff88801977c148 ((wq_completion)gfs2_recovery){+.+.}-{0:0}, at: process_scheduled_works+0x8e0/0x1770 kernel/workqueue.c:3335 #1: ffffc900044c7d00 ((work_completion)(&jd->jd_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3230 [inline] #1: ffffc900044c7d00 ((work_completion)(&jd->jd_work)){+.+.}-{0:0}, at: process_scheduled_works+0x91b/0x1770 kernel/workqueue.c:3335 1 lock held by syz-executor.0/6205: #0: ffff8880723580e0 (&type->s_umount_key#99/1){+.+.}-{3:3}, at: alloc_super+0x221/0x9d0 fs/super.c:343 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 29 Comm: khungtaskd Not tainted 6.8.0-syzkaller-08951-gfe46a7dd189e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 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:160 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline] watchdog+0xfb0/0xff0 kernel/hung_task.c:379 kthread+0x2f0/0x390 kernel/kthread.c:388 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:243 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 5082 Comm: syz-executor.4 Not tainted 6.8.0-syzkaller-08951-gfe46a7dd189e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 RIP: 0010:unwind_next_frame+0xcf/0x2a00 arch/x86/kernel/unwind_orc.c:482 Code: 8c 00 00 00 45 85 f6 0f 84 8a 00 00 00 48 89 5c 24 50 bf 01 00 00 00 e8 5f 59 24 00 4c 89 e9 4c 8d 6d 50 4c 89 e8 48 c1 e8 03 <48> 89 44 24 40 80 3c 08 00 74 08 4c 89 ef e8 fe 64 b4 00 49 8b 5d RSP: 0018:ffffc90004347608 EFLAGS: 00000a02 RAX: 1ffff92000868ee6 RBX: ffffc90004347718 RCX: dffffc0000000000 RDX: ffff8880675f9e00 RSI: 0000000000000001 RDI: ffffffff81409031 RBP: ffffc900043476e0 R08: ffffffff81409011 R09: ffffc900043477d0 R10: 0000000000000003 R11: ffffffff8180dfa0 R12: ffff8880675f9e00 R13: ffffc90004347730 R14: 0000000000000001 R15: ffffffff81f4bff6 FS: 000055559349b480(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c0010666b8 CR3: 0000000061b04000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: arch_stack_walk+0x151/0x1b0 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x118/0x1d0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:579 poison_slab_object+0xa6/0xe0 mm/kasan/common.c:240 __kasan_slab_free+0x37/0x60 mm/kasan/common.c:256 kasan_slab_free include/linux/kasan.h:184 [inline] slab_free_hook mm/slub.c:2106 [inline] slab_free mm/slub.c:4280 [inline] kfree+0x14a/0x380 mm/slub.c:4390 tomoyo_realpath_from_path+0x5a9/0x5e0 security/tomoyo/realpath.c:286 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_number_perm+0x23a/0x880 security/tomoyo/file.c:723 security_file_ioctl+0x75/0xb0 security/security.c:2758 __do_sys_ioctl fs/ioctl.c:898 [inline] __se_sys_ioctl+0x47/0x170 fs/ioctl.c:890 do_syscall_64+0xfb/0x240 entry_SYSCALL_64_after_hwframe+0x6d/0x75 RIP: 0033:0x7ff3aac7dbcb Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00 RSP: 002b:00007ffe53d6aa40 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 000000000000bc73 RCX: 00007ff3aac7dbcb RDX: 00007ffe53d6aab8 RSI: 0000000040086602 RDI: 0000000000000005 RBP: 00007ffe53d6ab50 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffe53d6bc10 R13: 00007ff3aacc93b9 R14: 000055559349b430 R15: 0000000000000005