INFO: task kworker/u8:24:6155 blocked for more than 143 seconds. Not tainted 6.12.0-syzkaller-09073-g9f16d5e6f220 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u8:24 state:D stack:23888 pid:6155 tgid:6155 ppid:2 flags:0x00004000 Workqueue: writeback wb_workfn (flush-8:0) Call Trace: context_switch kernel/sched/core.c:5369 [inline] __schedule+0xe58/0x5ad0 kernel/sched/core.c:6756 __schedule_loop kernel/sched/core.c:6833 [inline] schedule+0xe7/0x350 kernel/sched/core.c:6848 io_schedule+0xbf/0x130 kernel/sched/core.c:7681 bit_wait_io+0x15/0xe0 kernel/sched/wait_bit.c:247 __wait_on_bit_lock+0x112/0x1a0 kernel/sched/wait_bit.c:90 out_of_line_wait_on_bit_lock+0xda/0x110 kernel/sched/wait_bit.c:117 wait_on_bit_lock_io include/linux/wait_bit.h:221 [inline] __lock_buffer+0x67/0x70 fs/buffer.c:71 lock_buffer include/linux/buffer_head.h:426 [inline] do_get_write_access+0x8c3/0x1270 fs/jbd2/transaction.c:972 jbd2_journal_get_write_access+0x1d6/0x280 fs/jbd2/transaction.c:1245 __ext4_journal_get_write_access+0x6a/0x390 fs/ext4/ext4_jbd2.c:239 ext4_mb_mark_context+0x176/0xdb0 fs/ext4/mballoc.c:4003 ext4_mb_mark_diskspace_used+0x467/0x8c0 fs/ext4/mballoc.c:4133 ext4_mb_new_blocks+0xa36/0x4e70 fs/ext4/mballoc.c:6235 ext4_ext_map_blocks+0x1bcb/0x5ad0 fs/ext4/extents.c:4379 ext4_map_create_blocks fs/ext4/inode.c:516 [inline] ext4_map_blocks+0x457/0x1370 fs/ext4/inode.c:702 mpage_map_one_extent fs/ext4/inode.c:2219 [inline] mpage_map_and_submit_extent fs/ext4/inode.c:2272 [inline] ext4_do_writepages+0x19a7/0x3320 fs/ext4/inode.c:2735 ext4_writepages+0x303/0x730 fs/ext4/inode.c:2824 do_writepages+0x1b3/0x820 mm/page-writeback.c:2702 __writeback_single_inode+0x166/0xfa0 fs/fs-writeback.c:1680 writeback_sb_inodes+0x603/0xfa0 fs/fs-writeback.c:1976 __writeback_inodes_wb+0xff/0x2e0 fs/fs-writeback.c:2047 wb_writeback+0x73e/0xb80 fs/fs-writeback.c:2158 wb_check_background_flush fs/fs-writeback.c:2228 [inline] wb_do_writeback fs/fs-writeback.c:2316 [inline] wb_workfn+0x730/0xbc0 fs/fs-writeback.c:2343 process_one_work+0x958/0x1b30 kernel/workqueue.c:3229 process_scheduled_works kernel/workqueue.c:3310 [inline] worker_thread+0x6c8/0xf00 kernel/workqueue.c:3391 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 INFO: task syz.6.4076:4515 blocked for more than 144 seconds. Not tainted 6.12.0-syzkaller-09073-g9f16d5e6f220 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.6.4076 state:D stack:24072 pid:4515 tgid:4515 ppid:4229 flags:0x00004002 Call Trace: context_switch kernel/sched/core.c:5369 [inline] __schedule+0xe58/0x5ad0 kernel/sched/core.c:6756 __schedule_loop kernel/sched/core.c:6833 [inline] schedule+0xe7/0x350 kernel/sched/core.c:6848 io_schedule+0xbf/0x130 kernel/sched/core.c:7681 folio_wait_bit_common+0x3d8/0x9b0 mm/filemap.c:1308 __folio_lock mm/filemap.c:1646 [inline] lock_folio_maybe_drop_mmap mm/filemap.c:3131 [inline] filemap_fault+0xd84/0x2820 mm/filemap.c:3365 __do_fault+0x10a/0x490 mm/memory.c:4907 do_read_fault mm/memory.c:5322 [inline] do_fault mm/memory.c:5456 [inline] do_pte_missing+0xebd/0x3e00 mm/memory.c:3979 handle_pte_fault mm/memory.c:5801 [inline] __handle_mm_fault+0x103c/0x2a40 mm/memory.c:5944 handle_mm_fault+0x3fa/0xaa0 mm/memory.c:6112 faultin_page mm/gup.c:1187 [inline] __get_user_pages+0x8d9/0x3b50 mm/gup.c:1485 __get_user_pages_locked mm/gup.c:1751 [inline] get_dump_page+0xff/0x230 mm/gup.c:2269 dump_user_range+0x135/0x8c0 fs/coredump.c:943 elf_core_dump+0x2766/0x3840 fs/binfmt_elf.c:2127 do_coredump+0x2c42/0x4160 fs/coredump.c:758 get_signal+0x23f3/0x2610 kernel/signal.c:3001 arch_do_signal_or_restart+0x90/0x7e0 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] irqentry_exit_to_user_mode+0x13f/0x280 kernel/entry/common.c:231 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 RIP: 0033:0x400fff RSP: 002b:0000000000000407 EFLAGS: 00010286 RAX: 0000000000000000 RBX: 00007fdcf573c260 RCX: 00007fdcf557e819 RDX: 9999999999999999 RSI: 00000000000003ff RDI: 0000000000000004 RBP: 00007fdcf55f175e R08: 00000000000000d1 R09: 0000000000000000 R10: ffffffffff600000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007fdcf5736160 R15: 00007fffe43ddbf8 INFO: task syz.1.4086:4555 blocked for more than 144 seconds. Not tainted 6.12.0-syzkaller-09073-g9f16d5e6f220 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.1.4086 state:D stack:23760 pid:4555 tgid:4555 ppid:32516 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5369 [inline] __schedule+0xe58/0x5ad0 kernel/sched/core.c:6756 __schedule_loop kernel/sched/core.c:6833 [inline] schedule+0xe7/0x350 kernel/sched/core.c:6848 io_schedule+0xbf/0x130 kernel/sched/core.c:7681 folio_wait_bit_common+0x3d8/0x9b0 mm/filemap.c:1308 __folio_lock mm/filemap.c:1646 [inline] lock_folio_maybe_drop_mmap mm/filemap.c:3131 [inline] filemap_fault+0xd84/0x2820 mm/filemap.c:3365 __do_fault+0x10a/0x490 mm/memory.c:4907 do_read_fault mm/memory.c:5322 [inline] do_fault mm/memory.c:5456 [inline] do_pte_missing+0xebd/0x3e00 mm/memory.c:3979 handle_pte_fault mm/memory.c:5801 [inline] __handle_mm_fault+0x103c/0x2a40 mm/memory.c:5944 handle_mm_fault+0x3fa/0xaa0 mm/memory.c:6112 faultin_page mm/gup.c:1187 [inline] __get_user_pages+0x8d9/0x3b50 mm/gup.c:1485 __get_user_pages_locked mm/gup.c:1751 [inline] get_dump_page+0xff/0x230 mm/gup.c:2269 dump_user_range+0x135/0x8c0 fs/coredump.c:943 elf_core_dump+0x2766/0x3840 fs/binfmt_elf.c:2127 do_coredump+0x2c42/0x4160 fs/coredump.c:758 get_signal+0x23f3/0x2610 kernel/signal.c:3001 arch_do_signal_or_restart+0x90/0x7e0 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] irqentry_exit_to_user_mode+0x13f/0x280 kernel/entry/common.c:231 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 RIP: 0033:0x21000 RSP: 002b:0000000000000409 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 00007f0ca2b36080 RCX: 00007f0ca297e819 RDX: ffffffffffffffff RSI: 0000000000000401 RDI: 0000000000000006 RBP: 00007f0ca29f175e R08: 000000000000a31b R09: 0000000000000000 R10: ffffffffff600000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f0ca2b36080 R15: 00007ffca50f0038 Showing all locks held in the system: 1 lock held by khungtaskd/30: #0: ffffffff8ddbaf40 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #0: ffffffff8ddbaf40 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #0: ffffffff8ddbaf40 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x7f/0x390 kernel/locking/lockdep.c:6744 2 locks held by getty/5599: #0: ffff8880319620a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x24/0x80 drivers/tty/tty_ldisc.c:243 #1: ffffc90002fc62f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0xfba/0x1480 drivers/tty/n_tty.c:2211 4 locks held by syz-executor/5832: #0: ffff888034022580 (&vma->vm_lock->lock){++++}-{4:4}, at: vma_start_read include/linux/mm.h:716 [inline] #0: ffff888034022580 (&vma->vm_lock->lock){++++}-{4:4}, at: lock_vma_under_rcu+0x13e/0x980 mm/memory.c:6278 #1: ffff8880310a2518 (sb_pagefaults){.+.+}-{0:0}, at: do_page_mkwrite+0x177/0x380 mm/memory.c:3176 #2: ffff88807d78c108 (mapping.invalidate_lock){++++}-{4:4}, at: filemap_invalidate_lock_shared include/linux/fs.h:873 [inline] #2: ffff88807d78c108 (mapping.invalidate_lock){++++}-{4:4}, at: ext4_page_mkwrite+0x37e/0x1760 fs/ext4/inode.c:6161 #3: ffff88807d78bdf8 (&ei->i_data_sem){++++}-{4:4}, at: ext4_da_map_blocks fs/ext4/inode.c:1809 [inline] #3: ffff88807d78bdf8 (&ei->i_data_sem){++++}-{4:4}, at: ext4_da_get_block_prep+0x6a0/0x11e0 fs/ext4/inode.c:1873 6 locks held by kworker/u8:24/6155: #0: ffff888143ac5948 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x126b/0x1b30 kernel/workqueue.c:3204 #1: ffffc9000bd27d80 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x8bb/0x1b30 kernel/workqueue.c:3205 #2: ffff8880310a20e0 (&type->s_umount_key#32){++++}-{4:4}, at: super_trylock_shared+0x1e/0xf0 fs/super.c:562 #3: ffff8880310a4b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b3/0x820 mm/page-writeback.c:2702 #4: ffff8880310a6958 (jbd2_handle){++++}-{0:0}, at: start_this_handle+0xf6c/0x1430 fs/jbd2/transaction.c:448 #5: ffff88807d78bdf8 (&ei->i_data_sem){++++}-{4:4}, at: ext4_map_blocks+0x352/0x1370 fs/ext4/inode.c:701 2 locks held by syz.6.4076/4515: #0: ffff888034e22420 (sb_writers#5){.+.+}-{0:0}, at: get_signal+0x23f3/0x2610 kernel/signal.c:3001 #1: ffff88809a7f81e0 (&mm->mmap_lock){++++}-{4:4}, at: mmap_read_lock_killable include/linux/mmap_lock.h:153 [inline] #1: ffff88809a7f81e0 (&mm->mmap_lock){++++}-{4:4}, at: __get_user_pages_locked mm/gup.c:1726 [inline] #1: ffff88809a7f81e0 (&mm->mmap_lock){++++}-{4:4}, at: get_dump_page+0xb6/0x230 mm/gup.c:2269 2 locks held by syz.1.4086/4555: #0: ffff888066ce2420 (sb_writers#5){.+.+}-{0:0}, at: get_signal+0x23f3/0x2610 kernel/signal.c:3001 #1: ffff888070a0b2a0 (&mm->mmap_lock){++++}-{4:4}, at: mmap_read_lock_killable include/linux/mmap_lock.h:153 [inline] #1: ffff888070a0b2a0 (&mm->mmap_lock){++++}-{4:4}, at: __get_user_pages_locked mm/gup.c:1726 [inline] #1: ffff888070a0b2a0 (&mm->mmap_lock){++++}-{4:4}, at: get_dump_page+0xb6/0x230 mm/gup.c:2269 ============================================= NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.12.0-syzkaller-09073-g9f16d5e6f220 #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+0x116/0x1f0 lib/dump_stack.c:120 nmi_cpu_backtrace+0x27b/0x390 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x29c/0x300 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:223 [inline] watchdog+0xf0c/0x1240 kernel/hung_task.c:379 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 12 Comm: kworker/u8:1 Not tainted 6.12.0-syzkaller-09073-g9f16d5e6f220 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Workqueue: bat_events batadv_nc_worker RIP: 0010:trace_lock_acquire+0x141/0x1e0 include/trace/events/lock.h:24 Code: 41 51 45 89 c1 41 89 c8 89 d1 89 ea e8 c8 49 ff ff 58 5a 65 ff 0d 57 d2 99 7e 0f 85 d5 fe ff ff e8 b4 9a 96 ff e9 d2 fe ff ff 0a bf 09 00 84 c0 0f 85 fc fe ff ff 80 3d da 97 9b 0e 00 0f 85 RSP: 0018:ffffc90000117a80 EFLAGS: 00000247 RAX: 0000000000000001 RBX: 0000000000000000 RCX: ffffffff816a05bc RDX: fffffbfff2039f0b RSI: 0000000000000008 RDI: ffffffff901cf850 RBP: 0000000000000000 R08: 0000000000000000 R09: fffffbfff2039f0a R10: ffffffff901cf857 R11: 0000000000000002 R12: 0000000000000000 R13: 000000000003d90c R14: 0000000000000001 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000561a6395c680 CR3: 000000000db7e000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire+0x2f/0xb0 kernel/locking/lockdep.c:5820 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:126 [inline] _raw_spin_lock_bh+0x33/0x40 kernel/locking/spinlock.c:178 spin_lock_bh include/linux/spinlock.h:356 [inline] batadv_nc_purge_paths+0xca/0x390 net/batman-adv/network-coding.c:442 batadv_nc_worker+0x94a/0x1060 net/batman-adv/network-coding.c:722 process_one_work+0x958/0x1b30 kernel/workqueue.c:3229 process_scheduled_works kernel/workqueue.c:3310 [inline] worker_thread+0x6c8/0xf00 kernel/workqueue.c:3391 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244