INFO: task syz.3.119:7044 blocked for more than 143 seconds.
Not tainted 6.15.0-rc3-syzkaller-00001-g9d7a0577c9db #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.3.119 state:D stack:20144 pid:7044 tgid:7043 ppid:5837 task_flags:0x400140 flags:0x00000004
Call Trace:
<TASK>
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]
bch2_ioc_fssetxattr fs/bcachefs/fs-ioctl.c:206 [inline]
bch2_fs_file_ioctl+0x182e/0x2c60 fs/bcachefs/fs-ioctl.c:574
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:906 [inline]
__se_sys_ioctl+0xf1/0x160 fs/ioctl.c:892
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:0x7ff714d8e169
RSP: 002b:00007ff715b17038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007ff714fb5fa0 RCX: 00007ff714d8e169
RDX: 0000200000000200 RSI: 00000000401c5820 RDI: 0000000000000004
RBP: 00007ff714e10a68 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007ff714fb5fa0 R15: 00007ffd42b1cef8
</TASK>
INFO: task syz.3.119:7077 blocked for more than 143 seconds.
Not tainted 6.15.0-rc3-syzkaller-00001-g9d7a0577c9db #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.3.119 state:D stack:27944 pid:7077 tgid:7043 ppid:5837 task_flags:0x400040 flags:0x00000004
Call Trace:
<TASK>
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_read_slowpath kernel/locking/rwsem.c:1084 [inline]
__down_read_common kernel/locking/rwsem.c:1248 [inline]
__down_read kernel/locking/rwsem.c:1261 [inline]
down_read+0x6ff/0xa50 kernel/locking/rwsem.c:1526
inode_lock_shared include/linux/fs.h:877 [inline]
lookup_slow+0x45/0x70 fs/namei.c:1833
walk_component+0x2f4/0x420 fs/namei.c:2138
lookup_last fs/namei.c:2636 [inline]
path_lookupat+0x169/0x440 fs/namei.c:2660
filename_lookup+0x290/0x670 fs/namei.c:2689
user_path_at+0x3a/0x60 fs/namei.c:3120
__do_sys_chdir fs/open.c:557 [inline]
__se_sys_chdir+0xba/0x260 fs/open.c:551
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:0x7ff714d8e169
RSP: 002b:00007ff712bd5038 EFLAGS: 00000246 ORIG_RAX: 0000000000000050
RAX: ffffffffffffffda RBX: 00007ff714fb6160 RCX: 00007ff714d8e169
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000200000000080
RBP: 00007ff714e10a68 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000001 R14: 00007ff714fb6160 R15: 00007ffd42b1cef8
</TASK>
Showing all locks held in the system:
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
2 locks held by kworker/u8:2/36:
#0: ffff8880b8739998 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:605
#1: ffff8880b8723b08 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x41f/0x7a0 kernel/sched/psi.c:987
3 locks held by kworker/u8:3/53:
#0: ffff8880311e9948 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline]
#0: ffff8880311e9948 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_scheduled_works+0x990/0x18e0 kernel/workqueue.c:3319
#1: ffffc90000be7c60 ((work_completion)(&(&ifa->dad_work)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline]
#1: ffffc90000be7c60 ((work_completion)(&(&ifa->dad_work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9cb/0x18e0 kernel/workqueue.c:3319
#2: ffffffff900eb308 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_net_lock include/linux/rtnetlink.h:130 [inline]
#2: ffffffff900eb308 (rtnl_mutex){+.+.}-{4:4}, at: addrconf_dad_work+0x110/0x16a0 net/ipv6/addrconf.c:4195
1 lock held by dhcpcd/5494:
#0: ffffffff900eb308 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_net_lock include/linux/rtnetlink.h:130 [inline]
#0: ffffffff900eb308 (rtnl_mutex){+.+.}-{4:4}, at: inet_rtm_delroute+0x10b/0x370 net/ipv4/fib_frontend.c:887
2 locks held by getty/5582:
#0: ffff888031fbb0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
#1: ffffc900036db2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x5bb/0x1700 drivers/tty/n_tty.c:2222
1 lock held by syz-executor/5835:
#0: ffff88807e43c0e0 (&type->s_umount_key#75){++++}-{4:4}, at: __super_lock fs/super.c:56 [inline]
#0: ffff88807e43c0e0 (&type->s_umount_key#75){++++}-{4:4}, at: __super_lock_excl fs/super.c:71 [inline]
#0: ffff88807e43c0e0 (&type->s_umount_key#75){++++}-{4:4}, at: deactivate_super+0xb5/0xf0 fs/super.c:505
4 locks held by udevd/5894:
#0: ffff8880790ae0a0 (&p->lock){+.+.}-{4:4}, at: seq_read_iter+0xb4/0xda0 fs/seq_file.c:182
#1: ffff8880280da088 (&of->mutex#2){+.+.}-{4:4}, at: kernfs_seq_start+0x53/0x3b0 fs/kernfs/file.c:154
#2: ffff888060cc80f8 (kn->active#5){++++}-{0:0}, at: kernfs_seq_start+0x72/0x3b0 fs/kernfs/file.c:155
#3: ffff88805e4990e8 (&dev->mutex){....}-{4:4}, at: device_lock include/linux/device.h:922 [inline]
#3: ffff88805e4990e8 (&dev->mutex){....}-{4:4}, at: uevent_show+0x17d/0x340 drivers/base/core.c:2730
2 locks held by syz.3.119/7044:
#0: ffff8880599dc420 (sb_writers#28){.+.+}-{0:0}, at: mnt_want_write_file+0x5e/0x200 fs/namespace.c:600
#1: ffff8880571e88e0 (&sb->s_type->i_mutex_key#35){++++}-{4:4}, at: inode_lock include/linux/fs.h:867 [inline]
#1: ffff8880571e88e0 (&sb->s_type->i_mutex_key#35){++++}-{4:4}, at: bch2_ioc_fssetxattr fs/bcachefs/fs-ioctl.c:206 [inline]
#1: ffff8880571e88e0 (&sb->s_type->i_mutex_key#35){++++}-{4:4}, at: bch2_fs_file_ioctl+0x182e/0x2c60 fs/bcachefs/fs-ioctl.c:574
5 locks held by syz.3.119/7075:
#0: ffff8880599dc420 (sb_writers#28){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:556
#1: ffff8880571e88e0 (&sb->s_type->i_mutex_key#35){++++}-{4:4}, at: inode_lock include/linux/fs.h:867 [inline]
#1: ffff8880571e88e0 (&sb->s_type->i_mutex_key#35){++++}-{4:4}, at: open_last_lookups fs/namei.c:3797 [inline]
#1: ffff8880571e88e0 (&sb->s_type->i_mutex_key#35){++++}-{4:4}, at: path_openat+0x8af/0x35d0 fs/namei.c:4036
#2: ffff8880571e8cc8 (&inode->ei_update_lock){+.+.}-{4:4}, at: __bch2_create+0x359/0xf40 fs/bcachefs/fs.c:550
#3: ffff888051504228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire include/linux/srcu.h:161 [inline]
#3: ffff888051504228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_read_lock include/linux/srcu.h:253 [inline]
#3: ffff888051504228 (&c->btree_trans_barrier){.+.+}-{0:0}, at: __bch2_trans_get+0x7ed/0xd40 fs/bcachefs/btree_iter.c:3382
#4: ffff888051526590 (&c->gc_lock){++++}-{4:4}, at: bch2_btree_update_start+0x68a/0x16c0 fs/bcachefs/btree_update_interior.c:1179
1 lock held by syz.3.119/7077:
#0: ffff8880571e88e0 (&sb->s_type->i_mutex_key#35){++++}-{4:4}, at: inode_lock_shared include/linux/fs.h:877 [inline]
#0: ffff8880571e88e0 (&sb->s_type->i_mutex_key#35){++++}-{4:4}, at: lookup_slow+0x45/0x70 fs/namei.c:1833
2 locks held by bch-copygc/loop/7072:
1 lock held by syz.1.257/8622:
#0: ffff88807e43c0e0 (&type->s_umount_key#75){++++}-{4:4}, at: __super_lock fs/super.c:58 [inline]
#0: ffff88807e43c0e0 (&type->s_umount_key#75){++++}-{4:4}, at: super_lock+0x27c/0x400 fs/super.c:120
1 lock held by syz-executor/8660:
#0: ffffffff900eb308 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_net_lock include/linux/rtnetlink.h:130 [inline]
#0: ffffffff900eb308 (rtnl_mutex){+.+.}-{4:4}, at: inet6_rtm_newaddr+0x831/0x11b0 net/ipv6/addrconf.c:5028
1 lock held by syz-executor/8773:
#0: ffffffff900eb308 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock net/core/rtnetlink.c:80 [inline]
#0: ffffffff900eb308 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_nets_lock net/core/rtnetlink.c:341 [inline]
#0: ffffffff900eb308 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0xd68/0x1fe0 net/core/rtnetlink.c:4064
7 locks held by syz-executor/8875:
#0: ffff8880364bc420 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3041 [inline]
#0: ffff8880364bc420 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x23f/0xd10 fs/read_write.c:680
#1: ffff88805c4ab088 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1e2/0x510 fs/kernfs/file.c:325
#2: ffff888027f82c38 (kn->active#50){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x206/0x510 fs/kernfs/file.c:326
#3: ffffffff8f984ca8 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: new_device_store+0x1b6/0x8c0 drivers/net/netdevsim/bus.c:166
#4: ffff88805e4990e8 (&dev->mutex){....}-{4:4}, at: device_lock include/linux/device.h:922 [inline]
#4: ffff88805e4990e8 (&dev->mutex){....}-{4:4}, at: __device_attach+0x90/0x530 drivers/base/dd.c:1005
#5: ffff888055d5c250 (&devlink->lock_key#15){+.+.}-{4:4}, at: nsim_drv_probe+0xc9/0xbc0 drivers/net/netdevsim/dev.c:1537
#6: ffffffff900eb308 (rtnl_mutex){+.+.}-{4:4}, at: nsim_init_netdevsim drivers/net/netdevsim/netdev.c:948 [inline]
#6: ffffffff900eb308 (rtnl_mutex){+.+.}-{4:4}, at: nsim_create+0x7f4/0xf00 drivers/net/netdevsim/netdev.c:1028
3 locks held by syz-executor/8981:
#0: ffffffff8f87eb20 (&ops->srcu#2){.+.+}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline]
#0: ffffffff8f87eb20 (&ops->srcu#2){.+.+}-{0:0}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline]
#0: ffffffff8f87eb20 (&ops->srcu#2){.+.+}-{0:0}, at: rtnl_link_ops_get+0x22/0x250 net/core/rtnetlink.c:570
#1: ffffffff900eb308 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock net/core/rtnetlink.c:80 [inline]
#1: ffffffff900eb308 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_nets_lock net/core/rtnetlink.c:341 [inline]
#1: ffffffff900eb308 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0xd68/0x1fe0 net/core/rtnetlink.c:4064
#2: ffffffff8ed43438 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:304 [inline]
#2: ffffffff8ed43438 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x384/0x830 kernel/rcu/tree_exp.h:998
=============================================
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 31 Comm: khungtaskd Not tainted 6.15.0-rc3-syzkaller-00001-g9d7a0577c9db #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
Call Trace:
<TASK>
__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
</TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 7072 Comm: bch-copygc/loop Not tainted 6.15.0-rc3-syzkaller-00001-g9d7a0577c9db #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:rq_pin_lock kernel/sched/sched.h:1761 [inline]
RIP: 0010:rq_lock kernel/sched/sched.h:1838 [inline]
RIP: 0010:ttwu_queue kernel/sched/core.c:3998 [inline]
RIP: 0010:try_to_wake_up+0x883/0x15d0 kernel/sched/core.c:4328
Code: 08 48 89 df e8 ee 75 99 00 4d 89 fe 48 8b 3b eb 06 4d 89 fe 4c 89 e7 48 83 c7 18 e8 67 8d 0d 00 89 c3 4c 89 e8 4c 89 6c 24 40 <49> c1 ed 03 49 bf 00 00 00 00 00 fc ff df 43 0f b6 44 3d 00 84 c0
RSP: 0018:ffffc90000a08be0 EFLAGS: 00000082
RAX: ffffc90000a08c68 RBX: 000000000000ac1f RCX: ffff88802459da00
RDX: 0000000000010000 RSI: ffffffff8e4c80af RDI: ffffffff8ca0e280
RBP: ffffc90000a08d08 R08: ffffffff8161c2f1 R09: fffff52000141164
R10: dffffc0000000000 R11: fffff52000141164 R12: ffff8880b8739980
R13: ffffc90000a08c68 R14: ffffc90000a08c60 R15: ffffc90000a08c60
FS: 0000000000000000(0000) GS:ffff8881250cf000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f2ef0d80178 CR3: 000000003594e000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<IRQ>
hrtimer_wakeup+0x62/0x80 kernel/time/hrtimer.c:1997
__run_hrtimer kernel/time/hrtimer.c:1761 [inline]
__hrtimer_run_queues+0x5a6/0xd40 kernel/time/hrtimer.c:1825
hrtimer_interrupt+0x403/0xa40 kernel/time/hrtimer.c:1887
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
</IRQ>
<TASK>
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:bch2_btree_path_verify+0xcb/0x300 fs/bcachefs/btree_iter.c:225
Code: e4 4c 89 ef 4c 89 fe 44 89 e2 e8 10 1c 00 00 48 b8 00 00 00 00 00 fc ff df 41 0f b6 04 06 84 c0 75 72 48 8b 44 24 08 0f b7 18 <89> de 83 e6 20 31 ff e8 e9 08 6f fd bf 03 00 00 00 4c 89 e6 e8 1c
RSP: 0018:ffffc9000b24ef10 EFLAGS: 00000246
RAX: ffff888035a38280 RBX: 000000000000000a RCX: ffff88802459da00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000038 R08: ffffffff8453d4a3 R09: 0000000000000000
R10: ffffc9000b24ed60 R11: fffff52001649db1 R12: 0000000000000000
R13: ffff888035a38000 R14: 1ffff11006b47050 R15: ffff888035a38268
__bch2_btree_path_set_pos+0xed6/0x1840 fs/bcachefs/btree_iter.c:1323
bch2_btree_path_set_pos fs/bcachefs/btree_iter.h:230 [inline]
bch2_btree_iter_peek_max+0x4eae/0x61a0 fs/bcachefs/btree_iter.c:2444
bch2_btree_iter_peek_max_type fs/bcachefs/btree_iter.h:702 [inline]
bch2_copygc_get_buckets fs/bcachefs/movinggc.c:169 [inline]
bch2_copygc+0x8e5/0x4db0 fs/bcachefs/movinggc.c:221
bch2_copygc_thread+0x705/0xc00 fs/bcachefs/movinggc.c:398
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
</TASK>