INFO: task syz.4.1016:16070 blocked for more than 143 seconds.
Not tainted 6.15.0-rc2-syzkaller-00400-g3088d26962e8 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.4.1016 state:D stack:26640 pid:16070 tgid:16055 ppid:14981 task_flags:0x400040 flags:0x00000004
Call Trace:
context_switch kernel/sched/core.c:5382 [inline]
__schedule+0x1b33/0x51f0 kernel/sched/core.c:6767
__schedule_loop kernel/sched/core.c:6845 [inline]
schedule+0x163/0x360 kernel/sched/core.c:6860
schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6917
rwsem_down_write_slowpath+0xedd/0x1420 kernel/locking/rwsem.c:1176
__down_write_common kernel/locking/rwsem.c:1304 [inline]
__down_write kernel/locking/rwsem.c:1313 [inline]
down_write+0x1da/0x220 kernel/locking/rwsem.c:1578
inode_lock include/linux/fs.h:867 [inline]
process_measurement+0x4ad/0x1fe0 security/integrity/ima/ima_main.c:258
ima_file_check+0xdb/0x130 security/integrity/ima/ima_main.c:611
security_file_post_open+0xb9/0x280 security/security.c:3130
do_open fs/namei.c:3847 [inline]
path_openat+0x2cf7/0x35d0 fs/namei.c:4004
do_filp_open+0x284/0x4e0 fs/namei.c:4031
do_sys_openat2+0x12b/0x1d0 fs/open.c:1429
do_sys_open fs/open.c:1444 [inline]
__do_sys_openat fs/open.c:1460 [inline]
__se_sys_openat fs/open.c:1455 [inline]
__x64_sys_openat+0x249/0x2a0 fs/open.c:1455
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xf3/0x210 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd90f78e169
RSP: 002b:00007fd910512038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fd90f9b6080 RCX: 00007fd90f78e169
RDX: 0000000000103042 RSI: 0000200000000100 RDI: ffffffffffffff9c
RBP: 00007fd90f810a68 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000001 R14: 00007fd90f9b6080 R15: 00007ffcaf5464d8
Showing all locks held in the system:
3 locks held by kworker/u8:0/12:
#0: ffff88801b089148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline]
#0: ffff88801b089148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x990/0x18e0 kernel/workqueue.c:3319
#1: ffffc90000117c60 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline]
#1: ffffc90000117c60 ((linkwatch_work).work){+.+.}-{0:0}, at: process_scheduled_works+0x9cb/0x18e0 kernel/workqueue.c:3319
#2: ffffffff900eb2c8 (rtnl_mutex){+.+.}-{4:4}, at: linkwatch_event+0xe/0x60 net/core/link_watch.c:303
1 lock held by khungtaskd/31:
#0: ffffffff8ed3df20 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline]
#0: ffffffff8ed3df20 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline]
#0: ffffffff8ed3df20 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x30/0x180 kernel/locking/lockdep.c:6764
3 locks held by kworker/u8:6/1109:
#0: ffff88814d45d948 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline]
#0: ffff88814d45d948 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_scheduled_works+0x990/0x18e0 kernel/workqueue.c:3319
#1: ffffc90003c2fc60 ((work_completion)(&(&ifa->dad_work)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline]
#1: ffffc90003c2fc60 ((work_completion)(&(&ifa->dad_work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9cb/0x18e0 kernel/workqueue.c:3319
#2: ffffffff900eb2c8 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_net_lock include/linux/rtnetlink.h:130 [inline]
#2: ffffffff900eb2c8 (rtnl_mutex){+.+.}-{4:4}, at: addrconf_dad_work+0x110/0x16a0 net/ipv6/addrconf.c:4195
2 locks held by getty/5582:
#0: ffff88814e4300a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
#1: ffffc9000334b2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x5bb/0x1700 drivers/tty/n_tty.c:2222
3 locks held by kworker/u8:9/11115:
5 locks held by syz.4.1016/16056:
#0: ffff88802fda4420 (sb_writers#21){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:556
#1: ffff88805a8a45a0 (&sb->s_type->i_mutex_key#28){++++}-{4:4}, at: inode_lock include/linux/fs.h:867 [inline]
#1: ffff88805a8a45a0 (&sb->s_type->i_mutex_key#28){++++}-{4:4}, at: do_truncate+0x20e/0x310 fs/open.c:63
#2: ffff8880a1a80a70 (&c->snapshot_create_lock){.+.+}-{4:4}, at: bch2_truncate+0x1ae/0x340 fs/bcachefs/io_misc.c:295
#3: ffff8880a1a84228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline]
#3: ffff8880a1a84228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline]
#3: ffff8880a1a84228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7ed/0xd40 fs/bcachefs/btree_iter.c:3382
#4: ffff8880a1aa6590 (&c->gc_lock){.+.+}-{4:4}, at: bch2_btree_update_start+0x68a/0x16c0 fs/bcachefs/btree_update_interior.c:1179
1 lock held by syz.4.1016/16070:
#0: ffff88805a8a45a0 (&sb->s_type->i_mutex_key#28){++++}-{4:4}, at: inode_lock include/linux/fs.h:867 [inline]
#0: ffff88805a8a45a0 (&sb->s_type->i_mutex_key#28){++++}-{4:4}, at: process_measurement+0x4ad/0x1fe0 security/integrity/ima/ima_main.c:258
3 locks held by bch-copygc/loop/16068:
3 locks held by syz-executor/17905:
#0: ffffffff900eb2c8 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock net/core/rtnetlink.c:80 [inline]
#0: ffffffff900eb2c8 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_nets_lock net/core/rtnetlink.c:341 [inline]
#0: ffffffff900eb2c8 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0xd68/0x1fe0 net/core/rtnetlink.c:4064
#1: ffff88805ef694e8 (&wg->device_update_lock){+.+.}-{4:4}, at: wg_open+0x22d/0x420 drivers/net/wireguard/device.c:50
#2: ffffffff8ed43438 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:336 [inline]
#2: ffffffff8ed43438 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x454/0x830 kernel/rcu/tree_exp.h:998
7 locks held by syz.0.1212/18080:
4 locks held by dhcpcd-run-hook/18147:
=============================================
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 31 Comm: khungtaskd Not tainted 6.15.0-rc2-syzkaller-00400-g3088d26962e8 #0 PREEMPT(full)
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+0x4ab/0x4e0 lib/nmi_backtrace.c:113
nmi_trigger_cpumask_backtrace+0x198/0x320 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:158 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:274 [inline]
watchdog+0x1058/0x10a0 kernel/hung_task.c:437
kthread+0x7b7/0x940 kernel/kthread.c:464
ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:153
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: 18080 Comm: syz.0.1212 Not tainted 6.15.0-rc2-syzkaller-00400-g3088d26962e8 #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:__lock_acquire+0xae1/0xd80 kernel/locking/lockdep.c:5239
Code: c0 48 83 78 40 00 0f 84 b8 01 00 00 4c 89 ef 48 89 de 8b 54 24 10 48 89 e9 e8 1b 44 00 00 45 31 ed 85 c0 74 3b 41 f6 46 02 10 <75> 2e 48 8b 1c 24 48 89 ab e0 0a 00 00 8b 83 e8 0a 00 00 ff c0 89
RSP: 0018:ffffc90000a084a8 EFLAGS: 00000046
RAX: 0000000000000001 RBX: ffff88801f32a968 RCX: 0f4ce78e5aeba500
RDX: 0000000000000000 RSI: ffff88801f32a968 RDI: ffff88801f329e00
RBP: 7e5dd768dac2051b R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000000 R12: 00000000f53f2ca3
R13: 0000000000000000 R14: ffff88801f32a988 R15: 00000000a4d75eac
FS: 00007fd5974db6c0(0000) GS:ffff8881250cf000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fac44d7d2d8 CR3: 000000007d938000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
lock_acquire+0x116/0x2f0 kernel/locking/lockdep.c:5866
__raw_spin_trylock include/linux/spinlock_api_smp.h:90 [inline]
_raw_spin_trylock+0x46/0x80 kernel/locking/spinlock.c:138
_cgroup_rstat_cpu_lock kernel/cgroup/rstat.c:45 [inline]
cgroup_rstat_updated+0x1ce/0xc40 kernel/cgroup/rstat.c:101
memcg_rstat_updated+0x4d/0x2f0 mm/memcontrol.c:585
__mod_memcg_lruvec_state+0x2c2/0x4f0 mm/memcontrol.c:771
__mod_lruvec_state mm/memcontrol.c:794 [inline]
__lruvec_stat_mod_folio+0x1ab/0x300 mm/memcontrol.c:814
lruvec_stat_mod_folio include/linux/vmstat.h:545 [inline]
__folio_end_writeback+0x7b1/0xb80 mm/page-writeback.c:3067
folio_end_writeback+0x29a/0x650 mm/filemap.c:1648
ext4_finish_bio+0x795/0xc70 fs/ext4/page-io.c:144
ext4_end_bio+0x37f/0x5d0 fs/ext4/page-io.c:-1
blk_update_request+0x5e5/0x1160 block/blk-mq.c:983
scsi_end_request+0x80/0x880 drivers/scsi/scsi_lib.c:638
scsi_io_completion+0x1bd/0x440 drivers/scsi/scsi_lib.c:1079
blk_complete_reqs block/blk-mq.c:1220 [inline]
blk_done_softirq+0x100/0x150 block/blk-mq.c:1225
handle_softirqs+0x2d6/0x9b0 kernel/softirq.c:579
__do_softirq kernel/softirq.c:613 [inline]
invoke_softirq kernel/softirq.c:453 [inline]
__irq_exit_rcu+0xfb/0x220 kernel/softirq.c:680
irq_exit_rcu+0x9/0x30 kernel/softirq.c:696
common_interrupt+0xb9/0xd0 arch/x86/kernel/irq.c:285
asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:693
RIP: 0010:console_trylock_spinning kernel/printk/printk.c:2061 [inline]
RIP: 0010:vprintk_emit+0x731/0xa40 kernel/printk/printk.c:2449
Code: 00 e8 c3 27 21 00 4c 8d bc 24 a0 00 00 00 4d 85 e4 75 07 e8 b1 27 21 00 eb 06 e8 aa 27 21 00 fb 49 bc 00 00 00 00 00 fc ff df <48> c7 c7 80 9a c1 8e 31 f6 ba 01 00 00 00 31 c9 41 b8 01 00 00 00
RSP: 0018:ffffc90004f07160 EFLAGS: 00000246
RAX: ffffffff81a19396 RBX: 0000000000000000 RCX: 0000000000080000
RDX: ffffc90014e4c000 RSI: 000000000007ffff RDI: 0000000000080000
RBP: ffffc90004f07270 R08: ffffffff81a1936f R09: 1ffffffff20bd76e
R10: dffffc0000000000 R11: fffffbfff20bd76f R12: dffffc0000000000
R13: 1ffff920009e0e30 R14: ffffffff81a191c2 R15: ffffc90004f07200
bch2_print_maybe_redirect fs/bcachefs/super.c:110 [inline]
__bch2_print+0x17c/0x220 fs/bcachefs/super.c:129
__bch2_fs_read_only+0x254/0x4b0 fs/bcachefs/super.c:278
__bch2_fs_read_write+0x28d/0x3c0 fs/bcachefs/super.c:522
bch2_fs_read_write_early+0x2b/0x40 fs/bcachefs/super.c:541
bch2_fs_initialize+0xa62/0x1660 fs/bcachefs/recovery.c:1135
bch2_fs_start+0x301/0x620 fs/bcachefs/super.c:1066
bch2_fs_get_tree+0x113e/0x18f0 fs/bcachefs/fs.c:2253
vfs_get_tree+0x90/0x2b0 fs/super.c:1759
do_new_mount+0x2cf/0xb70 fs/namespace.c:3881
do_mount fs/namespace.c:4221 [inline]
__do_sys_mount fs/namespace.c:4432 [inline]
__se_sys_mount+0x38c/0x400 fs/namespace.c:4409
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xf3/0x210 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd59658f90a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fd5974dae68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fd5974daef0 RCX: 00007fd59658f90a
RDX: 0000200000000040 RSI: 0000200000000100 RDI: 00007fd5974daeb0
RBP: 0000200000000040 R08: 00007fd5974daef0 R09: 0000000002000000
R10: 0000000002000000 R11: 0000000000000246 R12: 0000200000000100
R13: 00007fd5974daeb0 R14: 0000000000005a55 R15: 0000200000000080