INFO: task kworker/u4:5:4202 blocked for more than 143 seconds. Not tainted 5.15.182-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:5 state:D stack:26144 pid: 4202 ppid: 2 flags:0x00004000 Workqueue: btrfs-endio-write btrfs_work_helper Call Trace: context_switch kernel/sched/core.c:5030 [inline] __schedule+0x11b8/0x43b0 kernel/sched/core.c:6376 schedule+0x11b/0x1e0 kernel/sched/core.c:6459 wait_on_state fs/btrfs/extent_io.c:868 [inline] wait_extent_bit+0x39b/0x4d0 fs/btrfs/extent_io.c:906 lock_extent_bits+0x82/0x110 fs/btrfs/extent_io.c:1469 btrfs_finish_ordered_io+0x730/0x1a20 fs/btrfs/inode.c:3108 btrfs_work_helper+0x360/0xb90 fs/btrfs/async-thread.c:325 process_one_work+0x863/0x1000 kernel/workqueue.c:2310 worker_thread+0xaa8/0x12a0 kernel/workqueue.c:2457 kthread+0x436/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 INFO: task syz.0.15:4977 blocked for more than 143 seconds. Not tainted 5.15.182-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.0.15 state:D stack:24016 pid: 4977 ppid: 4779 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5030 [inline] __schedule+0x11b8/0x43b0 kernel/sched/core.c:6376 schedule+0x11b/0x1e0 kernel/sched/core.c:6459 wait_on_state fs/btrfs/extent_io.c:868 [inline] wait_extent_bit+0x39b/0x4d0 fs/btrfs/extent_io.c:906 lock_extent_bits+0x82/0x110 fs/btrfs/extent_io.c:1469 btrfs_page_mkwrite+0x5b1/0xc50 fs/btrfs/inode.c:8961 do_page_mkwrite+0x168/0x3c0 mm/memory.c:2922 wp_page_shared+0x16b/0x6d0 mm/memory.c:3259 handle_pte_fault mm/memory.c:4668 [inline] __handle_mm_fault mm/memory.c:4785 [inline] handle_mm_fault+0x1eca/0x43c0 mm/memory.c:4883 do_user_addr_fault+0x489/0xc80 arch/x86/mm/fault.c:1357 handle_page_fault arch/x86/mm/fault.c:1445 [inline] exc_page_fault+0x60/0x100 arch/x86/mm/fault.c:1501 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:606 RIP: 0010:copy_user_generic_unrolled+0x89/0xc0 arch/x86/lib/copy_user_64.S:92 Code: 38 4c 89 47 20 4c 89 4f 28 4c 89 57 30 4c 89 5f 38 48 8d 76 40 48 8d 7f 40 ff c9 75 b6 89 d1 83 e2 07 c1 e9 03 74 12 4c 8b 06 <4c> 89 07 48 8d 76 08 48 8d 7f 08 ff c9 75 ee 21 d2 74 10 89 d1 8a RSP: 0018:ffffc90002daf6a0 EFLAGS: 00050202 RAX: ffffffff83db7201 RBX: 0000000000000038 RCX: 0000000000000007 RDX: 0000000000000000 RSI: ffffc90002daf740 RDI: 00000000200003a0 RBP: 0000000000000000 R08: 0000000000000000 R09: fffff520005b5eef R10: fffff520005b5eef R11: 1ffff920005b5ee8 R12: 00007ffffffff000 R13: 00000000200003d8 R14: ffffc90002daf740 R15: 00000000200003a0 copy_user_generic arch/x86/include/asm/uaccess_64.h:37 [inline] raw_copy_to_user arch/x86/include/asm/uaccess_64.h:58 [inline] _copy_to_user+0xf0/0x130 lib/usercopy.c:40 copy_to_user include/linux/uaccess.h:200 [inline] fiemap_fill_next_extent+0x19d/0x360 fs/ioctl.c:144 emit_fiemap_extent fs/btrfs/extent_io.c:5461 [inline] extent_fiemap+0x10ff/0x14f0 fs/btrfs/extent_io.c:5687 btrfs_fiemap+0xc0/0x110 fs/btrfs/inode.c:8584 ioctl_fiemap fs/ioctl.c:219 [inline] do_vfs_ioctl+0x1464/0x1de0 fs/ioctl.c:814 __do_sys_ioctl fs/ioctl.c:872 [inline] __se_sys_ioctl+0x83/0x170 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7ff6a8cbaed9 RSP: 002b:00007ff6a7f39058 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007ff6a8e80fa0 RCX: 00007ff6a8cbaed9 RDX: 0000000020000380 RSI: 00000000c020660b RDI: 0000000000000004 RBP: 00007ff6a8d2ecc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007ff6a8e80fa0 R15: 00007ffe4ff819e8 Showing all locks held in the system: 1 lock held by khungtaskd/27: #0: ffffffff8c11bea0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by klogd/3536: #0: ffff8880b903a318 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x26/0x140 kernel/sched/core.c:475 #1: ffff8880b9027848 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x4d6/0x810 kernel/sched/psi.c:891 2 locks held by getty/3939: #0: ffff88802bb54098 (&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+0x5ba/0x1a30 drivers/tty/n_tty.c:2158 2 locks held by kworker/u4:5/4202: #0: ffff888079903938 ((wq_completion)btrfs-endio-write){+.+.}-{0:0}, at: process_one_work+0x760/0x1000 kernel/workqueue.c:-1 #1: ffffc90002f6fd00 ((work_completion)(&work->normal_work)){+.+.}-{0:0}, at: process_one_work+0x7a3/0x1000 kernel/workqueue.c:2285 3 locks held by syz.0.15/4977: #0: ffff8880759af128 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:136 [inline] #0: ffff8880759af128 (&mm->mmap_lock){++++}-{3:3}, at: do_user_addr_fault+0x2b9/0xc80 arch/x86/mm/fault.c:1298 #1: ffff88807d5c6558 (sb_pagefaults#2){.+.+}-{0:0}, at: do_page_mkwrite+0x168/0x3c0 mm/memory.c:2922 #2: ffff8880691b8e68 (&ei->i_mmap_lock){.+.+}-{3:3}, at: btrfs_page_mkwrite+0x461/0xc50 fs/btrfs/inode.c:8950 1 lock held by udevd/5023: #0: ffff88802042f118 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev+0x157/0xa60 block/bdev.c:820 2 locks held by syz.1.482/5979: #0: ffff88802042f118 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_put+0xf9/0x7d0 block/bdev.c:915 #1: ffff888020795468 (&lo->lo_mutex){+.+.}-{3:3}, at: lo_release+0x4d/0x1f0 drivers/block/loop.c:2071 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 27 Comm: khungtaskd Not tainted 5.15.182-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025 Call Trace: dump_stack_lvl+0x168/0x230 lib/dump_stack.c:106 nmi_cpu_backtrace+0x397/0x3d0 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x163/0x280 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+0xe0f/0xe50 kernel/hung_task.c:369 kthread+0x436/0x520 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: 9 Comm: kworker/u4:0 Not tainted 5.15.182-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025 Workqueue: phy9 ieee80211_iface_work RIP: 0010:__lock_is_held kernel/locking/lockdep.c:5366 [inline] RIP: 0010:lock_is_held_type+0xa6/0x190 kernel/locking/lockdep.c:5666 Code: 83 bb e8 0a 00 00 00 7e 4b 44 89 fd 49 89 df 49 81 c7 f0 0a 00 00 45 31 e4 49 83 fc 31 73 24 4c 89 ff 4c 89 f6 e8 fa 01 00 00 <85> c0 75 2a 49 ff c4 48 63 83 e8 0a 00 00 49 83 c7 28 49 39 c4 7c RSP: 0018:ffffc90000007b98 EFLAGS: 00000046 RAX: 0000000000000001 RBX: ffff88813fed0000 RCX: 0000000000000001 RDX: 0000000000000008 RSI: ffff88807224c5a8 RDI: ffff88813fed0b40 RBP: 00000000ffffffff R08: dffffc0000000000 R09: fffffbfff1ad1576 R10: fffffbfff1ad1576 R11: 1ffffffff1ad1575 R12: 0000000000000002 R13: 0000000000000046 R14: ffff88807224c5a8 R15: ffff88813fed0b40 FS: 0000000000000000(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff924e69bc CR3: 000000002336e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_is_held include/linux/lockdep.h:287 [inline] select_task_rq_fair+0x9b/0x3320 kernel/sched/fair.c:7164 select_task_rq kernel/sched/core.c:3433 [inline] try_to_wake_up+0x5d8/0x1050 kernel/sched/core.c:4131 hrtimer_wakeup+0x4a/0x60 kernel/time/hrtimer.c:1944 __run_hrtimer kernel/time/hrtimer.c:1690 [inline] __hrtimer_run_queues+0x53d/0xc40 kernel/time/hrtimer.c:1754 hrtimer_interrupt+0x3bb/0x8d0 kernel/time/hrtimer.c:1816 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1097 [inline] __sysvec_apic_timer_interrupt+0x137/0x4a0 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:lock_acquire+0x1f2/0x3f0 kernel/locking/lockdep.c:5627 Code: 00 9c 8f 84 24 80 00 00 00 f6 84 24 81 00 00 00 02 0f 85 f6 00 00 00 41 f7 c6 00 02 00 00 74 01 fb 48 c7 44 24 60 0e 36 e0 45 <4b> c7 44 3d 00 00 00 00 00 66 43 c7 44 3d 09 00 00 43 c6 44 3d 0b RSP: 0018:ffffc90000ce7b20 EFLAGS: 00000206 RAX: 0000000000000001 RBX: 0000000000000000 RCX: 834e28286663d600 RDX: 0000000000000000 RSI: ffffffff8a0b2260 RDI: ffffffff8a59a2c0 RBP: ffffc90000ce7c28 R08: dffffc0000000000 R09: fffffbfff1ff3438 R10: fffffbfff1ff3438 R11: 1ffffffff1ff3437 R12: ffffc90000ce7d00 R13: 1ffff9200019cf70 R14: 0000000000000246 R15: dffffc0000000000 process_one_work+0x7bf/0x1000 kernel/workqueue.c:2286 worker_thread+0xaa8/0x12a0 kernel/workqueue.c:2457 kthread+0x436/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287