INFO: task syz-executor322:5843 blocked for more than 143 seconds.
Not tainted 6.13.0-rc7-syzkaller-00019-gc45323b7560e #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor322 state:D stack:18320 pid:5843 tgid:5843 ppid:5841 flags:0x00004006
Call Trace:
context_switch kernel/sched/core.c:5369 [inline]
__schedule+0x17fb/0x4be0 kernel/sched/core.c:6756
__schedule_loop kernel/sched/core.c:6833 [inline]
schedule+0x14b/0x320 kernel/sched/core.c:6848
__closure_sync+0x259/0x2f0 lib/closure.c:146
bch2_wait_on_allocator fs/bcachefs/alloc_foreground.h:239 [inline]
bch2_btree_update_start+0x11a2/0x14e0 fs/bcachefs/btree_update_interior.c:1269
bch2_btree_split_leaf+0x123/0x840 fs/bcachefs/btree_update_interior.c:1856
bch2_trans_commit_error+0x212/0x1380 fs/bcachefs/btree_trans_commit.c:942
__bch2_trans_commit+0x7ead/0x93c0 fs/bcachefs/btree_trans_commit.c:1140
bch2_trans_commit fs/bcachefs/btree_update.h:184 [inline]
bch2_logged_op_start+0x1c8/0x310 fs/bcachefs/logged_ops.c:92
bch2_truncate+0x19e/0x2d0 fs/bcachefs/io_misc.c:294
bchfs_truncate+0x85f/0xc90 fs/bcachefs/fs-io.c:464
notify_change+0xbca/0xe90 fs/attr.c:552
do_truncate fs/open.c:65 [inline]
do_ftruncate+0x462/0x580 fs/open.c:181
do_sys_ftruncate fs/open.c:196 [inline]
__do_sys_ftruncate fs/open.c:201 [inline]
__se_sys_ftruncate fs/open.c:199 [inline]
__x64_sys_ftruncate+0x94/0xf0 fs/open.c:199
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f586e10dd59
RSP: 002b:00007fff36f0ffa8 EFLAGS: 00000246 ORIG_RAX: 000000000000004d
RAX: ffffffffffffffda RBX: 00007f586e157095 RCX: 00007f586e10dd59
RDX: ffffffffffffffb8 RSI: 0000000002007ffc RDI: 0000000000000004
RBP: 0031656c69662f2e R08: 000055555cfce4c0 R09: 000055555cfce4c0
R10: 000055555cfce4c0 R11: 0000000000000246 R12: 00007fff36f0ffd0
R13: 00007fff36f101f8 R14: 431bde82d7b634db R15: 00007f586e15703b
Showing all locks held in the system:
1 lock held by khungtaskd/30:
#0: ffffffff8e937ae0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline]
#0: ffffffff8e937ae0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline]
#0: ffffffff8e937ae0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6744
5 locks held by kworker/u8:2/35:
1 lock held by klogd/5182:
#0: ffff8880b863e758 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:598
2 locks held by getty/5574:
#0: ffff88814d1910a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
#1: ffffc90002fde2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x6a6/0x1e00 drivers/tty/n_tty.c:2211
5 locks held by syz-executor322/5843:
#0: ffff88807c562420 (sb_writers#9){.+.+}-{0:0}, at: do_ftruncate+0x28b/0x580 fs/open.c:178
#1: ffff8880728d0148 (&sb->s_type->i_mutex_key#14){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:818 [inline]
#1: ffff8880728d0148 (&sb->s_type->i_mutex_key#14){+.+.}-{4:4}, at: do_truncate fs/open.c:63 [inline]
#1: ffff8880728d0148 (&sb->s_type->i_mutex_key#14){+.+.}-{4:4}, at: do_ftruncate+0x44e/0x580 fs/open.c:181
#2: ffff888073180a38 (&c->snapshot_create_lock){.+.+}-{4:4}, at: bch2_truncate+0x166/0x2d0 fs/bcachefs/io_misc.c:292
#3: ffff888073184398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:158 [inline]
#3: ffff888073184398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:249 [inline]
#3: ffff888073184398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7e1/0xd30 fs/bcachefs/btree_iter.c:3228
#4: ffff8880731a66d0 (&c->gc_lock){.+.+}-{4:4}, at: bch2_btree_update_start+0x682/0x14e0 fs/bcachefs/btree_update_interior.c:1197
=============================================
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.13.0-rc7-syzkaller-00019-gc45323b7560e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120
nmi_cpu_backtrace+0x49c/0x4d0 lib/nmi_backtrace.c:113
nmi_trigger_cpumask_backtrace+0x198/0x320 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:234 [inline]
watchdog+0xff6/0x1040 kernel/hung_task.c:397
kthread+0x2f0/0x390 kernel/kthread.c:389
ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 5182 Comm: klogd Not tainted 6.13.0-rc7-syzkaller-00019-gc45323b7560e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:sk_filter_trim_cap+0x177/0xa80
Code: 6d f8 48 8b 03 65 48 ff 80 28 02 00 00 41 be f4 ff ff ff e9 5a 04 00 00 e8 d6 ab 09 f8 4d 89 fe 0f 1f 44 00 00 e8 c9 ab 09 f8 <48> 8b 7c 24 08 4c 89 f6 e8 3c bf db fa 4c 89 f3 41 89 c6 31 ff 89
RSP: 0018:ffffc90003c0f980 EFLAGS: 00000293
RAX: ffffffff8995c657 RBX: 0000000000000000 RCX: ffff88807c619e00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90003c0fa90 R08: ffffffff8995c58e R09: 1ffff1100e7eeb11
R10: dffffc0000000000 R11: ffffed100e7eeb12 R12: dffffc0000000000
R13: 1ffff92000781f3c R14: ffff88802995e780 R15: ffff88807d492940
FS: 00007f7eb001a380(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005576ad9664b8 CR3: 000000007c0e4000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
sk_filter include/linux/filter.h:1062 [inline]
unix_dgram_sendmsg+0xb15/0x1f80 net/unix/af_unix.c:2061
sock_sendmsg_nosec net/socket.c:711 [inline]
__sock_sendmsg+0x221/0x270 net/socket.c:726
__sys_sendto+0x363/0x4c0 net/socket.c:2197
__do_sys_sendto net/socket.c:2204 [inline]
__se_sys_sendto net/socket.c:2200 [inline]
__x64_sys_sendto+0xde/0x100 net/socket.c:2200
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f7eb017c9b5
Code: 8b 44 24 08 48 83 c4 28 48 98 c3 48 98 c3 41 89 ca 64 8b 04 25 18 00 00 00 85 c0 75 26 45 31 c9 45 31 c0 b8 2c 00 00 00 0f 05 <48> 3d 00 f0 ff ff 76 7a 48 8b 15 44 c4 0c 00 f7 d8 64 89 02 48 83
RSP: 002b:00007fff6907a9d8 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007f7eb017c9b5
RDX: 000000000000008b RSI: 00005629934a1c70 RDI: 0000000000000003
RBP: 000056299349d910 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000004000 R11: 0000000000000246 R12: 0000000000000013
R13: 00007f7eb030a212 R14: 00007fff6907aad8 R15: 0000000000000000