INFO: task syz.7.501:12117 blocked for more than 143 seconds.
Not tainted 6.14.0-rc5-syzkaller-00016-g48a5eed9ad58 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.7.501 state:D stack:13968 pid:12117 tgid:12116 ppid:6068 task_flags:0x440140 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:5378 [inline]
__schedule+0x18bc/0x4c40 kernel/sched/core.c:6765
__schedule_loop kernel/sched/core.c:6842 [inline]
schedule+0x14b/0x320 kernel/sched/core.c:6857
__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+0xa36/0xca0 mm/readahead.c:516
filemap_readahead mm/filemap.c:2549 [inline]
filemap_get_pages+0x9e4/0x1fb0 mm/filemap.c:2594
filemap_splice_read+0x68e/0xef0 mm/filemap.c:2971
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:0x7f5b6438d169
RSP: 002b:00007f5b6522a038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007f5b645a5fa0 RCX: 00007f5b6438d169
RDX: 0000000000000000 RSI: 000000000000000a RDI: 0000000000000007
RBP: 00007f5b6440e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0001000000201005 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f5b645a5fa0 R15: 00007ffc5fd9ee88
INFO: task syz.7.501:12144 blocked for more than 144 seconds.
Not tainted 6.14.0-rc5-syzkaller-00016-g48a5eed9ad58 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.7.501 state:D stack:16480 pid:12144 tgid:12116 ppid:6068 task_flags:0x400040 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:5378 [inline]
__schedule+0x18bc/0x4c40 kernel/sched/core.c:6765
__schedule_loop kernel/sched/core.c:6842 [inline]
schedule+0x14b/0x320 kernel/sched/core.c:6857
io_schedule+0x8d/0x110 kernel/sched/core.c:7690
folio_wait_bit_common+0x839/0xee0 mm/filemap.c:1318
folio_lock include/linux/pagemap.h:1163 [inline]
truncate_inode_pages_range+0xc1f/0x10e0 mm/truncate.c:380
truncate_inode_pages mm/truncate.c:407 [inline]
truncate_pagecache mm/truncate.c:716 [inline]
truncate_setsize+0xcf/0xf0 mm/truncate.c:741
bchfs_truncate+0x6e0/0xc80 fs/bcachefs/fs-io.c:471
notify_change+0xbca/0xe90 fs/attr.c:552
do_truncate+0x220/0x310 fs/open.c:65
do_ftruncate+0x4a1/0x540 fs/open.c:192
do_sys_ftruncate fs/open.c:207 [inline]
__do_sys_ftruncate fs/open.c:212 [inline]
__se_sys_ftruncate fs/open.c:210 [inline]
__x64_sys_ftruncate+0x94/0xf0 fs/open.c:210
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:0x7f5b6438d169
RSP: 002b:00007f5b65209038 EFLAGS: 00000246 ORIG_RAX: 000000000000004d
RAX: ffffffffffffffda RBX: 00007f5b645a6080 RCX: 00007f5b6438d169
RDX: 0000000000000000 RSI: 00000000000009a6 RDI: 000000000000000a
RBP: 00007f5b6440e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f5b645a6080 R15: 00007ffc5fd9ee88
Showing all locks held in the system:
1 lock held by khungtaskd/30:
#0: ffffffff8eb38fa0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline]
#0: ffffffff8eb38fa0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline]
#0: ffffffff8eb38fa0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6746
2 locks held by getty/5582:
#0: ffff888031a2f0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
#1: ffffc90002fde2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x616/0x1770 drivers/tty/n_tty.c:2211
1 lock held by syz-executor/11977:
#0: ffffffff8eb3e478 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:302 [inline]
#0: ffffffff8eb3e478 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x381/0x820 kernel/rcu/tree_exp.h:996
1 lock held by syz.7.501/12117:
#0: ffff888056faced8 (mapping.invalidate_lock#8){.+.+}-{4:4}, at: filemap_invalidate_lock_shared include/linux/fs.h:932 [inline]
#0: ffff888056faced8 (mapping.invalidate_lock#8){.+.+}-{4:4}, at: page_cache_ra_order+0x45d/0xca0 mm/readahead.c:492
2 locks held by syz.7.501/12144:
#0: ffff88807ef82420 (sb_writers#13){.+.+}-{0:0}, at: do_ftruncate+0x44f/0x540 fs/open.c:191
#1: ffff888056facd38 (&sb->s_type->i_mutex_key#21){++++}-{4:4}, at: inode_lock include/linux/fs.h:877 [inline]
#1: ffff888056facd38 (&sb->s_type->i_mutex_key#21){++++}-{4:4}, at: do_truncate+0x20c/0x310 fs/open.c:63
1 lock held by syz-executor/13944:
#0: ffffffff8eb3e478 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:334 [inline]
#0: ffffffff8eb3e478 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x451/0x820 kernel/rcu/tree_exp.h:996
1 lock held by syz.1.769/15359:
1 lock held by rm/15431:
=============================================
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.14.0-rc5-syzkaller-00016-g48a5eed9ad58 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
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:236 [inline]
watchdog+0x1058/0x10a0 kernel/hung_task.c:399
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: 13944 Comm: syz-executor Not tainted 6.14.0-rc5-syzkaller-00016-g48a5eed9ad58 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:arch_static_branch arch/x86/include/asm/jump_label.h:36 [inline]
RIP: 0010:native_write_msr arch/x86/include/asm/msr.h:149 [inline]
RIP: 0010:wrmsr arch/x86/include/asm/msr.h:256 [inline]
RIP: 0010:native_apic_msr_write+0x39/0x50 arch/x86/include/asm/apic.h:212
Code: 74 2a 83 ff 30 74 25 eb 10 81 ff d0 00 00 00 74 1b 81 ff e0 00 00 00 74 13 c1 ef 04 81 c7 00 08 00 00 89 f9 89 f0 31 d2 0f 30 <66> 90 c3 cc cc cc cc f3 0f 1e fa 89 f6 31 d2 e9 93 3d bb 03 0f 1f
RSP: 0018:ffffc90000a18e60 EFLAGS: 00000046
RAX: 000000000005a873 RBX: 0000000000000020 RCX: 0000000000000838
RDX: 0000000000000000 RSI: 000000000005a873 RDI: 0000000000000838
RBP: 000000000005a873 R08: ffffffff81b23d69 R09: 1ffffffff20778ee
R10: dffffc0000000000 R11: ffffffff816a7380 R12: 00000000005a8592
R13: dffffc0000000000 R14: 0000000010004b7f R15: ffff8880b8728340
FS: 0000555594677500(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc80380ff8 CR3: 000000007e3ca000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
apic_write arch/x86/include/asm/apic.h:405 [inline]
lapic_next_event+0x11/0x20 arch/x86/kernel/apic/apic.c:415
clockevents_program_event+0x1c1/0x350 kernel/time/clockevents.c:334
hrtimer_interrupt+0x5b7/0xa40 kernel/time/hrtimer.c:1940
local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1038 [inline]
__sysvec_apic_timer_interrupt+0x110/0x420 arch/x86/kernel/apic/apic.c:1055
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline]
sysvec_apic_timer_interrupt+0xa1/0xc0 arch/x86/kernel/apic/apic.c:1049
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:console_trylock_spinning kernel/printk/printk.c:2061 [inline]
RIP: 0010:vprintk_emit+0x700/0xa10 kernel/printk/printk.c:2431
Code: 00 e8 b4 31 21 00 4c 8d bc 24 a0 00 00 00 4d 85 e4 75 07 e8 a2 31 21 00 eb 06 e8 9b 31 21 00 fb 49 bc 00 00 00 00 00 fc ff df <48> c7 c7 60 4b a1 8e 31 f6 ba 01 00 00 00 31 c9 41 b8 01 00 00 00
RSP: 0018:ffffc900225c7940 EFLAGS: 00000293
RAX: ffffffff81a08d25 RBX: 0000000000000000 RCX: ffff88802be73c00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc900225c7a50 R08: ffffffff81a08cfe R09: 1ffffffff28a2934
R10: dffffc0000000000 R11: fffffbfff28a2935 R12: dffffc0000000000
R13: 1ffff920044b8f2c R14: ffffffff81a08b60 R15: ffffc900225c79e0
_printk+0xd5/0x120 kernel/printk/printk.c:2457
_btrfs_printk+0x5ce/0x610 fs/btrfs/messages.c:248
btrfs_put_super+0x69/0x80 fs/btrfs/super.c:73
generic_shutdown_super+0x139/0x2d0 fs/super.c:642
kill_anon_super+0x3b/0x70 fs/super.c:1237
btrfs_kill_super+0x41/0x50 fs/btrfs/super.c:2100
deactivate_locked_super+0xc4/0x130 fs/super.c:473
cleanup_mnt+0x41f/0x4b0 fs/namespace.c:1413
task_work_run+0x24f/0x310 kernel/task_work.c:227
resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
exit_to_user_mode_loop kernel/entry/common.c:114 [inline]
exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline]
__syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
syscall_exit_to_user_mode+0x13f/0x340 kernel/entry/common.c:218
do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f5d0418e497
Code: a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 a8 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007fffc84af898 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 00007f5d0420e08c RCX: 00007f5d0418e497
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007fffc84af950
RBP: 00007fffc84af950 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000246 R12: 00007fffc84b09e0
R13: 00007f5d0420e08c R14: 0000000000075bc0 R15: 00007fffc84b0a20