INFO: task udevd:6518 blocked for more than 158 seconds. Not tainted syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:udevd state:D stack:0 pid:6518 tgid:6518 ppid:6168 task_flags:0x400140 flags:0x00800008 Call trace: __switch_to+0x418/0x87c arch/arm64/kernel/process.c:741 (T) context_switch kernel/sched/core.c:5357 [inline] __schedule+0x13b0/0x2864 kernel/sched/core.c:6961 __schedule_loop kernel/sched/core.c:7043 [inline] schedule+0xb4/0x230 kernel/sched/core.c:7058 schedule_preempt_disabled+0x18/0x2c kernel/sched/core.c:7115 rwsem_down_write_slowpath+0x6b4/0x10f4 kernel/locking/rwsem.c:1185 __down_write_common kernel/locking/rwsem.c:1317 [inline] __down_write kernel/locking/rwsem.c:1326 [inline] down_write+0xb4/0xc0 kernel/locking/rwsem.c:1591 inode_lock include/linux/fs.h:870 [inline] open_last_lookups fs/namei.c:3804 [inline] path_openat+0x638/0x2c40 fs/namei.c:4043 do_filp_open+0x18c/0x36c fs/namei.c:4073 do_sys_openat2+0x11c/0x1b4 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] __arm64_sys_openat+0x120/0x158 fs/open.c:1461 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x254 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x5c/0x254 arch/arm64/kernel/entry-common.c:744 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:763 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 INFO: task udevd:6718 blocked for more than 158 seconds. Not tainted syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:udevd state:D stack:0 pid:6718 tgid:6718 ppid:6168 task_flags:0x400140 flags:0x00800008 Call trace: __switch_to+0x418/0x87c arch/arm64/kernel/process.c:741 (T) context_switch kernel/sched/core.c:5357 [inline] __schedule+0x13b0/0x2864 kernel/sched/core.c:6961 __schedule_loop kernel/sched/core.c:7043 [inline] schedule+0xb4/0x230 kernel/sched/core.c:7058 schedule_preempt_disabled+0x18/0x2c kernel/sched/core.c:7115 rwsem_down_write_slowpath+0x6b4/0x10f4 kernel/locking/rwsem.c:1185 __down_write_common kernel/locking/rwsem.c:1317 [inline] __down_write kernel/locking/rwsem.c:1326 [inline] down_write+0xb4/0xc0 kernel/locking/rwsem.c:1591 inode_lock include/linux/fs.h:870 [inline] open_last_lookups fs/namei.c:3804 [inline] path_openat+0x638/0x2c40 fs/namei.c:4043 do_filp_open+0x18c/0x36c fs/namei.c:4073 do_sys_openat2+0x11c/0x1b4 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] __arm64_sys_openat+0x120/0x158 fs/open.c:1461 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x254 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x5c/0x254 arch/arm64/kernel/entry-common.c:744 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:763 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 Showing all locks held in the system: 1 lock held by kthreadd/2: 4 locks held by kworker/0:0/9: #0: ffff0000c0028d48 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x63c/0x155c kernel/workqueue.c:3210 #1: ffff800097c47be0 (reg_work){+.+.}-{0:0}, at: process_one_work+0x6d4/0x155c kernel/workqueue.c:3210 #2: ffff800092a8b3e8 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:80 #3: ffff0000d7270768 (&rdev->wiphy.mtx){+.+.}-{4:4}, at: class_wiphy_constructor include/net/cfg80211.h:6212 [inline] #3: ffff0000d7270768 (&rdev->wiphy.mtx){+.+.}-{4:4}, at: reg_process_self_managed_hints+0xc8/0x1dc net/wireless/reg.c:3209 3 locks held by kworker/u8:0/12: 3 locks held by kworker/u8:1/14: 1 lock held by khungtaskd/32: #0: ffff80008f9d9620 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire+0x4/0x48 include/linux/rcupdate.h:330 6 locks held by kworker/R-write/34: #0: ffff0000c1f7a948 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x63c/0x155c kernel/workqueue.c:3210 #1: ffff800097ff7bc0 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x6d4/0x155c kernel/workqueue.c:3210 #2: ffff0000d8afa0e0 (&type->s_umount_key#30){++++}-{4:4}, at: super_trylock_shared+0x24/0xdc fs/super.c:563 #3: ffff0000d8afcb98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: percpu_down_read include/linux/percpu-rwsem.h:77 [inline] #3: ffff0000d8afcb98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: ext4_writepages_down_read fs/ext4/ext4.h:1786 [inline] #3: ffff0000d8afcb98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: ext4_writepages+0x150/0x2a0 fs/ext4/inode.c:3024 #4: ffff0000d8afe950 (jbd2_handle){++++}-{0:0}, at: start_this_handle+0xe4c/0x10dc fs/jbd2/transaction.c:442 #5: ffff0000de0ed880 (&ei->i_data_sem){++++}-{4:4}, at: ext4_map_blocks+0x620/0x14a8 fs/ext4/inode.c:810 3 locks held by kworker/u8:2/41: 3 locks held by kworker/u8:3/42: 5 locks held by kworker/u9:0/52: #0: ffff0000cae7d148 ((wq_completion)hci3){+.+.}-{0:0}, at: process_one_work+0x63c/0x155c kernel/workqueue.c:3210 #1: ffff800099387be0 ((work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_one_work+0x6d4/0x155c kernel/workqueue.c:3210 #2: ffff0000df450dc0 (&hdev->req_lock){+.+.}-{4:4}, at: hci_cmd_sync_work+0x184/0x33c net/bluetooth/hci_sync.c:331 #3: ffff0000df4500b8 (&hdev->lock){+.+.}-{4:4}, at: hci_abort_conn_sync+0x1d4/0xbb8 net/bluetooth/hci_sync.c:5670 #4: ffff800092df2108 (uevent_sock_mutex){+.+.}-{4:4}, at: uevent_net_broadcast_untagged lib/kobject_uevent.c:317 [inline] #4: ffff800092df2108 (uevent_sock_mutex){+.+.}-{4:4}, at: kobject_uevent_net_broadcast+0x24c/0x548 lib/kobject_uevent.c:410 3 locks held by kworker/u8:4/226: 3 locks held by kworker/u8:5/643: 2 locks held by kworker/0:2/1819: 3 locks held by kworker/R-ipv6_/4198: #0: ffff0000d37d6148 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x63c/0x155c kernel/workqueue.c:3210 #1: ffff80009f9f7bc0 ((work_completion)(&(&net->ipv6.addr_chk_work)->work)){+.+.}-{0:0}, at: process_one_work+0x6d4/0x155c kernel/workqueue.c:3210 #2: ffff800092a8b3e8 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:80 2 locks held by kworker/R-bat_e/4273: 3 locks held by kworker/u8:6/4438: 3 locks held by kworker/u8:7/4476: 5 locks held by kworker/u9:1/6121: #0: ffff0000c95a7148 ((wq_completion)hci1){+.+.}-{0:0}, at: process_one_work+0x63c/0x155c kernel/workqueue.c:3210 #1: ffff8000a1a37be0 ((work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_one_work+0x6d4/0x155c kernel/workqueue.c:3210 #2: ffff0000c989cdc0 (&hdev->req_lock){+.+.}-{4:4}, at: hci_cmd_sync_work+0x184/0x33c net/bluetooth/hci_sync.c:331 #3: ffff0000c989c0b8 (&hdev->lock){+.+.}-{4:4}, at: hci_abort_conn_sync+0x1d4/0xbb8 net/bluetooth/hci_sync.c:5670 #4: ffff800092df2108 (uevent_sock_mutex){+.+.}-{4:4}, at: uevent_net_broadcast_untagged lib/kobject_uevent.c:317 [inline] #4: ffff800092df2108 (uevent_sock_mutex){+.+.}-{4:4}, at: kobject_uevent_net_broadcast+0x24c/0x548 lib/kobject_uevent.c:410 1 lock held by jbd2/nvme0n1p2-/6133: 1 lock held by klogd/6157: 2 locks held by udevd/6168: 1 lock held by dhcpcd/6222: 3 locks held by dhcpcd/6223: 1 lock held by crond/6297: 2 locks held by getty/6311: #0: ffff0000d412d0a0 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3c/0x4c drivers/tty/tty_ldsem.c:340 #1: ffff8000994042f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x34c/0xfa4 drivers/tty/n_tty.c:2222 2 locks held by udevd/6518: #0: ffff0000d986e428 (sb_writers#5){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:557 #1: ffff0000da621660 (&type->i_mutex_dir_key#5){++++}-{4:4}, at: inode_lock include/linux/fs.h:870 [inline] #1: ffff0000da621660 (&type->i_mutex_dir_key#5){++++}-{4:4}, at: open_last_lookups fs/namei.c:3804 [inline] #1: ffff0000da621660 (&type->i_mutex_dir_key#5){++++}-{4:4}, at: path_openat+0x638/0x2c40 fs/namei.c:4043 1 lock held by udevd/6520: 4 locks held by syz-executor/6526: 1 lock held by syz-executor/6527: 2 locks held by kworker/1:2/6528: 5 locks held by kworker/u9:2/6530: #0: ffff0000cae79148 ((wq_completion)hci2){+.+.}-{0:0}, at: process_one_work+0x63c/0x155c kernel/workqueue.c:3210 #1: ffff8000a68c7be0 ((work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_one_work+0x6d4/0x155c kernel/workqueue.c:3210 #2: ffff0000ca960dc0 (&hdev->req_lock){+.+.}-{4:4}, at: hci_cmd_sync_work+0x184/0x33c net/bluetooth/hci_sync.c:331 #3: ffff0000ca9600b8 (&hdev->lock){+.+.}-{4:4}, at: hci_abort_conn_sync+0x1d4/0xbb8 net/bluetooth/hci_sync.c:5670 #4: ffff800092df2108 (uevent_sock_mutex){+.+.}-{4:4}, at: uevent_net_broadcast_untagged lib/kobject_uevent.c:317 [inline] #4: ffff800092df2108 (uevent_sock_mutex){+.+.}-{4:4}, at: kobject_uevent_net_broadcast+0x24c/0x548 lib/kobject_uevent.c:410 5 locks held by kworker/u9:3/6531: #0: ffff0000df37d948 ((wq_completion)hci0){+.+.}-{0:0}, at: process_one_work+0x63c/0x155c kernel/workqueue.c:3210 #1: ffff8000a68b7be0 ((work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_one_work+0x6d4/0x155c kernel/workqueue.c:3210 #2: ffff0000d91dcdc0 (&hdev->req_lock){+.+.}-{4:4}, at: hci_cmd_sync_work+0x184/0x33c net/bluetooth/hci_sync.c:331 #3: ffff0000d91dc0b8 (&hdev->lock){+.+.}-{4:4}, at: hci_abort_conn_sync+0x1d4/0xbb8 net/bluetooth/hci_sync.c:5670 #4: ffff800092df2108 (uevent_sock_mutex){+.+.}-{4:4}, at: uevent_net_broadcast_untagged lib/kobject_uevent.c:317 [inline] #4: ffff800092df2108 (uevent_sock_mutex){+.+.}-{4:4}, at: kobject_uevent_net_broadcast+0x24c/0x548 lib/kobject_uevent.c:410 3 locks held by syz-executor/6535: 4 locks held by syz-executor/6536: 2 locks held by kworker/1:3/6540: 2 locks held by kworker/0:3/6560: 2 locks held by kworker/0:4/6590: 2 locks held by udevd/6718: #0: ffff0000d986e428 (sb_writers#5){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:557 #1: ffff0000da621660 (&type->i_mutex_dir_key#5){++++}-{4:4}, at: inode_lock include/linux/fs.h:870 [inline] #1: ffff0000da621660 (&type->i_mutex_dir_key#5){++++}-{4:4}, at: open_last_lookups fs/namei.c:3804 [inline] #1: ffff0000da621660 (&type->i_mutex_dir_key#5){++++}-{4:4}, at: path_openat+0x638/0x2c40 fs/namei.c:4043 4 locks held by udevd/6863: 3 locks held by udevd/7170: 2 locks held by kworker/u8:8/7295: #0: ffff0000c0031148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x63c/0x155c kernel/workqueue.c:3210 #1: ffff80009daa7be0 ((work_completion)(&sub_info->work)){+.+.}-{0:0}, at: process_one_work+0x6d4/0x155c kernel/workqueue.c:3210 3 locks held by kworker/u8:9/7296: 3 locks held by kworker/u8:8/7297: 3 locks held by kworker/u8:10/7298: 2 locks held by syz-executor/7299: =============================================