INFO: task syz-executor632:6022 blocked for more than 143 seconds.
Not tainted 6.13.0-rc5-syzkaller-00012-g0bc21e701a6f #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor632 state:D stack:24064 pid:6022 tgid:5970 ppid:5832 flags:0x00004006
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5369 [inline]
__schedule+0x17fb/0x4be0 kernel/sched/core.c:6756
__schedule_loop kernel/sched/core.c:6833 [inline]
schedule+0x14b/0x320 kernel/sched/core.c:6848
io_schedule+0x8d/0x110 kernel/sched/core.c:7681
folio_wait_bit_common+0x839/0xee0 mm/filemap.c:1308
folio_lock include/linux/pagemap.h:1151 [inline]
truncate_inode_pages_range+0xc1f/0x10e0 mm/truncate.c:380
bchfs_fallocate+0x2d1/0x730 fs/bcachefs/fs-io.c:727
bch2_fallocate_dispatch+0x3ac/0x540 fs/bcachefs/fs-io.c:780
vfs_fallocate+0x569/0x6e0 fs/open.c:327
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:0x7f1a4d02d239
RSP: 002b:00007f1a4cfba218 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f1a4d0b36d8 RCX: 00007f1a4d02d239
RDX: 0000000020000180 RSI: 0000000040305839 RDI: 0000000000000006
RBP: 00007f1a4d0b36d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f1a4d07fe18
R13: 0031656c69662f2e R14: 7366656863616362 R15: 000003fffffff404
</TASK>
INFO: task syz-executor632:6023 blocked for more than 144 seconds.
Not tainted 6.13.0-rc5-syzkaller-00012-g0bc21e701a6f #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor632 state:D stack:25696 pid:6023 tgid:5970 ppid:5832 flags:0x00000006
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5369 [inline]
__schedule+0x17fb/0x4be0 kernel/sched/core.c:6756
__schedule_loop kernel/sched/core.c:6833 [inline]
schedule+0x14b/0x320 kernel/sched/core.c:6848
__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+0x9a2/0x11e0 fs/bcachefs/fs-io-buffered.c:258
read_pages+0x176/0x750 mm/readahead.c:160
page_cache_ra_order+0x7e3/0xb60 mm/readahead.c:512
page_cache_sync_readahead include/linux/pagemap.h:1397 [inline]
filemap_get_pages+0x605/0x2080 mm/filemap.c:2546
filemap_splice_read+0x68e/0xef0 mm/filemap.c:2922
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
vfs_copy_file_range+0xd1f/0x1510 fs/read_write.c:1620
__do_sys_copy_file_range fs/read_write.c:1670 [inline]
__se_sys_copy_file_range+0x3fa/0x600 fs/read_write.c:1637
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:0x7f1a4d02d239
RSP: 002b:00007f1a4cf99208 EFLAGS: 00000246 ORIG_RAX: 0000000000000146
RAX: ffffffffffffffda RBX: 00007f1a4d0b36e8 RCX: 00007f1a4d02d239
RDX: 0000000000000004 RSI: 0000000000000000 RDI: 0000000000000005
RBP: 00007f1a4d0b36e0 R08: 0000000000000080 R09: 0000000000000000
R10: 0000000020000280 R11: 0000000000000246 R12: 00007f1a4d07fe18
R13: 0031656c69662f2e R14: 7366656863616362 R15: 000003fffffff404
</TASK>
Showing all locks held in the system:
2 locks held by kworker/u8:1/12:
#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/0x1840 kernel/workqueue.c:3310
#1: ffffc90000117d00 (connector_reaper_work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline]
#1: ffffc90000117d00 (connector_reaper_work){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1840 kernel/workqueue.c:3310
1 lock held by khungtaskd/30:
#0: ffffffff8e937ae0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline]
#0: ffffffff8e937ae0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline]
#0: ffffffff8e937ae0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6744
2 locks held by kworker/u8:4/81:
#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/0x1840 kernel/workqueue.c:3310
#1: ffffc9000213fd00 ((reaper_work).work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline]
#1: ffffc9000213fd00 ((reaper_work).work){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1840 kernel/workqueue.c:3310
2 locks held by getty/5577:
#0: ffff8880317d40a0 (&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
2 locks held by syz-executor632/6022:
#0: ffff88807dc66420 (sb_writers#11){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2964 [inline]
#0: ffff88807dc66420 (sb_writers#11){.+.+}-{0:0}, at: vfs_fallocate+0x4fe/0x6e0 fs/open.c:326
#1: ffff888070e99f48 (&sb->s_type->i_mutex_key#19){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:818 [inline]
#1: ffff888070e99f48 (&sb->s_type->i_mutex_key#19){+.+.}-{4:4}, at: bch2_fallocate_dispatch+0x1e2/0x540 fs/bcachefs/fs-io.c:771
1 lock held by syz-executor632/6023:
#0: ffff888070e9a0e8 (mapping.invalidate_lock#3){.+.+}-{4:4}, at: filemap_invalidate_lock_shared include/linux/fs.h:873 [inline]
#0: ffff888070e9a0e8 (mapping.invalidate_lock#3){.+.+}-{4:4}, at: page_cache_ra_order+0x326/0xb60 mm/readahead.c:488
1 lock held by syz-executor632/14617:
1 lock held by syz-executor632/14624:
3 locks held by syz-executor632/14626:
#0: ffff88804b500908 (&c->sb_lock){+.+.}-{4:4}, at: bch2_fs_alloc fs/bcachefs/super.c:827 [inline]
#0: ffff88804b500908 (&c->sb_lock){+.+.}-{4:4}, at: bch2_fs_open+0x1683/0x2f80 fs/bcachefs/super.c:2065
#1: ffff88804b5049d0 (&c->mark_lock){++++}-{0:0}, at: bch2_sb_replicas_to_cpu_replicas+0x1e0/0x2e0 fs/bcachefs/replicas.c:600
#2: ffffffff8e93cff8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:329 [inline]
#2: ffffffff8e93cff8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x451/0x830 kernel/rcu/tree_exp.h:976
=============================================
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.13.0-rc5-syzkaller-00012-g0bc21e701a6f #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:234 [inline]
watchdog+0xff6/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
</TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 14657 Comm: syz-executor632 Not tainted 6.13.0-rc5-syzkaller-00012-g0bc21e701a6f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:mark_lock+0x120/0x360 kernel/locking/lockdep.c:4727
Code: 00 83 3d 26 5f 9d 0e 00 75 19 90 48 c7 c7 80 97 0a 8c 48 c7 c6 80 9a 0a 8c e8 9c ef e4 ff 90 0f 0b 90 90 90 31 db 48 83 c3 60 <48> 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 ea 28 88 00
RSP: 0000:ffffc90003367a68 EFLAGS: 00000086
RAX: 00000000000445c0 RBX: ffffffff93c2dd60 RCX: ffffffff817b26fa
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff94271928
RBP: 0000000000000007 R08: ffffffff9427192f R09: 1ffffffff284e325
R10: dffffc0000000000 R11: fffffbfff284e326 R12: ffff8880623de4c4
R13: dffffc0000000000 R14: 0000000000000080 R15: ffff8880623de508
FS: 00007f1a4cfdb6c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020004000 CR3: 000000007bc88000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<NMI>
</NMI>
<TASK>
__lock_acquire+0x11c5/0x2100 kernel/locking/lockdep.c:5180
lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5849
down_read_trylock+0x24f/0x3c0 kernel/locking/rwsem.c:1566
vma_start_read include/linux/mm.h:717 [inline]
lock_vma_under_rcu+0x34b/0x790 mm/memory.c:6278
do_user_addr_fault arch/x86/mm/fault.c:1329 [inline]
handle_page_fault arch/x86/mm/fault.c:1481 [inline]
exc_page_fault+0x17b/0x8b0 arch/x86/mm/fault.c:1539
asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623
RIP: 0033:0x7f1a4d00fe0a
Code: 00 01 00 00 00 74 9a 83 f9 c0 0f 87 8c fe ff ff c5 fe 6f 4e 20 48 29 fe 48 83 c7 3f 49 8d 0c 10 48 83 e7 c0 48 01 fe 48 29 f9 <f3> a4 c4 c1 7e 7f 00 c4 c1 7e 7f 48 20 e9 0b fd ff ff 0f 1f 40 00
RSP: 002b:00007f1a4cfdb218 EFLAGS: 00010202
RAX: 00000000200007c0 RBX: 00007f1a4d0b36c8 RCX: 0000000000002196
RDX: 00000000000059d6 RSI: 00007f1a4d07dc80 RDI: 0000000020004000
RBP: 00007f1a4d0b36c0 R08: 00000000200007c0 R09: 00007ffc1d2ae267
R10: 0000000000000008 R11: 0000000000000246 R12: 00007f1a4d07fe18
R13: 0031656c69662f2e R14: 7366656863616362 R15: 000003fffffff404
</TASK>