INFO: task syz-executor.3:7440 blocked for more than 143 seconds.
Not tainted 6.4.0-syzkaller-11478-gd528014517f2 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.3 state:D stack:22952 pid:7440 ppid:5054 flags:0x00004006
Call Trace:
context_switch kernel/sched/core.c:5381 [inline]
__schedule+0x1873/0x48f0 kernel/sched/core.c:6710
schedule+0xc3/0x180 kernel/sched/core.c:6786
schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6845
rwsem_down_write_slowpath+0xedd/0x13a0 kernel/locking/rwsem.c:1178
__down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306
inode_lock include/linux/fs.h:771 [inline]
btrfs_inode_lock+0x4d/0xd0 fs/btrfs/inode.c:377
btrfs_buffered_write+0x230/0x1380 fs/btrfs/file.c:1199
btrfs_do_write_iter+0x2b4/0x1020 fs/btrfs/file.c:1670
do_iter_write+0x84f/0xde0 fs/read_write.c:860
iter_file_splice_write+0x86d/0x1010 fs/splice.c:739
do_splice_from fs/splice.c:934 [inline]
direct_splice_actor+0xea/0x1c0 fs/splice.c:1143
splice_direct_to_actor+0x376/0x9e0 fs/splice.c:1089
do_splice_direct+0x2ac/0x3f0 fs/splice.c:1195
do_sendfile+0x623/0x1070 fs/read_write.c:1254
__do_sys_sendfile64 fs/read_write.c:1322 [inline]
__se_sys_sendfile64+0x17c/0x1e0 fs/read_write.c:1308
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:0x7f6a88a8c389
RSP: 002b:00007f6a897af168 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007f6a88babf80 RCX: 00007f6a88a8c389
RDX: 0000000000000000 RSI: 0000000000000007 RDI: 0000000000000006
RBP: 00007f6a88ad7493 R08: 0000000000000000 R09: 0000000000000000
R10: 0001000000201005 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fffca2d2caf R14: 00007f6a897af300 R15: 0000000000022000
INFO: task syz-executor.3:7505 blocked for more than 145 seconds.
Not tainted 6.4.0-syzkaller-11478-gd528014517f2 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.3 state:D stack:23704 pid:7505 ppid:5054 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:5381 [inline]
__schedule+0x1873/0x48f0 kernel/sched/core.c:6710
schedule+0xc3/0x180 kernel/sched/core.c:6786
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_page_mkwrite+0x5bd/0xd10 fs/btrfs/inode.c:8244
do_page_mkwrite+0x1a4/0x600 mm/memory.c:2942
wp_page_shared mm/memory.c:3294 [inline]
do_wp_page+0x559/0x3a70 mm/memory.c:3376
handle_pte_fault mm/memory.c:4948 [inline]
__handle_mm_fault mm/memory.c:5072 [inline]
handle_mm_fault+0x1c58/0x5410 mm/memory.c:5226
do_user_addr_fault arch/x86/mm/fault.c:1392 [inline]
handle_page_fault arch/x86/mm/fault.c:1486 [inline]
exc_page_fault+0x266/0x7c0 arch/x86/mm/fault.c:1542
asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570
RIP: 0010:rep_movs_alternative+0x33/0xb0 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 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 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: 0018:ffffc9000bc6f550 EFLAGS: 00050206
RAX: 0000000000000000 RBX: 0000000020000218 RCX: 0000000000000038
RDX: 0000000000000000 RSI: ffffc9000bc6f600 RDI: 00000000200001e0
RBP: ffffc9000bc6f6b0 R08: ffffc9000bc6f637 R09: 1ffff9200178dec6
R10: dffffc0000000000 R11: fffff5200178dec7 R12: 0000000000000038
R13: ffffc9000bc6f600 R14: 00000000200001e0 R15: ffffc9000bc6f600
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+0x86/0xa0 lib/usercopy.c:41
copy_to_user include/linux/uaccess.h:191 [inline]
fiemap_fill_next_extent+0x235/0x410 fs/ioctl.c:144
emit_last_fiemap_cache fs/btrfs/extent_io.c:2566 [inline]
extent_fiemap+0x1b9c/0x1fe0 fs/btrfs/extent_io.c:3093
btrfs_fiemap+0x178/0x1e0 fs/btrfs/inode.c:7916
ioctl_fiemap fs/ioctl.c:219 [inline]
do_vfs_ioctl+0x19db/0x2b30 fs/ioctl.c:810
__do_sys_ioctl fs/ioctl.c:868 [inline]
__se_sys_ioctl+0x81/0x170 fs/ioctl.c:856
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:0x7f6a88a8c389
RSP: 002b:00007f6a8978e168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f6a88bac050 RCX: 00007f6a88a8c389
RDX: 00000000200001c0 RSI: 00000000c020660b RDI: 0000000000000007
RBP: 00007f6a88ad7493 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fffca2d2caf R14: 00007f6a8978e300 R15: 0000000000022000
Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/13:
#0: ffffffff8d328af0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:522
1 lock held by rcu_tasks_trace/14:
#0: ffffffff8d328eb0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:522
1 lock held by khungtaskd/28:
#0: ffffffff8d328920 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
2 locks held by getty/4762:
#0: ffff88814a566098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
#1: ffffc900015b02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b1/0x1dc0 drivers/tty/n_tty.c:2187
1 lock held by syz-executor.1/5041:
2 locks held by syz-executor.3/7440:
#0: ffff88803827e410 (sb_writers#15){.+.+}-{0:0}, at: do_sendfile+0x600/0x1070 fs/read_write.c:1253
#1: ffff888075f49830 (&sb->s_type->i_mutex_key#22){++++}-{3:3}, at: inode_lock include/linux/fs.h:771 [inline]
#1: ffff888075f49830 (&sb->s_type->i_mutex_key#22){++++}-{3:3}, at: btrfs_inode_lock+0x4d/0xd0 fs/btrfs/inode.c:377
4 locks held by syz-executor.3/7505:
#0: ffff888075f49830 (&sb->s_type->i_mutex_key#22){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:781 [inline]
#0: ffff888075f49830 (&sb->s_type->i_mutex_key#22){++++}-{3:3}, at: btrfs_inode_lock+0x60/0xd0 fs/btrfs/inode.c:369
#1: ffff888028cd1e20 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:161 [inline]
#1: ffff888028cd1e20 (&mm->mmap_lock){++++}-{3:3}, at: get_mmap_lock_carefully mm/memory.c:5254 [inline]
#1: ffff888028cd1e20 (&mm->mmap_lock){++++}-{3:3}, at: lock_mm_and_find_vma+0x32/0x2f0 mm/memory.c:5316
#2: ffff88803827e508 (sb_pagefaults#2){.+.+}-{0:0}, at: do_page_mkwrite+0x1a4/0x600 mm/memory.c:2942
#3: ffff888075f496b8 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_page_mkwrite+0x49c/0xd10 fs/btrfs/inode.c:8233
2 locks held by syz-executor.4/9904:
1 lock held by syz-executor.3/9909:
1 lock held by syz-executor.2/9914:
#0: ffff8880b983bf98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:558
1 lock held by syz-executor.2/9915:
2 locks held by syz-executor.1/9917:
=============================================
NMI backtrace for cpu 1
CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.4.0-syzkaller-11478-gd528014517f2 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
Call Trace:
__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+0x187/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+0xec2/0xf00 kernel/hung_task.c:379
kthread+0x2b8/0x350 kernel/kthread.c:389
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
CPU: 0 PID: 9909 Comm: syz-executor.3 Not tainted 6.4.0-syzkaller-11478-gd528014517f2 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
RIP: 0010:PageTail include/linux/page-flags.h:284 [inline]
RIP: 0010:folio_flags include/linux/page-flags.h:311 [inline]
RIP: 0010:folio_test_swapbacked include/linux/page-flags.h:493 [inline]
RIP: 0010:folio_test_swapcache include/linux/page-flags.h:535 [inline]
RIP: 0010:folio_mapping+0xc0/0x560 mm/util.c:772
Code: 00 02 00 00 be 00 02 00 00 48 21 ee 31 ff e8 07 15 c4 ff 49 21 ef 0f 85 64 01 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b 0c 24 <80> 3c 01 00 74 08 4c 89 f7 e8 d2 c0 1c 00 49 8b 2e 48 89 ee 48 83
RSP: 0018:ffffc9001845f6a0 EFLAGS: 00000046
RAX: dffffc0000000000 RBX: dffffc0000000000 RCX: 1ffffd4000420ac1
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00fff0000008000e R08: ffffffff81c7f119 R09: 1ffffd4000420ac0
R10: dffffc0000000000 R11: fffff94000420ac1 R12: 1ffffd4000420ac0
R13: ffffea0002105600 R14: ffffea0002105608 R15: 0000000000000000
FS: 00007ff922a84700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fd91bd90000 CR3: 000000002b62a000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
folio_evictable mm/internal.h:156 [inline]
lru_add_fn+0x291/0x19e0 mm/swap.c:181
folio_batch_move_lru+0x31e/0x6e0 mm/swap.c:217
folio_add_lru+0x2d7/0x6f0 mm/swap.c:517
shmem_get_folio_gfp+0x1528/0x3470 mm/shmem.c:1983
shmem_get_folio mm/shmem.c:2079 [inline]
shmem_write_begin+0x172/0x4e0 mm/shmem.c:2573
generic_perform_write+0x31b/0x630 mm/filemap.c:3923
generic_file_write_iter+0xaf/0x310 mm/filemap.c:4044
call_write_iter include/linux/fs.h:1871 [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:0x7ff921c3dfff
Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 99 fd ff ff 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 cc fd ff ff 48
RSP: 002b:00007ff922a83f10 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007ff921c3dfff
RDX: 0000000001ee4e54 RSI: 00007ff9183ff000 RDI: 0000000000000003
RBP: 00007ff9183ff000 R08: 0000000000000000 R09: 0000000000007e5e
R10: 0000000001ee4e54 R11: 0000000000000293 R12: 0000000000000000
R13: 00007ff922a83fdc R14: 00007ff922a83fe0 R15: 0000000020000102