INFO: task kworker/u8:1:12 blocked for more than 143 seconds.
Not tainted 6.11.0-syzkaller-11558-g075dbe9f6e3c #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/u8:1 state:D stack:20336 pid:12 tgid:12 ppid:2 flags:0x00004000
Workqueue: writeback wb_workfn (flush-btrfs-5)
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5315 [inline]
__schedule+0x1843/0x4ae0 kernel/sched/core.c:6675
__schedule_loop kernel/sched/core.c:6752 [inline]
schedule+0x14b/0x320 kernel/sched/core.c:6767
wait_extent_bit fs/btrfs/extent-io-tree.c:820 [inline]
__lock_extent+0x6aa/0x860 fs/btrfs/extent-io-tree.c:1866
lock_extent fs/btrfs/extent-io-tree.h:148 [inline]
btrfs_invalidate_folio+0x278/0xae0 fs/btrfs/inode.c:7323
extent_writepage fs/btrfs/extent_io.c:1437 [inline]
extent_write_cache_pages fs/btrfs/extent_io.c:2130 [inline]
btrfs_writepages+0x1043/0x2370 fs/btrfs/extent_io.c:2261
do_writepages+0x35d/0x870 mm/page-writeback.c:2683
__writeback_single_inode+0x14f/0x10d0 fs/fs-writeback.c:1658
writeback_sb_inodes+0x80c/0x1370 fs/fs-writeback.c:1954
wb_writeback+0x41b/0xbd0 fs/fs-writeback.c:2134
wb_do_writeback fs/fs-writeback.c:2281 [inline]
wb_workfn+0x410/0x1090 fs/fs-writeback.c:2321
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
</TASK>
INFO: task syz.0.140:6465 blocked for more than 143 seconds.
Not tainted 6.11.0-syzkaller-11558-g075dbe9f6e3c #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.0.140 state:D stack:20560 pid:6465 tgid:6464 ppid:6107 flags:0x00004006
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5315 [inline]
__schedule+0x1843/0x4ae0 kernel/sched/core.c:6675
__schedule_loop kernel/sched/core.c:6752 [inline]
schedule+0x14b/0x320 kernel/sched/core.c:6767
wb_wait_for_completion+0x166/0x290 fs/fs-writeback.c:216
__writeback_inodes_sb_nr+0x2d2/0x380 fs/fs-writeback.c:2713
try_to_writeback_inodes_sb+0x98/0xc0 fs/fs-writeback.c:2761
btrfs_start_delalloc_flush fs/btrfs/transaction.c:2124 [inline]
btrfs_commit_transaction+0x896/0x3740 fs/btrfs/transaction.c:2309
btrfs_sync_file+0xdf5/0x1230 fs/btrfs/file.c:1864
generic_write_sync include/linux/fs.h:2871 [inline]
btrfs_do_write_iter+0x5e0/0x760 fs/btrfs/file.c:1515
new_sync_write fs/read_write.c:590 [inline]
vfs_write+0xa6d/0xc90 fs/read_write.c:683
ksys_pwrite64 fs/read_write.c:798 [inline]
__do_sys_pwrite64 fs/read_write.c:808 [inline]
__se_sys_pwrite64 fs/read_write.c:805 [inline]
__x64_sys_pwrite64+0x1aa/0x230 fs/read_write.c:805
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:0x7f365157df39
RSP: 002b:00007f36523cb038 EFLAGS: 00000246 ORIG_RAX: 0000000000000012
RAX: ffffffffffffffda RBX: 00007f3651735f80 RCX: 00007f365157df39
RDX: 0000000000000001 RSI: 0000000020000280 RDI: 0000000000000008
RBP: 00007f36515f0216 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f3651735f80 R15: 00007ffff5d232f8
</TASK>
INFO: task syz.0.140:6509 blocked for more than 144 seconds.
Not tainted 6.11.0-syzkaller-11558-g075dbe9f6e3c #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.0.140 state:D stack:25080 pid:6509 tgid:6464 ppid:6107 flags:0x00004004
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5315 [inline]
__schedule+0x1843/0x4ae0 kernel/sched/core.c:6675
__schedule_loop kernel/sched/core.c:6752 [inline]
schedule+0x14b/0x320 kernel/sched/core.c:6767
wait_current_trans+0x343/0x4b0 fs/btrfs/transaction.c:526
start_transaction+0xae2/0x1670 fs/btrfs/transaction.c:696
clone_copy_inline_extent fs/btrfs/reflink.c:295 [inline]
btrfs_clone+0x170c/0x2970 fs/btrfs/reflink.c:529
btrfs_clone_files+0x27c/0x3a0 fs/btrfs/reflink.c:751
btrfs_remap_file_range+0x615/0x1210 fs/btrfs/reflink.c:889
vfs_copy_file_range+0xc07/0x1510 fs/read_write.c:1615
__do_sys_copy_file_range fs/read_write.c:1705 [inline]
__se_sys_copy_file_range+0x3f2/0x5d0 fs/read_write.c:1668
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:0x7f365157df39
RSP: 002b:00007f36523aa038 EFLAGS: 00000246 ORIG_RAX: 0000000000000146
RAX: ffffffffffffffda RBX: 00007f3651736058 RCX: 00007f365157df39
RDX: 0000000000000007 RSI: 0000000000000000 RDI: 0000000000000009
RBP: 00007f36515f0216 R08: 0000000000000006 R09: 0000000000000000
R10: 00000000200000c0 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f3651736058 R15: 00007ffff5d232f8
</TASK>
Showing all locks held in the system:
2 locks held by kworker/u8:1/12:
#0: ffff888143aa4948 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline]
#0: ffff888143aa4948 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1850 kernel/workqueue.c:3310
#1: ffffc90000117d00 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline]
#1: ffffc90000117d00 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1850 kernel/workqueue.c:3310
1 lock held by khungtaskd/30:
#0: ffffffff8e937da0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline]
#0: ffffffff8e937da0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline]
#0: ffffffff8e937da0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6701
2 locks held by getty/4971:
#0: ffff88814c1320a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
#1: ffffc90002f062f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6a6/0x1e00 drivers/tty/n_tty.c:2211
5 locks held by syz.0.140/6465:
#0: ffff88807ac68420 (sb_writers#15){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2931 [inline]
#0: ffff88807ac68420 (sb_writers#15){.+.+}-{0:0}, at: vfs_write+0x224/0xc90 fs/read_write.c:679
#1: ffff88807ac68610 (sb_internal#3){.+.+}-{0:0}, at: btrfs_sync_file+0xb4f/0x1230 fs/btrfs/file.c:1771
#2: ffff8880625ea450 (btrfs_trans_num_writers){++++}-{0:0}, at: join_transaction+0x405/0xd70 fs/btrfs/transaction.c:289
#3: ffff8880625ea478 (btrfs_trans_num_extwriters){++++}-{0:0}, at: join_transaction+0x405/0xd70 fs/btrfs/transaction.c:289
#4: ffff88807ac680e0 (&type->s_umount_key#59){++++}-{3:3}, at: try_to_writeback_inodes_sb+0x21/0xc0 fs/fs-writeback.c:2758
4 locks held by syz.0.140/6509:
#0: ffff88807ac68420 (sb_writers#15){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2931 [inline]
#0: ffff88807ac68420 (sb_writers#15){.+.+}-{0:0}, at: vfs_copy_file_range+0x9d2/0x1510 fs/read_write.c:1603
#1: ffff88805fcfca28 (&sb->s_type->i_mutex_key#23){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:815 [inline]
#1: ffff88805fcfca28 (&sb->s_type->i_mutex_key#23){+.+.}-{3:3}, at: btrfs_inode_lock+0x4d/0xe0 fs/btrfs/inode.c:362
#2: ffff88805fcfc8b8 (&ei->i_mmap_lock){+.+.}-{3:3}, at: btrfs_inode_lock+0xc5/0xe0 fs/btrfs/inode.c:365
#3: ffff88807ac68610 (sb_internal#3){.+.+}-{0:0}, at: clone_copy_inline_extent fs/btrfs/reflink.c:295 [inline]
#3: ffff88807ac68610 (sb_internal#3){.+.+}-{0:0}, at: btrfs_clone+0x170c/0x2970 fs/btrfs/reflink.c:529
1 lock held by btrfs-transacti/6499:
#0: ffff8880625e87c0 (&fs_info->transaction_kthread_mutex){+.+.}-{3:3}, at: transaction_kthread+0x100/0x500 fs/btrfs/disk-io.c:1572
2 locks held by syz-executor/7198:
#0: ffff8880700800e0 (&type->s_umount_key#110){+.+.}-{3:3}, at: __super_lock fs/super.c:56 [inline]
#0: ffff8880700800e0 (&type->s_umount_key#110){+.+.}-{3:3}, at: __super_lock_excl fs/super.c:71 [inline]
#0: ffff8880700800e0 (&type->s_umount_key#110){+.+.}-{3:3}, at: deactivate_super+0xb5/0xf0 fs/super.c:505
#1: ffff888070700278 (&c->state_lock){+.+.}-{3:3}, at: __bch2_fs_stop+0xfd/0x540 fs/bcachefs/super.c:618
=============================================
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.11.0-syzkaller-11558-g075dbe9f6e3c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Call Trace:
<TASK>
__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:223 [inline]
watchdog+0xff4/0x1040 kernel/hung_task.c:379
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
</TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 2522 Comm: kworker/u8:6 Not tainted 6.11.0-syzkaller-11558-g075dbe9f6e3c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Workqueue: events_unbound cfg80211_wiphy_work
RIP: 0010:preempt_count_sub+0x0/0x170 kernel/sched/core.c:5805
Code: 8c 77 ff ff ff 48 c7 c7 70 e1 1b 90 e8 09 3f 98 00 e9 66 ff ff ff 0f 1f 40 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 <f3> 0f 1e fa 41 56 53 89 fb 48 c7 c0 40 d9 38 9a 48 c1 e8 03 49 be
RSP: 0018:ffffc900092d6c70 EFLAGS: 00000246
RAX: d04866dce6dcc200 RBX: 0000000000000001 RCX: ffffc900092d6b03
RDX: 0000000000000004 RSI: ffffffff8c0adb40 RDI: 0000000000000001
RBP: 0000000000000001 R08: ffffffff901baf2f R09: 1ffffffff20375e5
R10: dffffc0000000000 R11: fffffbfff20375e6 R12: 000000007882ee80
R13: dffffc0000000000 R14: ffffffff8142c173 R15: ffff88813fffaea0
FS: 0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005642e8c56798 CR3: 000000000e734000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<NMI>
</NMI>
<TASK>
rcu_read_unlock_sched include/linux/rcupdate.h:964 [inline]
pfn_valid include/linux/mmzone.h:2053 [inline]
__virt_addr_valid+0x439/0x530 arch/x86/mm/physaddr.c:65
kasan_addr_to_slab+0xd/0x80 mm/kasan/common.c:37
__kasan_record_aux_stack+0x11/0xc0 mm/kasan/generic.c:526
kvfree_call_rcu+0xfc/0x790 kernel/rcu/tree.c:3809
cfg80211_update_known_bss+0xb45/0x1590 net/wireless/scan.c:1891
__cfg80211_bss_update+0x153/0x2030 net/wireless/scan.c:1938
cfg80211_inform_single_bss_data+0xd82/0x2090 net/wireless/scan.c:2329
cfg80211_inform_bss_data+0x3ce/0x5e70 net/wireless/scan.c:3184
cfg80211_inform_bss_frame_data+0x3b8/0x720 net/wireless/scan.c:3279
ieee80211_bss_info_update+0x8a7/0xbc0 net/mac80211/scan.c:226
ieee80211_rx_bss_info net/mac80211/ibss.c:1100 [inline]
ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1579 [inline]
ieee80211_ibss_rx_queued_mgmt+0x1962/0x2d70 net/mac80211/ibss.c:1606
ieee80211_iface_process_skb net/mac80211/iface.c:1603 [inline]
ieee80211_iface_work+0x8a5/0xf20 net/mac80211/iface.c:1657
cfg80211_wiphy_work+0x2db/0x490 net/wireless/core.c:440
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
</TASK>