INFO: task syz-executor.4:29418 blocked for more than 143 seconds. Not tainted 6.8.0-rc6-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:20984 pid:29418 tgid:29418 ppid:1 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5400 [inline] __schedule+0x17d1/0x49f0 kernel/sched/core.c:6727 __schedule_loop kernel/sched/core.c:6802 [inline] schedule+0x149/0x260 kernel/sched/core.c:6817 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6874 __mutex_lock_common kernel/locking/mutex.c:684 [inline] __mutex_lock+0x6a3/0xd70 kernel/locking/mutex.c:752 del_device_store+0xfc/0x480 drivers/net/netdevsim/bus.c:216 kernfs_fop_write_iter+0x3a6/0x500 fs/kernfs/file.c:334 call_write_iter include/linux/fs.h:2087 [inline] new_sync_write fs/read_write.c:497 [inline] vfs_write+0xa83/0xcb0 fs/read_write.c:590 ksys_write+0x1a0/0x2c0 fs/read_write.c:643 do_syscall_64+0xfb/0x240 entry_SYSCALL_64_after_hwframe+0x6f/0x77 RIP: 0033:0x7f283347caef RSP: 002b:00007ffd99196f00 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f283347caef RDX: 0000000000000001 RSI: 00007ffd99196f50 RDI: 0000000000000005 RBP: 00007f28334ca021 R08: 0000000000000000 R09: 00007ffd99196d57 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000001 R13: 00007ffd99196f50 R14: 00007f28340d4620 R15: 0000000000000003 Showing all locks held in the system: 1 lock held by khungtaskd/29: #0: ffffffff8e130be0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:298 [inline] #0: ffffffff8e130be0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:750 [inline] #0: ffffffff8e130be0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6614 5 locks held by kworker/u4:2/41: #0: ffff8880162f4938 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2608 [inline] #0: ffff8880162f4938 ((wq_completion)netns){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2706 #1: ffffc90000b1fd20 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2608 [inline] #1: ffffc90000b1fd20 (net_cleanup_work){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2706 #2: ffffffff8f369610 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0xf5/0xb90 net/core/net_namespace.c:580 #3: ffff88807bc393e8 (&wg->device_update_lock){+.+.}-{3:3}, at: wg_destruct+0x110/0x300 drivers/net/wireguard/device.c:250 #4: ffffffff8e136440 (rcu_state.barrier_mutex){+.+.}-{3:3}, at: rcu_barrier+0x4c/0x550 kernel/rcu/tree.c:4064 1 lock held by dhcpcd/4730: #0: ffffffff8f375b88 (rtnl_mutex){+.+.}-{3:3}, at: netlink_dump+0xde/0xc80 net/netlink/af_netlink.c:2211 2 locks held by getty/4820: #0: ffff88802b8660a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900031232f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b4/0x1e10 drivers/tty/n_tty.c:2201 3 locks held by kworker/0:3/5135: #0: ffff888014c88938 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2608 [inline] #0: ffff888014c88938 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2706 #1: ffffc900048b7d20 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2608 [inline] #1: ffffc900048b7d20 ((linkwatch_work).work){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2706 #2: ffffffff8f375b88 (rtnl_mutex){+.+.}-{3:3}, at: linkwatch_event+0xe/0x60 net/core/link_watch.c:281 2 locks held by kworker/1:4/5143: #0: ffff888014c8a538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2608 [inline] #0: ffff888014c8a538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2706 #1: ffffc90004407d20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2608 [inline] #1: ffffc90004407d20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2706 3 locks held by kworker/0:1/27895: 2 locks held by kworker/u4:8/28490: 4 locks held by syz-executor.4/29418: #0: ffff888030f46420 (sb_writers#8){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2794 [inline] #0: ffff888030f46420 (sb_writers#8){.+.+}-{0:0}, at: vfs_write+0x233/0xcb0 fs/read_write.c:586 #1: ffff88805d7f1088 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x1eb/0x500 fs/kernfs/file.c:325 #2: ffff888022d66d98 (kn->active#50){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x20f/0x500 fs/kernfs/file.c:326 #3: ffffffff8ecb5688 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: del_device_store+0xfc/0x480 drivers/net/netdevsim/bus.c:216 7 locks held by syz-executor.5/29427: #0: ffff888030f46420 (sb_writers#8){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2794 [inline] #0: ffff888030f46420 (sb_writers#8){.+.+}-{0:0}, at: vfs_write+0x233/0xcb0 fs/read_write.c:586 #1: ffff88805d7f0c88 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x1eb/0x500 fs/kernfs/file.c:325 #2: ffff888022d66d98 (kn->active#50){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x20f/0x500 fs/kernfs/file.c:326 #3: ffffffff8ecb5688 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: del_device_store+0xfc/0x480 drivers/net/netdevsim/bus.c:216 #4: ffff88802d2560e8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:990 [inline] #4: ffff88802d2560e8 (&dev->mutex){....}-{3:3}, at: __device_driver_lock drivers/base/dd.c:1095 [inline] #4: ffff88802d2560e8 (&dev->mutex){....}-{3:3}, at: device_release_driver_internal+0xce/0x7c0 drivers/base/dd.c:1292 #5: ffff88802d257250 (&devlink->lock_key#10){+.+.}-{3:3}, at: nsim_drv_remove+0x50/0x160 drivers/net/netdevsim/dev.c:1672 #6: ffffffff8f375b88 (rtnl_mutex){+.+.}-{3:3}, at: nsim_destroy+0x40/0x160 drivers/net/netdevsim/netdev.c:417 1 lock held by syz-executor.0/29618: #0: ffffffff8f375b88 (rtnl_mutex){+.+.}-{3:3}, at: tun_detach drivers/net/tun.c:697 [inline] #0: ffffffff8f375b88 (rtnl_mutex){+.+.}-{3:3}, at: tun_chr_close+0x3e/0x1b0 drivers/net/tun.c:3505 3 locks held by syz-executor.4/29883: #0: ffff8880636bd060 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close net/bluetooth/hci_core.c:552 [inline] #0: ffff8880636bd060 (&hdev->req_lock){+.+.}-{3:3}, at: hci_unregister_dev+0x1db/0x4e0 net/bluetooth/hci_core.c:2739 #1: ffff8880636bc078 (&hdev->lock){+.+.}-{3:3}, at: hci_dev_close_sync+0x48b/0xff0 net/bluetooth/hci_sync.c:4941 #2: ffffffff8f4db748 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_disconn_cfm include/net/bluetooth/hci_core.h:1998 [inline] #2: ffffffff8f4db748 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_conn_hash_flush+0xa6/0x240 net/bluetooth/hci_conn.c:2645 3 locks held by syz-executor.5/29889: #0: ffff888066179060 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close net/bluetooth/hci_core.c:552 [inline] #0: ffff888066179060 (&hdev->req_lock){+.+.}-{3:3}, at: hci_unregister_dev+0x1db/0x4e0 net/bluetooth/hci_core.c:2739 #1: ffff888066178078 (&hdev->lock){+.+.}-{3:3}, at: hci_dev_close_sync+0x48b/0xff0 net/bluetooth/hci_sync.c:4941 #2: ffffffff8e136578 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:292 [inline] #2: ffffffff8e136578 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x3a3/0x890 kernel/rcu/tree_exp.h:995 3 locks held by syz-executor.0/30049: #0: ffff8880885d9060 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close net/bluetooth/hci_core.c:552 [inline] #0: ffff8880885d9060 (&hdev->req_lock){+.+.}-{3:3}, at: hci_unregister_dev+0x1db/0x4e0 net/bluetooth/hci_core.c:2739 #1: ffff8880885d8078 (&hdev->lock){+.+.}-{3:3}, at: hci_dev_close_sync+0x48b/0xff0 net/bluetooth/hci_sync.c:4941 #2: ffffffff8f4db748 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_disconn_cfm include/net/bluetooth/hci_core.h:1998 [inline] #2: ffffffff8f4db748 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_conn_hash_flush+0xa6/0x240 net/bluetooth/hci_conn.c:2645 3 locks held by syz-executor.4/30290: #0: ffff888089fd5060 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close net/bluetooth/hci_core.c:552 [inline] #0: ffff888089fd5060 (&hdev->req_lock){+.+.}-{3:3}, at: hci_unregister_dev+0x1db/0x4e0 net/bluetooth/hci_core.c:2739 #1: ffff888089fd4078 (&hdev->lock){+.+.}-{3:3}, at: hci_dev_close_sync+0x48b/0xff0 net/bluetooth/hci_sync.c:4941 #2: ffffffff8f4db748 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_disconn_cfm include/net/bluetooth/hci_core.h:1998 [inline] #2: ffffffff8f4db748 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_conn_hash_flush+0xa6/0x240 net/bluetooth/hci_conn.c:2645 4 locks held by syz-executor.5/30297: #0: ffff88808bdf1060 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close net/bluetooth/hci_core.c:552 [inline] #0: ffff88808bdf1060 (&hdev->req_lock){+.+.}-{3:3}, at: hci_unregister_dev+0x1db/0x4e0 net/bluetooth/hci_core.c:2739 #1: ffff88808bdf0078 (&hdev->lock){+.+.}-{3:3}, at: hci_dev_close_sync+0x48b/0xff0 net/bluetooth/hci_sync.c:4941 #2: ffffffff8f4db748 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_disconn_cfm include/net/bluetooth/hci_core.h:1998 [inline] #2: ffffffff8f4db748 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_conn_hash_flush+0xa6/0x240 net/bluetooth/hci_conn.c:2645 #3: ffffffff8e136578 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:324 [inline] #3: ffffffff8e136578 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x46c/0x890 kernel/rcu/tree_exp.h:995 2 locks held by syz-executor.0/30482: #0: ffffffff8f369610 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x4c7/0x7b0 net/core/net_namespace.c:491 #1: ffffffff8f375b88 (rtnl_mutex){+.+.}-{3:3}, at: smc_pnet_create_pnetids_list net/smc/smc_pnet.c:809 [inline] #1: ffffffff8f375b88 (rtnl_mutex){+.+.}-{3:3}, at: smc_pnet_net_init+0x10a/0x1e0 net/smc/smc_pnet.c:878 1 lock held by syz-executor.2/30563: 1 lock held by syz-executor.3/30583: 2 locks held by syz-executor.2/30588: 2 locks held by syz-executor.3/30618: 2 locks held by syz-executor.1/30636: 3 locks held by syz-executor.3/30670: 2 locks held by syz-executor.4/30682: #0: ffffffff8f369610 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x4c7/0x7b0 net/core/net_namespace.c:491 #1: ffffffff8f375b88 (rtnl_mutex){+.+.}-{3:3}, at: smc_pnet_create_pnetids_list net/smc/smc_pnet.c:809 [inline] #1: ffffffff8f375b88 (rtnl_mutex){+.+.}-{3:3}, at: smc_pnet_net_init+0x10a/0x1e0 net/smc/smc_pnet.c:878 2 locks held by syz-executor.1/30688: 2 locks held by syz-executor.2/30691: 2 locks held by syz-executor.5/30698: #0: ffffffff8f369610 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x4c7/0x7b0 net/core/net_namespace.c:491 #1: ffffffff8f375b88 (rtnl_mutex){+.+.}-{3:3}, at: smc_pnet_create_pnetids_list net/smc/smc_pnet.c:809 [inline] #1: ffffffff8f375b88 (rtnl_mutex){+.+.}-{3:3}, at: smc_pnet_net_init+0x10a/0x1e0 net/smc/smc_pnet.c:878 2 locks held by syz-executor.3/30702: 2 locks held by syz-executor.1/30704: 2 locks held by syz-executor.2/30706: 2 locks held by syz-executor.3/30715: 2 locks held by syz-executor.1/30717: 2 locks held by syz-executor.2/30719: 2 locks held by syz-executor.1/30727: 2 locks held by syz-executor.3/30729: 2 locks held by syz-executor.2/30733: 3 locks held by syz-executor.3/30739: 1 lock held by syz-executor.1/30742: 3 locks held by syz-executor.2/30743: 3 locks held by syz-executor.3/30752: 5 locks held by syz-executor.1/30751: 3 locks held by syz-executor.2/30756: 2 locks held by syz-executor.1/30757: 3 locks held by syz-executor.1/30762: 3 locks held by syz-executor.3/30763: ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 29 Comm: khungtaskd Not tainted 6.8.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2e0 lib/dump_stack.c:106 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:222 [inline] watchdog+0xfaf/0xff0 kernel/hung_task.c:379 kthread+0x2f1/0x390 kernel/kthread.c:388 ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1b/0x30 arch/x86/entry/entry_64.S:243 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 49 Comm: kworker/u4:3 Not tainted 6.8.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 Workqueue: bat_events batadv_nc_worker RIP: 0010:lockdep_recursion_finish kernel/locking/lockdep.c:467 [inline] RIP: 0010:lock_acquire+0x1e7/0x530 kernel/locking/lockdep.c:5756 Code: 7c 24 20 44 89 f6 8b 54 24 1c 48 8b 4c 24 30 4c 8b 44 24 38 6a 00 6a 00 6a 00 ff 75 10 ff 74 24 48 e8 ad 04 00 00 48 83 c4 28 <48> c7 c7 c0 c7 aa 8b e8 cd 34 f6 09 b8 ff ff ff ff 65 0f c1 05 50 RSP: 0018:ffffc90000b9fa20 EFLAGS: 00000092 RAX: 0000000000000001 RBX: ffffc90000b9fa80 RCX: 0000000000000001 RDX: dffffc0000000000 RSI: ffff888015fa0b10 RDI: ffff888015fa0000 RBP: ffffc90000b9fb80 R08: ffffffff92c8d427 R09: 1ffffffff2591a84 R10: dffffc0000000000 R11: fffffbfff2591a85 R12: 1ffff92000173f4c R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000246 FS: 0000000000000000(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f47a5702462 CR3: 000000000df32000 CR4: 0000000000350ef0 Call Trace: rcu_lock_acquire include/linux/rcupdate.h:298 [inline] rcu_read_lock include/linux/rcupdate.h:750 [inline] batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:408 [inline] batadv_nc_worker+0xec/0x610 net/batman-adv/network-coding.c:719 process_one_work kernel/workqueue.c:2633 [inline] process_scheduled_works+0x915/0x1420 kernel/workqueue.c:2706 worker_thread+0xa5f/0x1000 kernel/workqueue.c:2787 kthread+0x2f1/0x390 kernel/kthread.c:388 ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1b/0x30 arch/x86/entry/entry_64.S:243