INFO: task syz-executor.4:6225 blocked for more than 143 seconds.
Not tainted 6.6.0-rc3-syzkaller-00096-g71e58659bfc0 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.4 state:D stack:23448 pid:6225 ppid:5084 flags:0x00004006
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5382 [inline]
__schedule+0x196c/0x4af0 kernel/sched/core.c:6695
schedule+0xc3/0x180 kernel/sched/core.c:6771
io_schedule+0x8c/0x100 kernel/sched/core.c:9026
folio_wait_bit_common+0x881/0x12a0 mm/filemap.c:1301
__filemap_get_folio+0xa3/0xbb0 mm/filemap.c:1882
pagecache_get_page+0x2f/0x590 mm/folio-compat.c:99
find_or_create_page include/linux/pagemap.h:723 [inline]
copy_inline_to_page+0x238/0x880 fs/btrfs/reflink.c:87
btrfs_clone+0x16d9/0x2a10 fs/btrfs/reflink.c:529
btrfs_clone_files+0x32f/0x3f0 fs/btrfs/reflink.c:771
btrfs_remap_file_range+0x5a7/0xeb0 fs/btrfs/reflink.c:909
do_clone_file_range+0x27c/0x2f0 fs/remap_range.c:396
vfs_clone_file_range+0x200/0x500 fs/remap_range.c:414
ioctl_file_clone fs/ioctl.c:240 [inline]
ioctl_file_clone_range fs/ioctl.c:259 [inline]
do_vfs_ioctl+0xfa1/0x2b40 fs/ioctl.c:824
__do_sys_ioctl fs/ioctl.c:869 [inline]
__se_sys_ioctl+0x81/0x170 fs/ioctl.c:857
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fdc5ae7cae9
RSP: 002b:00007fdc5bc650c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fdc5af9bf80 RCX: 00007fdc5ae7cae9
RDX: 0000000020000000 RSI: 000000004020940d RDI: 0000000000000005
RBP: 00007fdc5aec847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007fdc5af9bf80 R15: 00007fff66e3be88
</TASK>
INFO: task syz-executor.4:6284 blocked for more than 144 seconds.
Not tainted 6.6.0-rc3-syzkaller-00096-g71e58659bfc0 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.4 state:D stack:25496 pid:6284 ppid:5084 flags:0x00004006
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5382 [inline]
__schedule+0x196c/0x4af0 kernel/sched/core.c:6695
schedule+0xc3/0x180 kernel/sched/core.c:6771
wait_on_state fs/btrfs/extent-io-tree.c:719 [inline]
wait_extent_bit+0x50c/0x670 fs/btrfs/extent-io-tree.c:763
lock_extent+0x1c0/0x270 fs/btrfs/extent-io-tree.c:1755
btrfs_lock_and_flush_ordered_range+0xd3/0x220 fs/btrfs/ordered-data.c:1101
contiguous_readpages fs/btrfs/extent_io.c:1148 [inline]
extent_readahead+0x10a0/0x15e0 fs/btrfs/extent_io.c:2244
read_pages+0x183/0x830 mm/readahead.c:160
page_cache_ra_unbounded+0x68e/0x7c0 mm/readahead.c:269
page_cache_sync_readahead include/linux/pagemap.h:1293 [inline]
filemap_get_pages+0x49c/0x2080 mm/filemap.c:2556
filemap_read+0x42b/0x10b0 mm/filemap.c:2652
call_read_iter include/linux/fs.h:1950 [inline]
new_sync_read fs/read_write.c:389 [inline]
vfs_read+0x795/0xb00 fs/read_write.c:470
ksys_pread64 fs/read_write.c:665 [inline]
__do_sys_pread64 fs/read_write.c:675 [inline]
__se_sys_pread64 fs/read_write.c:672 [inline]
__x64_sys_pread64+0x1aa/0x230 fs/read_write.c:672
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fdc5ae7cae9
RSP: 002b:00007fdc5bc440c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000011
RAX: ffffffffffffffda RBX: 00007fdc5af9c050 RCX: 00007fdc5ae7cae9
RDX: 0000000000001000 RSI: 0000000020000200 RDI: 0000000000000005
RBP: 00007fdc5aec847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007fdc5af9c050 R15: 00007fff66e3be88
</TASK>
Showing all locks held in the system:
1 lock held by khungtaskd/29:
#0: ffffffff8d32c420 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:303 [inline]
#0: ffffffff8d32c420 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:749 [inline]
#0: ffffffff8d32c420 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6613
2 locks held by getty/4792:
#0: ffff8880267ca0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
#1: ffffc900031332f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b1/0x1dc0 drivers/tty/n_tty.c:2206
1 lock held by syz-executor.2/5070:
#0: ffffffff8d331db8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:325 [inline]
#0: ffffffff8d331db8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x46c/0x890 kernel/rcu/tree_exp.h:992
2 locks held by kworker/0:6/5136:
#0: ffff888012872938 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline]
#0: ffff888012872938 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1400 kernel/workqueue.c:2703
#1: ffffc90004637d20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline]
#1: ffffc90004637d20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1400 kernel/workqueue.c:2703
5 locks held by syz-executor.4/6225:
#0: ffff88803802c410 (sb_writers#15){.+.+}-{0:0}, at: ioctl_file_clone fs/ioctl.c:240 [inline]
#0: ffff88803802c410 (sb_writers#15){.+.+}-{0:0}, at: ioctl_file_clone_range fs/ioctl.c:259 [inline]
#0: ffff88803802c410 (sb_writers#15){.+.+}-{0:0}, at: do_vfs_ioctl+0xfa1/0x2b40 fs/ioctl.c:824
#1: ffff888033613420 (&sb->s_type->i_mutex_key#22){++++}-{3:3}, at: inode_lock_nested include/linux/fs.h:837 [inline]
#1: ffff888033613420 (&sb->s_type->i_mutex_key#22){++++}-{3:3}, at: lock_two_inodes fs/inode.c:1127 [inline]
#1: ffff888033613420 (&sb->s_type->i_mutex_key#22){++++}-{3:3}, at: lock_two_nondirectories+0x1aa/0x270 fs/inode.c:1147
#2: ffff888037608590 (&sb->s_type->i_mutex_key#22/4){+.+.}-{3:3}, at: btrfs_remap_file_range+0x165/0xeb0 fs/btrfs/reflink.c:897
#3: ffff888037608418 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_double_mmap_lock fs/btrfs/reflink.c:653 [inline]
#3: ffff888037608418 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_remap_file_range+0x182/0xeb0 fs/btrfs/reflink.c:898
#4: ffff8880336132a8 (&ei->i_mmap_lock/1){+.+.}-{3:3}, at: btrfs_double_mmap_lock fs/btrfs/reflink.c:654 [inline]
#4: ffff8880336132a8 (&ei->i_mmap_lock/1){+.+.}-{3:3}, at: btrfs_remap_file_range+0x19e/0xeb0 fs/btrfs/reflink.c:898
1 lock held by syz-executor.4/6284:
#0: ffff888037608730 (mapping.invalidate_lock#4){.+.+}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:857 [inline]
#0: ffff888037608730 (mapping.invalidate_lock#4){.+.+}-{3:3}, at: page_cache_ra_unbounded+0xf1/0x7c0 mm/readahead.c:225
1 lock held by syz-executor.4/6378:
#0: ffffffff8d331db8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:325 [inline]
#0: ffffffff8d331db8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x46c/0x890 kernel/rcu/tree_exp.h:992
2 locks held by syz-executor.1/8749:
=============================================
NMI backtrace for cpu 1
CPU: 1 PID: 29 Comm: khungtaskd Not tainted 6.6.0-rc3-syzkaller-00096-g71e58659bfc0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023
Call Trace:
<TASK>
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106
nmi_cpu_backtrace+0x498/0x4d0 lib/nmi_backtrace.c:113
nmi_trigger_cpumask_backtrace+0x198/0x310 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+0xfa9/0xff0 kernel/hung_task.c:379
kthread+0x2d3/0x370 kernel/kthread.c:388
ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304
</TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 8749 Comm: syz-executor.1 Not tainted 6.6.0-rc3-syzkaller-00096-g71e58659bfc0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023
RIP: 0010:unwind_get_return_address+0x3b/0xc0 arch/x86/kernel/unwind_orc.c:369
Code: 00 00 00 fc ff df e8 d4 6d 50 00 48 89 d8 48 c1 e8 03 42 0f b6 04 30 84 c0 75 6e 8b 2b 31 ff 89 ee e8 69 71 50 00 85 ed 74 4a <48> 83 c3 48 49 89 df 49 c1 ef 03 43 80 3c 37 00 74 08 48 89 df e8
RSP: 0018:ffffc90017fc6e18 EFLAGS: 00000202
RAX: 0000000000000002 RBX: ffffc90017fc6e40 RCX: 0000000000040000
RDX: ffff888086b99dc0 RSI: 0000000000000001 RDI: 0000000000000000
RBP: 0000000000000001 R08: ffffffff813d9cb7 R09: ffffffff813db790
R10: 0000000000000003 R11: ffff888086b99dc0 R12: ffff888086b99dc0
R13: ffffffff817bb860 R14: dffffc0000000000 R15: ffffc90017fc6e40
FS: 00007f9f545716c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005610a6e71000 CR3: 0000000088463000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<NMI>
</NMI>
<TASK>
arch_stack_walk+0x11f/0x1a0 arch/x86/kernel/stacktrace.c:26
stack_trace_save+0x117/0x1c0 kernel/stacktrace.c:122
save_stack+0xfa/0x1e0 mm/page_owner.c:128
__set_page_owner+0x29/0x380 mm/page_owner.c:192
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x1e6/0x210 mm/page_alloc.c:1536
prep_new_page mm/page_alloc.c:1543 [inline]
get_page_from_freelist+0x31db/0x3360 mm/page_alloc.c:3170
__alloc_pages+0x255/0x670 mm/page_alloc.c:4426
__folio_alloc+0x13/0x30 mm/page_alloc.c:4458
vma_alloc_folio+0x48a/0x9a0 mm/mempolicy.c:2259
shmem_alloc_folio mm/shmem.c:1658 [inline]
shmem_alloc_and_acct_folio+0x438/0x9b0 mm/shmem.c:1683
shmem_get_folio_gfp+0xca4/0x2b60 mm/shmem.c:2020
shmem_get_folio mm/shmem.c:2143 [inline]
shmem_write_begin+0x170/0x300 mm/shmem.c:2688
generic_perform_write+0x31b/0x630 mm/filemap.c:3969
shmem_file_write_iter+0xfc/0x120 mm/shmem.c:2865
call_write_iter include/linux/fs.h:1956 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x782/0xaf0 fs/read_write.c:584
ksys_write+0x1a0/0x2c0 fs/read_write.c:637
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f9f5387b82f
Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 b9 80 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 0c 81 02 00 48
RSP: 002b:00007f9f54570e70 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000001000000 RCX: 00007f9f5387b82f
RDX: 0000000001000000 RSI: 00007f9f49fff000 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000005597
R10: 0000000000000002 R11: 0000000000000293 R12: 0000000000000003
R13: 00007f9f54570f3c R14: 00007f9f54570f40 R15: 00007f9f49fff000
</TASK>