INFO: task syz-executor:4475 blocked for more than 158 seconds.
Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor state:D stack:0 pid:4475 ppid:1 flags:0x00000009
Call trace:
__switch_to+0x2f4/0x550 arch/arm64/kernel/process.c:555
context_switch kernel/sched/core.c:5246 [inline]
__schedule+0xdb4/0x1a6c kernel/sched/core.c:6563
schedule+0xc4/0x170 kernel/sched/core.c:6639
schedule_timeout+0xc8/0x2f4 kernel/time/timer.c:2144
do_wait_for_common+0x28c/0x3ec kernel/sched/completion.c:85
__wait_for_common kernel/sched/completion.c:106 [inline]
wait_for_common kernel/sched/completion.c:117 [inline]
wait_for_completion+0x44/0x5c kernel/sched/completion.c:138
devlink_unregister+0xe8/0x6bc net/devlink/leftover.c:9769
nsim_drv_remove+0x54/0x16c drivers/net/netdevsim/dev.c:1677
nsim_bus_remove+0x20/0x30 drivers/net/netdevsim/bus.c:246
device_remove drivers/base/dd.c:547 [inline]
__device_release_driver drivers/base/dd.c:1279 [inline]
device_release_driver_internal+0x3d4/0x6e4 drivers/base/dd.c:1305
device_release_driver+0x28/0x38 drivers/base/dd.c:1328
bus_remove_device+0x294/0x384 drivers/base/bus.c:531
device_del+0x580/0x990 drivers/base/core.c:3900
device_unregister+0x2c/0xc8 drivers/base/core.c:3943
nsim_bus_dev_del drivers/net/netdevsim/bus.c:310 [inline]
del_device_store+0x288/0x330 drivers/net/netdevsim/bus.c:219
bus_attr_store+0x80/0xa4 drivers/base/bus.c:124
sysfs_kf_write+0x1f8/0x274 fs/sysfs/file.c:140
kernfs_fop_write_iter+0x390/0x4b4 fs/kernfs/file.c:352
call_write_iter include/linux/fs.h:2271 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x3c8/0x7c8 fs/read_write.c:584
ksys_write+0x12c/0x228 fs/read_write.c:637
__do_sys_write fs/read_write.c:649 [inline]
__se_sys_write fs/read_write.c:646 [inline]
__arm64_sys_write+0x7c/0x90 fs/read_write.c:646
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x290 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140
do_el0_svc+0x5c/0x134 arch/arm64/kernel/syscall.c:204
el0_svc+0x58/0x128 arch/arm64/kernel/entry-common.c:637
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585
Showing all locks held in the system:
1 lock held by rcu_gp/3:
#0: ffff800015427e88 (wq_pool_attach_mutex){+.+.}-{3:3}, at: worker_detach_from_pool+0x5c/0x228 kernel/workqueue.c:1900
2 locks held by kworker/0:0/7:
2 locks held by kworker/u4:0/9:
1 lock held by mm_percpu_wq/10:
#0: ffff800015427e88 (wq_pool_attach_mutex){+.+.}-{3:3}, at: worker_detach_from_pool+0x5c/0x228 kernel/workqueue.c:1900
2 locks held by kworker/u4:1/11:
1 lock held by rcu_tasks_kthre/12:
#0: ffff800015577db0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x40/0xc48 kernel/rcu/tasks.h:517
1 lock held by rcu_tasks_trace/13:
#0: ffff8000155785d0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x40/0xc48 kernel/rcu/tasks.h:517
2 locks held by kworker/0:1/14:
2 locks held by kworker/1:0/22:
2 locks held by kworker/1:1/24:
1 lock held by khungtaskd/28:
#0: ffff800015577440 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0xc/0x44 include/linux/rcupdate.h:349
1 lock held by writeback/30:
#0: ffff800015427e88 (wq_pool_attach_mutex){+.+.}-{3:3}, at: worker_attach_to_pool+0x40/0x274 kernel/workqueue.c:1866
2 locks held by kworker/u4:2/39:
2 locks held by kworker/0:2/112:
6 locks held by kworker/u4:3/164:
#0: ffff0000c0845138 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x69c/0x13bc kernel/workqueue.c:-1
#1: ffff800020a27c40 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x6e8/0x13bc kernel/workqueue.c:2267
#2: ffff800017a19610 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0x144/0xa90 net/core/net_namespace.c:594
#3: ffff0000cae5c2f8 (&devlink->lock_key){+.+.}-{3:3}, at: devlink_pernet_pre_exit+0xfc/0x2b0 net/devlink/leftover.c:12502
#4: ffff800017a25e88 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:74
#5: ffff80001557d0f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:323 [inline]
#5: ffff80001557d0f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x2b4/0x780 kernel/rcu/tree_exp.h:962
3 locks held by kworker/1:2/1516:
#0: ffff0000c0020938 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x69c/0x13bc kernel/workqueue.c:-1
#1: ffff800025557c40 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_one_work+0x6e8/0x13bc kernel/workqueue.c:2267
#2: ffff0000d141b240 (&data->fib_lock){+.+.}-{3:3}, at: nsim_fib_event_work+0x1d8/0x2708 drivers/net/netdevsim/fib.c:1491
8 locks held by kworker/u4:4/1608:
1 lock held by dm_bufio_cache/2997:
#0: ffff800015427e88 (wq_pool_attach_mutex){+.+.}-{3:3}, at: worker_attach_to_pool+0x40/0x274 kernel/workqueue.c:1866
1 lock held by mld/3645:
#0: ffff800015427e88 (wq_pool_attach_mutex){+.+.}-{3:3}, at: worker_detach_from_pool+0x5c/0x228 kernel/workqueue.c:1900
1 lock held by ipv6_addrconf/3646:
#0: ffff800015427e88 (wq_pool_attach_mutex){+.+.}-{3:3}, at: worker_detach_from_pool+0x5c/0x228 kernel/workqueue.c:1900
1 lock held by bat_events/3725:
#0: ffff800015427e88 (wq_pool_attach_mutex){+.+.}-{3:3}, at: worker_detach_from_pool+0x5c/0x228 kernel/workqueue.c:1900
2 locks held by kworker/0:3/3901:
2 locks held by getty/4082:
#0: ffff0000d6be7098 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3c/0x4c drivers/tty/tty_ldsem.c:340
#1: ffff800020a4b2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x2e8/0xfa8 drivers/tty/n_tty.c:2198
1 lock held by kworker/u5:2/4389:
#0: ffff800015427e88 (wq_pool_attach_mutex){+.+.}-{3:3}, at: worker_attach_to_pool+0x40/0x274 kernel/workqueue.c:1866
2 locks held by kworker/0:4/4404:
2 locks held by kworker/1:3/4419:
1 lock held by wg-crypt-wg0/4429:
#0: ffff800015427e88 (wq_pool_attach_mutex){+.+.}-{3:3}, at: worker_detach_from_pool+0x5c/0x228 kernel/workqueue.c:1900
1 lock held by wg-crypt-wg1/4432:
#0: ffff800015427e88 (wq_pool_attach_mutex){+.+.}-{3:3}, at: worker_detach_from_pool+0x5c/0x228 kernel/workqueue.c:1900
1 lock held by wg-crypt-wg2/4435:
2 locks held by kworker/0:5/4445:
2 locks held by kworker/0:6/4446:
2 locks held by kworker/0:7/4448:
2 locks held by kworker/0:8/4449:
2 locks held by kworker/0:9/4450:
2 locks held by kworker/0:10/4451:
3 locks held by kworker/0:11/4452:
#0: ffff0000c0020938 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x69c/0x13bc kernel/workqueue.c:-1
#1: ffff800021297c40 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_one_work+0x6e8/0x13bc kernel/workqueue.c:2267
#2: ffff0000db9b0240 (&data->fib_lock){+.+.}-{3:3}, at: nsim_fib_event_work+0x1d8/0x2708 drivers/net/netdevsim/fib.c:1491
2 locks held by kworker/0:12/4454:
2 locks held by kworker/0:13/4455:
3 locks held by kworker/0:14/4457:
#0: ffff0000c0020938 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x69c/0x13bc kernel/workqueue.c:-1
#1: ffff8000210c7c40 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_one_work+0x6e8/0x13bc kernel/workqueue.c:2267
#2: ffff0000d3d50240 (&data->fib_lock){+.+.}-{3:3}, at: nsim_fib_event_work+0x1d8/0x2708 drivers/net/netdevsim/fib.c:1491
2 locks held by kworker/0:15/4458:
3 locks held by kworker/0:16/4459:
#0: ffff0000c0020938 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x69c/0x13bc kernel/workqueue.c:-1
#1: ffff800021397c40 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_one_work+0x6e8/0x13bc kernel/workqueue.c:2267
#2: ffff0000d24d7240 (&data->fib_lock){+.+.}-{3:3}, at: nsim_fib_event_work+0x1d8/0x2708 drivers/net/netdevsim/fib.c:1491
2 locks held by kworker/u4:5/4461:
2 locks held by syz-executor/4466:
#0: ffff0000efa911e0 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close net/bluetooth/hci_core.c:521 [inline]
#0: ffff0000efa911e0 (&hdev->req_lock){+.+.}-{3:3}, at: hci_unregister_dev+0x204/0x4c8 net/bluetooth/hci_core.c:2717
#1: ffff0000efa90428 (&hdev->lock){+.+.}-{3:3}, at: hci_dev_close_sync+0x448/0xff0 net/bluetooth/hci_sync.c:5292
5 locks held by syz-executor/4475:
#0: ffff0000d95a6460 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x254/0x7c8 fs/read_write.c:580
#1: ffff0000d39a5488 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x1b8/0x4b4 fs/kernfs/file.c:343
#2: ffff0000d05c13a8 (kn->active#56){.+.+}-{0:0}, at: kernfs_get_active_of fs/kernfs/file.c:80 [inline]
#2: ffff0000d05c13a8 (kn->active#56){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x1f8/0x4b4 fs/kernfs/file.c:344
#3: ffff800016dd0e28 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: del_device_store+0xdc/0x330 drivers/net/netdevsim/bus.c:209
#4: ffff0000cae5b0e8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:885 [inline]
#4: ffff0000cae5b0e8 (&dev->mutex){....}-{3:3}, at: __device_driver_lock drivers/base/dd.c:1099 [inline]
#4: ffff0000cae5b0e8 (&dev->mutex){....}-{3:3}, at: device_release_driver_internal+0x9c/0x6e4 drivers/base/dd.c:1302
1 lock held by wg-crypt-wg0/4491:
#0: ffff800015427e88 (wq_pool_attach_mutex){+.+.}-{3:3}, at: worker_detach_from_pool+0x5c/0x228 kernel/workqueue.c:1900
1 lock held by wg-crypt-wg1/4492:
#0: ffff800015427e88 (wq_pool_attach_mutex){+.+.}-{3:3}, at: worker_detach_from_pool+0x5c/0x228 kernel/workqueue.c:1900
1 lock held by wg-crypt-wg2/4493:
#0: ffff800015427e88 (wq_pool_attach_mutex){+.+.}-{3:3}, at: worker_attach_to_pool+0x40/0x274 kernel/workqueue.c:1866
1 lock held by wg-crypt-wg0/4495:
#0: ffff800015427e88 (wq_pool_attach_mutex){+.+.}-{3:3}, at: worker_detach_from_pool+0x5c/0x228 kernel/workqueue.c:1900
1 lock held by wg-crypt-wg1/4496:
#0: ffff800015427e88 (wq_pool_attach_mutex){+.+.}-{3:3}, at: worker_detach_from_pool+0x5c/0x228 kernel/workqueue.c:1900
1 lock held by wg-crypt-wg2/4497:
#0: ffff800015427e88 (wq_pool_attach_mutex){+.+.}-{3:3}, at: worker_detach_from_pool+0x5c/0x228 kernel/workqueue.c:1900
1 lock held by wg-crypt-wg0/4500:
#0: ffff800015427e88 (wq_pool_attach_mutex){+.+.}-{3:3}, at: worker_detach_from_pool+0x5c/0x228 kernel/workqueue.c:1900
1 lock held by wg-crypt-wg1/4502:
#0: ffff800015427e88 (wq_pool_attach_mutex){+.+.}-{3:3}, at: worker_detach_from_pool+0x5c/0x228 kernel/workqueue.c:1900
1 lock held by wg-crypt-wg2/4503:
#0: ffff800015427e88 (wq_pool_attach_mutex){+.+.}-{3:3}, at: worker_detach_from_pool+0x5c/0x228 kernel/workqueue.c:1900
1 lock held by wg-crypt-wg0/4507:
#0: ffff800015427e88 (wq_pool_attach_mutex){+.+.}-{3:3}, at: worker_detach_from_pool+0x5c/0x228 kernel/workqueue.c:1900
1 lock held by wg-crypt-wg1/4509:
#0: ffff800015427e88 (wq_pool_attach_mutex){+.+.}-{3:3}, at: worker_detach_from_pool+0x5c/0x228 kernel/workqueue.c:1900
1 lock held by wg-crypt-wg2/4511:
#0: ffff800015427e88 (wq_pool_attach_mutex){+.+.}-{3:3}, at: worker_detach_from_pool+0x5c/0x228 kernel/workqueue.c:1900
2 locks held by kworker/1:5/4512:
2 locks held by kworker/u4:6/4513:
1 lock held by kworker/1:6/4981:
#0: ffff800015427e88 (wq_pool_attach_mutex){+.+.}-{3:3}, at: worker_attach_to_pool+0x40/0x274 kernel/workqueue.c:1866
2 locks held by kworker/u4:7/4983:
2 locks held by kworker/u4:8/4984:
2 locks held by kworker/u4:9/4991:
1 lock held by kworker/0:17/4996:
#0: ffff800015427e88 (wq_pool_attach_mutex){+.+.}-{3:3}, at: set_pf_worker kernel/workqueue.c:2361 [inline]
#0: ffff800015427e88 (wq_pool_attach_mutex){+.+.}-{3:3}, at: worker_thread+0x68/0xfe8 kernel/workqueue.c:2387
2 locks held by kworker/u4:10/4999:
1 lock held by syz-executor/5002:
#0: ffff800017a25e88 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:74 [inline]
#0: ffff800017a25e88 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x64c/0xcc4 net/core/rtnetlink.c:6163
1 lock held by syz-executor/5004:
#0: ffff800017a25e88 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:74 [inline]
#0: ffff800017a25e88 (rtnl_mutex){+.+.}-{3:3}, at: __rtnl_newlink net/core/rtnetlink.c:3646 [inline]
#0: ffff800017a25e88 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_newlink+0x8e0/0x1af0 net/core/rtnetlink.c:3669
1 lock held by syz-executor/5008:
#0: ffff800017a25e88 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:74 [inline]
#0: ffff800017a25e88 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x64c/0xcc4 net/core/rtnetlink.c:6163
1 lock held by syz-executor/5009:
#0: ffff800017a25e88 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:74 [inline]
#0: ffff800017a25e88 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x64c/0xcc4 net/core/rtnetlink.c:6163
1 lock held by bond0/5016:
#0: ffff800015427e88 (wq_pool_attach_mutex){+.+.}-{3:3}, at: set_pf_worker kernel/workqueue.c:2361 [inline]
#0: ffff800015427e88 (wq_pool_attach_mutex){+.+.}-{3:3}, at: rescuer_thread+0x74/0xe08 kernel/workqueue.c:2498
2 locks held by dhcpcd/5023:
#0: ffff0000f2f92130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1805 [inline]
#0: ffff0000f2f92130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x48/0xaf4 net/packet/af_packet.c:3282
#1: ffff80001557d0f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:323 [inline]
#1: ffff80001557d0f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x2b4/0x780 kernel/rcu/tree_exp.h:962
1 lock held by dhcpcd/5024:
#0: ffff0000f42ae130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1805 [inline]
#0: ffff0000f42ae130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x48/0xaf4 net/packet/af_packet.c:3282
1 lock held by dhcpcd/5025:
#0: ffff0000f42aa130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1805 [inline]
#0: ffff0000f42aa130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x48/0xaf4 net/packet/af_packet.c:3282
1 lock held by dhcpcd/5026:
#0: ffff0000f42ac130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1805 [inline]
#0: ffff0000f42ac130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x48/0xaf4 net/packet/af_packet.c:3282
1 lock held by dhcpcd/5027:
#0: ffff0000d0eb4130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1805 [inline]
#0: ffff0000d0eb4130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x48/0xaf4 net/packet/af_packet.c:3282
1 lock held by syz-executor/5028:
#0: ffff800017a25e88 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:74 [inline]
#0: ffff800017a25e88 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x64c/0xcc4 net/core/rtnetlink.c:6163
1 lock held by dhcpcd/5031:
#0: ffff0000d0904130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1805 [inline]
#0: ffff0000d0904130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x48/0xaf4 net/packet/af_packet.c:3282
1 lock held by syz-executor/5040:
#0: ffff800017a25e88 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:74 [inline]
#0: ffff800017a25e88 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x64c/0xcc4 net/core/rtnetlink.c:6163
2 locks held by kworker/u4:11/5047:
1 lock held by kworker/u4:12/5049:
#0: ffff800015427e88 (wq_pool_attach_mutex){+.+.}-{3:3}, at: worker_attach_to_pool+0x40/0x274 kernel/workqueue.c:1866
=============================================