INFO: task syz-executor.1:28618 blocked for more than 143 seconds. Not tainted 6.7.0-rc7-syzkaller-00003-gfbafc3e621c3 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:24688 pid:28618 tgid:28618 ppid:26437 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5376 [inline] __schedule+0xedb/0x5af0 kernel/sched/core.c:6688 __schedule_loop kernel/sched/core.c:6763 [inline] schedule+0xe9/0x270 kernel/sched/core.c:6778 wb_wait_for_completion+0x1ae/0x270 fs/fs-writeback.c:192 __writeback_inodes_sb_nr+0x1d8/0x270 fs/fs-writeback.c:2672 try_to_writeback_inodes_sb+0x97/0xc0 fs/fs-writeback.c:2720 ext4_nonda_switch+0x1a9/0x1f0 fs/ext4/inode.c:2846 ext4_da_write_begin+0x16e/0x8c0 fs/ext4/inode.c:2873 generic_perform_write+0x278/0x600 mm/filemap.c:3918 ext4_buffered_write_iter+0x11f/0x3c0 fs/ext4/file.c:299 ext4_file_write_iter+0x819/0x1950 fs/ext4/file.c:698 __kernel_write_iter+0x261/0x7b0 fs/read_write.c:517 dump_emit_page fs/coredump.c:888 [inline] dump_user_range+0x299/0x790 fs/coredump.c:915 elf_core_dump+0x2706/0x3900 fs/binfmt_elf.c:2077 do_coredump+0x2c3c/0x3f70 fs/coredump.c:764 get_signal+0x242f/0x2790 kernel/signal.c:2890 arch_do_signal_or_restart+0x90/0x7f0 arch/x86/kernel/signal.c:309 exit_to_user_mode_loop kernel/entry/common.c:168 [inline] exit_to_user_mode_prepare+0x121/0x240 kernel/entry/common.c:204 irqentry_exit_to_user_mode+0xa/0x40 kernel/entry/common.c:309 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 RIP: 0033:0xbd8171d3b2 RSP: 002b:00000000200005b8 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007f575ef9bf80 RCX: 00007f575ee7cce9 RDX: 00000000200005c0 RSI: 00000000200005b0 RDI: 0000000001080000 RBP: 00007f575eec947a R08: 0000000020000640 R09: 0000000020000640 R10: 0000000020000600 R11: 0000000000000206 R12: 0000000000000000 R13: 000000000000000b R14: 00007f575ef9bf80 R15: 00007ffffb28ccc8 Showing all locks held in the system: 1 lock held by khungtaskd/29: #0: ffffffff8cfab760 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:301 [inline] #0: ffffffff8cfab760 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:747 [inline] #0: ffffffff8cfab760 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x75/0x340 kernel/locking/lockdep.c:6614 3 locks held by kworker/u4:3/48: #0: ffff888015674d38 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x789/0x15d0 kernel/workqueue.c:2602 #1: ffffc90000b8fd80 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7eb/0x15d0 kernel/workqueue.c:2603 #2: ffff88814ccf8b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553 2 locks held by getty/4820: #0: ffff88802a5da0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x24/0x80 drivers/tty/tty_ldisc.c:243 #1: ffffc9000311b2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xfc6/0x1490 drivers/tty/n_tty.c:2201 3 locks held by syz-executor.1/28618: #0: ffff88814ccf6418 (sb_writers#4){.+.+}-{0:0}, at: get_signal+0x242f/0x2790 kernel/signal.c:2890 #1: ffff888084227200 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline] #1: ffff888084227200 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: ext4_buffered_write_iter+0xb0/0x3c0 fs/ext4/file.c:294 #2: ffff88814ccf60e0 (&type->s_umount_key#32){++++}-{3:3}, at: try_to_writeback_inodes_sb+0x21/0xc0 fs/fs-writeback.c:2717 1 lock held by syz-executor.2/29082: #0: ffff88814ccf8b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553 1 lock held by syz-executor.1/29143: #0: ffff88814ccf8b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553 1 lock held by syz-executor.2/29164: #0: ffff88814ccf8b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553 1 lock held by syz-executor.1/29189: #0: ffff88814ccf8b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553 1 lock held by syz-executor.1/30005: #0: ffff88814ccf8b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553 1 lock held by syz-executor.1/30239: #0: ffff88814ccf8b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553 1 lock held by syz-executor.1/30443: #0: ffff88814ccf8b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553 1 lock held by syz-executor.2/30460: #0: ffff88814ccf8b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553 1 lock held by syz-executor.2/30590: #0: ffff88814ccf8b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553 1 lock held by syz-executor.2/30607: #0: ffff88814ccf8b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553 1 lock held by syz-executor.0/30606: #0: ffff88814ccf8b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553 1 lock held by syz-executor.3/30612: #0: ffff88814ccf8b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553 1 lock held by syz-executor.4/30615: #0: ffff88814ccf8b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553 1 lock held by syz-executor.3/30623: #0: ffff88814ccf8b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553 1 lock held by syz-executor.4/30631: #0: ffff88814ccf8b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553 1 lock held by syz-executor.2/30634: #0: ffff88814ccf8b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553 1 lock held by syz-executor.0/30644: #0: ffff88814ccf8b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553 1 lock held by syz-executor.3/30648: #0: ffff88814ccf8b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553 1 lock held by syz-executor.2/30649: #0: ffff88814ccf8b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553 1 lock held by syz-executor.5/30653: #0: ffff88814ccf8b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553 1 lock held by syz-executor.0/30667: #0: ffff88814ccf8b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553 1 lock held by syz-executor.5/30668: #0: ffff88814ccf8b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553 1 lock held by syz-executor.2/30672: #0: ffff88814ccf8b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553 1 lock held by syz-executor.3/30676: #0: ffff88814ccf8b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553 1 lock held by syz-executor.1/30681: #0: ffff88814ccf8b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553 1 lock held by syz-executor.3/30686: #0: ffff88814ccf8b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553 1 lock held by syz-executor.1/30688: #0: ffff88814ccf8b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553 1 lock held by syz-executor.1/30696: #0: ffff88814ccf8b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553 1 lock held by syz-executor.4/30706: #0: ffff88814ccf8b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553 1 lock held by syz-executor.0/30713: #0: ffff88814ccf8b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553 1 lock held by syz-executor.0/30721: #0: ffff88814ccf8b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553 1 lock held by syz-executor.0/30730: #0: ffff88814ccf8b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553 1 lock held by syz-executor.2/30748: #0: ffff88814ccf8b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553 1 lock held by syz-executor.4/30795: #0: ffff88814ccf8b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553 1 lock held by syz-executor.2/30800: #0: ffff88814ccf8b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553 1 lock held by syz-executor.0/30804: #0: ffff88814ccf8b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553 1 lock held by syz-executor.0/30817: #0: ffff88814ccf8b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553 1 lock held by syz-executor.4/30816: #0: ffff88814ccf8b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553 1 lock held by syz-executor.5/30831: #0: ffff88814ccf8b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553 1 lock held by syz-executor.2/30835: #0: ffff88814ccf8b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553 1 lock held by syz-executor.0/30844: #0: ffff88814ccf8b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 29 Comm: khungtaskd Not tainted 6.7.0-rc7-syzkaller-00003-gfbafc3e621c3 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106 nmi_cpu_backtrace+0x277/0x390 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x299/0x300 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+0xf87/0x1210 kernel/hung_task.c:379 kthread+0x2c6/0x3a0 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 20486 Comm: kworker/u4:5 Not tainted 6.7.0-rc7-syzkaller-00003-gfbafc3e621c3 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Workqueue: bat_events batadv_purge_orig RIP: 0010:check_preemption_disabled+0x4/0xe0 lib/smp_processor_id.c:13 Code: 85 c0 74 1a 65 8b 05 53 99 82 75 85 c0 75 0f 65 8b 05 5c 96 82 75 85 c0 74 04 90 0f 0b 90 e9 83 fc ff ff 0f 1f 00 41 54 55 53 <48> 83 ec 08 65 8b 1d 2d cc 83 75 65 8b 05 22 cc 83 75 a9 ff ff ff RSP: 0018:ffffc90003917a90 EFLAGS: 00000046 RAX: 0000000000000007 RBX: ffffffff8f196f38 RCX: ffffffff8167f575 RDX: 0000000000000000 RSI: ffffffff8accb180 RDI: ffffffff8b2efc20 RBP: 1ffff92000722f58 R08: 0000000000000000 R09: fffffbfff1e3276a R10: ffffffff8f193b57 R11: 0000000000000002 R12: ffff88807e396d58 R13: 00000000000001b6 R14: ffff888022d53b80 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000561a5bb0a448 CR3: 000000000cd77000 CR4: 0000000000350ef0 Call Trace: lockdep_recursion_inc kernel/locking/lockdep.c:462 [inline] lock_release+0x15b/0x690 kernel/locking/lockdep.c:5773 __raw_spin_unlock_bh include/linux/spinlock_api_smp.h:165 [inline] _raw_spin_unlock_bh+0x16/0x30 kernel/locking/spinlock.c:210 spin_unlock_bh include/linux/spinlock.h:396 [inline] batadv_purge_orig_ref+0xec0/0x1520 net/batman-adv/originator.c:1259 batadv_purge_orig+0x19/0x60 net/batman-adv/originator.c:1272 process_one_work+0x886/0x15d0 kernel/workqueue.c:2627 process_scheduled_works kernel/workqueue.c:2700 [inline] worker_thread+0x8b9/0x1290 kernel/workqueue.c:2781 kthread+0x2c6/0x3a0 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242