INFO: task syz.6.276:6689 blocked for more than 143 seconds. Not tainted 6.14.0-next-20250328-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.6.276 state:D stack:24840 pid:6689 tgid:6688 ppid:6537 task_flags:0x400140 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5382 [inline] __schedule+0x1b88/0x5240 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 __mutex_lock_common kernel/locking/mutex.c:678 [inline] __mutex_lock+0x848/0x1150 kernel/locking/mutex.c:746 rcu_barrier+0x4c/0x530 kernel/rcu/tree.c:3774 flush_rcu_work+0x84/0xb0 kernel/workqueue.c:4302 kvfree_rcu_barrier+0x131/0x160 mm/slab_common.c:2083 kmem_cache_destroy+0x2e/0x160 mm/slab_common.c:492 f2fs_fill_super+0x53e6/0x6c80 fs/f2fs/super.c:4959 mount_bdev+0x20c/0x2d0 fs/super.c:1693 legacy_get_tree+0xee/0x190 fs/fs_context.c:662 vfs_get_tree+0x90/0x2b0 fs/super.c:1759 do_new_mount+0x2cf/0xb70 fs/namespace.c:3878 do_mount fs/namespace.c:4218 [inline] __do_sys_mount fs/namespace.c:4429 [inline] __se_sys_mount+0x38c/0x400 fs/namespace.c:4406 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe16f58e90a RSP: 002b:00007fe17042fe68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fe17042fef0 RCX: 00007fe16f58e90a RDX: 0000200000000040 RSI: 0000200000000000 RDI: 00007fe17042feb0 RBP: 0000200000000040 R08: 00007fe17042fef0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000200000000000 R13: 00007fe17042feb0 R14: 000000000000553d R15: 0000200000000300 INFO: task syz.6.276:6689 is blocked on a mutex likely owned by task syz.4.253:6593. task:syz.4.253 state:D stack:23320 pid:6593 tgid:6592 ppid:5851 task_flags:0x400140 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5382 [inline] __schedule+0x1b88/0x5240 kernel/sched/core.c:6767 __schedule_loop kernel/sched/core.c:6845 [inline] schedule+0x163/0x360 kernel/sched/core.c:6860 schedule_timeout+0xb1/0x2b0 kernel/time/sleep_timeout.c:75 do_wait_for_common kernel/sched/completion.c:95 [inline] __wait_for_common kernel/sched/completion.c:116 [inline] wait_for_common kernel/sched/completion.c:127 [inline] wait_for_completion+0x32f/0x600 kernel/sched/completion.c:148 rcu_barrier+0x41d/0x530 kernel/rcu/tree.c:3842 flush_rcu_work+0x84/0xb0 kernel/workqueue.c:4302 kvfree_rcu_barrier+0x131/0x160 mm/slab_common.c:2083 kmem_cache_destroy+0x2e/0x160 mm/slab_common.c:492 bio_put_slab block/bio.c:155 [inline] bioset_exit+0x54c/0x650 block/bio.c:1664 bch2_fs_fs_io_direct_exit+0x19/0x30 fs/bcachefs/fs-io-direct.c:684 __bch2_fs_free fs/bcachefs/super.c:555 [inline] bch2_fs_release+0x1c3/0x7d0 fs/bcachefs/super.c:621 kobject_cleanup lib/kobject.c:689 [inline] kobject_release lib/kobject.c:720 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x22f/0x480 lib/kobject.c:737 deactivate_locked_super+0xc4/0x130 fs/super.c:473 bch2_fs_get_tree+0xd41/0x18d0 fs/bcachefs/fs.c:2294 vfs_get_tree+0x90/0x2b0 fs/super.c:1759 do_new_mount+0x2cf/0xb70 fs/namespace.c:3878 do_mount fs/namespace.c:4218 [inline] __do_sys_mount fs/namespace.c:4429 [inline] __se_sys_mount+0x38c/0x400 fs/namespace.c:4406 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f17f1d8e90a RSP: 002b:00007f17f2bd1e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f17f2bd1ef0 RCX: 00007f17f1d8e90a RDX: 0000200000000080 RSI: 0000200000000000 RDI: 00007f17f2bd1eb0 RBP: 0000200000000080 R08: 00007f17f2bd1ef0 R09: 0000000000800000 R10: 0000000000800000 R11: 0000000000000246 R12: 0000200000000000 R13: 00007f17f2bd1eb0 R14: 0000000000005962 R15: 0000200000000380 Showing all locks held in the system: 3 locks held by kworker/0:0/9: 4 locks held by kworker/0:1/10: 4 locks held by kworker/u8:1/13: #0: ffff88804db61148 ((wq_completion)wg-kex-wg2#19){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline] #0: ffff88804db61148 ((wq_completion)wg-kex-wg2#19){+.+.}-{0:0}, at: process_scheduled_works+0x990/0x18e0 kernel/workqueue.c:3319 #1: ffffc90000127c60 ((work_completion)(&peer->transmit_handshake_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline] #1: ffffc90000127c60 ((work_completion)(&peer->transmit_handshake_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9cb/0x18e0 kernel/workqueue.c:3319 #2: ffff88805bfc1308 (&wg->static_identity.lock){++++}-{4:4}, at: wg_noise_handshake_create_initiation+0x112/0xcb0 drivers/net/wireguard/noise.c:529 #3: ffff88804b5fb4c0 (&handshake->lock){++++}-{4:4}, at: wg_noise_handshake_create_initiation+0x121/0xcb0 drivers/net/wireguard/noise.c:530 6 locks held by kworker/1:0/24: #0: ffff8880222dc548 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline] #0: ffff8880222dc548 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_scheduled_works+0x990/0x18e0 kernel/workqueue.c:3319 #1: ffffc900001e7c60 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline] #1: ffffc900001e7c60 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_scheduled_works+0x9cb/0x18e0 kernel/workqueue.c:3319 #2: ffff888028998198 (&dev->mutex){....}-{4:4}, at: device_lock include/linux/device.h:922 [inline] #2: ffff888028998198 (&dev->mutex){....}-{4:4}, at: hub_event+0x200/0x50f0 drivers/usb/core/hub.c:5859 #3: ffff88802a43e198 (&dev->mutex){....}-{4:4}, at: device_lock include/linux/device.h:922 [inline] #3: ffff88802a43e198 (&dev->mutex){....}-{4:4}, at: __device_attach+0x90/0x530 drivers/base/dd.c:1005 #4: ffff8880589e0160 (&dev->mutex){....}-{4:4}, at: device_lock include/linux/device.h:922 [inline] #4: ffff8880589e0160 (&dev->mutex){....}-{4:4}, at: __device_attach+0x90/0x530 drivers/base/dd.c:1005 #5: ffffffff8ed43380 (rcu_state.barrier_mutex){+.+.}-{4:4}, at: rcu_barrier+0x4c/0x530 kernel/rcu/tree.c:3774 1 lock held by khungtaskd/31: #0: ffffffff8ed3df80 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:331 [inline] #0: ffffffff8ed3df80 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:841 [inline] #0: ffffffff8ed3df80 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x30/0x180 kernel/locking/lockdep.c:6764 4 locks held by kworker/1:2/60: #0: ffff888036496148 ((wq_completion)wg-kex-wg2#20){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline] #0: ffff888036496148 ((wq_completion)wg-kex-wg2#20){+.+.}-{0:0}, at: process_scheduled_works+0x990/0x18e0 kernel/workqueue.c:3319 #1: ffffc9000136fc60 ((work_completion)(&({ do { const void *__vpp_verify = (typeof((worker) + 0))((void *)0); (void)__vpp_verify; } while (0); ({ unsigned long __ptr; __ptr = (unsigned long) ((__typeof__(*((worker))) *)(( unsigned long)((worker)))); (typeof((__typeof__(*((worker))) *)(( unsigned long)((worker))))) (__ptr + (((__per_cpu_offset[(cpu)])))); }); })->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline] #1: ffffc9000136fc60 ((work_completion)(&({ do { const void *__vpp_verify = (typeof((worker) + 0))((void *)0); (void)__vpp_verify; } while (0); ({ unsigned long __ptr; __ptr = (unsigned long) ((__typeof__(*((worker))) *)(( unsigned long)((worker)))); (typeof((__typeof__(*((worker))) *)(( unsigned long)((worker))))) (__ptr + (((__per_cpu_offset[(cpu)])))); }); })->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9cb/0x18e0 kernel/workqueue.c:3319 #2: ffff88805bfc1308 (&wg->static_identity.lock){++++}-{4:4}, at: wg_noise_handshake_consume_initiation+0x151/0xd60 drivers/net/wireguard/noise.c:598 #3: ffff88804b5fb4c0 (&handshake->lock){++++}-{4:4}, at: wg_noise_handshake_consume_initiation+0x711/0xd60 drivers/net/wireguard/noise.c:632 6 locks held by kworker/u8:5/84: #0: ffff88801bef6148 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline] #0: ffff88801bef6148 ((wq_completion)netns){+.+.}-{0:0}, at: process_scheduled_works+0x990/0x18e0 kernel/workqueue.c:3319 #1: ffffc90001587c60 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline] #1: ffffc90001587c60 (net_cleanup_work){+.+.}-{0:0}, at: process_scheduled_works+0x9cb/0x18e0 kernel/workqueue.c:3319 #2: ffffffff900e30d0 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0x17c/0xd60 net/core/net_namespace.c:608 #3: ffff8880611910e8 (&dev->mutex){....}-{4:4}, at: device_lock include/linux/device.h:922 [inline] #3: ffff8880611910e8 (&dev->mutex){....}-{4:4}, at: devl_dev_lock net/devlink/devl_internal.h:108 [inline] #3: ffff8880611910e8 (&dev->mutex){....}-{4:4}, at: devlink_pernet_pre_exit+0x13d/0x450 net/devlink/core.c:506 #4: ffff8880612bf250 (&devlink->lock_key#3){+.+.}-{4:4}, at: devl_lock net/devlink/core.c:276 [inline] #4: ffff8880612bf250 (&devlink->lock_key#3){+.+.}-{4:4}, at: devl_dev_lock net/devlink/devl_internal.h:109 [inline] #4: ffff8880612bf250 (&devlink->lock_key#3){+.+.}-{4:4}, at: devlink_pernet_pre_exit+0x14f/0x450 net/devlink/core.c:506 #5: ffffffff8ed43380 (rcu_state.barrier_mutex){+.+.}-{4:4}, at: rcu_barrier+0x4c/0x530 kernel/rcu/tree.c:3774 2 locks held by kworker/0:2/1207: 2 locks held by getty/5590: #0: ffff8880315740a0 (&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 3 locks held by kworker/1:3/5830: 3 locks held by kworker/1:4/5885: #0: ffff88807ed1bd48 ((wq_completion)wg-kex-wg2#12){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline] #0: ffff88807ed1bd48 ((wq_completion)wg-kex-wg2#12){+.+.}-{0:0}, at: process_scheduled_works+0x990/0x18e0 kernel/workqueue.c:3319 #1: ffffc90003f4fc60 ((work_completion)(&({ do { const void *__vpp_verify = (typeof((worker) + 0))((void *)0); (void)__vpp_verify; } while (0); ({ unsigned long __ptr; __ptr = (unsigned long) ((__typeof__(*((worker))) *)(( unsigned long)((worker)))); (typeof((__typeof__(*((worker))) *)(( unsigned long)((worker))))) (__ptr + (((__per_cpu_offset[(cpu)])))); }); })->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline] #1: ffffc90003f4fc60 ((work_completion)(&({ do { const void *__vpp_verify = (typeof((worker) + 0))((void *)0); (void)__vpp_verify; } while (0); ({ unsigned long __ptr; __ptr = (unsigned long) ((__typeof__(*((worker))) *)(( unsigned long)((worker)))); (typeof((__typeof__(*((worker))) *)(( unsigned long)((worker))))) (__ptr + (((__per_cpu_offset[(cpu)])))); }); })->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9cb/0x18e0 kernel/workqueue.c:3319 #2: ffff88805f1d34c0 (&handshake->lock){++++}-{4:4}, at: wg_noise_handshake_begin_session+0x38/0xc00 drivers/net/wireguard/noise.c:822 2 locks held by kworker/0:3/5887: 3 locks held by kworker/0:4/5888: 4 locks held by kworker/1:6/5889: #0: ffff88805de9bd48 ((wq_completion)wg-kex-wg2#18){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3213 [inline] #0: ffff88805de9bd48 ((wq_completion)wg-kex-wg2#18){+.+.}-{0:0}, at: process_scheduled_works+0x990/0x18e0 kernel/workqueue.c:3319 #1: ffffc9000427fc60 ((work_completion)(&({ do { const void *__vpp_verify = (typeof((worker) + 0))((void *)0); (void)__vpp_verify; } while (0); ({ unsigned long __ptr; __ptr = (unsigned long) ((__typeof__(*((worker))) *)(( unsigned long)((worker)))); (typeof((__typeof__(*((worker))) *)(( unsigned long)((worker))))) (__ptr + (((__per_cpu_offset[(cpu)])))); }); })->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3214 [inline] #1: ffffc9000427fc60 ((work_completion)(&({ do { const void *__vpp_verify = (typeof((worker) + 0))((void *)0); (void)__vpp_verify; } while (0); ({ unsigned long __ptr; __ptr = (unsigned long) ((__typeof__(*((worker))) *)(( unsigned long)((worker)))); (typeof((__typeof__(*((worker))) *)(( unsigned long)((worker))))) (__ptr + (((__per_cpu_offset[(cpu)])))); }); })->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9cb/0x18e0 kernel/workqueue.c:3319 #2: ffff888044e79308 (&wg->static_identity.lock){++++}-{4:4}, at: wg_noise_handshake_consume_initiation+0x151/0xd60 drivers/net/wireguard/noise.c:598 #3: ffff88807a4f6648 (&handshake->lock){++++}-{4:4}, at: wg_noise_handshake_consume_initiation+0x711/0xd60 drivers/net/wireguard/noise.c:632 2 locks held by kworker/0:5/5897: 4 locks held by kworker/0:6/5927: 4 locks held by udevd/6027: #0: ffff88802faafe80 (&p->lock){+.+.}-{4:4}, at: seq_read_iter+0xb4/0xda0 fs/seq_file.c:182 #1: ffff88804b578888 (&of->mutex#2){+.+.}-{4:4}, at: kernfs_seq_start+0x53/0x3b0 fs/kernfs/file.c:154 #2: ffff88807fac8c38 (kn->active#5){++++}-{0:0}, at: kernfs_seq_start+0x72/0x3b0 fs/kernfs/file.c:155 #3: ffff88802a43e198 (&dev->mutex){....}-{4:4}, at: device_lock include/linux/device.h:922 [inline] #3: ffff88802a43e198 (&dev->mutex){....}-{4:4}, at: uevent_show+0x17d/0x340 drivers/base/core.c:2730 2 locks held by kworker/0:7/6333: 1 lock held by syz.2.180/6393: #0: ffffffff8ed43380 (rcu_state.barrier_mutex){+.+.}-{4:4}, at: rcu_barrier+0x4c/0x530 kernel/rcu/tree.c:3774 1 lock held by syz-executor/6479: #0: ffffffff8ed43380 (rcu_state.barrier_mutex){+.+.}-{4:4}, at: rcu_barrier+0x4c/0x530 kernel/rcu/tree.c:3774 1 lock held by syz.1.230/6534: #0: ffffffff8ed43380 (rcu_state.barrier_mutex){+.+.}-{4:4}, at: rcu_barrier+0x4c/0x530 kernel/rcu/tree.c:3774 2 locks held by syz.4.253/6593: #0: ffffffff8f47f328 (bio_slab_lock){+.+.}-{4:4}, at: bio_put_slab block/bio.c:140 [inline] #0: ffffffff8f47f328 (bio_slab_lock){+.+.}-{4:4}, at: bioset_exit+0x42d/0x650 block/bio.c:1664 #1: ffffffff8ed43380 (rcu_state.barrier_mutex){+.+.}-{4:4}, at: rcu_barrier+0x4c/0x530 kernel/rcu/tree.c:3774 2 locks held by syz.6.276/6689: #0: ffff88804d8400e0 (&type->s_umount_key#73/1){+.+.}-{4:4}, at: alloc_super+0x221/0x9d0 fs/super.c:344 #1: ffffffff8ed43380 (rcu_state.barrier_mutex){+.+.}-{4:4}, at: rcu_barrier+0x4c/0x530 kernel/rcu/tree.c:3774 2 locks held by kworker/0:9/6697: 3 locks held by kworker/0:10/6705: 1 lock held by syz-executor/6712: #0: ffffffff8ed43380 (rcu_state.barrier_mutex){+.+.}-{4:4}, at: rcu_barrier+0x4c/0x530 kernel/rcu/tree.c:3774 1 lock held by syz.0.316/6822: #0: ffffffff8ed43380 (rcu_state.barrier_mutex){+.+.}-{4:4}, at: rcu_barrier+0x4c/0x530 kernel/rcu/tree.c:3774 2 locks held by kworker/0:11/6868: 5 locks held by syz-executor/6929: #0: ffff888036084420 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3041 [inline] #0: ffff888036084420 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x23f/0xd10 fs/read_write.c:680 #1: ffff8880272db088 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1ef/0x510 fs/kernfs/file.c:325 #2: ffff888027ebfe18 (kn->active#49){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x213/0x510 fs/kernfs/file.c:326 #3: ffffffff8f9976a8 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xfe/0x490 drivers/net/netdevsim/bus.c:216 #4: ffff8880611910e8 (&dev->mutex){....}-{4:4}, at: device_lock include/linux/device.h:922 [inline] #4: ffff8880611910e8 (&dev->mutex){....}-{4:4}, at: device_del+0xa8/0x9b0 drivers/base/core.c:3817 1 lock held by syz.9.351/6953: #0: ffffffff8f47f328 (bio_slab_lock){+.+.}-{4:4}, at: bio_find_or_create_slab block/bio.c:122 [inline] #0: ffffffff8f47f328 (bio_slab_lock){+.+.}-{4:4}, at: bioset_init+0x241/0x820 block/bio.c:1705 2 locks held by kworker/0:12/6956: 1 lock held by syz.7.356/6969: #0: ffffffff8ed43380 (rcu_state.barrier_mutex){+.+.}-{4:4}, at: rcu_barrier+0x4c/0x530 kernel/rcu/tree.c:3774 4 locks held by syz-executor/6974: #0: ffff888036084420 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3041 [inline] #0: ffff888036084420 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x23f/0xd10 fs/read_write.c:680 #1: ffff88803c001488 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1ef/0x510 fs/kernfs/file.c:325 #2: ffff888027ebfe18 (kn->active#49){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x213/0x510 fs/kernfs/file.c:326 #3: ffffffff8f9976a8 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xfe/0x490 drivers/net/netdevsim/bus.c:216 4 locks held by syz-executor/6976: #0: ffff888036084420 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3041 [inline] #0: ffff888036084420 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x23f/0xd10 fs/read_write.c:680 #1: ffff888059d32088 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1ef/0x510 fs/kernfs/file.c:325 #2: ffff888027ebfe18 (kn->active#49){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x213/0x510 fs/kernfs/file.c:326 #3: ffffffff8f9976a8 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xfe/0x490 drivers/net/netdevsim/bus.c:216 4 locks held by syz-executor/6991: #0: ffff888036084420 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3041 [inline] #0: ffff888036084420 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x23f/0xd10 fs/read_write.c:680 #1: ffff88802a2b6888 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1ef/0x510 fs/kernfs/file.c:325 #2: ffff888027ebfe18 (kn->active#49){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x213/0x510 fs/kernfs/file.c:326 #3: ffffffff8f9976a8 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xfe/0x490 drivers/net/netdevsim/bus.c:216 4 locks held by syz-executor/7000: #0: ffff888036084420 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3041 [inline] #0: ffff888036084420 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x23f/0xd10 fs/read_write.c:680 #1: ffff88807a20b888 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1ef/0x510 fs/kernfs/file.c:325 #2: ffff888027ebfe18 (kn->active#49){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x213/0x510 fs/kernfs/file.c:326 #3: ffffffff8f9976a8 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xfe/0x490 drivers/net/netdevsim/bus.c:216 4 locks held by syz-executor/7015: #0: ffff888036084420 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3041 [inline] #0: ffff888036084420 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x23f/0xd10 fs/read_write.c:680 #1: ffff8880880de088 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1ef/0x510 fs/kernfs/file.c:325 #2: ffff888027ebfe18 (kn->active#49){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x213/0x510 fs/kernfs/file.c:326 #3: ffffffff8f9976a8 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xfe/0x490 drivers/net/netdevsim/bus.c:216 2 locks held by kworker/0:13/7019: 8 locks held by kworker/0:14/7024: 2 locks held by kworker/0:15/7025: 4 locks held by syz-executor/7028: #0: ffff888036084420 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3041 [inline] #0: ffff888036084420 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x23f/0xd10 fs/read_write.c:680 #1: ffff888052882888 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1ef/0x510 fs/kernfs/file.c:325 #2: ffff888027ebfe18 (kn->active#49){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x213/0x510 fs/kernfs/file.c:326 #3: ffffffff8f9976a8 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xfe/0x490 drivers/net/netdevsim/bus.c:216 4 locks held by syz-executor/7030: #0: ffff888036084420 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3041 [inline] #0: ffff888036084420 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x23f/0xd10 fs/read_write.c:680 #1: ffff88803d4f6488 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1ef/0x510 fs/kernfs/file.c:325 #2: ffff888027ebfe18 (kn->active#49){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x213/0x510 fs/kernfs/file.c:326 #3: ffffffff8f9976a8 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xfe/0x490 drivers/net/netdevsim/bus.c:216 4 locks held by syz-executor/7045: #0: ffff888036084420 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3041 [inline] #0: ffff888036084420 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x23f/0xd10 fs/read_write.c:680 #1: ffff88804b951888 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1ef/0x510 fs/kernfs/file.c:325 #2: ffff888027ebfe18 (kn->active#49){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x213/0x510 fs/kernfs/file.c:326 #3: ffffffff8f9976a8 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xfe/0x490 drivers/net/netdevsim/bus.c:216 4 locks held by syz-executor/7054: #0: ffff888036084420 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3041 [inline] #0: ffff888036084420 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x23f/0xd10 fs/read_write.c:680 #1: ffff88808b2ba488 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1ef/0x510 fs/kernfs/file.c:325 #2: ffff888027ebfe18 (kn->active#49){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x213/0x510 fs/kernfs/file.c:326 #3: ffffffff8f9976a8 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xfe/0x490 drivers/net/netdevsim/bus.c:216 3 locks held by kworker/0:16/7063: 4 locks held by syz-executor/7065: #0: ffff888036084420 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3041 [inline] #0: ffff888036084420 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x23f/0xd10 fs/read_write.c:680 #1: ffff88805d0fbc88 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1ef/0x510 fs/kernfs/file.c:325 #2: ffff888027ebfe18 (kn->active#49){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x213/0x510 fs/kernfs/file.c:326 #3: ffffffff8f9976a8 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xfe/0x490 drivers/net/netdevsim/bus.c:216 ============================================= NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 31 Comm: khungtaskd Not tainted 6.14.0-next-20250328-syzkaller #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+0x133e/0x1380 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 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 6705 Comm: kworker/0:10 Not tainted 6.14.0-next-20250328-syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Workqueue: wg-crypt-wg0 wg_packet_tx_worker RIP: 0010:lock_release+0x230/0x3e0 kernel/locking/lockdep.c:5890 Code: ff ff ff 65 0f c1 05 cf a3 c7 11 83 f8 01 0f 85 bf 00 00 00 48 c7 44 24 20 00 00 00 00 9c 8f 44 24 20 f7 44 24 20 00 02 00 00 <0f> 85 c3 00 00 00 41 f7 c6 00 02 00 00 74 01 fb 65 48 8b 03 48 3b RSP: 0018:ffffc90000006c60 EFLAGS: 00000046 RAX: 0000000000000001 RBX: ffffffff93667020 RCX: 0000000000000005 RDX: dffffc0000000000 RSI: ffffffff8e4efdcb RDI: ffffffff8ca1d660 RBP: ffff8880324f0bc0 R08: ffffc90003e3f9d0 R09: 0000000000000000 R10: ffffc90000006df0 R11: fffff52000000dc0 R12: 0000000000000005 R13: ffff8880324f0000 R14: 0000000000000206 R15: ffffffff8ed3df80 FS: 0000000000000000(0000) GS:ffff888124fb9000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f4d70fef6f4 CR3: 000000000eb38000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: rcu_lock_release include/linux/rcupdate.h:341 [inline] rcu_read_unlock include/linux/rcupdate.h:871 [inline] class_rcu_destructor include/linux/rcupdate.h:1155 [inline] unwind_next_frame+0x1a9f/0x23b0 arch/x86/kernel/unwind_orc.c:680 arch_stack_walk+0x11e/0x150 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x11a/0x1d0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 unpoison_slab_object mm/kasan/common.c:319 [inline] __kasan_slab_alloc+0x66/0x80 mm/kasan/common.c:345 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4151 [inline] slab_alloc_node mm/slub.c:4200 [inline] kmem_cache_alloc_noprof+0x1e1/0x390 mm/slub.c:4207 kmem_alloc_batch lib/debugobjects.c:371 [inline] fill_pool+0x262/0x690 lib/debugobjects.c:403 debug_objects_fill_pool lib/debugobjects.c:725 [inline] debug_object_activate+0x4c1/0x5c0 lib/debugobjects.c:814 debug_rcu_head_queue kernel/rcu/rcu.h:224 [inline] __call_rcu_common kernel/rcu/tree.c:3067 [inline] call_rcu+0x99/0xad0 kernel/rcu/tree.c:3202 slab_free_hook mm/slub.c:2353 [inline] slab_free mm/slub.c:4646 [inline] kmem_cache_free+0x312/0x410 mm/slub.c:4748 nf_conntrack_free+0x2fd/0x390 net/netfilter/nf_conntrack_core.c:1729 nf_ct_put include/net/netfilter/nf_conntrack.h:186 [inline] nf_conntrack_in+0xb56/0x18c0 net/netfilter/nf_conntrack_core.c:2055 nf_hook_entry_hookfn include/linux/netfilter.h:154 [inline] nf_hook_slow+0xc8/0x220 net/netfilter/core.c:626 nf_hook include/linux/netfilter.h:269 [inline] NF_HOOK+0x29b/0x450 include/linux/netfilter.h:312 __netif_receive_skb_one_core net/core/dev.c:5891 [inline] __netif_receive_skb+0x2c9/0x670 net/core/dev.c:6004 process_backlog+0x664/0x15c0 net/core/dev.c:6356 __napi_poll+0xcb/0x480 net/core/dev.c:7328 napi_poll net/core/dev.c:7392 [inline] net_rx_action+0x89d/0x1240 net/core/dev.c:7514 handle_softirqs+0x2d6/0x9b0 kernel/softirq.c:579 do_softirq+0x11f/0x1e0 kernel/softirq.c:480 __local_bh_enable_ip+0x1be/0x200 kernel/softirq.c:407 local_bh_enable include/linux/bottom_half.h:33 [inline] rcu_read_unlock_bh include/linux/rcupdate.h:910 [inline] keep_key_fresh drivers/net/wireguard/send.c:135 [inline] wg_packet_create_data_done drivers/net/wireguard/send.c:259 [inline] wg_packet_tx_worker+0x755/0x810 drivers/net/wireguard/send.c:276 process_one_work kernel/workqueue.c:3238 [inline] process_scheduled_works+0xac3/0x18e0 kernel/workqueue.c:3319 worker_thread+0x870/0xd50 kernel/workqueue.c:3400 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