INFO: task syz-executor.4:17274 blocked for more than 143 seconds.
Not tainted 6.1.0-syzkaller-09941-ge2ca6ba6ba01 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.4 state:D stack:22968 pid:17274 ppid:5343 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:5244 [inline]
__schedule+0x995/0xe20 kernel/sched/core.c:6556
schedule+0xcb/0x190 kernel/sched/core.c:6632
io_schedule+0x83/0x100 kernel/sched/core.c:8812
folio_wait_bit_common+0x83a/0x12a0 mm/filemap.c:1297
extent_write_cache_pages+0x6c8/0x1220 fs/btrfs/extent_io.c:3051
extent_writepages+0x21f/0x550 fs/btrfs/extent_io.c:3191
do_writepages+0x3c3/0x680 mm/page-writeback.c:2581
filemap_fdatawrite_wbc+0x11e/0x170 mm/filemap.c:388
__filemap_fdatawrite_range mm/filemap.c:421 [inline]
__filemap_fdatawrite mm/filemap.c:427 [inline]
filemap_flush+0x146/0x1d0 mm/filemap.c:454
btrfs_release_file+0x10a/0x120 fs/btrfs/file.c:1720
__fput+0x3ba/0x880 fs/file_table.c:320
task_work_run+0x243/0x300 kernel/task_work.c:179
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop+0x124/0x150 kernel/entry/common.c:171
exit_to_user_mode_prepare+0xb2/0x140 kernel/entry/common.c:203
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x26/0x60 kernel/entry/common.c:296
do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f8a4303df8b
RSP: 002b:00007fff1c847c40 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000005 RCX: 00007f8a4303df8b
RDX: 0000001b30a20000 RSI: 0000001b30a29a40 RDI: 0000000000000004
RBP: 00007f8a431ad980 R08: 0000000000000000 R09: 00000000c340d7ab
R10: 00007fff1c9a10b8 R11: 0000000000000293 R12: 0000000000080e62
R13: 00007fff1c847d40 R14: 00007fff1c847d60 R15: 0000000000000032
INFO: task syz-executor.4:17362 blocked for more than 144 seconds.
Not tainted 6.1.0-syzkaller-09941-ge2ca6ba6ba01 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.4 state:D stack:20384 pid:17362 ppid:5343 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:5244 [inline]
__schedule+0x995/0xe20 kernel/sched/core.c:6556
schedule+0xcb/0x190 kernel/sched/core.c:6632
wait_on_state fs/btrfs/extent-io-tree.c:707 [inline]
wait_extent_bit+0x577/0x6f0 fs/btrfs/extent-io-tree.c:751
lock_extent+0x1c2/0x280 fs/btrfs/extent-io-tree.c:1742
find_lock_delalloc_range+0x4e6/0x9c0 fs/btrfs/extent_io.c:468
writepage_delalloc+0x1ef/0x540 fs/btrfs/extent_io.c:1843
__extent_writepage+0x736/0x14e0 fs/btrfs/extent_io.c:2154
extent_write_cache_pages+0x983/0x1220 fs/btrfs/extent_io.c:3071
extent_writepages+0x21f/0x550 fs/btrfs/extent_io.c:3191
do_writepages+0x3c3/0x680 mm/page-writeback.c:2581
filemap_fdatawrite_wbc+0x11e/0x170 mm/filemap.c:388
__filemap_fdatawrite_range mm/filemap.c:421 [inline]
filemap_write_and_wait_range+0x1df/0x2e0 mm/filemap.c:674
__iomap_dio_rw+0xafd/0x20d0 fs/iomap/direct-io.c:572
iomap_dio_rw+0x42/0xa0 fs/iomap/direct-io.c:689
btrfs_dio_read+0x9c/0xe0 fs/btrfs/inode.c:8168
btrfs_direct_read fs/btrfs/file.c:3765 [inline]
btrfs_file_read_iter+0x399/0x6a0 fs/btrfs/file.c:3804
do_iter_read+0x6e3/0xc10 fs/read_write.c:796
vfs_readv fs/read_write.c:916 [inline]
do_preadv+0x1f4/0x330 fs/read_write.c:1008
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f8a4308c0d9
RSP: 002b:00007f8a43e06168 EFLAGS: 00000246 ORIG_RAX: 0000000000000147
RAX: ffffffffffffffda RBX: 00007f8a431ac050 RCX: 00007f8a4308c0d9
RDX: 0000000000000001 RSI: 0000000020000100 RDI: 0000000000000008
RBP: 00007f8a430e7ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff1c847bdf R14: 00007f8a43e06300 R15: 0000000000022000
INFO: task syz-executor.4:17375 blocked for more than 146 seconds.
Not tainted 6.1.0-syzkaller-09941-ge2ca6ba6ba01 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.4 state:D stack:20312 pid:17375 ppid:5343 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:5244 [inline]
__schedule+0x995/0xe20 kernel/sched/core.c:6556
schedule+0xcb/0x190 kernel/sched/core.c:6632
rwsem_down_write_slowpath+0xfc1/0x1480 kernel/locking/rwsem.c:1190
__down_write_common kernel/locking/rwsem.c:1305 [inline]
__down_write kernel/locking/rwsem.c:1314 [inline]
down_write+0x231/0x270 kernel/locking/rwsem.c:1563
inode_lock include/linux/fs.h:756 [inline]
btrfs_inode_lock+0x49/0xd0 fs/btrfs/inode.c:192
btrfs_buffered_write+0x1d2/0x1730 fs/btrfs/file.c:1202
btrfs_direct_write fs/btrfs/file.c:1593 [inline]
btrfs_do_write_iter+0xead/0x1280 fs/btrfs/file.c:1674
call_write_iter include/linux/fs.h:2186 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x7dc/0xc50 fs/read_write.c:584
ksys_write+0x177/0x2a0 fs/read_write.c:637
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f8a4308c0d9
RSP: 002b:00007f8a43de5168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f8a431ac120 RCX: 00007f8a4308c0d9
RDX: 0000000000000049 RSI: 0000000020000180 RDI: 0000000000000005
RBP: 00007f8a430e7ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff1c847bdf R14: 00007f8a43de5300 R15: 0000000000022000
INFO: task syz-executor.4:17380 blocked for more than 146 seconds.
Not tainted 6.1.0-syzkaller-09941-ge2ca6ba6ba01 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.4 state:D stack:21640 pid:17380 ppid:5343 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:5244 [inline]
__schedule+0x995/0xe20 kernel/sched/core.c:6556
schedule+0xcb/0x190 kernel/sched/core.c:6632
io_schedule+0x83/0x100 kernel/sched/core.c:8812
folio_wait_bit_common+0x83a/0x12a0 mm/filemap.c:1297
btrfs_page_mkwrite+0x41f/0xc80 fs/btrfs/inode.c:8527
do_page_mkwrite+0x19e/0x5e0 mm/memory.c:2947
wp_page_shared+0x15e/0x380 mm/memory.c:3295
handle_pte_fault mm/memory.c:4949 [inline]
__handle_mm_fault mm/memory.c:5073 [inline]
handle_mm_fault+0x1ab1/0x2640 mm/memory.c:5219
do_user_addr_fault+0x69b/0xcb0 arch/x86/mm/fault.c:1428
handle_page_fault arch/x86/mm/fault.c:1519 [inline]
exc_page_fault+0x7a/0x110 arch/x86/mm/fault.c:1575
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:ffffc90004e9f3b0 EFLAGS: 00050202
RAX: ffffffff843c8b01 RBX: 00007fffffffefc8 RCX: 0000000000000007
RDX: 0000000000000000 RSI: ffffc90004e9f460 RDI: 00000000200008a0
RBP: ffffc90004e9f510 R08: 0000000000000000 R09: fffff520009d3e93
R10: fffff520009d3e93 R11: 1ffff920009d3e8c R12: 0000000000000038
R13: ffffc90004e9f460 R14: 00000000200008a0 R15: ffffc90004e9f460
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+0xe9/0x130 lib/usercopy.c:34
copy_to_user include/linux/uaccess.h:169 [inline]
fiemap_fill_next_extent+0x22e/0x410 fs/ioctl.c:144
emit_fiemap_extent fs/btrfs/extent_io.c:3438 [inline]
fiemap_process_hole+0x5f5/0xad0 fs/btrfs/extent_io.c:3657
extent_fiemap+0xe27/0x2100 fs/btrfs/extent_io.c:3902
btrfs_fiemap+0x172/0x1e0 fs/btrfs/inode.c:8209
ioctl_fiemap fs/ioctl.c:219 [inline]
do_vfs_ioctl+0x185b/0x2980 fs/ioctl.c:810
__do_sys_ioctl fs/ioctl.c:868 [inline]
__se_sys_ioctl+0x83/0x170 fs/ioctl.c:856
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f8a4308c0d9
RSP: 002b:00007f8a43dc4168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f8a431ac1f0 RCX: 00007f8a4308c0d9
RDX: 0000000020000880 RSI: 00000000c020660b RDI: 0000000000000005
RBP: 00007f8a430e7ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff1c847bdf R14: 00007f8a43dc4300 R15: 0000000000022000
Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/12:
#0: ffffffff8d527d50 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507
1 lock held by rcu_tasks_trace/13:
#0: ffffffff8d528550 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507
1 lock held by khungtaskd/28:
#0: ffffffff8d527b80 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
3 locks held by kworker/u4:3/46:
#0: ffff888017c22938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x7f2/0xdb0
#1: ffffc90000b77d00 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x831/0xdb0 kernel/workqueue.c:2264
#2: ffff88802e3540e0 (&type->s_umount_key#48){++++}-{3:3}, at: trylock_super+0x1b/0xf0 fs/super.c:415
2 locks held by getty/4981:
#0: ffff88802c19b098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244
#1: ffffc900015802f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x53b/0x1650 drivers/tty/n_tty.c:2177
2 locks held by syz-executor.1/5330:
#0: ffff88803c9460e0 (&type->s_umount_key#54){++++}-{3:3}, at: deactivate_super+0x96/0xd0 fs/super.c:362
#1: ffffffff8d52d1f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:292 [inline]
#1: ffffffff8d52d1f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x384/0x860 kernel/rcu/tree_exp.h:946
2 locks held by kworker/0:15/5784:
#0: ffff888012c64d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x7f2/0xdb0
#1: ffffc900088d7d00 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x831/0xdb0 kernel/workqueue.c:2264
3 locks held by kworker/1:15/6211:
#0: ffff888012c64d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x7f2/0xdb0
#1: ffffc900153bfd00 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x831/0xdb0 kernel/workqueue.c:2264
#2: ffffffff8d52d1f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:324 [inline]
#2: ffffffff8d52d1f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x455/0x860 kernel/rcu/tree_exp.h:946
2 locks held by kworker/1:18/12331:
#0: ffff888012c66538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x7f2/0xdb0
#1: ffffc900156efd00 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x831/0xdb0 kernel/workqueue.c:2264
1 lock held by syz-executor.4/17362:
#0: ffff888031aaa2c0 (&sb->s_type->i_mutex_key#21){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:766 [inline]
#0: ffff888031aaa2c0 (&sb->s_type->i_mutex_key#21){++++}-{3:3}, at: btrfs_inode_lock+0x5c/0xd0 fs/btrfs/inode.c:184
3 locks held by syz-executor.4/17375:
#0: ffff888076e51c68 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x242/0x2e0 fs/file.c:1046
#1: ffff88802e354460 (sb_writers#13){.+.+}-{0:0}, at: vfs_write+0x287/0xc50 fs/read_write.c:580
#2: ffff888031aaa2c0 (&sb->s_type->i_mutex_key#21){++++}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline]
#2: ffff888031aaa2c0 (&sb->s_type->i_mutex_key#21){++++}-{3:3}, at: btrfs_inode_lock+0x49/0xd0 fs/btrfs/inode.c:192
3 locks held by syz-executor.4/17380:
#0: ffff88807ea13e98 (&mm->mmap_lock#2){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:136 [inline]
#0: ffff88807ea13e98 (&mm->mmap_lock#2){++++}-{3:3}, at: do_user_addr_fault+0x2e2/0xcb0 arch/x86/mm/fault.c:1369
#1: ffff88802e354558 (sb_pagefaults#4){.+.+}-{0:0}, at: do_page_mkwrite+0x19e/0x5e0 mm/memory.c:2947
#2: ffff888031aaa148 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_page_mkwrite+0x417/0xc80 fs/btrfs/inode.c:8526
2 locks held by syz-executor.4/20213:
2 locks held by syz-executor.3/20215:
=============================================
NMI backtrace for cpu 1
CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.1.0-syzkaller-09941-ge2ca6ba6ba01 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x1b1/0x28e lib/dump_stack.c:106
nmi_cpu_backtrace+0x46f/0x4f0 lib/nmi_backtrace.c:111
nmi_trigger_cpumask_backtrace+0x1ba/0x420 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+0xcd5/0xd20 kernel/hung_task.c:377
kthread+0x266/0x300 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
CPU: 0 PID: 4649 Comm: syslogd Not tainted 6.1.0-syzkaller-09941-ge2ca6ba6ba01 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:lock_is_held_type+0x4e/0x180 kernel/locking/lockdep.c:5704
Code: 47 1a 04 00 0f 84 f5 00 00 00 65 8b 05 9b ca 64 75 85 c0 0f 85 e6 00 00 00 65 4c 8b 2c 25 40 6f 02 00 41 83 bd 34 0a 00 00 00 <0f> 85 cf 00 00 00 41 89 f6 49 89 ff 9c 8f 04 24 4c 8b 24 24 fa 48
RSP: 0018:ffffc9000312f618 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 1ffff92000625ecc RCX: 0000000080000001
RDX: 0000000000000000 RSI: 00000000ffffffff RDI: ffffffff8d527b00
RBP: 00000000ffffffff R08: dffffc0000000000 R09: fffffbfff1d6f82e
R10: fffffbfff1d6f82e R11: 1ffffffff1d6f82d R12: dffffc0000000000
R13: ffff88807dd4ba80 R14: dffffc0000000000 R15: 0000000000000000
FS: 00007fdcee631800(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007feb213fe000 CR3: 000000002107d000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
lock_is_held include/linux/lockdep.h:283 [inline]
rcu_read_lock_sched_held+0x87/0x110 kernel/rcu/update.c:125
trace_lock_release+0x95/0x220 include/trace/events/lock.h:69
lock_release+0x81/0x820 kernel/locking/lockdep.c:5679
sock_wfree+0x1cc/0x610 net/core/sock.c:2449
unix_destruct_scm+0x2f9/0x360 net/unix/scm.c:152
skb_release_head_state+0xfb/0x250 net/core/skbuff.c:903
skb_release_all net/core/skbuff.c:914 [inline]
__kfree_skb+0x22/0x1d0 net/core/skbuff.c:930
__unix_dgram_recvmsg+0xc3a/0x1170 net/unix/af_unix.c:2518
sock_recvmsg_nosec net/socket.c:995 [inline]
sock_recvmsg net/socket.c:1013 [inline]
sock_read_iter+0x3fa/0x530 net/socket.c:1086
call_read_iter include/linux/fs.h:2180 [inline]
new_sync_read fs/read_write.c:389 [inline]
vfs_read+0x7ac/0xbf0 fs/read_write.c:470
ksys_read+0x177/0x2a0 fs/read_write.c:613
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fdcee7bd8fe
Code: c0 e9 e6 fe ff ff 50 48 8d 3d 0e c7 09 00 e8 c9 cf 01 00 66 0f 1f 84 00 00 00 00 00 64 8b 04 25 18 00 00 00 85 c0 75 14 0f 05 <48> 3d 00 f0 ff ff 77 5a c3 66 0f 1f 84 00 00 00 00 00 48 83 ec 28
RSP: 002b:00007fff2cb3c488 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007fdcee7bd8fe
RDX: 00000000000000ff RSI: 00005573abb5f950 RDI: 0000000000000000
RBP: 00005573abb5f910 R08: 00007fdcee84d040 R09: 00007fdcee84d0c0
R10: 00007fdcee84cfc0 R11: 0000000000000246 R12: 00005573abb5f99e
R13: 00005573abb5f950 R14: 0000000000000000 R15: 0000000000000000