INFO: task syz-executor.1:8886 blocked for more than 143 seconds.
Not tainted 6.7.0-rc7-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.1 state:D stack:22872 pid:8886 tgid:8885 ppid:5086 flags:0x00004006
Call Trace:
context_switch kernel/sched/core.c:5376 [inline]
__schedule+0x1961/0x4ab0 kernel/sched/core.c:6688
__schedule_loop kernel/sched/core.c:6763 [inline]
schedule+0x149/0x260 kernel/sched/core.c:6778
btrfs_commit_transaction+0x9bc/0x3740 fs/btrfs/transaction.c:2362
flush_space+0x9ae/0xcf0 fs/btrfs/space-info.c:818
priority_reclaim_metadata_space+0xe7/0x5a0 fs/btrfs/space-info.c:1412
__reserve_bytes+0xb74/0x18a0 fs/btrfs/space-info.c:1757
btrfs_reserve_metadata_bytes+0x2e/0x110 fs/btrfs/space-info.c:1783
btrfs_block_rsv_refill+0xd8/0x1a0 fs/btrfs/block-rsv.c:265
evict_refill_and_join+0xcf/0x210 fs/btrfs/inode.c:5169
btrfs_evict_inode+0xa15/0x1010 fs/btrfs/inode.c:5263
evict+0x2a4/0x630 fs/inode.c:666
do_unlinkat+0x512/0x830 fs/namei.c:4389
__do_sys_unlink fs/namei.c:4430 [inline]
__se_sys_unlink fs/namei.c:4428 [inline]
__x64_sys_unlink+0x49/0x50 fs/namei.c:4428
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7f050b47cce9
RSP: 002b:00007f050c1820c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000057
RAX: ffffffffffffffda RBX: 00007f050b59bf80 RCX: 00007f050b47cce9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000140
RBP: 00007f050b4c947a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f050b59bf80 R15: 00007ffd7b36aa88
INFO: task syz-executor.1:8960 blocked for more than 144 seconds.
Not tainted 6.7.0-rc7-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.1 state:D stack:22008 pid:8960 tgid:8885 ppid:5086 flags:0x00004006
Call Trace:
context_switch kernel/sched/core.c:5376 [inline]
__schedule+0x1961/0x4ab0 kernel/sched/core.c:6688
__schedule_loop kernel/sched/core.c:6763 [inline]
schedule+0x149/0x260 kernel/sched/core.c:6778
__wait_on_freeing_inode fs/inode.c:2281 [inline]
find_inode+0x2fe/0x430 fs/inode.c:907
ilookup5_nowait fs/inode.c:1458 [inline]
ilookup5+0xa1/0x200 fs/inode.c:1487
iget5_locked+0x37/0x270 fs/inode.c:1268
btrfs_iget_locked fs/btrfs/inode.c:5535 [inline]
btrfs_iget_path+0x147/0x1540 fs/btrfs/inode.c:5552
add_conflicting_inode fs/btrfs/tree-log.c:5584 [inline]
copy_inode_items_to_log fs/btrfs/tree-log.c:5855 [inline]
btrfs_log_inode+0x1ae5/0x43f0 fs/btrfs/tree-log.c:6519
btrfs_log_inode_parent+0xab0/0x1100 fs/btrfs/tree-log.c:7006
btrfs_log_new_name+0x55d/0x970 fs/btrfs/tree-log.c:7511
btrfs_rename fs/btrfs/inode.c:9141 [inline]
btrfs_rename2+0x245f/0x2d90 fs/btrfs/inode.c:9185
vfs_rename+0xaba/0xde0 fs/namei.c:4844
do_renameat2+0xd5a/0x1390 fs/namei.c:4996
__do_sys_rename fs/namei.c:5042 [inline]
__se_sys_rename fs/namei.c:5040 [inline]
__x64_sys_rename+0x86/0x90 fs/namei.c:5040
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7f050b47cce9
RSP: 002b:00007f050c1610c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000052
RAX: ffffffffffffffda RBX: 00007f050b59c050 RCX: 00007f050b47cce9
RDX: 0000000000000000 RSI: 00000000200000c0 RDI: 0000000020000080
RBP: 00007f050b4c947a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007f050b59c050 R15: 00007ffd7b36aa88
INFO: task syz-executor.1:8961 blocked for more than 145 seconds.
Not tainted 6.7.0-rc7-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.1 state:D stack:23952 pid:8961 tgid:8885 ppid:5086 flags:0x00004006
Call Trace:
context_switch kernel/sched/core.c:5376 [inline]
__schedule+0x1961/0x4ab0 kernel/sched/core.c:6688
__schedule_loop kernel/sched/core.c:6763 [inline]
schedule+0x149/0x260 kernel/sched/core.c:6778
schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6835
rwsem_down_write_slowpath+0xeea/0x13b0 kernel/locking/rwsem.c:1178
__down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306
inode_lock include/linux/fs.h:802 [inline]
btrfs_inode_lock+0x4d/0xd0 fs/btrfs/inode.c:378
btrfs_buffered_write+0x230/0x1380 fs/btrfs/file.c:1204
btrfs_do_write_iter+0x2bb/0x1190 fs/btrfs/file.c:1687
do_iter_readv_writev+0x330/0x4a0
do_iter_write+0x1f6/0x8d0 fs/read_write.c:860
iter_file_splice_write+0x86d/0x1010 fs/splice.c:736
do_splice_from fs/splice.c:933 [inline]
direct_splice_actor+0xea/0x1c0 fs/splice.c:1142
splice_direct_to_actor+0x376/0x9e0 fs/splice.c:1088
do_splice_direct+0x2ac/0x3f0 fs/splice.c:1194
do_sendfile+0x62c/0x1000 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:52 [inline]
do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7f050b47cce9
RSP: 002b:00007f050c1400c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007f050b59c120 RCX: 00007f050b47cce9
RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000006
RBP: 00007f050b4c947a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000100800001 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007f050b59c120 R15: 00007ffd7b36aa88
Showing all locks held in the system:
1 lock held by pool_workqueue_/3:
#0: ffffffff8d9334b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:293 [inline]
#0: ffffffff8d9334b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x3a3/0x890 kernel/rcu/tree_exp.h:996
1 lock held by khungtaskd/29:
#0: ffffffff8d92dae0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:301 [inline]
#0: ffffffff8d92dae0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:747 [inline]
#0: ffffffff8d92dae0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6614
2 locks held by getty/4810:
#0: ffff88814b1110a0 (&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+0x6b4/0x1e10 drivers/tty/n_tty.c:2201
1 lock held by syz-executor.0/5087:
#0: ffffffff8d9334b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:325 [inline]
#0: ffffffff8d9334b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x46c/0x890 kernel/rcu/tree_exp.h:996
2 locks held by kworker/0:4/5150:
#0: ffff888012c72938 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2602 [inline]
#0: ffff888012c72938 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2700
#1: ffffc900049e7d20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2602 [inline]
#1: ffffc900049e7d20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2700
2 locks held by syz-executor.1/8886:
#0: ffff888021998418 (sb_writers#13){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:404
#1: ffff88802891a390 (btrfs_trans_num_writers){++++}-{0:0}, at: join_transaction+0x401/0xcf0 fs/btrfs/transaction.c:292
7 locks held by syz-executor.1/8960:
#0: ffff888021998418 (sb_writers#13){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:404
#1: ffff88803de24fc8 (&type->i_mutex_dir_key#9/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:837 [inline]
#1: ffff88803de24fc8 (&type->i_mutex_dir_key#9/1){+.+.}-{3:3}, at: lock_rename fs/namei.c:3046 [inline]
#1: ffff88803de24fc8 (&type->i_mutex_dir_key#9/1){+.+.}-{3:3}, at: do_renameat2+0x601/0x1390 fs/namei.c:4935
#2: ffff88803de233f0 (&sb->s_type->i_mutex_key#20){++++}-{3:3}, at: inode_lock_nested include/linux/fs.h:837 [inline]
#2: ffff88803de233f0 (&sb->s_type->i_mutex_key#20){++++}-{3:3}, at: lock_two_inodes+0x100/0x180 fs/inode.c:1129
#3: ffff888021998608 (sb_internal#2){.+.+}-{0:0}, at: btrfs_rename fs/btrfs/inode.c:9059 [inline]
#3: ffff888021998608 (sb_internal#2){.+.+}-{0:0}, at: btrfs_rename2+0x17fc/0x2d90 fs/btrfs/inode.c:9185
#4: ffff88802891a390 (btrfs_trans_num_writers){++++}-{0:0}, at: join_transaction+0x401/0xcf0 fs/btrfs/transaction.c:292
#5: ffff88802891a3b8 (btrfs_trans_num_extwriters){++++}-{0:0}, at: join_transaction+0x401/0xcf0 fs/btrfs/transaction.c:292
#6: ffff88803de23050 (&ei->log_mutex){+.+.}-{3:3}, at: btrfs_log_inode+0x4c4/0x43f0 fs/btrfs/tree-log.c:6408
2 locks held by syz-executor.1/8961:
#0: ffff888021998418 (sb_writers#13){.+.+}-{0:0}, at: do_sendfile+0x607/0x1000 fs/read_write.c:1253
#1: ffff88803de233f0 (&sb->s_type->i_mutex_key#20){++++}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline]
#1: ffff88803de233f0 (&sb->s_type->i_mutex_key#20){++++}-{3:3}, at: btrfs_inode_lock+0x4d/0xd0 fs/btrfs/inode.c:378
1 lock held by btrfs-transacti/8957:
#0: ffff8880289187d8 (&fs_info->transaction_kthread_mutex){+.+.}-{3:3}, at: transaction_kthread+0x100/0x500 fs/btrfs/disk-io.c:1546
5 locks held by syz-executor.2/11398:
1 lock held by syz-executor.4/11399:
#0: ffff8880256780e0 (&type->s_umount_key#56){++++}-{3:3}, at: xfs_open_devices+0x623/0x680 fs/xfs/xfs_super.c:498
2 locks held by syz-executor.1/11403:
1 lock held by syz-executor.1/11424:
#0: ffff88803f986800
(
&sb->s_type->i_mutex_key
#7
){++++}-{3:3}
, at: do_sendfile+0x607/0x1000 fs/read_write.c:1253
1 lock held by syz-executor.1/11426:
#0:
ffff88803f986800
(
&sb->s_type->i_mutex_key
#7
){++++}-{3:3}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:558
2 locks held by syz-executor.1/11431:
#0: ffff8880b983c358 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:558
#1: ffff8880b9828808 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x441/0x770 kernel/sched/psi.c:988
=============================================
NMI backtrace for cpu 1
CPU: 1 PID: 29 Comm: khungtaskd Not tainted 6.7.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/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+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+0xfaf/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:242
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 4493 Comm: syslogd Not tainted 6.7.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
RIP: 0010:__sanitizer_cov_trace_switch+0xe/0x110 kernel/kcov.c:321
Code: 48 c7 44 11 08 07 00 00 00 48 89 7c 11 10 48 89 74 11 18 4c 89 44 11 20 c3 0f 1f 00 f3 0f 1e fa 41 57 41 56 41 54 53 4c 8b 16 <48> 8b 46 08 48 83 c0 f8 48 c1 c0 3d 48 83 f8 02 7f 1f 48 85 c0 74
RSP: 0018:ffffc9000310fc70 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff88807c915940
RDX: 0000000000000000 RSI: ffffffff8dfc8db0 RDI: 0000000000000000
RBP: ffffc9000310fe30 R08: ffffffff81f9f8dd R09: 1ffff1102864b8e9
R10: 0000000000000004 R11: ffffed102864b8ea R12: 1ffff92000621fa4
R13: dffffc0000000000 R14: ffff88807c915940 R15: dffffc0000000000
FS: 00007fe2028bb380(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6fd293ad58 CR3: 00000000279b9000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
task_nice_ioclass include/linux/ioprio.h:41 [inline]
__get_task_ioprio+0x136/0x260 block/ioprio.c:162
get_current_ioprio include/linux/ioprio.h:60 [inline]
init_sync_kiocb include/linux/fs.h:2182 [inline]
new_sync_read fs/read_write.c:385 [inline]
vfs_read+0x50d/0xb00 fs/read_write.c:470
ksys_read+0x1a0/0x2c0 fs/read_write.c:613
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7fe202a0fb6a
Code: 00 3d 00 00 41 00 75 0d 50 48 8d 3d 2d 08 0a 00 e8 ea 7d 01 00 31 c0 e9 07 ff ff ff 64 8b 04 25 18 00 00 00 85 c0 75 1b 0f 05 <48> 3d 00 f0 ff ff 76 6c 48 8b 15 8f a2 0d 00 f7 d8 64 89 02 48 83
RSP: 002b:00007ffe11828158 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007fe202a0fb6a
RDX: 00000000000000ff RSI: 0000559820d19950 RDI: 0000000000000000
RBP: 0000559820d19910 R08: 0000000000000001 R09: 0000000000000000
R10: 00007fe202bae3a3 R11: 0000000000000246 R12: 0000559820d19999
R13: 0000559820d19950 R14: 0000000000000000 R15: 00007fe202beca80