INFO: task kworker/u4:10:2816 blocked for more than 143 seconds.
Not tainted 6.6.0-rc2-syzkaller-00386-g3aba70aed91f #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/u4:10 state:D stack:25472 pid:2816 ppid:2 flags:0x00004000
Workqueue: btrfs-endio-write btrfs_work_helper
Call Trace:
context_switch kernel/sched/core.c:5382 [inline]
__schedule+0xee1/0x5a10 kernel/sched/core.c:6695
schedule+0xe7/0x1b0 kernel/sched/core.c:6771
wait_on_state fs/btrfs/extent-io-tree.c:719 [inline]
wait_extent_bit+0x578/0x670 fs/btrfs/extent-io-tree.c:763
lock_extent+0x104/0x190 fs/btrfs/extent-io-tree.c:1755
btrfs_finish_one_ordered+0xa6d/0x20b0 fs/btrfs/inode.c:3080
btrfs_work_helper+0x20b/0xba0 fs/btrfs/async-thread.c:314
process_one_work+0x884/0x15c0 kernel/workqueue.c:2630
process_scheduled_works kernel/workqueue.c:2703 [inline]
worker_thread+0x8b9/0x1290 kernel/workqueue.c:2784
kthread+0x33c/0x440 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:304
INFO: task syz-executor464:5240 blocked for more than 143 seconds.
Not tainted 6.6.0-rc2-syzkaller-00386-g3aba70aed91f #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor464 state:D stack:25184 pid:5240 ppid:5070 flags:0x00004006
Call Trace:
context_switch kernel/sched/core.c:5382 [inline]
__schedule+0xee1/0x5a10 kernel/sched/core.c:6695
schedule+0xe7/0x1b0 kernel/sched/core.c:6771
schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6830
rwsem_down_write_slowpath+0x53d/0x12a0 kernel/locking/rwsem.c:1178
__down_write_common kernel/locking/rwsem.c:1306 [inline]
__down_write kernel/locking/rwsem.c:1315 [inline]
down_write+0x1d3/0x200 kernel/locking/rwsem.c:1574
inode_lock include/linux/fs.h:802 [inline]
btrfs_inode_lock+0xc4/0x100 fs/btrfs/inode.c:377
btrfs_sync_file+0x472/0x1310 fs/btrfs/file.c:1817
vfs_fsync_range+0x141/0x220 fs/sync.c:188
generic_write_sync include/linux/fs.h:2584 [inline]
btrfs_do_write_iter+0x576/0x1120 fs/btrfs/file.c:1690
call_write_iter include/linux/fs.h:1956 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x650/0xe40 fs/read_write.c:584
ksys_write+0x12f/0x250 fs/read_write.c:637
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fb4b2b6be19
RSP: 002b:00007fb4b2b28218 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fb4b2bf86c8 RCX: 00007fb4b2b6be19
RDX: 0000000000000090 RSI: 0000000020000000 RDI: 0000000000000006
RBP: 00007fb4b2bf86c0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fb4b2bc51b0
R13: 61635f65646f6e69 R14: 65646f7475616f6e R15: 7261637369646f6e
INFO: task syz-executor464:5256 blocked for more than 143 seconds.
Not tainted 6.6.0-rc2-syzkaller-00386-g3aba70aed91f #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor464 state:D stack:26512 pid:5256 ppid:5070 flags:0x00004006
Call Trace:
context_switch kernel/sched/core.c:5382 [inline]
__schedule+0xee1/0x5a10 kernel/sched/core.c:6695
schedule+0xe7/0x1b0 kernel/sched/core.c:6771
wait_on_state fs/btrfs/extent-io-tree.c:719 [inline]
wait_extent_bit+0x578/0x670 fs/btrfs/extent-io-tree.c:763
lock_extent+0x104/0x190 fs/btrfs/extent-io-tree.c:1755
btrfs_page_mkwrite+0x653/0x11e0 fs/btrfs/inode.c:8143
do_page_mkwrite+0x17a/0x380 mm/memory.c:2931
wp_page_shared mm/memory.c:3291 [inline]
do_wp_page+0xc66/0x34b0 mm/memory.c:3376
handle_pte_fault mm/memory.c:4994 [inline]
__handle_mm_fault+0x1d1b/0x3e10 mm/memory.c:5119
handle_mm_fault+0x478/0xa00 mm/memory.c:5284
do_user_addr_fault+0x3d1/0x1000 arch/x86/mm/fault.c:1413
handle_page_fault arch/x86/mm/fault.c:1505 [inline]
exc_page_fault+0x5c/0xd0 arch/x86/mm/fault.c:1561
asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570
RIP: 0010:rep_movs_alternative+0x33/0x70 arch/x86/lib/copy_user_64.S:58
Code: 40 83 f9 08 73 21 85 c9 74 0f 8a 06 88 07 48 ff c7 48 ff c6 48 ff c9 75 f1 c3 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 8b 06 <48> 89 07 48 83 c6 08 48 83 c7 08 83 e9 08 74 df 83 f9 08 73 e8 eb
RSP: 0000:ffffc90003bff720 EFLAGS: 00050206
RAX: 0000000000000000 RBX: 0000000000000038 RCX: 0000000000000038
RDX: fffff5200077fefb RSI: ffffc90003bff7a0 RDI: 0000000020000120
RBP: 0000000020000120 R08: 0000000000000000 R09: fffff5200077fefa
R10: ffffc90003bff7d7 R11: 0000000000001000 R12: ffffc90003bff7a0
R13: 0000000020000158 R14: 0000000000000000 R15: 0000000000000000
copy_user_generic arch/x86/include/asm/uaccess_64.h:112 [inline]
raw_copy_to_user arch/x86/include/asm/uaccess_64.h:133 [inline]
_copy_to_user lib/usercopy.c:41 [inline]
_copy_to_user+0xa8/0xb0 lib/usercopy.c:34
copy_to_user include/linux/uaccess.h:191 [inline]
fiemap_fill_next_extent+0x232/0x380 fs/ioctl.c:145
emit_fiemap_extent+0x195/0x380 fs/btrfs/extent_io.c:2472
fiemap_process_hole+0x52d/0x620 fs/btrfs/extent_io.c:2730
extent_fiemap+0x12be/0x19f0 fs/btrfs/extent_io.c:2945
btrfs_fiemap+0xe4/0x160 fs/btrfs/inode.c:7815
ioctl_fiemap fs/ioctl.c:220 [inline]
do_vfs_ioctl+0x339/0x1920 fs/ioctl.c:811
__do_sys_ioctl fs/ioctl.c:869 [inline]
__se_sys_ioctl fs/ioctl.c:857 [inline]
__x64_sys_ioctl+0x112/0x210 fs/ioctl.c:857
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fb4b2b6be19
RSP: 002b:00007fb4ab707218 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fb4b2bf86d8 RCX: 00007fb4b2b6be19
RDX: 0000000020000100 RSI: 00000000c020660b RDI: 0000000000000005
RBP: 00007fb4b2bf86d0 R08: 00007ffd6e117d57 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fb4b2bc51b0
R13: 61635f65646f6e69 R14: 65646f7475616f6e R15: 7261637369646f6e
Showing all locks held in the system:
1 lock held by khungtaskd/28:
#0: ffffffff8cba7920 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:303 [inline]
#0: ffffffff8cba7920 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:749 [inline]
#0: ffffffff8cba7920 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x75/0x340 kernel/locking/lockdep.c:6613
3 locks held by kworker/u4:10/2816:
#0: ffff88802998e538 ((wq_completion)btrfs-endio-write){+.+.}-{0:0}, at: process_one_work+0x787/0x15c0 kernel/workqueue.c:2605
#1: ffffc9000aa5fd80 ((work_completion)(&work->normal_work)){+.+.}-{0:0}, at: process_one_work+0x7e9/0x15c0 kernel/workqueue.c:2606
#2: ffff888075fb2498 (btrfs_ordered_extent){++++}-{0:0}, at: btrfs_finish_one_ordered+0x673/0x20b0 fs/btrfs/inode.c:3040
2 locks held by getty/4789:
#0: ffff888027dc50a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x24/0x80 drivers/tty/tty_ldisc.c:243
#1: ffffc900020482f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xfc5/0x1480 drivers/tty/n_tty.c:2206
3 locks held by syz-executor464/5240:
#0: ffff888028256d48 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe7/0x170 fs/file.c:1064
#1: ffff888076210410 (sb_writers#10){.+.+}-{0:0}, at: ksys_write+0x12f/0x250 fs/read_write.c:637
#2: ffff888073394690 (&sb->s_type->i_mutex_key#15){++++}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline]
#2: ffff888073394690 (&sb->s_type->i_mutex_key#15){++++}-{3:3}, at: btrfs_inode_lock+0xc4/0x100 fs/btrfs/inode.c:377
4 locks held by syz-executor464/5256:
#0: ffff888073394690 (&sb->s_type->i_mutex_key#15){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:812 [inline]
#0: ffff888073394690 (&sb->s_type->i_mutex_key#15){++++}-{3:3}, at: btrfs_inode_lock+0xf9/0x100 fs/btrfs/inode.c:369
#1: ffff888019bb0220 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:165 [inline]
#1: ffff888019bb0220 (&mm->mmap_lock){++++}-{3:3}, at: get_mmap_lock_carefully mm/memory.c:5311 [inline]
#1: ffff888019bb0220 (&mm->mmap_lock){++++}-{3:3}, at: lock_mm_and_find_vma+0x35/0x760 mm/memory.c:5371
#2: ffff888076210508 (sb_pagefaults){.+.+}-{0:0}, at: do_page_mkwrite+0x17a/0x380 mm/memory.c:2931
#3: ffff888073394518 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_page_mkwrite+0x6e4/0x11e0 fs/btrfs/inode.c:8132
=============================================
NMI backtrace for cpu 0
CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.6.0-rc2-syzkaller-00386-g3aba70aed91f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/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/0x380 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+0x33c/0x440 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:304
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 10 Comm: kworker/u4:0 Not tainted 6.6.0-rc2-syzkaller-00386-g3aba70aed91f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023
Workqueue: events_unbound toggle_allocation_gate
RIP: 0010:__sanitizer_cov_trace_pc+0x3b/0x70 kernel/kcov.c:207
Code: 81 e1 00 01 00 00 65 48 8b 14 25 00 bd 03 00 a9 00 01 ff 00 74 0e 85 c9 74 35 8b 82 04 16 00 00 85 c0 74 2b 8b 82 e0 15 00 00 <83> f8 02 75 20 48 8b 8a e8 15 00 00 8b 92 e4 15 00 00 48 8b 01 48
RSP: 0018:ffffc9000030f818 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 000000000000000f RCX: 0000000000000000
RDX: ffff888019662040 RSI: ffffffff8a329951 RDI: 0000000000000007
RBP: 0000000000000001 R08: 0000000000000007 R09: 0000000000000005
R10: 0000000000000001 R11: 0000000000000000 R12: ffffffff8a867bab
R13: ffffffff8a867baa R14: ffffffff8a867bac R15: dffffc0000000000
FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055aae45cf028 CR3: 000000000c976000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__insn_get_emulate_prefix arch/x86/lib/insn.c:91 [inline]
insn_get_emulate_prefix arch/x86/lib/insn.c:106 [inline]
insn_get_prefixes+0xf1/0x1120 arch/x86/lib/insn.c:134
insn_get_opcode+0x462/0xa30 arch/x86/lib/insn.c:272
insn_get_modrm+0x30e/0x730 arch/x86/lib/insn.c:343
insn_get_sib+0x1ad/0x320 arch/x86/lib/insn.c:421
insn_get_displacement+0x23a/0x680 arch/x86/lib/insn.c:464
insn_get_immediate+0x550/0x1c50 arch/x86/lib/insn.c:632
insn_get_length arch/x86/lib/insn.c:707 [inline]
insn_decode+0x2ae/0x340 arch/x86/lib/insn.c:747
text_poke_loc_init+0xdf/0x5d0 arch/x86/kernel/alternative.c:2307
arch_jump_label_transform_queue+0xaf/0x110 arch/x86/kernel/jump_label.c:138
__jump_label_update+0x125/0x420 kernel/jump_label.c:475
jump_label_update+0x32e/0x410 kernel/jump_label.c:829
static_key_disable_cpuslocked+0x154/0x1b0 kernel/jump_label.c:235
static_key_disable+0x1a/0x20 kernel/jump_label.c:243
toggle_allocation_gate mm/kfence/core.c:835 [inline]
toggle_allocation_gate+0x13f/0x250 mm/kfence/core.c:822
process_one_work+0x884/0x15c0 kernel/workqueue.c:2630
process_scheduled_works kernel/workqueue.c:2703 [inline]
worker_thread+0x8b9/0x1290 kernel/workqueue.c:2784
kthread+0x33c/0x440 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:304
INFO: NMI handler (nmi_cpu_backtrace_handler) took too long to run: 1.351 msecs