INFO: task udevd:5850 blocked for more than 143 seconds. Not tainted 6.12.0-rc5-next-20241030-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:udevd state:D stack:21696 pid:5850 tgid:5850 ppid:5222 flags:0x00000002 Call Trace: context_switch kernel/sched/core.c:5327 [inline] __schedule+0x184f/0x4c30 kernel/sched/core.c:6707 __schedule_loop kernel/sched/core.c:6784 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6799 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6856 __mutex_lock_common kernel/locking/mutex.c:665 [inline] __mutex_lock+0x7e7/0xee0 kernel/locking/mutex.c:735 device_lock include/linux/device.h:1014 [inline] uevent_show+0x17d/0x340 drivers/base/core.c:2736 dev_attr_show+0x55/0xc0 drivers/base/core.c:2430 sysfs_kf_seq_show+0x331/0x4c0 fs/sysfs/file.c:59 seq_read_iter+0x43f/0xd70 fs/seq_file.c:230 new_sync_read fs/read_write.c:488 [inline] vfs_read+0x991/0xb70 fs/read_write.c:569 ksys_read+0x183/0x2b0 fs/read_write.c:712 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f892b716b6a RSP: 002b:00007ffeab91e5f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00005602f24747b0 RCX: 00007f892b716b6a RDX: 0000000000001000 RSI: 00005602f25100b0 RDI: 0000000000000008 RBP: 00005602f24747b0 R08: 0000000000000008 R09: 0000000000000008 R10: 000000000000010f R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000003fff R14: 00007ffeab91ead8 R15: 000000000000000a Showing all locks held in the system: 2 locks held by ksoftirqd/1/24: 1 lock held by khungtaskd/30: #0: ffffffff8e939f20 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #0: ffffffff8e939f20 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #0: ffffffff8e939f20 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6744 5 locks held by kworker/u9:0/55: #0: ffff8880286ac948 ((wq_completion)hci4){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline] #0: ffff8880286ac948 ((wq_completion)hci4){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1850 kernel/workqueue.c:3310 #1: ffffc90000bf7d00 ((work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline] #1: ffffc90000bf7d00 ((work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1850 kernel/workqueue.c:3310 #2: ffff88807ca38d80 (&hdev->req_lock){+.+.}-{4:4}, at: hci_cmd_sync_work+0x1ec/0x400 net/bluetooth/hci_sync.c:327 #3: ffff88807ca38078 (&hdev->lock){+.+.}-{4:4}, at: hci_abort_conn_sync+0x1ea/0xde0 net/bluetooth/hci_sync.c:5580 #4: ffffffff8fe3d7e8 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_connect_cfm include/net/bluetooth/hci_core.h:1959 [inline] #4: ffffffff8fe3d7e8 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_conn_failed+0x15d/0x300 net/bluetooth/hci_conn.c:1265 3 locks held by kworker/u8:7/1157: 3 locks held by kworker/R-ipv6_/3166: #0: ffff88814d786148 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline] #0: ffff88814d786148 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1850 kernel/workqueue.c:3310 #1: ffffc9000c26fc80 ((work_completion)(&(&net->ipv6.addr_chk_work)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline] #1: ffffc9000c26fc80 ((work_completion)(&(&net->ipv6.addr_chk_work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1850 kernel/workqueue.c:3310 #2: ffffffff8fcd05e8 (rtnl_mutex){+.+.}-{4:4}, at: addrconf_verify_work+0x19/0x30 net/ipv6/addrconf.c:4736 1 lock held by klogd/5211: 2 locks held by udevd/5222: 5 locks held by dhcpcd/5516: 2 locks held by getty/5600: #0: ffff8880315330a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900032432f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x6a6/0x1e00 drivers/tty/n_tty.c:2211 2 locks held by syz-executor/5845: 1 lock held by syz-executor/5846: #0: ffff88814d78c308 (&xt[i].mutex){+.+.}-{4:4}, at: xt_find_table_lock+0x4c/0x3b0 net/netfilter/x_tables.c:1243 5 locks held by kworker/u9:2/5849: #0: ffff8880286ad948 ((wq_completion)hci2){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline] #0: ffff8880286ad948 ((wq_completion)hci2){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1850 kernel/workqueue.c:3310 #1: ffffc900038b7d00 ((work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline] #1: ffffc900038b7d00 ((work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1850 kernel/workqueue.c:3310 #2: ffff888024434d80 (&hdev->req_lock){+.+.}-{4:4}, at: hci_cmd_sync_work+0x1ec/0x400 net/bluetooth/hci_sync.c:327 #3: ffff888024434078 (&hdev->lock){+.+.}-{4:4}, at: hci_abort_conn_sync+0x1ea/0xde0 net/bluetooth/hci_sync.c:5580 #4: ffffffff8e93f4b8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:297 [inline] #4: ffffffff8e93f4b8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x381/0x830 kernel/rcu/tree_exp.h:976 4 locks held by udevd/5850: #0: ffff888032c94540 (&p->lock){+.+.}-{4:4}, at: seq_read_iter+0xb4/0xd70 fs/seq_file.c:182 #1: ffff88802727e088 (&of->mutex#2){+.+.}-{4:4}, at: kernfs_seq_start+0x53/0x3b0 fs/kernfs/file.c:154 #2: ffff888061ecfa58 (kn->active#5){++++}-{0:0}, at: kernfs_seq_start+0x72/0x3b0 fs/kernfs/file.c:155 #3: ffff88802749c190 (&dev->mutex){....}-{4:4}, at: device_lock include/linux/device.h:1014 [inline] #3: ffff88802749c190 (&dev->mutex){....}-{4:4}, at: uevent_show+0x17d/0x340 drivers/base/core.c:2736 6 locks held by kworker/u9:3/5851: #0: ffff8880286ac148 ((wq_completion)hci0){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline] #0: ffff8880286ac148 ((wq_completion)hci0){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1850 kernel/workqueue.c:3310 #1: ffffc900038d7d00 ((work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline] #1: ffffc900038d7d00 ((work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1850 kernel/workqueue.c:3310 #2: ffff888024430d80 (&hdev->req_lock){+.+.}-{4:4}, at: hci_cmd_sync_work+0x1ec/0x400 net/bluetooth/hci_sync.c:327 #3: ffff888024430078 (&hdev->lock){+.+.}-{4:4}, at: hci_abort_conn_sync+0x1ea/0xde0 net/bluetooth/hci_sync.c:5580 #4: ffffffff8fe3d7e8 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_connect_cfm include/net/bluetooth/hci_core.h:1959 [inline] #4: ffffffff8fe3d7e8 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_conn_failed+0x15d/0x300 net/bluetooth/hci_conn.c:1265 #5: ffffffff8e93f4b8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:329 [inline] #5: ffffffff8e93f4b8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x451/0x830 kernel/rcu/tree_exp.h:976 1 lock held by syz-executor/5852: #0: ffff88814d78c308 (&xt[i].mutex){+.+.}-{4:4}, at: xt_find_table_lock+0x4c/0x3b0 net/netfilter/x_tables.c:1243 3 locks held by kworker/1:3/5855: 1 lock held by syz-executor/5862: #0: ffff88814d78c308 (&xt[i].mutex){+.+.}-{4:4}, at: xt_find_table_lock+0x4c/0x3b0 net/netfilter/x_tables.c:1243 5 locks held by kworker/u9:8/5864: #0: ffff888028631148 ((wq_completion)hci1){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline] #0: ffff888028631148 ((wq_completion)hci1){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1850 kernel/workqueue.c:3310 #1: ffffc90003997d00 ((work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline] #1: ffffc90003997d00 ((work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1850 kernel/workqueue.c:3310 #2: ffff88803043cd80 (&hdev->req_lock){+.+.}-{4:4}, at: hci_cmd_sync_work+0x1ec/0x400 net/bluetooth/hci_sync.c:327 #3: ffff88803043c078 (&hdev->lock){+.+.}-{4:4}, at: hci_abort_conn_sync+0x1ea/0xde0 net/bluetooth/hci_sync.c:5580 #4: ffffffff8fe3d7e8 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_connect_cfm include/net/bluetooth/hci_core.h:1959 [inline] #4: ffffffff8fe3d7e8 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_conn_failed+0x15d/0x300 net/bluetooth/hci_conn.c:1265 5 locks held by kworker/1:5/5927: 2 locks held by udevd/6217: 2 locks held by syz-executor/7975: ============================================= NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.12.0-rc5-next-20241030-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 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:162 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:234 [inline] watchdog+0xffb/0x1040 kernel/hung_task.c:397 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 24 Comm: ksoftirqd/1 Not tainted 6.12.0-rc5-next-20241030-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:match_held_lock+0x7/0xb0 kernel/locking/lockdep.c:5295 Code: 41 5f c3 cc cc cc cc e8 07 f9 ff ff 0f 1f 80 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 55 53 bd 01 00 00 00 <48> 39 77 10 74 67 48 89 fb 81 7f 20 00 00 20 00 72 59 48 8b 46 08 RSP: 0018:ffffc900001e66d8 EFLAGS: 00000097 RAX: 0000000000000001 RBX: ffff88801d2f0ae0 RCX: 0000000080000100 RDX: ffff88801d2f0000 RSI: ffffffff8e939f20 RDI: ffff88801d2f0ae0 RBP: 0000000000000001 R08: ffffffff8a695ff0 R09: 0000000000000000 R10: ffffc900001e67e0 R11: fffff5200003cd02 R12: 0000000000000246 R13: ffff88801d2f0000 R14: 00000000ffffffff R15: ffffffff8e939f20 FS: 0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6c8b888000 CR3: 000000000e736000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __lock_is_held kernel/locking/lockdep.c:5590 [inline] lock_is_held_type+0xa9/0x190 kernel/locking/lockdep.c:5921 fib6_node_lookup_1+0x159/0x8b0 net/ipv6/ip6_fib.c:1580 fib6_node_lookup+0x14a/0x250 net/ipv6/ip6_fib.c:1649 fib6_table_lookup+0xc6/0xbb0 net/ipv6/route.c:2191 ip6_pol_route+0x273/0x15d0 net/ipv6/route.c:2231 pol_lookup_func include/net/ip6_fib.h:616 [inline] fib6_rule_lookup+0x286/0x790 net/ipv6/fib6_rules.c:117 ip6_route_output_flags_noref net/ipv6/route.c:2639 [inline] ip6_route_output_flags+0x38e/0x610 net/ipv6/route.c:2651 ip6_route_output include/net/ip6_route.h:93 [inline] __nf_ip6_route+0x42/0xc0 net/ipv6/netfilter.c:113 nf_ip6_route include/linux/netfilter_ipv6.h:111 [inline] synproxy_send_tcp_ipv6+0x2a3/0x7c0 net/netfilter/nf_synproxy_core.c:835 synproxy_send_client_synack_ipv6+0x7d0/0xc30 net/netfilter/nf_synproxy_core.c:897 nft_synproxy_eval_v6 net/netfilter/nft_synproxy.c:90 [inline] nft_synproxy_do_eval+0x739/0xa60 net/netfilter/nft_synproxy.c:145 expr_call_ops_eval net/netfilter/nf_tables_core.c:240 [inline] nft_do_chain+0x4ad/0x1da0 net/netfilter/nf_tables_core.c:288 nft_do_chain_inet+0x418/0x6b0 net/netfilter/nft_chain_filter.c:161 nf_hook_entry_hookfn include/linux/netfilter.h:154 [inline] nf_hook_slow+0xc3/0x220 net/netfilter/core.c:626 nf_hook include/linux/netfilter.h:269 [inline] NF_HOOK+0x29e/0x450 include/linux/netfilter.h:312 NF_HOOK+0x3a4/0x450 include/linux/netfilter.h:314 __netif_receive_skb_one_core net/core/dev.c:5668 [inline] __netif_receive_skb+0x1ea/0x650 net/core/dev.c:5781 process_backlog+0x662/0x15b0 net/core/dev.c:6113 __napi_poll+0xcb/0x490 net/core/dev.c:6834 napi_poll net/core/dev.c:6903 [inline] net_rx_action+0x89b/0x1240 net/core/dev.c:7025 handle_softirqs+0x2c5/0x980 kernel/softirq.c:554 run_ksoftirqd+0xca/0x130 kernel/softirq.c:921 smpboot_thread_fn+0x544/0xa30 kernel/smpboot.c:164 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244