INFO: task syz.1.12:6034 blocked for more than 143 seconds.
Not tainted 6.16.0-rc6-syzkaller-00037-ge2291551827f #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.1.12 state:D stack:16152 pid:6034 tgid:6033 ppid:5843 task_flags:0x440140 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:5397 [inline]
__schedule+0x16a2/0x4cb0 kernel/sched/core.c:6786
__schedule_loop kernel/sched/core.c:6864 [inline]
schedule+0x165/0x360 kernel/sched/core.c:6879
__bch2_two_state_lock+0x1ea/0x370 fs/bcachefs/two_state_shared_lock.c:7
bch2_two_state_lock fs/bcachefs/two_state_shared_lock.h:55 [inline]
bch2_readahead+0x94f/0x1100 fs/bcachefs/fs-io-buffered.c:296
read_pages+0x177/0x580 mm/readahead.c:160
page_cache_ra_order+0xa24/0xc70 mm/readahead.c:515
filemap_get_pages+0x43c/0x1ea0 mm/filemap.c:2602
filemap_splice_read+0x4fc/0xbc0 mm/filemap.c:2990
do_splice_read fs/splice.c:979 [inline]
splice_file_to_pipe+0x273/0x440 fs/splice.c:1289
do_sendfile+0x475/0x7e0 fs/read_write.c:1376
__do_sys_sendfile64 fs/read_write.c:1425 [inline]
__se_sys_sendfile64+0xd9/0x190 fs/read_write.c:1417
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f7f84f8e929
RSP: 002b:00007f7f85dd0038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007f7f851b5fa0 RCX: 00007f7f84f8e929
RDX: 00002000000000c0 RSI: 0000000000000005 RDI: 0000000000000000
RBP: 00007f7f85010ca1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000007 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f7f851b5fa0 R15: 00007fff989e6e28
INFO: task syz.1.12:6059 blocked for more than 143 seconds.
Not tainted 6.16.0-rc6-syzkaller-00037-ge2291551827f #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.1.12 state:D stack:21352 pid:6059 tgid:6033 ppid:5843 task_flags:0x400040 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:5397 [inline]
__schedule+0x16a2/0x4cb0 kernel/sched/core.c:6786
__schedule_loop kernel/sched/core.c:6864 [inline]
schedule+0x165/0x360 kernel/sched/core.c:6879
io_schedule+0x81/0xe0 kernel/sched/core.c:7724
folio_wait_bit_common+0x6b0/0xb90 mm/filemap.c:1317
folio_lock include/linux/pagemap.h:1114 [inline]
bch2_mark_pagecache_reserved+0x33d/0xba0 fs/bcachefs/fs-io-pagecache.c:314
__bchfs_fallocate+0x1284/0x1870 fs/bcachefs/fs-io.c:733
bchfs_fallocate+0x33f/0x680 fs/bcachefs/fs-io.c:789
bch2_fallocate_dispatch+0x28a/0x410 fs/bcachefs/fs-io.c:836
vfs_fallocate+0x6a3/0x830 fs/open.c:341
ksys_fallocate fs/open.c:365 [inline]
__do_sys_fallocate fs/open.c:370 [inline]
__se_sys_fallocate fs/open.c:368 [inline]
__x64_sys_fallocate+0xc0/0x110 fs/open.c:368
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f7f84f8e929
RSP: 002b:00007f7f85daf038 EFLAGS: 00000246 ORIG_RAX: 000000000000011d
RAX: ffffffffffffffda RBX: 00007f7f851b6080 RCX: 00007f7f84f8e929
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004
RBP: 00007f7f85010ca1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000008000c62 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000001 R14: 00007f7f851b6080 R15: 00007fff989e6e28
INFO: task syz.1.12:6060 blocked for more than 144 seconds.
Not tainted 6.16.0-rc6-syzkaller-00037-ge2291551827f #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.1.12 state:D stack:26984 pid:6060 tgid:6033 ppid:5843 task_flags:0x400140 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:5397 [inline]
__schedule+0x16a2/0x4cb0 kernel/sched/core.c:6786
__schedule_loop kernel/sched/core.c:6864 [inline]
schedule+0x165/0x360 kernel/sched/core.c:6879
schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6936
rwsem_down_write_slowpath+0xbec/0x1030 kernel/locking/rwsem.c:1176
__down_write_common kernel/locking/rwsem.c:1304 [inline]
__down_write kernel/locking/rwsem.c:1313 [inline]
down_write+0x1ab/0x1f0 kernel/locking/rwsem.c:1578
inode_lock include/linux/fs.h:869 [inline]
process_measurement+0x3d8/0x1a40 security/integrity/ima/ima_main.c:260
ima_file_check+0xd7/0x120 security/integrity/ima/ima_main.c:613
security_file_post_open+0xbb/0x290 security/security.c:3130
do_open fs/namei.c:3898 [inline]
path_openat+0x2f26/0x3830 fs/namei.c:4055
do_filp_open+0x1fa/0x410 fs/namei.c:4082
do_sys_openat2+0x121/0x1c0 fs/open.c:1437
do_sys_open fs/open.c:1452 [inline]
__do_sys_openat fs/open.c:1468 [inline]
__se_sys_openat fs/open.c:1463 [inline]
__x64_sys_openat+0x138/0x170 fs/open.c:1463
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f7f84f8e929
RSP: 002b:00007f7f85d8e038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f7f851b6160 RCX: 00007f7f84f8e929
RDX: 0000000000143041 RSI: 0000200000000040 RDI: ffffffffffffff9c
RBP: 00007f7f85010ca1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000001 R14: 00007f7f851b6160 R15: 00007fff989e6e28
INFO: task syz.1.12:6061 blocked for more than 144 seconds.
Not tainted 6.16.0-rc6-syzkaller-00037-ge2291551827f #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.1.12 state:D stack:28904 pid:6061 tgid:6033 ppid:5843 task_flags:0x400040 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:5397 [inline]
__schedule+0x16a2/0x4cb0 kernel/sched/core.c:6786
__schedule_loop kernel/sched/core.c:6864 [inline]
schedule+0x165/0x360 kernel/sched/core.c:6879
schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6936
rwsem_down_write_slowpath+0xbec/0x1030 kernel/locking/rwsem.c:1176
__down_write_common kernel/locking/rwsem.c:1304 [inline]
__down_write kernel/locking/rwsem.c:1313 [inline]
down_write+0x1ab/0x1f0 kernel/locking/rwsem.c:1578
inode_lock include/linux/fs.h:869 [inline]
bch2_write_iter+0x139/0x2b90 fs/bcachefs/fs-io-buffered.c:1068
new_sync_write fs/read_write.c:593 [inline]
vfs_write+0x54b/0xa90 fs/read_write.c:686
ksys_write+0x145/0x250 fs/read_write.c:738
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f7f84f8e929
RSP: 002b:00007f7f85d6d038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f7f851b6240 RCX: 00007f7f84f8e929
RDX: 0000000000000118 RSI: 0000200000000200 RDI: 0000000000000004
RBP: 00007f7f85010ca1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000001 R14: 00007f7f851b6240 R15: 00007fff989e6e28
Showing all locks held in the system:
1 lock held by khungtaskd/31:
#0: ffffffff8e13f0e0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline]
#0: ffffffff8e13f0e0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline]
#0: ffffffff8e13f0e0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180 kernel/locking/lockdep.c:6770
2 locks held by getty/5598:
#0: ffff8880313f10a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
#1: ffffc9000333b2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x43e/0x1400 drivers/tty/n_tty.c:2222
1 lock held by syz-executor/5825:
#0: ffff888079de0868 (&pipe->mutex){+.+.}-{4:4}, at: pipe_release+0x48/0x330 fs/pipe.c:727
2 locks held by syz.1.12/6034:
#0: ffff888079de0868 (&pipe->mutex){+.+.}-{4:4}, at: splice_file_to_pipe+0x2e/0x440 fs/splice.c:1286
#1: ffff888059470a80 (mapping.invalidate_lock#5){.+.+}-{4:4}, at: filemap_invalidate_lock_shared include/linux/fs.h:934 [inline]
#1: ffff888059470a80 (mapping.invalidate_lock#5){.+.+}-{4:4}, at: page_cache_ra_order+0x445/0xc70 mm/readahead.c:491
3 locks held by syz.1.12/6059:
#0: ffff88807b54e428 (sb_writers#17){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3096 [inline]
#0: ffff88807b54e428 (sb_writers#17){.+.+}-{0:0}, at: vfs_fallocate+0x62a/0x830 fs/open.c:340
#1: ffff8880594708e0 (&sb->s_type->i_mutex_key#23){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:869 [inline]
#1: ffff8880594708e0 (&sb->s_type->i_mutex_key#23){+.+.}-{4:4}, at: bch2_fallocate_dispatch+0x10e/0x410 fs/bcachefs/fs-io.c:827
#2: ffff888053d04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline]
#2: ffff888053d04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline]
#2: ffff888053d04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7f4/0xd80 fs/bcachefs/btree_iter.c:3505
1 lock held by syz.1.12/6060:
#0: ffff8880594708e0 (&sb->s_type->i_mutex_key#23){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:869 [inline]
#0: ffff8880594708e0 (&sb->s_type->i_mutex_key#23){+.+.}-{4:4}, at: process_measurement+0x3d8/0x1a40 security/integrity/ima/ima_main.c:260
3 locks held by syz.1.12/6061:
#0: ffff888034075eb8 (&f->f_pos_lock){+.+.}-{4:4}, at: fdget_pos+0x247/0x320 fs/file.c:1217
#1: ffff88807b54e428 (sb_writers#17){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3096 [inline]
#1: ffff88807b54e428 (sb_writers#17){.+.+}-{0:0}, at: vfs_write+0x211/0xa90 fs/read_write.c:682
#2: ffff8880594708e0 (&sb->s_type->i_mutex_key#23){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:869 [inline]
#2: ffff8880594708e0 (&sb->s_type->i_mutex_key#23){+.+.}-{4:4}, at: bch2_write_iter+0x139/0x2b90 fs/bcachefs/fs-io-buffered.c:1068
=============================================
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 31 Comm: khungtaskd Not tainted 6.16.0-rc6-syzkaller-00037-ge2291551827f #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
Call Trace:
dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
nmi_cpu_backtrace+0x39e/0x3d0 lib/nmi_backtrace.c:113
nmi_trigger_cpumask_backtrace+0x17a/0x300 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:158 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:307 [inline]
watchdog+0xfee/0x1030 kernel/hung_task.c:470
kthread+0x711/0x8a0 kernel/kthread.c:464
ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 3000 Comm: kworker/u8:9 Not tainted 6.16.0-rc6-syzkaller-00037-ge2291551827f #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
Workqueue: events_unbound toggle_allocation_gate
RIP: 0010:arch_atomic_read arch/x86/include/asm/atomic.h:23 [inline]
RIP: 0010:raw_atomic_read include/linux/atomic/atomic-arch-fallback.h:457 [inline]
RIP: 0010:rcu_is_watching_curr_cpu include/linux/context_tracking.h:128 [inline]
RIP: 0010:rcu_is_watching+0x55/0xb0 kernel/rcu/tree.c:745
Code: 7c ba 8d 4c 89 f0 48 c1 e8 03 42 80 3c 38 00 74 08 4c 89 f7 e8 fc e2 78 00 48 c7 c3 58 8f 9d 92 49 03 1e 48 89 d8 48 c1 e8 03 <42> 0f b6 04 38 84 c0 75 34 8b 03 65 ff 0d 29 34 f5 10 74 11 83 e0
RSP: 0018:ffffc9000b2d76b8 EFLAGS: 00000806
RAX: 1ffff110170e65eb RBX: ffff8880b8732f58 RCX: 8d3c23d5392af800
RDX: 0000000000000001 RSI: ffffffff8be1b8a0 RDI: ffffffff8be1b860
RBP: ffffc9000b2d7958 R08: ffff88802fc01587 R09: 1ffff11005f802b0
R10: dffffc0000000000 R11: ffffed1005f802b1 R12: ffff88801d2bda00
R13: ffffffff8b6745e0 R14: ffffffff8dba7c78 R15: dffffc0000000000
FS: 0000000000000000(0000) GS:ffff888125d5a000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005611c3944628 CR3: 000000000df38000 CR4: 00000000003526f0
Call Trace:
trace_lock_release include/trace/events/lock.h:69 [inline]
lock_release+0x4b/0x3e0 kernel/locking/lockdep.c:5882
prepare_lock_switch kernel/sched/core.c:5129 [inline]
context_switch kernel/sched/core.c:5394 [inline]
__schedule+0x1675/0x4cb0 kernel/sched/core.c:6786
__schedule_loop kernel/sched/core.c:6864 [inline]
schedule+0x165/0x360 kernel/sched/core.c:6879
toggle_allocation_gate+0x159/0x240 mm/kfence/core.c:852
process_one_work kernel/workqueue.c:3238 [inline]
process_scheduled_works+0xade/0x17b0 kernel/workqueue.c:3321
worker_thread+0x8a0/0xda0 kernel/workqueue.c:3402
kthread+0x711/0x8a0 kernel/kthread.c:464
ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245