INFO: task kworker/1:2H:7361 blocked for more than 151 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/1:2H    state:D stack:22568 pid:7361  tgid:7361  ppid:2      task_flags:0x4208060 flags:0x00004000
Workqueue: bcachefs_btree_write_complete btree_node_write_work
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 __closure_sync+0x163/0x220
 bch2_journal_res_get_slowpath+0xa04/0xaf0
 bch2_journal_res_get+0x206/0x8f0
 bch2_trans_commit_error+0x361/0x1130
 __bch2_trans_commit+0x1bb5/0x8870
 bch2_btree_node_update_key+0x1ab7/0x3030
 bch2_btree_node_update_key_get_iter+0x5ad/0x640
 btree_node_write_work+0x763/0xc40
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>
INFO: task syz.5.436:8320 blocked for more than 151 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.5.436       state:D stack:17960 pid:8320  tgid:8319  ppid:8134   task_flags:0x400140 flags:0x00004006
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 __closure_sync+0x163/0x220
 bch2_journal_res_get_slowpath+0xa04/0xaf0
 bch2_journal_res_get+0x206/0x8f0
 bch2_trans_commit_error+0x361/0x1130
 __bch2_trans_commit+0x1bb5/0x8870
 bch2_journal_replay+0x1e85/0x2630
 __bch2_run_recovery_passes+0x3bd/0x1060
 bch2_run_recovery_passes+0x184/0x210
 bch2_fs_recovery+0x2690/0x3a50
 bch2_fs_start+0xaaf/0xda0
 bch2_fs_get_tree+0xb39/0x1520
 vfs_get_tree+0x92/0x2b0
 do_new_mount+0x2a2/0x9e0
 __se_sys_mount+0x317/0x410
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f88abd9038a
RSP: 002b:00007f88accd0e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f88accd0ef0 RCX: 00007f88abd9038a
RDX: 0000200000024c80 RSI: 0000200000000080 RDI: 00007f88accd0eb0
RBP: 0000200000024c80 R08: 00007f88accd0ef0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000200000000080
R13: 00007f88accd0eb0 R14: 0000000000024c73 R15: 00002000000000c0
 </TASK>

Showing all locks held in the system:
7 locks held by kworker/u9:1/28:
1 lock held by khungtaskd/34:
 #0: ffffffff8e139f20 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
2 locks held by getty/5676:
 #0: ffff888110f9d0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffffc900029062f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x43e/0x1400
3 locks held by kworker/u11:2/5845:
 #0: ffff88801f7f5148 ((wq_completion)hci4){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc90002fefbc0 ((work_completion)(&hdev->power_on)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff8881232a8dc0 (&hdev->req_lock){+.+.}-{4:4}, at: hci_power_on+0x1ac/0x680
2 locks held by kworker/1:2H/7361:
 #0: ffff88803029e148 ((wq_completion)bcachefs_btree_write_complete){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc9000388fbc0 ((work_completion)(&wb->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
6 locks held by kworker/u9:11/9592:
2 locks held by syz.9.741/10387:
 #0: ffff88810a9220a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_release+0xb7/0x200
 #1: ffff88810a9240a0 (&tty->ldisc_sem/1){+.+.}-{0:0}, at: tty_ldisc_release+0xdb/0x200

=============================================

NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 34 Comm: khungtaskd Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0x189/0x250
 nmi_cpu_backtrace+0x39e/0x3d0
 nmi_trigger_cpumask_backtrace+0x17a/0x300
 watchdog+0xf93/0xfe0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 9592 Comm: kworker/u9:11 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Workqueue: events_unbound cfg80211_wiphy_work
RIP: 0010:unwind_next_frame+0x801/0x2390
Code: 48 8b 34 24 48 8b 54 24 08 4c 8b 23 48 8d 5a 01 48 89 d0 48 c1 e8 03 0f b6 04 28 84 c0 0f 85 58 17 00 00 48 89 d8 48 c1 e8 03 <0f> b6 04 28 84 c0 0f 84 53 02 00 00 89 d9 80 e1 07 38 c1 0f 8c 46
RSP: 0018:ffffc90000006c98 EFLAGS: 00000a03
RAX: 1ffffffff2069673 RBX: ffffffff9034b39d RCX: ffffffff8fb8489c
RDX: ffffffff9034b39c RSI: ffffffff9034b3a0 RDI: ffffffff8be33820
RBP: dffffc0000000000 R08: 0000000000000001 R09: ffffffff8172c195
R10: ffffc90000006db8 R11: ffffffff81ac3aa0 R12: ffffc900044dfc70
R13: ffffc90000006db8 R14: ffffc90000006d68 R15: ffffc90000006da0
FS:  0000000000000000(0000) GS:ffff8880b8618000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c48a137 CR3: 0000000133d06000 CR4: 00000000000006f0
Call Trace:
 <IRQ>
 arch_stack_walk+0x11c/0x150
 stack_trace_save+0x9c/0xe0
 kasan_save_stack+0x3e/0x60
 kasan_record_aux_stack+0xbd/0xd0
 call_rcu+0x157/0x9c0
 skb_release_head_state+0x71/0x250
 consume_skb+0x60/0xf0
 nft_synproxy_eval_v4+0x376/0x560
 nft_synproxy_do_eval+0x345/0x570
 nft_do_chain+0x40c/0x1920
 nft_do_chain_inet+0x25d/0x340
 nf_hook_slow+0xc5/0x220
 NF_HOOK+0x206/0x3a0
 NF_HOOK+0x30c/0x3a0
 __netif_receive_skb+0x143/0x380
 process_backlog+0x60e/0x14f0
 __napi_poll+0xc7/0x360
 net_rx_action+0x707/0xe30
 handle_softirqs+0x286/0x870
 do_softirq+0xec/0x180
 </IRQ>
 <TASK>
 __local_bh_enable_ip+0x17d/0x1c0
 cfg80211_inform_single_bss_data+0x13d2/0x1ac0
 cfg80211_inform_bss_data+0x1fb/0x3b30
 cfg80211_inform_bss_frame_data+0x3d7/0x730
 ieee80211_bss_info_update+0x746/0x9e0
 ieee80211_ibss_rx_queued_mgmt+0xa36/0x2ae0
 ieee80211_iface_work+0x85f/0x12d0
 cfg80211_wiphy_work+0x2bb/0x470
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>
