INFO: task kworker/u8:2:35 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:2 state:D stack:20632 pid:35 tgid:35 ppid:2 flags:0x00004000
Workqueue: writeback wb_workfn (flush-bcachefs-45)
Call Trace:
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
io_schedule+0x8d/0x110 kernel/sched/core.c:7552
folio_wait_bit_common+0x882/0x12b0 mm/filemap.c:1309
folio_lock include/linux/pagemap.h:1148 [inline]
writeback_get_folio mm/page-writeback.c:2496 [inline]
writeback_iter+0x992/0x18d0 mm/page-writeback.c:2590
write_cache_pages+0xb1/0x230 mm/page-writeback.c:2639
bch2_writepages+0x14f/0x380 fs/bcachefs/fs-io-buffered.c:639
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
__writeback_inodes_wb+0x11b/0x260 fs/fs-writeback.c:2025
wb_writeback+0x42f/0xbd0 fs/fs-writeback.c:2136
wb_check_background_flush fs/fs-writeback.c:2206 [inline]
wb_do_writeback fs/fs-writeback.c:2294 [inline]
wb_workfn+0xc58/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
INFO: task syz.1.275:7508 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.1.275 state:D stack:22016 pid:7508 tgid:7508 ppid:6995 flags:0x00000004
Call Trace:
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
__bch2_two_state_lock+0x229/0x2c0 fs/bcachefs/two_state_shared_lock.c:7
bch2_two_state_lock fs/bcachefs/two_state_shared_lock.h:55 [inline]
bch2_page_fault+0x31f/0x960 fs/bcachefs/fs-io-pagecache.c:572
__do_fault+0x135/0x460 mm/memory.c:4876
do_shared_fault mm/memory.c:5346 [inline]
do_fault mm/memory.c:5420 [inline]
do_pte_missing mm/memory.c:3965 [inline]
handle_pte_fault+0x1105/0x6800 mm/memory.c:5751
__handle_mm_fault mm/memory.c:5894 [inline]
handle_mm_fault+0x1053/0x1ad0 mm/memory.c:6062
do_user_addr_fault arch/x86/mm/fault.c:1338 [inline]
handle_page_fault arch/x86/mm/fault.c:1481 [inline]
exc_page_fault+0x459/0x8c0 arch/x86/mm/fault.c:1539
asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623
RIP: 0033:0x7fadedf45a56
RSP: 002b:00007ffc8cb2ad48 EFLAGS: 00010206
RAX: 0000000020001780 RBX: 0000000000000004 RCX: ffffffffffffff73
RDX: 000000000000008c RSI: 00007fadeda05d8d RDI: 0000000020001780
RBP: 00007fadee137a80 R08: 00007fadede00000 R09: 0000000000000002
R10: 0000000000000000 R11: 0000000000000001 R12: 000000000003296e
R13: 00007ffc8cb2ae50 R14: 0000000000000032 R15: fffffffffffffffe
INFO: task syz.1.275:7560 blocked for more than 145 seconds.
Not tainted 6.11.0-syzkaller-11558-g075dbe9f6e3c #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.1.275 state:D stack:22736 pid:7560 tgid:7508 ppid:6995 flags:0x00000004
Call Trace:
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
io_schedule+0x8d/0x110 kernel/sched/core.c:7552
folio_wait_bit_common+0x882/0x12b0 mm/filemap.c:1309
folio_wait_writeback+0xe7/0x1e0 mm/page-writeback.c:3189
folio_prepare_writeback mm/page-writeback.c:2455 [inline]
writeback_get_folio mm/page-writeback.c:2497 [inline]
writeback_iter+0xb18/0x18d0 mm/page-writeback.c:2590
write_cache_pages+0xb1/0x230 mm/page-writeback.c:2639
bch2_writepages+0x14f/0x380 fs/bcachefs/fs-io-buffered.c:639
do_writepages+0x35d/0x870 mm/page-writeback.c:2683
filemap_fdatawrite_wbc+0x125/0x180 mm/filemap.c:398
__filemap_fdatawrite_range mm/filemap.c:431 [inline]
filemap_write_and_wait_range+0x192/0x280 mm/filemap.c:685
bch2_extend fs/bcachefs/fs-io.c:378 [inline]
bchfs_truncate+0x64b/0xc70 fs/bcachefs/fs-io.c:431
notify_change+0xbca/0xe90 fs/attr.c:503
do_truncate+0x220/0x310 fs/open.c:65
vfs_truncate+0x2e1/0x3b0 fs/open.c:111
do_sys_truncate+0xdb/0x190 fs/open.c:134
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:0x7fadedf7df39
RSP: 002b:00007faded9ff038 EFLAGS: 00000246 ORIG_RAX: 000000000000004c
RAX: ffffffffffffffda RBX: 00007fadee136058 RCX: 00007fadedf7df39
RDX: 0000000000000000 RSI: 000000000000f000 RDI: 0000000020000080
RBP: 00007fadedff0216 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fadee136058 R15: 00007ffc8cb2abe8
Showing all locks held in the system:
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
3 locks held by kworker/u8:2/35:
#0: ffff8880202fb148 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline]
#0: ffff8880202fb148 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1850 kernel/workqueue.c:3310
#1: ffffc90000ab7d00 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline]
#1: ffffc90000ab7d00 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1850 kernel/workqueue.c:3310
#2: ffff8880633180e0 (&type->s_umount_key#104){++++}-{3:3}, at: super_trylock_shared+0x22/0xf0 fs/super.c:562
3 locks held by kworker/u8:3/52:
#0: ffff88814bafb148 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline]
#0: ffff88814bafb148 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1850 kernel/workqueue.c:3310
#1: ffffc90000bc7d00 ((work_completion)(&(&ifa->dad_work)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline]
#1: ffffc90000bc7d00 ((work_completion)(&(&ifa->dad_work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1850 kernel/workqueue.c:3310
#2: ffffffff8fcbe808 (rtnl_mutex){+.+.}-{3:3}, at: addrconf_dad_work+0xd0/0x16f0 net/ipv6/addrconf.c:4196
3 locks held by kworker/u8:4/61:
#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: ffffc900015c7d00 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline]
#1: ffffc900015c7d00 ((linkwatch_work).work){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1850 kernel/workqueue.c:3310
#2: ffffffff8fcbe808 (rtnl_mutex){+.+.}-{3:3}, at: linkwatch_event+0xe/0x60 net/core/link_watch.c:276
7 locks held by kworker/u8:6/1111:
#0: ffff88801baeb148 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline]
#0: ffff88801baeb148 ((wq_completion)netns){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1850 kernel/workqueue.c:3310
#1: ffffc900040c7d00 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline]
#1: ffffc900040c7d00 (net_cleanup_work){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1850 kernel/workqueue.c:3310
#2: ffffffff8fcb1d10 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0x16a/0xcc0 net/core/net_namespace.c:580
#3: ffff88807e0e10e8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1014 [inline]
#3: ffff88807e0e10e8 (&dev->mutex){....}-{3:3}, at: devl_dev_lock net/devlink/devl_internal.h:108 [inline]
#3: ffff88807e0e10e8 (&dev->mutex){....}-{3:3}, at: devlink_pernet_pre_exit+0x13b/0x440 net/devlink/core.c:506
#4: ffff888024b63250 (&devlink->lock_key#20){+.+.}-{3:3}, at: devl_lock net/devlink/core.c:276 [inline]
#4: ffff888024b63250 (&devlink->lock_key#20){+.+.}-{3:3}, at: devl_dev_lock net/devlink/devl_internal.h:109 [inline]
#4: ffff888024b63250 (&devlink->lock_key#20){+.+.}-{3:3}, at: devlink_pernet_pre_exit+0x14d/0x440 net/devlink/core.c:506
#5: ffffffff8fcbe808 (rtnl_mutex){+.+.}-{3:3}, at: nsim_destroy+0x71/0x5c0 drivers/net/netdevsim/netdev.c:773
#6: ffffffff8e93d338 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:329 [inline]
#6: ffffffff8e93d338 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x451/0x830 kernel/rcu/tree_exp.h:976
2 locks held by getty/4976:
#0: ffff8880329980a0 (&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
1 lock held by syz.1.275/7508:
#0: ffff888026cdd658 (&vma->vm_lock->lock){++++}-{3:3}, at: vma_start_read include/linux/mm.h:704 [inline]
#0: ffff888026cdd658 (&vma->vm_lock->lock){++++}-{3:3}, at: lock_vma_under_rcu+0x34b/0x790 mm/memory.c:6228
1 lock held by syz.1.275/7509:
#0: ffff888063318420 (sb_writers#30){.+.+}-{0:0}, at: direct_splice_actor+0x49/0x220 fs/splice.c:1163
2 locks held by syz.1.275/7560:
#0: ffff888063318420 (sb_writers#30){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:515
#1: ffff888057e11038 (&sb->s_type->i_mutex_key#36){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:815 [inline]
#1: ffff888057e11038 (&sb->s_type->i_mutex_key#36){+.+.}-{3:3}, at: do_truncate+0x20c/0x310 fs/open.c:63
2 locks held by kworker/u8:10/7817:
#0: ffff888145ad8148 ((wq_completion)iou_exit){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline]
#0: ffff888145ad8148 ((wq_completion)iou_exit){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1850 kernel/workqueue.c:3310
#1: ffffc90008e57d00 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline]
#1: ffffc90008e57d00 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1850 kernel/workqueue.c:3310
2 locks held by syz.0.349/8057:
#0: ffff8880633180e0 (&type->s_umount_key#104){++++}-{3:3}, at: __super_lock fs/super.c:58 [inline]
#0: ffff8880633180e0 (&type->s_umount_key#104){++++}-{3:3}, at: super_lock+0x27c/0x400 fs/super.c:120
#1: ffff88806417a7d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:388 [inline]
#1: ffff88806417a7d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x26e/0xb50 fs/fs-writeback.c:2797
3 locks held by syz.1.469/8623:
#0: ffff8880633180e0 (&type->s_umount_key#104){++++}-{3:3}, at: __super_lock fs/super.c:58 [inline]
#0: ffff8880633180e0 (&type->s_umount_key#104){++++}-{3:3}, at: super_lock+0x27c/0x400 fs/super.c:120
#1: ffff888068e84398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:151 [inline]
#1: ffff888068e84398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:250 [inline]
#1: ffff888068e84398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7de/0xd20 fs/bcachefs/btree_iter.c:3215
#2: ffff888068ea66d0 (&c->gc_lock){.+.+}-{3:3}, at: bch2_btree_update_start+0x682/0x14e0 fs/bcachefs/btree_update_interior.c:1202
1 lock held by syz.4.470/8626:
#0: ffff8880234a94c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:860 [inline]
#0: ffff8880234a94c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x20e/0x490 block/fops.c:808
1 lock held by syz-executor/8787:
#0: ffffffff8fcbe808 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:79 [inline]
#0: ffffffff8fcbe808 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x6e6/0xcf0 net/core/rtnetlink.c:6643
1 lock held by syz.1.498/8808:
#0: ffffffff8fcbe808 (rtnl_mutex){+.+.}-{3:3}, at: tun_detach drivers/net/tun.c:698 [inline]
#0: ffffffff8fcbe808 (rtnl_mutex){+.+.}-{3:3}, at: tun_chr_close+0x3b/0x1b0 drivers/net/tun.c:3517
1 lock held by syz.4.485/8814:
#0: ffffffff8fcbe808 (rtnl_mutex){+.+.}-{3:3}, at: tun_detach drivers/net/tun.c:698 [inline]
#0: ffffffff8fcbe808 (rtnl_mutex){+.+.}-{3:3}, at: tun_chr_close+0x3b/0x1b0 drivers/net/tun.c:3517
1 lock held by syz.0.500/8818:
#0: ffffffff8fcbe808 (rtnl_mutex){+.+.}-{3:3}, at: tun_detach drivers/net/tun.c:698 [inline]
#0: ffffffff8fcbe808 (rtnl_mutex){+.+.}-{3:3}, at: tun_chr_close+0x3b/0x1b0 drivers/net/tun.c:3517
1 lock held by syz.2.499/8819:
#0: ffffffff8fcbe808 (rtnl_mutex){+.+.}-{3:3}, at: tun_detach drivers/net/tun.c:698 [inline]
#0: ffffffff8fcbe808 (rtnl_mutex){+.+.}-{3:3}, at: tun_chr_close+0x3b/0x1b0 drivers/net/tun.c:3517
=============================================
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:
__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
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 7558 Comm: bch-copygc/loop Not tainted 6.11.0-syzkaller-11558-g075dbe9f6e3c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:bch2_trans_iter_exit+0x170/0x230 fs/bcachefs/btree_iter.c:2884
Code: a6 3b 7d fd d1 eb 0f b7 f5 4c 89 f7 89 da e8 d7 e2 fd ff eb 05 e8 f0 37 7d fd ba 0e 00 00 00 4c 89 ff 31 f6 e8 31 c9 e3 fd 5b <41> 5c 41 5e 41 5f 5d c3 cc cc cc cc 89 e9 80 e1 07 fe c1 38 c1 0f
RSP: 0018:ffffc900030cec58 EFLAGS: 00000246
RAX: ffffc900030cee40 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffc900030cee4e
RBP: 0000000000000000 R08: ffffc900030cee4d R09: 0000000000000000
R10: ffffc900030cee40 R11: fffff52000619dca R12: dffffc0000000000
R13: fffff52000619d9c R14: ffff888064084000 R15: ffffc900030cee40
FS: 0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f84c0407000 CR3: 000000000e734000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
bch2_get_next_backpointer+0xb71/0x1320 fs/bcachefs/backpointers.c:259
bch2_evacuate_bucket+0x1075/0x34e0 fs/bcachefs/move.c:708
bch2_copygc+0x3a03/0x4650 fs/bcachefs/movinggc.c:234
bch2_copygc_thread+0x737/0xc20 fs/bcachefs/movinggc.c:375
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