INFO: task syz-executor.2:5757 blocked for more than 143 seconds. Not tainted 6.9.0-syzkaller-01049-g8815da98e06a #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:11920 pid:5757 tgid:5755 ppid:5272 flags:0x00000006 Call Trace: context_switch kernel/sched/core.c:5409 [inline] __schedule+0x1796/0x4a00 kernel/sched/core.c:6746 __schedule_loop kernel/sched/core.c:6823 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6838 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6895 rwsem_down_write_slowpath+0xeeb/0x13b0 kernel/locking/rwsem.c:1178 __down_write_common+0x1af/0x200 kernel/locking/rwsem.c:1306 inode_lock include/linux/fs.h:795 [inline] bch2_ioc_setflags fs/bcachefs/fs-ioctl.c:96 [inline] bch2_fs_file_ioctl+0x1a97/0x2790 fs/bcachefs/fs-ioctl.c:491 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:904 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:890 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f8acac7dd69 RSP: 002b:00007f8aca7ff0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f8acadabf80 RCX: 00007f8acac7dd69 RDX: 0000000020000640 RSI: 0000000040086602 RDI: 0000000000000007 RBP: 00007f8acacca49e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f8acadabf80 R15: 00007ffd59a9bd28 Showing all locks held in the system: 1 lock held by pool_workqueue_/3: #0: ffff8880b943e658 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:559 5 locks held by kworker/u8:1/12: #0: ffff888015ecb148 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3242 [inline] #0: ffff888015ecb148 ((wq_completion)netns){+.+.}-{0:0}, at: process_scheduled_works+0x8e0/0x17c0 kernel/workqueue.c:3348 #1: ffffc90000117d00 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3243 [inline] #1: ffffc90000117d00 (net_cleanup_work){+.+.}-{0:0}, at: process_scheduled_works+0x91b/0x17c0 kernel/workqueue.c:3348 #2: ffffffff8f5885d0 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0x16a/0xcc0 net/core/net_namespace.c:594 #3: ffffffff8f594cc8 (rtnl_mutex){+.+.}-{3:3}, at: default_device_exit_batch+0xe9/0xa90 net/core/dev.c:11626 #4: ffffffff8e33a178 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:323 [inline] #4: ffffffff8e33a178 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x451/0x830 kernel/rcu/tree_exp.h:939 1 lock held by khungtaskd/30: #0: ffffffff8e334da0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:329 [inline] #0: ffffffff8e334da0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:781 [inline] #0: ffffffff8e334da0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6614 3 locks held by kworker/u8:4/61: #0: ffff88802a29e148 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3242 [inline] #0: ffff88802a29e148 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_scheduled_works+0x8e0/0x17c0 kernel/workqueue.c:3348 #1: ffffc900015c7d00 ((work_completion)(&(&ifa->dad_work)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3243 [inline] #1: ffffc900015c7d00 ((work_completion)(&(&ifa->dad_work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x91b/0x17c0 kernel/workqueue.c:3348 #2: ffffffff8f594cc8 (rtnl_mutex){+.+.}-{3:3}, at: addrconf_dad_work+0xd0/0x16f0 net/ipv6/addrconf.c:4192 1 lock held by klogd/4516: #0: ffff8880b943e658 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:559 1 lock held by dhcpcd/4742: #0: ffffffff8f594cc8 (rtnl_mutex){+.+.}-{3:3}, at: devinet_ioctl+0x2ce/0x1bc0 net/ipv4/devinet.c:1096 2 locks held by getty/4838: #0: ffff8880300900a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc90002f162f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b5/0x1e10 drivers/tty/n_tty.c:2201 2 locks held by kworker/0:6/5140: 2 locks held by syz-executor.2/5757: #0: ffff88805ad4e420 (sb_writers#17){.+.+}-{0:0}, at: mnt_want_write_file+0x61/0x200 fs/namespace.c:453 #1: ffff8880772243f8 (&sb->s_type->i_mutex_key#25){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:795 [inline] #1: ffff8880772243f8 (&sb->s_type->i_mutex_key#25){+.+.}-{3:3}, at: bch2_ioc_setflags fs/bcachefs/fs-ioctl.c:96 [inline] #1: ffff8880772243f8 (&sb->s_type->i_mutex_key#25){+.+.}-{3:3}, at: bch2_fs_file_ioctl+0x1a97/0x2790 fs/bcachefs/fs-ioctl.c:491 3 locks held by syz-executor.2/5836: #0: ffff88802bd579c8 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x259/0x320 fs/file.c:1191 #1: ffff88805ad4e420 (sb_writers#17){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2855 [inline] #1: ffff88805ad4e420 (sb_writers#17){.+.+}-{0:0}, at: vfs_write+0x233/0xcb0 fs/read_write.c:586 #2: ffff8880772243f8 (&sb->s_type->i_mutex_key#25){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:795 [inline] #2: ffff8880772243f8 (&sb->s_type->i_mutex_key#25){+.+.}-{3:3}, at: bch2_direct_write+0x243/0x3050 fs/bcachefs/fs-io-direct.c:598 3 locks held by kworker/1:7/7650: #0: ffff888015080948 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3242 [inline] #0: ffff888015080948 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x8e0/0x17c0 kernel/workqueue.c:3348 #1: ffffc9000338fd00 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3243 [inline] #1: ffffc9000338fd00 ((linkwatch_work).work){+.+.}-{0:0}, at: process_scheduled_works+0x91b/0x17c0 kernel/workqueue.c:3348 #2: ffffffff8f594cc8 (rtnl_mutex){+.+.}-{3:3}, at: linkwatch_event+0xe/0x60 net/core/link_watch.c:276 1 lock held by syz-executor.1/7824: #0: ffffffff8e33a178 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:323 [inline] #0: ffffffff8e33a178 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x451/0x830 kernel/rcu/tree_exp.h:939 1 lock held by syz-executor.0/8066: #0: ffffffff8f594cc8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:79 [inline] #0: ffffffff8f594cc8 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x842/0x10d0 net/core/rtnetlink.c:6592 7 locks held by syz-executor.3/8250: #0: ffff88802a86c420 (sb_writers#8){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2855 [inline] #0: ffff88802a86c420 (sb_writers#8){.+.+}-{0:0}, at: vfs_write+0x233/0xcb0 fs/read_write.c:586 #1: ffff88805ff0a888 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x1eb/0x500 fs/kernfs/file.c:325 #2: ffff888023047698 (kn->active#50){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x20f/0x500 fs/kernfs/file.c:326 #3: ffffffff8eed2f88 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: del_device_store+0xfc/0x480 drivers/net/netdevsim/bus.c:216 #4: ffff88806c8620e8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:990 [inline] #4: ffff88806c8620e8 (&dev->mutex){....}-{3:3}, at: __device_driver_lock drivers/base/dd.c:1093 [inline] #4: ffff88806c8620e8 (&dev->mutex){....}-{3:3}, at: device_release_driver_internal+0xce/0x7c0 drivers/base/dd.c:1290 #5: ffff88806c863250 (&devlink->lock_key#25){+.+.}-{3:3}, at: nsim_drv_remove+0x50/0x160 drivers/net/netdevsim/dev.c:1672 #6: ffffffff8f594cc8 (rtnl_mutex){+.+.}-{3:3}, at: nsim_destroy+0x40/0x260 drivers/net/netdevsim/netdev.c:451 1 lock held by syz-executor.2/8378: #0: ffffffff8f594cc8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:79 [inline] #0: ffffffff8f594cc8 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x842/0x10d0 net/core/rtnetlink.c:6592 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 30 Comm: khungtaskd Not tainted 6.9.0-syzkaller-01049-g8815da98e06a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 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:160 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:223 [inline] watchdog+0xfde/0x1020 kernel/hung_task.c:380 kthread+0x2f0/0x390 kernel/kthread.c:388 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 8382 Comm: syz-executor.1 Not tainted 6.9.0-syzkaller-01049-g8815da98e06a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 RIP: 0010:tk_clock_read kernel/time/timekeeping.c:195 [inline] RIP: 0010:timekeeping_get_delta kernel/time/timekeeping.c:255 [inline] RIP: 0010:timekeeping_get_ns kernel/time/timekeeping.c:388 [inline] RIP: 0010:ktime_get_update_offsets_now+0xde/0x430 kernel/time/timekeeping.c:2321 Code: 25 b7 ae b0 0c 41 f6 c4 01 74 07 e8 4c d2 11 00 eb ea e8 45 d2 11 00 48 8b 1d d6 ae b0 0c 48 89 d8 48 c1 e8 03 42 80 3c 30 00 <74> 08 48 89 df e8 b8 2f 73 00 4c 8b 1b 48 89 df 41 ff d3 66 90 49 RSP: 0018:ffffc90000007e50 EFLAGS: 00000046 RAX: 1ffffffff1c2d74c RBX: ffffffff8e16ba60 RCX: ffff888020760000 RDX: 0000000080010002 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffff8880b942c8d0 R08: ffffffff818440b1 R09: 1ffffffff1f4fadd R10: dffffc0000000000 R11: fffffbfff1f4fade R12: 000000000000d0ee R13: dffffc0000000000 R14: dffffc0000000000 R15: ffff8880b9428358 FS: 00007f8f3b8066c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8f308ffe00 CR3: 0000000055a3a000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: hrtimer_update_base kernel/time/hrtimer.c:634 [inline] hrtimer_interrupt+0x133/0x990 kernel/time/hrtimer.c:1800 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1032 [inline] __sysvec_apic_timer_interrupt+0x110/0x3f0 arch/x86/kernel/apic/apic.c:1049 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline] sysvec_apic_timer_interrupt+0xa1/0xc0 arch/x86/kernel/apic/apic.c:1043 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:console_trylock_spinning kernel/printk/printk.c:2010 [inline] RIP: 0010:vprintk_emit+0x576/0x770 kernel/printk/printk.c:2347 Code: d9 1f 00 4c 21 e3 0f 85 3a 01 00 00 e8 f3 d4 1f 00 4d 89 ec 4d 85 ff 75 07 e8 e6 d4 1f 00 eb 06 e8 df d4 1f 00 fb 44 8b 3c 24 <48> c7 c7 a0 08 21 8e 31 f6 ba 01 00 00 00 31 c9 41 b8 01 00 00 00 RSP: 0018:ffffc900034eef20 EFLAGS: 00000246 RAX: ffffffff81763e41 RBX: 0000000000000000 RCX: 0000000000040000 RDX: ffffc90004771000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffffc900034ef010 R08: ffffffff81763e1f R09: 1ffffffff25e02b7 R10: dffffc0000000000 R11: fffffbfff25e02b8 R12: dffffc0000000000 R13: dffffc0000000000 R14: ffffffff81763c9f R15: 000000000000002e _printk+0xd5/0x120 kernel/printk/printk.c:2373 set_capacity_and_notify+0x220/0x2c0 block/genhd.c:86 loop_set_size+0x44/0xb0 drivers/block/loop.c:235 loop_configure+0xd00/0x1250 drivers/block/loop.c:1098 lo_ioctl+0x8f6/0x21a0 blkdev_ioctl+0x5e5/0x740 block/ioctl.c:642 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:904 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:890 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f8f3aa7dacb Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00 RSP: 002b:00007f8f3b805e50 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f8f3aa7dacb RDX: 0000000000000004 RSI: 0000000000004c00 RDI: 0000000000000005 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000c3d R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004 R13: 00007f8f3b805f80 R14: 00007f8f3b805f40 R15: 00007f8f30800000