INFO: task kworker/u4:2:40 blocked for more than 143 seconds.
Not tainted 6.3.0-rc4-syzkaller-00016-g91fe204578ba #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/u4:2 state:D stack:25344 pid:40 ppid:2 flags:0x00004000
Workqueue: btrfs-endio-write btrfs_work_helper
Call Trace:
context_switch kernel/sched/core.c:5307 [inline]
__schedule+0xc91/0x5770 kernel/sched/core.c:6625
schedule+0xde/0x1a0 kernel/sched/core.c:6701
wait_on_state fs/btrfs/extent-io-tree.c:707 [inline]
wait_extent_bit+0x56e/0x670 fs/btrfs/extent-io-tree.c:751
lock_extent+0x120/0x1c0 fs/btrfs/extent-io-tree.c:1742
btrfs_finish_ordered_io+0x820/0x2150 fs/btrfs/inode.c:3201
btrfs_work_helper+0x210/0xd80 fs/btrfs/async-thread.c:280
process_one_work+0x991/0x15c0 kernel/workqueue.c:2390
worker_thread+0x669/0x1090 kernel/workqueue.c:2537
kthread+0x2e8/0x3a0 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
INFO: task syz-executor133:9301 blocked for more than 143 seconds.
Not tainted 6.3.0-rc4-syzkaller-00016-g91fe204578ba #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor133 state:D stack:24944 pid:9301 ppid:5131 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:5307 [inline]
__schedule+0xc91/0x5770 kernel/sched/core.c:6625
schedule+0xde/0x1a0 kernel/sched/core.c:6701
schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6760
rwsem_down_write_slowpath+0x3e2/0x1220 kernel/locking/rwsem.c:1178
__down_write_common kernel/locking/rwsem.c:1306 [inline]
__down_write kernel/locking/rwsem.c:1315 [inline]
down_write+0x1d2/0x200 kernel/locking/rwsem.c:1574
inode_lock include/linux/fs.h:758 [inline]
btrfs_inode_lock+0x7e/0xf0 fs/btrfs/inode.c:177
btrfs_sync_file+0x455/0x12f0 fs/btrfs/file.c:1817
vfs_fsync_range+0x13e/0x230 fs/sync.c:188
generic_write_sync include/linux/fs.h:2452 [inline]
btrfs_do_write_iter+0x67d/0x1470 fs/btrfs/file.c:1684
call_write_iter include/linux/fs.h:1851 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x9ed/0xe10 fs/read_write.c:584
ksys_write+0x12b/0x250 fs/read_write.c:637
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7ff7c3dd7199
RSP: 002b:00007ff7c3d7a208 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007ff7c3e59788 RCX: 00007ff7c3dd7199
RDX: 0000000000000090 RSI: 0000000020000000 RDI: 0000000000000006
RBP: 00007ff7c3e59780 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ff7c3e5978c
R13: 00007ffd5931161f R14: 00007ff7c3d7a300 R15: 0000000000022000
INFO: task syz-executor133:9318 blocked for more than 143 seconds.
Not tainted 6.3.0-rc4-syzkaller-00016-g91fe204578ba #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor133 state:D stack:26320 pid:9318 ppid:5131 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:5307 [inline]
__schedule+0xc91/0x5770 kernel/sched/core.c:6625
schedule+0xde/0x1a0 kernel/sched/core.c:6701
wait_on_state fs/btrfs/extent-io-tree.c:707 [inline]
wait_extent_bit+0x56e/0x670 fs/btrfs/extent-io-tree.c:751
lock_extent+0x120/0x1c0 fs/btrfs/extent-io-tree.c:1742
btrfs_page_mkwrite+0x646/0x1190 fs/btrfs/inode.c:8163
do_page_mkwrite+0x19b/0x680 mm/memory.c:2925
wp_page_shared mm/memory.c:3274 [inline]
do_wp_page+0x356/0x3610 mm/memory.c:3356
handle_pte_fault mm/memory.c:4927 [inline]
__handle_mm_fault+0x19a1/0x3e60 mm/memory.c:5051
handle_mm_fault+0x2ba/0x9c0 mm/memory.c:5197
do_user_addr_fault+0x475/0x1230 arch/x86/mm/fault.c:1407
handle_page_fault arch/x86/mm/fault.c:1498 [inline]
exc_page_fault+0x98/0x170 arch/x86/mm/fault.c:1554
asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570
RIP: 0010:copy_user_generic_string+0x30/0x50 arch/x86/lib/copy_user_64.S:133
Code: cb 83 fa 08 72 27 89 f9 83 e1 07 74 15 83 e9 08 f7 d9 29 ca 8a 06 88 07 48 ff c6 48 ff c7 ff c9 75 f2 89 d1 c1 e9 03 83 e2 07 48 a5 89 d1 f3 a4 31 c0 0f 01 ca c3 8d 0c ca 89 ca eb 2c 66 66
RSP: 0018:ffffc9000d057730 EFLAGS: 00050246
RAX: 0000000000000001 RBX: 0000000000000038 RCX: 0000000000000007
RDX: 0000000000000000 RSI: ffffc9000d0577a0 RDI: 0000000020000120
RBP: 0000000020000120 R08: 0000000000000000 R09: ffffc9000d0577d7
R10: fffff52001a0aefa R11: 0000000000000000 R12: 00007fffffffefc8
R13: ffffc9000d0577a0 R14: 0000000020000120 R15: ffffc9000d0577a0
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 lib/usercopy.c:41 [inline]
_copy_to_user+0x127/0x150 lib/usercopy.c:34
copy_to_user include/linux/uaccess.h:169 [inline]
fiemap_fill_next_extent+0x217/0x370 fs/ioctl.c:144
emit_fiemap_extent+0x18e/0x380 fs/btrfs/extent_io.c:3002
fiemap_process_hole+0x516/0x610 fs/btrfs/extent_io.c:3260
extent_fiemap+0x144d/0x19b0 fs/btrfs/extent_io.c:3475
btrfs_fiemap+0xe9/0x170 fs/btrfs/inode.c:7835
ioctl_fiemap fs/ioctl.c:219 [inline]
do_vfs_ioctl+0x466/0x1670 fs/ioctl.c:810
__do_sys_ioctl fs/ioctl.c:868 [inline]
__se_sys_ioctl fs/ioctl.c:856 [inline]
__x64_sys_ioctl+0x10c/0x210 fs/ioctl.c:856
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7ff7c3dd7199
RSP: 002b:00007ff7bc959208 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007ff7c3e59798 RCX: 00007ff7c3dd7199
RDX: 0000000020000100 RSI: 00000000c020660b RDI: 0000000000000005
RBP: 00007ff7c3e59790 R08: 00007ff7bc959700 R09: 0000000000000000
R10: 00007ff7bc959700 R11: 0000000000000246 R12: 00007ff7c3e5979c
R13: 00007ffd5931161f R14: 00007ff7bc959300 R15: 0000000000022000
Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/12:
#0: ffffffff8c794a70 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:510
1 lock held by rcu_tasks_trace/13:
#0: ffffffff8c794770 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:510
1 lock held by khungtaskd/27:
#0: ffffffff8c7955c0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x340 kernel/locking/lockdep.c:6495
3 locks held by kworker/u4:2/40:
#0: ffff888022480938 ((wq_completion)btrfs-endio-write){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
#0: ffff888022480938 ((wq_completion)btrfs-endio-write){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline]
#0: ffff888022480938 ((wq_completion)btrfs-endio-write){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline]
#0: ffff888022480938 ((wq_completion)btrfs-endio-write){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:639 [inline]
#0: ffff888022480938 ((wq_completion)btrfs-endio-write){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:666 [inline]
#0: ffff888022480938 ((wq_completion)btrfs-endio-write){+.+.}-{0:0}, at: process_one_work+0x87a/0x15c0 kernel/workqueue.c:2361
#1: ffffc90000b17da8 ((work_completion)(&work->normal_work)){+.+.}-{0:0}, at: process_one_work+0x8ae/0x15c0 kernel/workqueue.c:2365
#2: ffff8880770264a8 (btrfs_ordered_extent){++++}-{0:0}, at: btrfs_finish_ordered_io+0x248/0x2150 fs/btrfs/inode.c:3157
2 locks held by getty/4753:
#0: ffff888149fe2098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x26/0x80 drivers/tty/tty_ldisc.c:244
#1: ffffc900015a02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xef4/0x13e0 drivers/tty/n_tty.c:2177
3 locks held by syz-executor133/9301:
#0: ffff888024a360e8 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe7/0x100 fs/file.c:1047
#1: ffff888022ff0460 (sb_writers#10){.+.+}-{0:0}, at: ksys_write+0x12b/0x250 fs/read_write.c:637
#2: ffff888073a21848 (&sb->s_type->i_mutex_key#15){++++}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline]
#2: ffff888073a21848 (&sb->s_type->i_mutex_key#15){++++}-{3:3}, at: btrfs_inode_lock+0x7e/0xf0 fs/btrfs/inode.c:177
4 locks held by syz-executor133/9318:
#0: ffff888073a21848 (&sb->s_type->i_mutex_key#15){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:768 [inline]
#0: ffff888073a21848 (&sb->s_type->i_mutex_key#15){++++}-{3:3}, at: btrfs_inode_lock+0xd8/0xf0 fs/btrfs/inode.c:169
#1: ffff88802b45c258 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:136 [inline]
#1: ffff88802b45c258 (&mm->mmap_lock){++++}-{3:3}, at: do_user_addr_fault+0x276/0x1230 arch/x86/mm/fault.c:1348
#2: ffff888022ff0558 (sb_pagefaults){.+.+}-{0:0}, at: do_page_mkwrite+0x19b/0x680 mm/memory.c:2925
#3: ffff888073a216d0 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_page_mkwrite+0x6df/0x1190 fs/btrfs/inode.c:8152
=============================================
NMI backtrace for cpu 1
CPU: 1 PID: 27 Comm: khungtaskd Not tainted 6.3.0-rc4-syzkaller-00016-g91fe204578ba #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106
nmi_cpu_backtrace+0x29c/0x350 lib/nmi_backtrace.c:113
nmi_trigger_cpumask_backtrace+0x2a4/0x300 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline]
watchdog+0xe16/0x1090 kernel/hung_task.c:379
kthread+0x2e8/0x3a0 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
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:48 [inline]
NMI backtrace for cpu 0 skipped: idling at arch_safe_halt arch/x86/include/asm/irqflags.h:86 [inline]
NMI backtrace for cpu 0 skipped: idling at acpi_safe_halt+0x40/0x50 drivers/acpi/processor_idle.c:112