INFO: task syz-executor.0:1873 blocked for more than 143 seconds.
Not tainted 6.1.73-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.0 state:D stack:12520 pid:1873 ppid:1472 flags:0x00004006
Call Trace:
context_switch kernel/sched/core.c:5245 [inline]
__schedule+0x57f/0x850 kernel/sched/core.c:6558
schedule+0x50/0xb0 kernel/sched/core.c:6634
wait_on_state fs/btrfs/extent-io-tree.c:709 [inline]
wait_extent_bit+0x152/0x1c0 fs/btrfs/extent-io-tree.c:742
lock_extent+0x64/0xf0 fs/btrfs/extent-io-tree.c:1657
btrfs_page_mkwrite+0x1c7/0x630 fs/btrfs/inode.c:8539
do_page_mkwrite+0x43/0x140 mm/memory.c:2992
wp_page_shared+0x5e/0x200 mm/memory.c:3341
handle_pte_fault mm/memory.c:5011 [inline]
__handle_mm_fault mm/memory.c:5135 [inline]
handle_mm_fault+0x711/0x1460 mm/memory.c:5256
do_user_addr_fault arch/x86/mm/fault.c:1380 [inline]
handle_page_fault arch/x86/mm/fault.c:1471 [inline]
exc_page_fault+0x21c/0x540 arch/x86/mm/fault.c:1527
asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:570
RIP: 0010:copy_user_short_string+0xd/0x40 arch/x86/lib/copy_user_64.S:233
Code: 74 0a 89 d1 f3 a4 89 c8 0f 01 ca c3 89 d0 0f 01 ca c3 01 ca eb e7 0f 1f 80 00 00 00 00 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:ffffc90001d6bc80 EFLAGS: 00050202
RAX: 00007fffffffefc8 RBX: 0000000000000038 RCX: 0000000000000007
RDX: 0000000000000000 RSI: ffffc90001d6bca8 RDI: 00000000200000e0
RBP: 0000000000000001 R08: 0000000000000000 R09: 00000000200000e0
R10: 0000000000000000 R11: 0000000000000001 R12: ffff8881067bf440
R13: 0000000000000000 R14: 00000000200000e0 R15: ffffc90001d6bca8
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+0x38/0x50 lib/usercopy.c:41
copy_to_user include/linux/uaccess.h:169 [inline]
fiemap_fill_next_extent+0xae/0x100 fs/ioctl.c:144
emit_last_fiemap_cache fs/btrfs/extent_io.c:3600 [inline]
extent_fiemap+0xf14/0x10f0 fs/btrfs/extent_io.c:4131
btrfs_fiemap+0x6a/0x90 fs/btrfs/inode.c:8211
ioctl_fiemap fs/ioctl.c:219 [inline]
do_vfs_ioctl+0x362/0xc30 fs/ioctl.c:810
__do_sys_ioctl fs/ioctl.c:868 [inline]
__se_sys_ioctl+0x49/0xb0 fs/ioctl.c:856
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fc44de7c959
RSP: 002b:00007fc44ec100c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fc44df9bf80 RCX: 00007fc44de7c959
RDX: 00000000200000c0 RSI: 00000000c020660b RDI: 0000000000000004
RBP: 00007fc44ded8c88 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000006 R14: 00007fc44df9bf80 R15: 00007ffc2ca28538
Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/12:
#0: ffffffff8357bf88 (rcu_tasks.tasks_gp_mutex){....}-{3:3}, at: rcu_tasks_one_gp kernel/rcu/tasks.h:516 [inline]
#0: ffffffff8357bf88 (rcu_tasks.tasks_gp_mutex){....}-{3:3}, at: rcu_tasks_kthread+0x98/0x450 kernel/rcu/tasks.h:561
1 lock held by rcu_tasks_trace/13:
#0: ffffffff8357c5d8 (rcu_tasks_trace.tasks_gp_mutex){....}-{3:3}, at: rcu_tasks_one_gp kernel/rcu/tasks.h:516 [inline]
#0: ffffffff8357c5d8 (rcu_tasks_trace.tasks_gp_mutex){....}-{3:3}, at: rcu_tasks_kthread+0x98/0x450 kernel/rcu/tasks.h:561
1 lock held by khungtaskd/28:
#0: ffffffff8357be60 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:306 [inline]
#0: ffffffff8357be60 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:747 [inline]
#0: ffffffff8357be60 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x2c/0x100 kernel/locking/lockdep.c:6494
2 locks held by getty/911:
#0: ffff8881001ab098 (&tty->ldisc_sem){....}-{0:0}, at: tty_ldisc_ref_wait+0x1c/0x40 drivers/tty/tty_ldisc.c:244
#1: ffffc900018c32f0 (&ldata->atomic_read_lock){....}-{3:3}, at: n_tty_read+0x20a/0x8e0 drivers/tty/n_tty.c:2188
4 locks held by syz-executor.0/1873:
#0: ffff8881780785e0 (&sb->s_type->i_mutex_key#18){....}-{3:3}, at: inode_lock_shared include/linux/fs.h:766 [inline]
#0: ffff8881780785e0 (&sb->s_type->i_mutex_key#18){....}-{3:3}, at: btrfs_inode_lock+0x2e/0x70 fs/btrfs/inode.c:147
#1: ffff88810aac8158 (&mm->mmap_lock){....}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:136 [inline]
#1: ffff88810aac8158 (&mm->mmap_lock){....}-{3:3}, at: get_mmap_lock_carefully mm/memory.c:5284 [inline]
#1: ffff88810aac8158 (&mm->mmap_lock){....}-{3:3}, at: lock_mm_and_find_vma+0x21/0x120 mm/memory.c:5346
#2: ffff888100374530 (sb_pagefaults){....}-{0:0}, at: do_page_mkwrite+0x43/0x140 mm/memory.c:2992
#3: ffff888178078468 (&ei->i_mmap_lock){....}-{3:3}, at: btrfs_page_mkwrite+0x13b/0x630 fs/btrfs/inode.c:8528
1 lock held by udevd/1894:
#0: ffff888237c2c958 (&rq->__lock){....}-{2:2}, at: raw_spin_rq_lock_nested kernel/sched/core.c:537 [inline]
#0: ffff888237c2c958 (&rq->__lock){....}-{2:2}, at: raw_spin_rq_lock kernel/sched/sched.h:1354 [inline]
#0: ffff888237c2c958 (&rq->__lock){....}-{2:2}, at: rq_lock kernel/sched/sched.h:1644 [inline]
#0: ffff888237c2c958 (&rq->__lock){....}-{2:2}, at: __schedule+0xae/0x850 kernel/sched/core.c:6475
1 lock held by syz-executor.0/7204:
4 locks held by udevadm/7205:
=============================================
NMI backtrace for cpu 1
CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.1.73-syzkaller #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+0x7f/0xc2 lib/dump_stack.c:106
nmi_cpu_backtrace+0x13e/0x160 lib/nmi_backtrace.c:111
nmi_trigger_cpumask_backtrace+0x9c/0x150 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:220 [inline]
watchdog+0x54d/0x570 kernel/hung_task.c:377
kthread+0xd1/0xe0 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0 skipped: idling at native_safe_halt arch/x86/include/asm/irqflags.h:51 [inline]
NMI backtrace for cpu 0 skipped: idling at arch_safe_halt arch/x86/include/asm/irqflags.h:89 [inline]
NMI backtrace for cpu 0 skipped: idling at acpi_safe_halt drivers/acpi/processor_idle.c:112 [inline]
NMI backtrace for cpu 0 skipped: idling at acpi_idle_do_entry drivers/acpi/processor_idle.c:572 [inline]
NMI backtrace for cpu 0 skipped: idling at acpi_idle_enter+0xe5/0x130 drivers/acpi/processor_idle.c:709