====================================================== WARNING: possible circular locking dependency detected syzkaller #0 Not tainted ------------------------------------------------------ syz.4.6578/31784 is trying to acquire lock: ffff88801b6ffa20 (&root->kernfs_iattr_rwsem){++++}-{4:4}, at: kernfs_unlink_sibling+0x71/0x180 fs/kernfs/dir.c:424 but task is already holding lock: ffff88801b6ff988 (&root->kernfs_rwsem){++++}-{4:4}, at: kernfs_remove_by_name_ns+0x3d/0x130 fs/kernfs/dir.c:1712 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #10 (&root->kernfs_rwsem){++++}-{4:4}: lock_acquire+0x120/0x360 kernel/locking/lockdep.c:5868 down_write+0x96/0x1f0 kernel/locking/rwsem.c:1590 kernfs_add_one+0x41/0x520 fs/kernfs/dir.c:791 kernfs_create_dir_ns+0xde/0x130 fs/kernfs/dir.c:1093 internal_create_group+0x419/0x1110 fs/sysfs/group.c:170 cpuhp_invoke_callback+0x445/0x860 kernel/cpu.c:195 cpuhp_issue_call+0x430/0x7a0 kernel/cpu.c:-1 __cpuhp_setup_state_cpuslocked+0x3df/0x6c0 kernel/cpu.c:2511 __cpuhp_setup_state+0x3f/0x60 kernel/cpu.c:2540 do_one_initcall+0x236/0x820 init/main.c:1281 do_initcall_level+0x104/0x190 init/main.c:1343 do_initcalls+0x59/0xa0 init/main.c:1359 kernel_init_freeable+0x334/0x4b0 init/main.c:1591 kernel_init+0x1d/0x1d0 init/main.c:1481 ret_from_fork+0x4bc/0x870 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 -> #9 (cpuhp_state_mutex){+.+.}-{4:4}: -> #8 (cpu_hotplug_lock){++++}-{0:0}: lock_acquire+0x120/0x360 kernel/locking/lockdep.c:5868 percpu_down_read_internal include/linux/percpu-rwsem.h:53 [inline] percpu_down_read include/linux/percpu-rwsem.h:77 [inline] cpus_read_lock+0x42/0x160 kernel/cpu.c:491 static_key_slow_inc+0x12/0x30 kernel/jump_label.c:190 udp_tunnel_encap_enable include/net/udp_tunnel.h:203 [inline] setup_udp_tunnel_sock+0x34f/0x550 net/ipv4/udp_tunnel_core.c:92 l2tp_tunnel_register+0xcb6/0x1320 net/l2tp/l2tp_core.c:1679 pppol2tp_tunnel_get net/l2tp/l2tp_ppp.c:662 [inline] pppol2tp_connect+0x87c/0x1750 net/l2tp/l2tp_ppp.c:710 __sys_connect_file net/socket.c:2089 [inline] __sys_connect+0x316/0x440 net/socket.c:2108 __do_sys_connect net/socket.c:2114 [inline] __se_sys_connect net/socket.c:2111 [inline] __x64_sys_connect+0x7a/0x90 net/socket.c:2111 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f -> #7 (sk_lock-AF_INET){+.+.}-{0:0}: lock_acquire+0x120/0x360 kernel/locking/lockdep.c:5868 lock_sock_nested+0x48/0x100 net/core/sock.c:3720 lock_sock include/net/sock.h:1676 [inline] tcp_sendmsg+0x21/0x50 net/ipv4/tcp.c:1392 sock_sendmsg_nosec net/socket.c:714 [inline] __sock_sendmsg+0x19c/0x270 net/socket.c:729 sock_sendmsg+0x158/0x230 net/socket.c:752 __sock_xmit+0x1c1/0x470 drivers/block/nbd.c:574 sock_xmit drivers/block/nbd.c:602 [inline] nbd_send_cmd+0x863/0x1ba0 drivers/block/nbd.c:712 nbd_handle_cmd drivers/block/nbd.c:1174 [inline] nbd_queue_rq+0xcdb/0xf10 drivers/block/nbd.c:1204 blk_mq_dispatch_rq_list+0x4c0/0x1900 block/blk-mq.c:2129 __blk_mq_do_dispatch_sched block/blk-mq-sched.c:168 [inline] blk_mq_do_dispatch_sched block/blk-mq-sched.c:182 [inline] __blk_mq_sched_dispatch_requests+0xda4/0x1570 block/blk-mq-sched.c:307 blk_mq_sched_dispatch_requests+0xd7/0x190 block/blk-mq-sched.c:329 blk_mq_run_hw_queue+0x348/0x4f0 block/blk-mq.c:2367 blk_mq_dispatch_list+0xd0c/0xe00 include/linux/spinlock.h:-1 blk_mq_flush_plug_list+0x469/0x550 block/blk-mq.c:2976 __blk_flush_plug+0x3d3/0x4b0 block/blk-core.c:1223 blk_finish_plug block/blk-core.c:1250 [inline] __submit_bio+0x2d3/0x5a0 block/blk-core.c:649 __submit_bio_noacct_mq block/blk-core.c:722 [inline] submit_bio_noacct_nocheck+0x2fb/0xa50 block/blk-core.c:753 submit_bh fs/buffer.c:2829 [inline] __bread_slow fs/buffer.c:1272 [inline] __bread_gfp+0x216/0x3c0 fs/buffer.c:1518 sb_bread include/linux/buffer_head.h:346 [inline] udf_check_vsd fs/udf/super.c:772 [inline] udf_load_vrs+0x365/0xf20 fs/udf/super.c:2015 udf_fill_super+0x5ad/0x17a0 fs/udf/super.c:2201 get_tree_bdev_flags+0x40e/0x4d0 fs/super.c:1691 vfs_get_tree+0x92/0x2b0 fs/super.c:1751 fc_mount fs/namespace.c:1274 [inline] do_new_mount_fc fs/namespace.c:3726 [inline] do_new_mount+0x302/0xa10 fs/namespace.c:3802 do_mount fs/namespace.c:4125 [inline] __do_sys_mount fs/namespace.c:4324 [inline] __se_sys_mount+0x313/0x410 fs/namespace.c:4301 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f -> #6 (&nsock->tx_lock){+.+.}-{4:4}: lock_acquire+0x120/0x360 kernel/locking/lockdep.c:5868 __mutex_lock_common kernel/locking/mutex.c:598 [inline] __mutex_lock+0x187/0x1350 kernel/locking/mutex.c:760 nbd_handle_cmd drivers/block/nbd.c:1140 [inline] nbd_queue_rq+0x257/0xf10 drivers/block/nbd.c:1204 blk_mq_dispatch_rq_list+0x4c0/0x1900 block/blk-mq.c:2129 __blk_mq_do_dispatch_sched block/blk-mq-sched.c:168 [inline] blk_mq_do_dispatch_sched block/blk-mq-sched.c:182 [inline] __blk_mq_sched_dispatch_requests+0xda4/0x1570 block/blk-mq-sched.c:307 blk_mq_sched_dispatch_requests+0xd7/0x190 block/blk-mq-sched.c:329 blk_mq_run_hw_queue+0x348/0x4f0 block/blk-mq.c:2367 blk_mq_dispatch_list+0xd0c/0xe00 include/linux/spinlock.h:-1 blk_mq_flush_plug_list+0x469/0x550 block/blk-mq.c:2976 __blk_flush_plug+0x3d3/0x4b0 block/blk-core.c:1223 blk_finish_plug block/blk-core.c:1250 [inline] __submit_bio+0x2d3/0x5a0 block/blk-core.c:649 __submit_bio_noacct_mq block/blk-core.c:722 [inline] submit_bio_noacct_nocheck+0x2fb/0xa50 block/blk-core.c:753 submit_bh fs/buffer.c:2829 [inline] __bread_slow fs/buffer.c:1272 [inline] __bread_gfp+0x216/0x3c0 fs/buffer.c:1518 sb_bread include/linux/buffer_head.h:346 [inline] udf_check_vsd fs/udf/super.c:772 [inline] udf_load_vrs+0x365/0xf20 fs/udf/super.c:2015 udf_fill_super+0x5ad/0x17a0 fs/udf/super.c:2201 get_tree_bdev_flags+0x40e/0x4d0 fs/super.c:1691 vfs_get_tree+0x92/0x2b0 fs/super.c:1751 fc_mount fs/namespace.c:1274 [inline] do_new_mount_fc fs/namespace.c:3726 [inline] do_new_mount+0x302/0xa10 fs/namespace.c:3802 do_mount fs/namespace.c:4125 [inline] __do_sys_mount fs/namespace.c:4324 [inline] __se_sys_mount+0x313/0x410 fs/namespace.c:4301 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f -> #5 (&cmd->lock){+.+.}-{4:4}: lock_acquire+0x120/0x360 kernel/locking/lockdep.c:5868 __mutex_lock_common kernel/locking/mutex.c:598 [inline] __mutex_lock+0x187/0x1350 kernel/locking/mutex.c:760 nbd_queue_rq+0xc8/0xf10 drivers/block/nbd.c:1196 blk_mq_dispatch_rq_list+0x4c0/0x1900 block/blk-mq.c:2129 __blk_mq_do_dispatch_sched block/blk-mq-sched.c:168 [inline] blk_mq_do_dispatch_sched block/blk-mq-sched.c:182 [inline] __blk_mq_sched_dispatch_requests+0xda4/0x1570 block/blk-mq-sched.c:307 blk_mq_sched_dispatch_requests+0xd7/0x190 block/blk-mq-sched.c:329 blk_mq_run_hw_queue+0x348/0x4f0 block/blk-mq.c:2367 blk_mq_dispatch_list+0xd0c/0xe00 include/linux/spinlock.h:-1 blk_mq_flush_plug_list+0x469/0x550 block/blk-mq.c:2976 __blk_flush_plug+0x3d3/0x4b0 block/blk-core.c:1223 blk_finish_plug block/blk-core.c:1250 [inline] __submit_bio+0x2d3/0x5a0 block/blk-core.c:649 __submit_bio_noacct_mq block/blk-core.c:722 [inline] submit_bio_noacct_nocheck+0x2fb/0xa50 block/blk-core.c:753 submit_bh fs/buffer.c:2829 [inline] __bread_slow fs/buffer.c:1272 [inline] __bread_gfp+0x216/0x3c0 fs/buffer.c:1518 sb_bread include/linux/buffer_head.h:346 [inline] hfs_mdb_get+0x3b7/0x2080 fs/hfs/mdb.c:93 hfs_fill_super+0x37b/0x620 fs/hfs/super.c:337 get_tree_bdev_flags+0x40e/0x4d0 fs/super.c:1691 vfs_get_tree+0x92/0x2b0 fs/super.c:1751 fc_mount fs/namespace.c:1274 [inline] do_new_mount_fc fs/namespace.c:3726 [inline] do_new_mount+0x302/0xa10 fs/namespace.c:3802 do_mount fs/namespace.c:4125 [inline] __do_sys_mount fs/namespace.c:4324 [inline] __se_sys_mount+0x313/0x410 fs/namespace.c:4301 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f -> #4 (set->srcu){.+.+}-{0:0}: lock_sync+0xba/0x160 kernel/locking/lockdep.c:5916 srcu_lock_sync include/linux/srcu.h:173 [inline] __synchronize_srcu+0x96/0x3a0 kernel/rcu/srcutree.c:1429 elevator_switch+0x12b/0x640 block/elevator.c:588 elevator_change+0x315/0x4c0 block/elevator.c:691 elevator_set_default+0x186/0x260 block/elevator.c:767 blk_register_queue+0x34e/0x3f0 block/blk-sysfs.c:942 __add_disk+0x677/0xd50 block/genhd.c:528 add_disk_fwnode+0xfc/0x480 block/genhd.c:597 add_disk include/linux/blkdev.h:775 [inline] nbd_dev_add+0x717/0xae0 drivers/block/nbd.c:1981 nbd_init+0x168/0x1f0 drivers/block/nbd.c:2688 do_one_initcall+0x236/0x820 init/main.c:1281 do_initcall_level+0x104/0x190 init/main.c:1343 do_initcalls+0x59/0xa0 init/main.c:1359 kernel_init_freeable+0x334/0x4b0 init/main.c:1591 kernel_init+0x1d/0x1d0 init/main.c:1481 ret_from_fork+0x4bc/0x870 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 -> #3 (&q->elevator_lock){+.+.}-{4:4}: lock_acquire+0x120/0x360 kernel/locking/lockdep.c:5868 __mutex_lock_common kernel/locking/mutex.c:598 [inline] __mutex_lock+0x187/0x1350 kernel/locking/mutex.c:760 elevator_change+0x1e5/0x4c0 block/elevator.c:689 elevator_set_none+0x42/0xb0 block/elevator.c:782 blk_mq_elv_switch_none block/blk-mq.c:5034 [inline] __blk_mq_update_nr_hw_queues block/blk-mq.c:5077 [inline] blk_mq_update_nr_hw_queues+0x598/0x1ab0 block/blk-mq.c:5135 nbd_start_device+0x17f/0xb10 drivers/block/nbd.c:1486 nbd_genl_connect+0x135b/0x18f0 drivers/block/nbd.c:2236 genl_family_rcv_msg_doit+0x215/0x300 net/netlink/genetlink.c:1115 genl_family_rcv_msg net/netlink/genetlink.c:1195 [inline] genl_rcv_msg+0x60e/0x790 net/netlink/genetlink.c:1210 netlink_rcv_skb+0x208/0x470 net/netlink/af_netlink.c:2552 genl_rcv+0x28/0x40 net/netlink/genetlink.c:1219 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x82f/0x9e0 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x805/0xb30 net/netlink/af_netlink.c:1896 sock_sendmsg_nosec net/socket.c:714 [inline] __sock_sendmsg+0x21c/0x270 net/socket.c:729 ____sys_sendmsg+0x505/0x830 net/socket.c:2617 ___sys_sendmsg+0x21f/0x2a0 net/socket.c:2671 __sys_sendmsg net/socket.c:2703 [inline] __do_sys_sendmsg net/socket.c:2708 [inline] __se_sys_sendmsg net/socket.c:2706 [inline] __x64_sys_sendmsg+0x19b/0x260 net/socket.c:2706 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f -> #2 (&q->q_usage_counter(io)#50){++++}-{0:0}: lock_acquire+0x120/0x360 kernel/locking/lockdep.c:5868 blk_alloc_queue+0x538/0x620 block/blk-core.c:461 blk_mq_alloc_queue block/blk-mq.c:4401 [inline] __blk_mq_alloc_disk+0x15c/0x340 block/blk-mq.c:4448 nbd_dev_add+0x46c/0xae0 drivers/block/nbd.c:1951 nbd_init+0x168/0x1f0 drivers/block/nbd.c:2688 do_one_initcall+0x236/0x820 init/main.c:1281 do_initcall_level+0x104/0x190 init/main.c:1343 do_initcalls+0x59/0xa0 init/main.c:1359 kernel_init_freeable+0x334/0x4b0 init/main.c:1591 kernel_init+0x1d/0x1d0 init/main.c:1481 ret_from_fork+0x4bc/0x870 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 -> #1 (fs_reclaim){+.+.}-{0:0}: lock_acquire+0x120/0x360 kernel/locking/lockdep.c:5868 __fs_reclaim_acquire mm/page_alloc.c:4245 [inline] fs_reclaim_acquire+0x72/0x100 mm/page_alloc.c:4259 might_alloc include/linux/sched/mm.h:318 [inline] slab_pre_alloc_hook mm/slub.c:4721 [inline] slab_alloc_node mm/slub.c:5044 [inline] kmem_cache_alloc_noprof+0x45/0x6e0 mm/slub.c:5075 __kernfs_iattrs+0xd9/0x320 fs/kernfs/inode.c:36 kernfs_iattrs fs/kernfs/inode.c:61 [inline] __kernfs_setattr fs/kernfs/inode.c:74 [inline] kernfs_iop_setattr+0xea/0x3f0 fs/kernfs/inode.c:128 notify_change+0xc1a/0xf40 fs/attr.c:546 do_truncate+0x1a4/0x220 fs/open.c:68 handle_truncate fs/namei.c:3516 [inline] do_open fs/namei.c:3899 [inline] path_openat+0x306c/0x3830 fs/namei.c:4054 do_filp_open+0x1fa/0x410 fs/namei.c:4081 do_sys_openat2+0x121/0x1c0 fs/open.c:1435 do_sys_open fs/open.c:1450 [inline] __do_sys_openat fs/open.c:1466 [inline] __se_sys_openat fs/open.c:1461 [inline] __x64_sys_openat+0x138/0x170 fs/open.c:1461 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f -> #0 (&root->kernfs_iattr_rwsem){++++}-{4:4}: check_prev_add kernel/locking/lockdep.c:3165 [inline] check_prevs_add kernel/locking/lockdep.c:3284 [inline] validate_chain+0xb9b/0x2140 kernel/locking/lockdep.c:3908 __lock_acquire+0xab9/0xd20 kernel/locking/lockdep.c:5237 lock_acquire+0x120/0x360 kernel/locking/lockdep.c:5868 down_write+0x96/0x1f0 kernel/locking/rwsem.c:1590 kernfs_unlink_sibling+0x71/0x180 fs/kernfs/dir.c:424 __kernfs_remove+0x353/0x570 fs/kernfs/dir.c:1514 kernfs_remove_by_name_ns+0xaf/0x130 fs/kernfs/dir.c:1717 kernfs_remove_by_name include/linux/kernfs.h:633 [inline] sysfs_unmerge_group+0xd4/0x140 fs/sysfs/group.c:402 wakeup_sysfs_remove+0x1c/0x30 drivers/base/power/sysfs.c:786 hub_port_reset+0x1549/0x1750 drivers/usb/core/hub.c:3177 hub_port_init+0x2b0/0x2800 drivers/usb/core/hub.c:4938 usb_reset_and_verify_device+0x4cd/0x1a80 drivers/usb/core/hub.c:6214 finish_port_resume drivers/usb/core/hub.c:3664 [inline] usb_port_resume+0x1560/0x1cc0 drivers/usb/core/hub.c:3864 usb_generic_driver_resume+0x4a/0x90 drivers/usb/core/generic.c:317 usb_resume_device drivers/usb/core/driver.c:1304 [inline] usb_resume_both+0x32d/0xae0 drivers/usb/core/driver.c:1528 __rpm_callback+0x2f1/0x7f0 drivers/base/power/runtime.c:406 rpm_callback drivers/base/power/runtime.c:460 [inline] rpm_resume+0xf98/0x15f0 drivers/base/power/runtime.c:934 rpm_resume+0x8c1/0x15f0 drivers/base/power/runtime.c:912 __pm_runtime_resume+0x11c/0x180 drivers/base/power/runtime.c:1192 pm_runtime_resume_and_get include/linux/pm_runtime.h:526 [inline] usb_autopm_get_interface+0x20/0xf0 drivers/usb/core/driver.c:1826 wdm_open+0x20a/0x550 drivers/usb/class/cdc-wdm.c:725 usb_open+0x156/0x1e0 drivers/usb/core/file.c:47 chrdev_open+0x4cc/0x5e0 fs/char_dev.c:414 do_dentry_open+0x953/0x13f0 fs/open.c:965 vfs_open+0x3b/0x340 fs/open.c:1095 do_open fs/namei.c:3895 [inline] path_openat+0x2ee5/0x3830 fs/namei.c:4054 do_filp_open+0x1fa/0x410 fs/namei.c:4081 do_sys_openat2+0x121/0x1c0 fs/open.c:1435 do_sys_open fs/open.c:1450 [inline] __do_sys_openat fs/open.c:1466 [inline] __se_sys_openat fs/open.c:1461 [inline] __x64_sys_openat+0x138/0x170 fs/open.c:1461 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f other info that might help us debug this: Chain exists of: &root->kernfs_iattr_rwsem --> cpuhp_state_mutex --> &root->kernfs_rwsem Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&root->kernfs_rwsem); lock(cpuhp_state_mutex); lock(&root->kernfs_rwsem); lock(&root->kernfs_iattr_rwsem); *** DEADLOCK *** 6 locks held by syz.4.6578/31784: #0: ffffffff8f205d10 (minor_rwsem#2){++++}-{4:4}, at: usb_open+0x30/0x1e0 drivers/usb/core/file.c:38 #1: ffffffff8f28e1e8 (wdm_mutex){+.+.}-{4:4}, at: wdm_open+0x57/0x550 drivers/usb/class/cdc-wdm.c:710 #2: ffff888145fac518 (&port_dev->status_lock){+.+.}-{4:4}, at: usb_lock_port drivers/usb/core/hub.c:3251 [inline] #2: ffff888145fac518 (&port_dev->status_lock){+.+.}-{4:4}, at: usb_port_resume+0x272/0x1cc0 drivers/usb/core/hub.c:3809 #3: ffff888145f43068 (hcd->address0_mutex){+.+.}-{4:4}, at: usb_reset_and_verify_device+0x372/0x1a80 drivers/usb/core/hub.c:6203 #4: ffffffff8f1fb3b0 (ehci_cf_port_reset_rwsem){.+.+}-{4:4}, at: hub_port_reset+0x163/0x1750 drivers/usb/core/hub.c:3066 #5: ffff88801b6ff988 (&root->kernfs_rwsem){++++}-{4:4}, at: kernfs_remove_by_name_ns+0x3d/0x130 fs/kernfs/dir.c:1712 stack backtrace: CPU: 1 UID: 0 PID: 31784 Comm: syz.4.6578 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 print_circular_bug+0x2ee/0x310 kernel/locking/lockdep.c:2043 check_noncircular+0x134/0x160 kernel/locking/lockdep.c:2175 check_prev_add kernel/locking/lockdep.c:3165 [inline] check_prevs_add kernel/locking/lockdep.c:3284 [inline] validate_chain+0xb9b/0x2140 kernel/locking/lockdep.c:3908 __lock_acquire+0xab9/0xd20 kernel/locking/lockdep.c:5237 lock_acquire+0x120/0x360 kernel/locking/lockdep.c:5868 down_write+0x96/0x1f0 kernel/locking/rwsem.c:1590 kernfs_unlink_sibling+0x71/0x180 fs/kernfs/dir.c:424 __kernfs_remove+0x353/0x570 fs/kernfs/dir.c:1514 kernfs_remove_by_name_ns+0xaf/0x130 fs/kernfs/dir.c:1717 kernfs_remove_by_name include/linux/kernfs.h:633 [inline] sysfs_unmerge_group+0xd4/0x140 fs/sysfs/group.c:402 wakeup_sysfs_remove+0x1c/0x30 drivers/base/power/sysfs.c:786 hub_port_reset+0x1549/0x1750 drivers/usb/core/hub.c:3177 hub_port_init+0x2b0/0x2800 drivers/usb/core/hub.c:4938 usb_reset_and_verify_device+0x4cd/0x1a80 drivers/usb/core/hub.c:6214 finish_port_resume drivers/usb/core/hub.c:3664 [inline] usb_port_resume+0x1560/0x1cc0 drivers/usb/core/hub.c:3864 usb_generic_driver_resume+0x4a/0x90 drivers/usb/core/generic.c:317 usb_resume_device drivers/usb/core/driver.c:1304 [inline] usb_resume_both+0x32d/0xae0 drivers/usb/core/driver.c:1528 __rpm_callback+0x2f1/0x7f0 drivers/base/power/runtime.c:406 rpm_callback drivers/base/power/runtime.c:460 [inline] rpm_resume+0xf98/0x15f0 drivers/base/power/runtime.c:934 rpm_resume+0x8c1/0x15f0 drivers/base/power/runtime.c:912 __pm_runtime_resume+0x11c/0x180 drivers/base/power/runtime.c:1192 pm_runtime_resume_and_get include/linux/pm_runtime.h:526 [inline] usb_autopm_get_interface+0x20/0xf0 drivers/usb/core/driver.c:1826 wdm_open+0x20a/0x550 drivers/usb/class/cdc-wdm.c:725 usb_open+0x156/0x1e0 drivers/usb/core/file.c:47 chrdev_open+0x4cc/0x5e0 fs/char_dev.c:414 do_dentry_open+0x953/0x13f0 fs/open.c:965 vfs_open+0x3b/0x340 fs/open.c:1095 do_open fs/namei.c:3895 [inline] path_openat+0x2ee5/0x3830 fs/namei.c:4054 do_filp_open+0x1fa/0x410 fs/namei.c:4081 do_sys_openat2+0x121/0x1c0 fs/open.c:1435 do_sys_open fs/open.c:1450 [inline] __do_sys_openat fs/open.c:1466 [inline] __se_sys_openat fs/open.c:1461 [inline] __x64_sys_openat+0x138/0x170 fs/open.c:1461 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe41758d510 Code: 48 89 44 24 20 75 93 44 89 54 24 0c e8 49 94 02 00 44 8b 54 24 0c 89 da 48 89 ee 41 89 c0 bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 77 38 44 89 c7 89 44 24 0c e8 9c 94 02 00 8b 44 RSP: 002b:00007fe4157f5b70 EFLAGS: 00000293 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007fe41758d510 RDX: 0000000000000002 RSI: 00007fe4157f5c10 RDI: 00000000ffffff9c RBP: 00007fe4157f5c10 R08: 0000000000000000 R09: 00007fe4157f5987 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000 R13: 00007fe4177d6038 R14: 00007fe4177d5fa0 R15: 00007fff8de053b8 usb 5-1: reset high-speed USB device number 30 using dummy_hcd usb 5-1: device descriptor read/64, error -110 usb 5-1: reset high-speed USB device number 30 using dummy_hcd usb 5-1: device descriptor read/64, error -32 usb 5-1: reset high-speed USB device number 30 using dummy_hcd usb 5-1: device descriptor read/8, error -32 usb 5-1: reset high-speed USB device number 30 using dummy_hcd usb 5-1: device descriptor read/8, error -32 cdc_wdm 5-1:1.0: Error autopm - -16 raw-gadget.4 gadget.4: failed to queue disconnect event