INFO: task syz.0.249:7208 blocked for more than 144 seconds.
Not tainted 6.13.0-rc3-next-20241220-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.0.249 state:D stack:23544 pid:7208 tgid:7144 ppid:5827 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:5371 [inline]
__schedule+0x189f/0x4c80 kernel/sched/core.c:6758
__schedule_loop kernel/sched/core.c:6835 [inline]
schedule+0x14b/0x320 kernel/sched/core.c:6850
io_schedule+0x8d/0x110 kernel/sched/core.c:7683
folio_wait_bit_common+0x839/0xee0 mm/filemap.c:1309
folio_lock include/linux/pagemap.h:1172 [inline]
truncate_inode_pages_range+0xc1f/0x10e0 mm/truncate.c:380
bchfs_fallocate+0x2d1/0x730 fs/bcachefs/fs-io.c:756
bch2_fallocate_dispatch+0x3ac/0x540 fs/bcachefs/fs-io.c:809
vfs_fallocate+0x623/0x7a0 fs/open.c:338
do_vfs_ioctl+0x258c/0x2e40 fs/ioctl.c:885
__do_sys_ioctl fs/ioctl.c:904 [inline]
__se_sys_ioctl+0x80/0x170 fs/ioctl.c:892
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:0x7f3bdc585d29
RSP: 002b:00007f3bdd350038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f3bdc776320 RCX: 00007f3bdc585d29
RDX: 0000000020000180 RSI: 0000000040305839 RDI: 0000000000000009
RBP: 00007f3bdc601b08 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000001 R14: 00007f3bdc776320 R15: 00007fff78225aa8
INFO: task syz.0.249:7209 blocked for more than 145 seconds.
Not tainted 6.13.0-rc3-next-20241220-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.0.249 state:D stack:24816 pid:7209 tgid:7144 ppid:5827 flags:0x00000004
Call Trace:
context_switch kernel/sched/core.c:5371 [inline]
__schedule+0x189f/0x4c80 kernel/sched/core.c:6758
__schedule_loop kernel/sched/core.c:6835 [inline]
schedule+0x14b/0x320 kernel/sched/core.c:6850
__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_readahead+0x9e1/0x1240 fs/bcachefs/fs-io-buffered.c:272
read_pages+0x179/0x570 mm/readahead.c:161
page_cache_ra_order+0x833/0xba0 mm/readahead.c:504
page_cache_sync_readahead include/linux/pagemap.h:1413 [inline]
filemap_get_pages+0x605/0x2080 mm/filemap.c:2528
filemap_splice_read+0x68e/0xef0 mm/filemap.c:2904
do_splice_read fs/splice.c:985 [inline]
splice_direct_to_actor+0x4af/0xc80 fs/splice.c:1089
do_splice_direct_actor fs/splice.c:1207 [inline]
do_splice_direct+0x289/0x3e0 fs/splice.c:1233
do_sendfile+0x564/0x8a0 fs/read_write.c:1363
__do_sys_sendfile64 fs/read_write.c:1424 [inline]
__se_sys_sendfile64+0x17c/0x1e0 fs/read_write.c:1410
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:0x7f3bdc585d29
RSP: 002b:00007f3bdd32f038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007f3bdc776400 RCX: 00007f3bdc585d29
RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000006
RBP: 00007f3bdc601b08 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000800000009 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000001 R14: 00007f3bdc776400 R15: 00007fff78225aa8
Showing all locks held in the system:
1 lock held by pool_workqueue_/3:
#0: ffffffff8e93d278 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:334 [inline]
#0: ffffffff8e93d278 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x451/0x830 kernel/rcu/tree_exp.h:996
3 locks held by kworker/0:1/9:
1 lock held by khungtaskd/30:
#0: ffffffff8e937da0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline]
#0: ffffffff8e937da0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline]
#0: ffffffff8e937da0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6744
2 locks held by kworker/u8:3/52:
#0: ffff8880b873e998 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:598
#1: ffff8880b8728948 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x41d/0x7a0 kernel/sched/psi.c:987
2 locks held by getty/5589:
#0: ffff88814d33b0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
#1: ffffc9000332b2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x6a6/0x1e00 drivers/tty/n_tty.c:2211
3 locks held by kworker/0:3/5829:
#0: ffff88801ac80d48 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline]
#0: ffff88801ac80d48 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1840 kernel/workqueue.c:3310
#1: ffffc90003fffc60 (free_ipc_work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline]
#1: ffffc90003fffc60 (free_ipc_work){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1840 kernel/workqueue.c:3310
#2: ffffffff8e93d278 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:334 [inline]
#2: ffffffff8e93d278 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x451/0x830 kernel/rcu/tree_exp.h:996
3 locks held by kworker/1:3/5875:
#0: ffff88801ac80d48 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline]
#0: ffff88801ac80d48 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1840 kernel/workqueue.c:3310
#1: ffffc9000432fc60 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline]
#1: ffffc9000432fc60 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1840 kernel/workqueue.c:3310
#2: ffff888070d74240 (&data->fib_lock){+.+.}-{4:4}, at: nsim_fib_event_work+0x2d1/0x4130 drivers/net/netdevsim/fib.c:1490
3 locks held by kworker/1:6/5937:
#0: ffff88801ac80d48 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline]
#0: ffff88801ac80d48 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1840 kernel/workqueue.c:3310
#1: ffffc9000494fc60 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline]
#1: ffffc9000494fc60 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1840 kernel/workqueue.c:3310
#2: ffff88802c295240 (&data->fib_lock){+.+.}-{4:4}, at: nsim_fib_event_work+0x2d1/0x4130 drivers/net/netdevsim/fib.c:1490
5 locks held by kworker/u8:8/6060:
#0: ffff88801baf5948 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline]
#0: ffff88801baf5948 ((wq_completion)netns){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1840 kernel/workqueue.c:3310
#1: ffffc90004ba7c60 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline]
#1: ffffc90004ba7c60 (net_cleanup_work){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1840 kernel/workqueue.c:3310
#2: ffffffff8fcae690 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0x16a/0xd50 net/core/net_namespace.c:602
#3: ffff8880610214e8 (&wg->device_update_lock){+.+.}-{4:4}, at: wg_destruct+0x110/0x2e0 drivers/net/wireguard/device.c:249
#4: ffffffff8e93d278 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:302 [inline]
#4: ffffffff8e93d278 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x381/0x830 kernel/rcu/tree_exp.h:996
2 locks held by syz.0.249/7208:
#0: ffff88805aa76420 (sb_writers#27){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3012 [inline]
#0: ffff88805aa76420 (sb_writers#27){.+.+}-{0:0}, at: vfs_fallocate+0x59d/0x7a0 fs/open.c:337
#1: ffff888058ea88e0 (&sb->s_type->i_mutex_key#32){++++}-{4:4}, at: inode_lock include/linux/fs.h:863 [inline]
#1: ffff888058ea88e0 (&sb->s_type->i_mutex_key#32){++++}-{4:4}, at: bch2_fallocate_dispatch+0x1e2/0x540 fs/bcachefs/fs-io.c:800
1 lock held by syz.0.249/7209:
#0: ffff888058ea8a80 (mapping.invalidate_lock#9){.+.+}-{4:4}, at: filemap_invalidate_lock_shared include/linux/fs.h:918 [inline]
#0: ffff888058ea8a80 (mapping.invalidate_lock#9){.+.+}-{4:4}, at: page_cache_ra_order+0x325/0xba0 mm/readahead.c:480
2 locks held by syz-executor/8314:
#0: ffff888048090d80 (&hdev->req_lock){+.+.}-{4:4}, at: hci_dev_do_close net/bluetooth/hci_core.c:480 [inline]
#0: ffff888048090d80 (&hdev->req_lock){+.+.}-{4:4}, at: hci_unregister_dev+0x203/0x510 net/bluetooth/hci_core.c:2697
#1: ffff888048090078 (&hdev->lock){+.+.}-{4:4}, at: hci_dev_close_sync+0x5c8/0x11c0 net/bluetooth/hci_sync.c:5209
2 locks held by syz-executor/8316:
#0: ffff888083ae4d80 (&hdev->req_lock){+.+.}-{4:4}, at: hci_dev_do_close net/bluetooth/hci_core.c:480 [inline]
#0: ffff888083ae4d80 (&hdev->req_lock){+.+.}-{4:4}, at: hci_unregister_dev+0x203/0x510 net/bluetooth/hci_core.c:2697
#1: ffff888083ae4078 (&hdev->lock){+.+.}-{4:4}, at: hci_dev_close_sync+0x5c8/0x11c0 net/bluetooth/hci_sync.c:5209
2 locks held by syz-executor/8317:
#0: ffff888083ae0d80 (&hdev->req_lock){+.+.}-{4:4}, at: hci_dev_do_close net/bluetooth/hci_core.c:480 [inline]
#0: ffff888083ae0d80 (&hdev->req_lock){+.+.}-{4:4}, at: hci_unregister_dev+0x203/0x510 net/bluetooth/hci_core.c:2697
#1: ffff888083ae0078 (&hdev->lock){+.+.}-{4:4}, at: hci_dev_close_sync+0x5c8/0x11c0 net/bluetooth/hci_sync.c:5209
2 locks held by syz-executor/8318:
#0: ffff888083eb4d80 (&hdev->req_lock){+.+.}-{4:4}, at: hci_dev_do_close net/bluetooth/hci_core.c:480 [inline]
#0: ffff888083eb4d80 (&hdev->req_lock){+.+.}-{4:4}, at: hci_unregister_dev+0x203/0x510 net/bluetooth/hci_core.c:2697
#1: ffff888083eb4078 (&hdev->lock){+.+.}-{4:4}, at: hci_dev_close_sync+0x5c8/0x11c0 net/bluetooth/hci_sync.c:5209
2 locks held by syz-executor/8322:
#0: ffff8880651b4d80 (&hdev->req_lock){+.+.}-{4:4}, at: hci_dev_do_close net/bluetooth/hci_core.c:480 [inline]
#0: ffff8880651b4d80 (&hdev->req_lock){+.+.}-{4:4}, at: hci_unregister_dev+0x203/0x510 net/bluetooth/hci_core.c:2697
#1: ffff8880651b4078 (&hdev->lock){+.+.}-{4:4}, at: hci_dev_close_sync+0x5c8/0x11c0 net/bluetooth/hci_sync.c:5209
1 lock held by rm/8530:
=============================================
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.13.0-rc3-next-20241220-syzkaller #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:234 [inline]
watchdog+0xff6/0x1040 kernel/hung_task.c:397
kthread+0x7a9/0x920 kernel/kthread.c:464
ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:148
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: 5499 Comm: dhcpcd Not tainted 6.13.0-rc3-next-20241220-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:mt_external_lock include/linux/maple_tree.h:787 [inline]
RIP: 0010:mt_locked lib/maple_tree.c:796 [inline]
RIP: 0010:mt_slot lib/maple_tree.c:803 [inline]
RIP: 0010:mas_slot lib/maple_tree.c:836 [inline]
RIP: 0010:mas_validate_parent_slot lib/maple_tree.c:7374 [inline]
RIP: 0010:mt_validate+0x90b/0x4b30 lib/maple_tree.c:7564
Code: 0b 8b 3b f6 48 8b 44 24 10 4e 8b 24 e8 e8 2d d9 07 00 89 c3 31 ff 89 c6 e8 b2 13 d5 f5 85 db 0f 84 9a 00 00 00 48 8b 54 24 48 <48> 89 d0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df 0f b6 04 08 84
RSP: 0018:ffffc90003467880 EFLAGS: 00000202
RAX: 0000000000000000 RBX: 0000000000000001 RCX: ffff88802f3d9e00
RDX: ffff88805ef95a80 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90003467a90 R08: ffffffff8bea14ae R09: fffffbfff350104c
R10: dffffc0000000000 R11: fffffbfff350104c R12: 0000000000000000
R13: 0000000000000006 R14: ffff888023382c80 R15: ffff88803326420c
FS: 00007fdccafb0740(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000056008546c000 CR3: 0000000028ca2000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
validate_mm+0xf1/0x590 mm/vma.c:585
mmap_region+0x255/0x360 mm/mmap.c:1130
do_mmap+0xecc/0x13a0 mm/mmap.c:561
vm_mmap_pgoff+0x214/0x430 mm/util.c:580
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:0x7fdccb0817e9
Code: 89 e0 5b 5d 41 5c c3 41 89 ca 41 f7 c1 ff 0f 00 00 74 10 48 8b 05 2f 36 0d 00 64 c7 00 16 00 00 00 eb 1b b8 09 00 00 00 0f 05 <48> 3d 00 f0 ff ff 76 10 48 8b 15 10 36 0d 00 f7 d8 64 89 02 48 83
RSP: 002b:00007ffeab2cc268 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007ffeab2cc584 RCX: 00007fdccb0817e9
RDX: 0000000000000003 RSI: 0000000000009000 RDI: 0000000000000000
RBP: 00007ffeab2cc608 R08: 00000000ffffffff R09: 0000000000000000
R10: 0000000000020022 R11: 0000000000000246 R12: 0000000000009000
R13: 00007ffeab2cc7e0 R14: 0000000000000002 R15: 00007ffeab2cc608