INFO: task syz-executor379:4163 blocked for more than 143 seconds. Not tainted 5.15.179-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor379 state:D stack:25176 pid: 4163 ppid: 4161 flags:0x00004002 Call Trace: context_switch kernel/sched/core.c:5029 [inline] __schedule+0x12c4/0x45b0 kernel/sched/core.c:6375 schedule+0x11b/0x1f0 kernel/sched/core.c:6458 wb_wait_for_completion+0x164/0x290 fs/fs-writeback.c:191 sync_inodes_sb+0x293/0xab0 fs/fs-writeback.c:2770 sync_filesystem+0x16b/0x220 fs/sync.c:64 generic_shutdown_super+0x6b/0x310 fs/super.c:448 kill_block_super+0x7a/0xe0 fs/super.c:1427 deactivate_locked_super+0xa0/0x110 fs/super.c:335 cleanup_mnt+0x44e/0x500 fs/namespace.c:1143 task_work_run+0x129/0x1a0 kernel/task_work.c:188 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop+0x106/0x130 kernel/entry/common.c:181 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:214 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline] syscall_exit_to_user_mode+0x5d/0x240 kernel/entry/common.c:307 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fb5fe15d407 RSP: 002b:00007ffc628114e8 EFLAGS: 00000206 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007fb5fe15d407 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffc628115a0 RBP: 00007ffc628115a0 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000206 R12: 00007ffc62812610 R13: 0000555555f126c0 R14: 0000000000000001 R15: 431bde82d7b634db Showing all locks held in the system: 1 lock held by khungtaskd/27: #0: ffffffff8cb1f4e0 ( rcu_read_lock ){....}-{1:2} , at: rcu_lock_acquire+0x0/0x30 5 locks held by kworker/u4:2/154: #0: ffff8881427f0938 ( (wq_completion)writeback ){+.+.}-{0:0} , at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283 #1: ffffc90002047d20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0} , at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 #2: ffff888075e6a650 ( sb_internal #2 ){.+.+}-{0:0} , at: xfs_bmapi_convert_delalloc+0x20f/0x1180 fs/xfs/libxfs/xfs_bmap.c:4573 #3: ffff888071f99768 ( &xfs_nondir_ilock_class ){++++}-{3:3} , at: xfs_bmapi_convert_delalloc+0x23c/0x1180 fs/xfs/libxfs/xfs_bmap.c:4578 #4: ffffffff96dbc9b8 ( &port_lock_key ){-.-.}-{2:2} , at: raw_spin_rq_lock_nested+0x26/0x140 kernel/sched/core.c:475 5 locks held by kworker/0:3/1325: 2 locks held by getty/3933: #0: ffff88802c388098 ( &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 2 locks held by syz-executor379/4163: #0: ffff888075e6a0e0 ( &type->s_umount_key #43 ){+.+.}-{3:3} , at: deactivate_super+0xa9/0xe0 fs/super.c:365 #1: ffff8881475ac7d8 ( &bdi->wb_switch_rwsem ){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:362 [inline] ){+.+.}-{3:3}, at: sync_inodes_sb+0x274/0xab0 fs/fs-writeback.c:2768 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 27 Comm: khungtaskd Not tainted 5.15.179-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 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:212 [inline] watchdog+0xe72/0xeb0 kernel/hung_task.c:369 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: 154 Comm: kworker/u4:2 Not tainted 5.15.179-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Workqueue: writeback wb_workfn (flush-7:0) RIP: 0010:kasan_check_range+0x1ac/0x290 mm/kasan/generic.c:189 Code: 4c 89 d5 48 8d 5d 07 48 85 ed 48 0f 49 dd 48 83 e3 f8 48 29 dd 74 12 41 80 39 00 0f 85 a2 00 00 00 49 ff c1 48 ff cd 75 ee 5b <41> 5e 41 5f 5d c3 45 84 f6 75 61 41 f7 c6 00 ff 00 00 75 5d 41 f7 RSP: 0018:ffffc900000074a0 EFLAGS: 00000056 RAX: 0000000000000001 RBX: 000000000000009d RCX: ffffffff81639d52 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff9098f0d0 RBP: 0000000000000001 R08: dffffc0000000000 R09: fffffbfff2131e1b R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: ffff88801c604708 R14: fffffbfff2131e1b R15: ffff88801c604708 FS: 0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055d99bfde600 CR3: 000000007dc9b000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: instrument_atomic_read include/linux/instrumented.h:71 [inline] test_bit include/asm-generic/bitops/instrumented-non-atomic.h:134 [inline] hlock_class kernel/locking/lockdep.c:197 [inline] lookup_chain_cache_add kernel/locking/lockdep.c:3700 [inline] validate_chain+0x112/0x5930 kernel/locking/lockdep.c:3756 __lock_acquire+0x1295/0x1ff0 kernel/locking/lockdep.c:5012 lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xd1/0x120 kernel/locking/spinlock.c:162 try_to_wake_up+0xae/0x12c0 kernel/sched/core.c:4029 call_timer_fn+0x16d/0x560 kernel/time/timer.c:1451 expire_timers kernel/time/timer.c:1496 [inline] __run_timers+0x67c/0x890 kernel/time/timer.c:1767 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1780 handle_softirqs+0x3a7/0x930 kernel/softirq.c:558 __do_softirq kernel/softirq.c:592 [inline] invoke_softirq kernel/softirq.c:432 [inline] __irq_exit_rcu+0x157/0x240 kernel/softirq.c:641 irq_exit_rcu+0x5/0x20 kernel/softirq.c:653 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline] sysvec_apic_timer_interrupt+0xa0/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 1a 1a 00 fb 31 db eb 48 e8 0a 1a 1a 00 e8 95 7c d9 08 4d 85 ed 74 cd e8 fb 19 1a 00 fb bb 01 00 00 00 <48> c7 c7 a0 bd 9f 8c 31 f6 ba 01 00 00 00 31 c9 41 b8 01 00 00 00 RSP: 0018:ffffc90002046a60 EFLAGS: 00000293 RAX: ffffffff816682c5 RBX: 0000000000000001 RCX: ffff88801c603b80 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90002046b30 R08: ffffffff8166827e R09: fffffbfff2131e30 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92000408d4c R13: 0000000000000200 R14: 0000000000000046 R15: dffffc0000000000 vprintk_emit+0xa6/0x150 kernel/printk/printk.c:2273 _printk+0xd1/0x120 kernel/printk/printk.c:2299 __xfs_printk fs/xfs/xfs_message.c:24 [inline] xfs_alert+0x1c8/0x320 fs/xfs/xfs_message.c:52 xfs_discard_page+0x1a5/0x470 fs/xfs/xfs_aops.c:455 iomap_writepage_map fs/iomap/buffered-io.c:1351 [inline] iomap_do_writepage+0x1ce1/0x21c0 fs/iomap/buffered-io.c:1485 write_cache_pages+0xa97/0x1160 mm/page-writeback.c:2277 iomap_writepages+0x64/0x240 fs/iomap/buffered-io.c:1516 xfs_vm_writepages+0x127/0x180 fs/xfs/xfs_aops.c:488 do_writepages+0x481/0x730 mm/page-writeback.c:2386 __writeback_single_inode+0x15b/0xe30 fs/fs-writeback.c:1647 writeback_sb_inodes+0xbce/0x1a40 fs/fs-writeback.c:1930 wb_writeback+0x451/0xc50 fs/fs-writeback.c:2104 wb_do_writeback fs/fs-writeback.c:2247 [inline] wb_workfn+0x46c/0x1130 fs/fs-writeback.c:2288 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: NMI handler (nmi_cpu_backtrace_handler) took too long to run: 2.570 msecs