INFO: task syz.1.17:4863 blocked for more than 143 seconds.
Not tainted 6.10.0-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.1.17 state:D stack:9984 pid:4863 tgid:4860 ppid:2942 flags:0x00004006
Call Trace:
context_switch kernel/sched/core.c:5407 [inline]
__schedule+0x627/0x9c0 kernel/sched/core.c:6748
__schedule_loop kernel/sched/core.c:6825 [inline]
schedule+0xac/0x140 kernel/sched/core.c:6840
__closure_sync+0x61/0xa0 lib/closure.c:146
closure_sync include/linux/closure.h:195 [inline]
bch2_btree_update_start+0x6cf/0x810 fs/bcachefs/btree_update_interior.c:1267
bch2_btree_split_leaf+0x4e/0x1e0 fs/bcachefs/btree_update_interior.c:1851
bch2_trans_commit_error+0x1f9/0x580 fs/bcachefs/btree_trans_commit.c:961
__bch2_trans_commit+0x1c00/0x1f30 fs/bcachefs/btree_trans_commit.c:1189
bch2_trans_commit fs/bcachefs/btree_update.h:183 [inline]
bch2_btree_write_buffer_flush_locked+0xe44/0x1100 fs/bcachefs/btree_write_buffer.c:429
btree_write_buffer_flush_seq+0x2cf/0x350 fs/bcachefs/btree_write_buffer.c:510
bch2_btree_write_buffer_journal_flush+0x35/0x60 fs/bcachefs/btree_write_buffer.c:525
journal_flush_pins+0x1e3/0x350 fs/bcachefs/journal_reclaim.c:553
journal_flush_done+0x4a/0xe0 fs/bcachefs/journal_reclaim.c:806
bch2_journal_flush_pins+0xdc/0x170 fs/bcachefs/journal_reclaim.c:839
bch2_journal_flush_all_pins fs/bcachefs/journal_reclaim.h:76 [inline]
__bch2_fs_read_only+0x84/0x180 fs/bcachefs/super.c:277
bch2_fs_read_only+0x282/0x470 fs/bcachefs/super.c:357
__bch2_fs_stop+0x5f/0x260 fs/bcachefs/super.c:619
bch2_fs_stop fs/bcachefs/super.c:678 [inline]
bch2_fs_open+0xce4/0x12e0 fs/bcachefs/super.c:2161
bch2_mount fs/bcachefs/fs.c:1924 [inline]
bch2_fs_get_tree+0x297/0x6b0 fs/bcachefs/fs.c:2088
vfs_get_tree+0x24/0xb0 fs/super.c:1789
do_new_mount+0x15a/0x3a0 fs/namespace.c:3352
do_mount fs/namespace.c:3692 [inline]
__do_sys_mount fs/namespace.c:3898 [inline]
__se_sys_mount+0x14b/0x1c0 fs/namespace.c:3875
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0x8d/0x1a0 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd9f7f874ca
RSP: 002b:00007fd9f8d0be68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fd9f8d0bef0 RCX: 00007fd9f7f874ca
RDX: 00000000200000c0 RSI: 0000000020000180 RDI: 00007fd9f8d0beb0
RBP: 00000000200000c0 R08: 00007fd9f8d0bef0 R09: 0000000000000010
R10: 0000000000000010 R11: 0000000000000246 R12: 0000000020000180
R13: 00007fd9f8d0beb0 R14: 00000000000059d5 R15: 0000000020000480
INFO: task bch-reclaim/loo:4956 blocked for more than 143 seconds.
Not tainted 6.10.0-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:bch-reclaim/loo state:D stack:15160 pid:4956 tgid:4956 ppid:2 flags:0x00004000
Call Trace:
context_switch kernel/sched/core.c:5407 [inline]
__schedule+0x627/0x9c0 kernel/sched/core.c:6748
__schedule_loop kernel/sched/core.c:6825 [inline]
schedule+0xac/0x140 kernel/sched/core.c:6840
schedule_preempt_disabled+0x32/0x60 kernel/sched/core.c:6897
__mutex_lock_common kernel/locking/mutex.c:684 [inline]
__mutex_lock+0x44a/0x970 kernel/locking/mutex.c:752
bch2_journal_reclaim_thread+0x74/0x160 fs/bcachefs/journal_reclaim.c:726
kthread+0xea/0x100 kernel/kthread.c:389
ret_from_fork+0x32/0x40 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
Showing all locks held in the system:
1 lock held by khungtaskd/30:
#0: ffffffff83b7ec90 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:329 [inline]
#0: ffffffff83b7ec90 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:781 [inline]
#0: ffffffff83b7ec90 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x30/0x100 kernel/locking/lockdep.c:6614
2 locks held by kworker/u8:6/1088:
#0: ffff88810007c948 ((wq_completion)events_unbound){....}-{0:0}, at: process_one_work kernel/workqueue.c:3223 [inline]
#0: ffff88810007c948 ((wq_completion)events_unbound){....}-{0:0}, at: process_scheduled_works+0x247/0x5c0 kernel/workqueue.c:3329
#1: ffffc90001ef7e58 ((reaper_work).work){....}-{0:0}, at: process_one_work kernel/workqueue.c:3224 [inline]
#1: ffffc90001ef7e58 ((reaper_work).work){....}-{0:0}, at: process_scheduled_works+0x267/0x5c0 kernel/workqueue.c:3329
2 locks held by kworker/u8:8/1243:
#0: ffff88810007c948 ((wq_completion)events_unbound){....}-{0:0}, at: process_one_work kernel/workqueue.c:3223 [inline]
#0: ffff88810007c948 ((wq_completion)events_unbound){....}-{0:0}, at: process_scheduled_works+0x247/0x5c0 kernel/workqueue.c:3329
#1: ffffc90002797e58 (connector_reaper_work){....}-{0:0}, at: process_one_work kernel/workqueue.c:3224 [inline]
#1: ffffc90002797e58 (connector_reaper_work){....}-{0:0}, at: process_scheduled_works+0x267/0x5c0 kernel/workqueue.c:3329
2 locks held by getty/1476:
#0: ffff888106eb50a0 (&tty->ldisc_sem){....}-{0:0}, at: tty_ldisc_ref_wait+0x20/0x40 drivers/tty/tty_ldisc.c:243
#1: ffffc90002b032f0 (&ldata->atomic_read_lock){....}-{3:3}, at: n_tty_read+0x243/0x910 drivers/tty/n_tty.c:2211
5 locks held by syz.1.17/4863:
#0: ffff88816f000278 (&c->state_lock){....}-{3:3}, at: __bch2_fs_stop+0x57/0x260 fs/bcachefs/super.c:618
#1: ffff88816f04afe8 (&j->reclaim_lock){....}-{3:3}, at: journal_flush_done+0x35/0xe0 fs/bcachefs/journal_reclaim.c:804
#2: ffff88816f0042d0 (&c->btree_trans_barrier){....}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:116 [inline]
#2: ffff88816f0042d0 (&c->btree_trans_barrier){....}-{0:0}, at: srcu_read_lock include/linux/srcu.h:215 [inline]
#2: ffff88816f0042d0 (&c->btree_trans_barrier){....}-{0:0}, at: __bch2_trans_get+0x243/0x390 fs/bcachefs/btree_iter.c:3193
#3: ffff88816f004718 (&wb->flushing.lock){....}-{3:3}, at: btree_write_buffer_flush_seq+0x2c2/0x350 fs/bcachefs/btree_write_buffer.c:509
#4: ffff88816f026750 (&c->gc_lock){....}-{3:3}, at: bch2_btree_update_start+0x2ff/0x810 fs/bcachefs/btree_update_interior.c:1195
1 lock held by bch-reclaim/loo/4956:
#0: ffff88816f04afe8 (&j->reclaim_lock){....}-{3:3}, at: bch2_journal_reclaim_thread+0x74/0x160 fs/bcachefs/journal_reclaim.c:726
5 locks held by syz.4.1582/19421:
3 locks held by syz.0.1583/19427:
#0: ffff88815d6808f8 (&c->sb_lock){....}-{3:3}, at: bch2_fs_alloc fs/bcachefs/super.c:830 [inline]
#0: ffff88815d6808f8 (&c->sb_lock){....}-{3:3}, at: bch2_fs_open+0x9b1/0x12e0 fs/bcachefs/super.c:2124
#1: ffff88815d684988 (&c->mark_lock){....}-{0:0}, at: bch2_sb_replicas_to_cpu_replicas+0xb0/0x100 fs/bcachefs/replicas.c:714
#2: ffffffff83b7fb38 (rcu_state.exp_mutex){....}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:323 [inline]
#2: ffffffff83b7fb38 (rcu_state.exp_mutex){....}-{3:3}, at: synchronize_rcu_expedited+0x15c/0x5e0 kernel/rcu/tree_exp.h:939
3 locks held by syz.6.1584/19437:
#0: ffff888154e008f8 (&c->sb_lock){....}-{3:3}, at: bch2_fs_alloc fs/bcachefs/super.c:830 [inline]
#0: ffff888154e008f8 (&c->sb_lock){....}-{3:3}, at: bch2_fs_open+0x9b1/0x12e0 fs/bcachefs/super.c:2124
#1: ffff888154e04988 (&c->mark_lock){....}-{0:0}, at: bch2_sb_replicas_to_cpu_replicas+0xb0/0x100 fs/bcachefs/replicas.c:714
#2: ffffffff83b7fb38 (rcu_state.exp_mutex){....}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:323 [inline]
#2: ffffffff83b7fb38 (rcu_state.exp_mutex){....}-{3:3}, at: synchronize_rcu_expedited+0x15c/0x5e0 kernel/rcu/tree_exp.h:939
=============================================
NMI backtrace for cpu 0
CPU: 0 PID: 30 Comm: khungtaskd Not tainted 6.10.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x3e/0xe0 lib/dump_stack.c:114
nmi_cpu_backtrace+0x146/0x160 lib/nmi_backtrace.c:113
nmi_trigger_cpumask_backtrace+0x8e/0x140 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:223 [inline]
watchdog+0x5db/0x600 kernel/hung_task.c:379
kthread+0xea/0x100 kernel/kthread.c:389
ret_from_fork+0x32/0x40 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 41 Comm: kworker/u8:2 Not tainted 6.10.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Workqueue: events_unbound toggle_allocation_gate
RIP: 0010:switch_mm_irqs_off+0x447/0x620
Code: 1e fa 48 b9 00 00 00 00 00 00 00 80 48 09 c1 0f 22 d9 0f 1f 44 00 00 65 8b 05 51 d4 fa 7e 89 c0 48 0f a3 05 63 ad dd 02 73 05 54 71 1a 00 65 4c 89 2d 2c d5 fa 7e 65 66 44 89 25 33 d5 fa 7e
RSP: 0018:ffffc9000015fc40 EFLAGS: 00000047
RAX: 0000000000000001 RBX: ffffffff83bb4f40 RCX: 000000000000002e
RDX: 0000000000000000 RSI: ffffffff83761162 RDI: ffff88810006a000
RBP: ffff88810006a000 R08: 0005800000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: ffff888100070000 R14: ffffffff83bb4f00 R15: 0000000003a44000
FS: 0000000000000000(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa32c969160 CR3: 000000010006a000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
use_temporary_mm arch/x86/kernel/alternative.c:1793 [inline]
__text_poke+0x250/0x440 arch/x86/kernel/alternative.c:1904
text_poke arch/x86/kernel/alternative.c:1968 [inline]
text_poke_bp_batch+0x25f/0x310 arch/x86/kernel/alternative.c:2357
text_poke_flush arch/x86/kernel/alternative.c:2470 [inline]
text_poke_finish+0x1a/0x30 arch/x86/kernel/alternative.c:2477
arch_jump_label_transform_apply+0x17/0x30 arch/x86/kernel/jump_label.c:146
static_key_disable_cpuslocked kernel/jump_label.c:235 [inline]
static_key_disable+0x3f/0x60 kernel/jump_label.c:243
toggle_allocation_gate+0xe2/0x130 mm/kfence/core.c:831
process_one_work kernel/workqueue.c:3248 [inline]
process_scheduled_works+0x2ac/0x5c0 kernel/workqueue.c:3329
worker_thread+0x23e/0x2f0 kernel/workqueue.c:3409
kthread+0xea/0x100 kernel/kthread.c:389
ret_from_fork+0x32/0x40 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244