INFO: task +}[@:6140 blocked for more than 143 seconds.
Not tainted 6.12.0-rc6-next-20241108-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:+}[@ state:D stack:21696 pid:6140 tgid:6138 ppid:5827 flags:0x00004006
Call Trace:
context_switch kernel/sched/core.c:5369 [inline]
__schedule+0x1850/0x4c30 kernel/sched/core.c:6753
__schedule_loop kernel/sched/core.c:6830 [inline]
schedule+0x14b/0x320 kernel/sched/core.c:6845
__closure_sync+0x259/0x2f0 lib/closure.c:146
closure_sync include/linux/closure.h:195 [inline]
bch2_btree_interior_updates_flush+0x1ef/0x370 fs/bcachefs/btree_update_interior.c:2614
__bch2_fs_read_only+0x105/0x430 fs/bcachefs/super.c:274
bch2_fs_read_only+0xbb9/0x1270 fs/bcachefs/super.c:355
__bch2_fs_stop+0x105/0x5c0 fs/bcachefs/super.c:622
bch2_fs_stop+0x15/0x20 fs/bcachefs/super.c:679
bch2_fs_get_tree+0xd9f/0x1710 fs/bcachefs/fs.c:2279
vfs_get_tree+0x90/0x2b0 fs/super.c:1814
do_new_mount+0x2be/0xb40 fs/namespace.c:3507
do_mount fs/namespace.c:3847 [inline]
__do_sys_mount fs/namespace.c:4057 [inline]
__se_sys_mount+0x2d6/0x3c0 fs/namespace.c:4034
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:0x7f193d37feba
RSP: 002b:00007f193b7f5e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f193b7f5ef0 RCX: 00007f193d37feba
RDX: 00000000200000c0 RSI: 0000000020000000 RDI: 00007f193b7f5eb0
RBP: 00000000200000c0 R08: 00007f193b7f5ef0 R09: 0000000000800000
R10: 0000000000800000 R11: 0000000000000246 R12: 0000000020000000
R13: 00007f193b7f5eb0 R14: 0000000000005906 R15: 0000000020000240
INFO: task bch-reclaim/loo:6163 blocked for more than 144 seconds.
Not tainted 6.12.0-rc6-next-20241108-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:bch-reclaim/loo state:D stack:23216 pid:6163 tgid:6163 ppid:2 flags:0x00004000
Call Trace:
context_switch kernel/sched/core.c:5369 [inline]
__schedule+0x1850/0x4c30 kernel/sched/core.c:6753
__schedule_loop kernel/sched/core.c:6830 [inline]
schedule+0x14b/0x320 kernel/sched/core.c:6845
schedule_timeout+0x15a/0x290 kernel/time/sleep_timeout.c:99
__closure_sync_timeout+0x2d8/0x450 lib/closure.c:217
closure_sync_timeout include/linux/closure.h:206 [inline]
__bch2_wait_on_allocator+0x11a/0x250 fs/bcachefs/alloc_foreground.c:1754
bch2_wait_on_allocator fs/bcachefs/alloc_foreground.h:239 [inline]
bch2_btree_update_start+0x11a5/0x14e0 fs/bcachefs/btree_update_interior.c:1263
bch2_btree_split_leaf+0x121/0x880 fs/bcachefs/btree_update_interior.c:1857
bch2_trans_commit_error+0x212/0x1390 fs/bcachefs/btree_trans_commit.c:918
__bch2_trans_commit+0x8069/0x9610 fs/bcachefs/btree_trans_commit.c:1099
bch2_trans_commit fs/bcachefs/btree_update.h:182 [inline]
bch2_btree_write_buffer_flush_locked+0x4f72/0x5a40 fs/bcachefs/btree_write_buffer.c:429
btree_write_buffer_flush_seq+0x1a43/0x1bc0 fs/bcachefs/btree_write_buffer.c:510
bch2_btree_write_buffer_journal_flush+0x4e/0x80 fs/bcachefs/btree_write_buffer.c:525
journal_flush_pins+0x5f7/0xb20 fs/bcachefs/journal_reclaim.c:565
__bch2_journal_reclaim+0x789/0xdc0 fs/bcachefs/journal_reclaim.c:698
bch2_journal_reclaim_thread+0x17a/0x570 fs/bcachefs/journal_reclaim.c:740
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
Showing all locks held in the system:
1 lock held by khungtaskd/30:
#0: ffffffff8e93c560 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline]
#0: ffffffff8e93c560 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline]
#0: ffffffff8e93c560 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6744
5 locks held by kworker/u8:3/55:
#0: ffff88801baed948 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline]
#0: ffff88801baed948 ((wq_completion)netns){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1850 kernel/workqueue.c:3310
#1: ffffc90000bf7d00 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline]
#1: ffffc90000bf7d00 (net_cleanup_work){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1850 kernel/workqueue.c:3310
#2: ffffffff8fcc3650 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0x16a/0xcc0 net/core/net_namespace.c:587
#3: ffffffff8fcd01a8 (rtnl_mutex){+.+.}-{4:4}, at: default_device_exit_batch+0xe9/0xaa0 net/core/dev.c:12014
#4: ffffffff8e941af8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:297 [inline]
#4: ffffffff8e941af8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x381/0x830 kernel/rcu/tree_exp.h:976
1 lock held by dhcpcd/5497:
#0: ffffffff8fcd01a8 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_net_lock include/linux/rtnetlink.h:128 [inline]
#0: ffffffff8fcd01a8 (rtnl_mutex){+.+.}-{4:4}, at: devinet_ioctl+0x31a/0x1ac0 net/ipv4/devinet.c:1130
2 locks held by getty/5587:
#0: ffff88814dad20a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
#1: ffffc900032232f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x6a6/0x1e00 drivers/tty/n_tty.c:2211
3 locks held by kworker/u8:13/6034:
#0: ffff88801ac89148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline]
#0: ffff88801ac89148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1850 kernel/workqueue.c:3310
#1: ffffc900049a7d00 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline]
#1: ffffc900049a7d00 ((linkwatch_work).work){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1850 kernel/workqueue.c:3310
#2: ffffffff8fcd01a8 (rtnl_mutex){+.+.}-{4:4}, at: linkwatch_event+0xe/0x60 net/core/link_watch.c:276
5 locks held by kworker/u8:21/6046:
1 lock held by +}[@/6140:
#0: ffff888058800278 (&c->state_lock){+.+.}-{4:4}, at: __bch2_fs_stop+0xfd/0x5c0 fs/bcachefs/super.c:621
4 locks held by bch-reclaim/loo/6163:
#0: ffff88805884b128 (&j->reclaim_lock){+.+.}-{4:4}, at: bch2_journal_reclaim_thread+0x16d/0x570 fs/bcachefs/journal_reclaim.c:739
#1: ffff8880588043a8 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:158 [inline]
#1: ffff8880588043a8 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:255 [inline]
#1: ffff8880588043a8 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7e4/0xd30 fs/bcachefs/btree_iter.c:3378
#2: ffff888058804750 (&wb->flushing.lock){+.+.}-{4:4}, at: btree_write_buffer_flush_seq+0x1a39/0x1bc0 fs/bcachefs/btree_write_buffer.c:509
#3: ffff888058826710 (&c->gc_lock){.+.+}-{4:4}, at: bch2_btree_update_start+0x682/0x14e0 fs/bcachefs/btree_update_interior.c:1191
2 locks held by syz-executor/7870:
#0: ffff88807f8ca0e0 (&type->s_umount_key#59){+.+.}-{4:4}, at: __super_lock fs/super.c:56 [inline]
#0: ffff88807f8ca0e0 (&type->s_umount_key#59){+.+.}-{4:4}, at: __super_lock_excl fs/super.c:71 [inline]
#0: ffff88807f8ca0e0 (&type->s_umount_key#59){+.+.}-{4:4}, at: deactivate_super+0xb5/0xf0 fs/super.c:505
#1: ffffffff8e9419c0 (rcu_state.barrier_mutex){+.+.}-{4:4}, at: rcu_barrier+0x4c/0x530 kernel/rcu/tree.c:4565
1 lock held by syz-executor/8888:
#0: ffffffff8fcd01a8 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock net/core/rtnetlink.c:79 [inline]
#0: ffffffff8fcd01a8 (rtnl_mutex){+.+.}-{4:4}, at: rtnetlink_rcv_msg+0x6e6/0xcf0 net/core/rtnetlink.c:6796
6 locks held by syz.1.526/8970:
#0: ffffffff9a77c338 (&rdma_nl_types[idx].sem){.+.+}-{4:4}, at: rdma_nl_rcv_msg drivers/infiniband/core/netlink.c:164 [inline]
#0: ffffffff9a77c338 (&rdma_nl_types[idx].sem){.+.+}-{4:4}, at: rdma_nl_rcv_skb drivers/infiniband/core/netlink.c:239 [inline]
#0: ffffffff9a77c338 (&rdma_nl_types[idx].sem){.+.+}-{4:4}, at: rdma_nl_rcv+0x32d/0x9e0 drivers/infiniband/core/netlink.c:259
#1: ffffffff8fa4fd30 (link_ops_rwsem){++++}-{4:4}, at: nldev_newlink+0x42a/0x640 drivers/infiniband/core/nldev.c:1785
#2: ffffffff8fa428d0 (devices_rwsem){++++}-{4:4}, at: enable_device_and_get+0x12e/0x440 drivers/infiniband/core/device.c:1329
#3: ffffffff8fa42a90 (rdma_nets_rwsem){++++}-{4:4}, at: add_compat_devs drivers/infiniband/core/device.c:1032 [inline]
#3: ffffffff8fa42a90 (rdma_nets_rwsem){++++}-{4:4}, at: enable_device_and_get+0x2cd/0x440 drivers/infiniband/core/device.c:1345
#4: ffff88805947cf40 (&device->compat_devs_mutex){+.+.}-{4:4}, at: add_one_compat_dev+0x10d/0x710 drivers/infiniband/core/device.c:950
#5: ffffffff8fcd01a8 (rtnl_mutex){+.+.}-{4:4}, at: ib_get_eth_speed+0x153/0x800 drivers/infiniband/core/verbs.c:1995
2 locks held by syz.0.531/8987:
#0: ffffffff8fd36650 (cb_lock){++++}-{4:4}, at: genl_rcv+0x19/0x40 net/netlink/genetlink.c:1218
#1: ffffffff8fcd01a8 (rtnl_mutex){+.+.}-{4:4}, at: nl80211_pre_doit+0x5f/0x8b0 net/wireless/nl80211.c:16605
2 locks held by syz.8.532/8992:
#0: ffff88807ea576c8 (nlk_cb_mutex-ROUTE){+.+.}-{4:4}, at: __netlink_dump_start+0x119/0x790 net/netlink/af_netlink.c:2410
#1: ffffffff8fcd01a8 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock net/core/rtnetlink.c:79 [inline]
#1: ffffffff8fcd01a8 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_dumpit+0x99/0x200 net/core/rtnetlink.c:6658
=============================================
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.12.0-rc6-next-20241108-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/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+0xffb/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 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 6046 Comm: kworker/u8:21 Not tainted 6.12.0-rc6-next-20241108-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024
Workqueue: wg-kex-wg0 wg_packet_handshake_send_worker
RIP: 0010:lockdep_hardirqs_on+0x56/0x150 kernel/locking/lockdep.c:4456
Code: 00 00 00 49 89 fe 65 8b 05 bf b4 3f 74 a9 00 00 f0 00 75 4d 65 8b 05 69 6a 3e 74 85 c0 75 74 65 8b 05 16 67 3e 74 85 c0 75 69 <83> 3d 93 d9 77 0e 00 75 2e 48 c7 04 24 00 00 00 00 9c 8f 04 24 f7
RSP: 0018:ffffc90004be7578 EFLAGS: 00000046
RAX: 0000000000000000 RBX: ffff8880264f0000 RCX: ffffffff817b1a8a
RDX: dffffc0000000000 RSI: ffffffff8c0aea60 RDI: ffffffff818d1e07
RBP: ffffc90004be7650 R08: ffffffff942b897f R09: 1ffffffff285712f
R10: dffffc0000000000 R11: fffffbfff2857130 R12: ffffffff818d1930
R13: 0000000000000200 R14: ffffffff818d1e07 R15: 1ffff9200097ceb4
FS: 0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055556e41d5c8 CR3: 000000000e738000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
native_save_fl arch/x86/include/asm/irqflags.h:19 [inline]
arch_local_save_flags arch/x86/include/asm/irqflags.h:87 [inline]
arch_irqs_disabled arch/x86/include/asm/irqflags.h:147 [inline]
seqcount_lockdep_reader_access+0x157/0x220 include/linux/seqlock.h:74
ktime_get_real_ts64+0xa0/0x410 kernel/time/timekeeping.c:788
tai64n_now drivers/net/wireguard/noise.c:501 [inline]
wg_noise_handshake_create_initiation+0x6ff/0xf30 drivers/net/wireguard/noise.c:565
wg_packet_send_handshake_initiation drivers/net/wireguard/send.c:34 [inline]
wg_packet_handshake_send_worker+0x15b/0x330 drivers/net/wireguard/send.c:51
process_one_work kernel/workqueue.c:3229 [inline]
process_scheduled_works+0xa63/0x1850 kernel/workqueue.c:3310
worker_thread+0x870/0xd30 kernel/workqueue.c:3391
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