INFO: task hung in add_one_compat_dev

Status: upstream: reported on 2026/10/16 12:46
Reported-by: syzbot+830084c9da3f6595372f@syzkaller.appspotmail.com
First crash: 1d15h, last: 1d15h
▶ ▼ Similar bugs (5)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in add_one_compat_dev rdma 1 1 1825d 1825d 0/29 auto-closed as invalid on 2022/01/16 14:52
upstream INFO: task hung in add_one_compat_dev (2) rdma 1 7 1206d 1361d 0/29 auto-obsoleted due to no activity on 2023/09/27 22:12
linux-5.15 INFO: task hung in add_one_compat_dev (2) 1 1 2d05h 2d05h 0/3 upstream: reported on 2026/10/15 22:52
linux-5.15 INFO: task hung in add_one_compat_dev 1 1 1241d 1241d 0/3 auto-obsoleted due to no activity on 2023/09/02 14:33
upstream INFO: task hung in add_one_compat_dev (3) prio:high rdma 1 C 197 15h11m 725d 0/29 upstream: reported C repro on 2024/10/22 07:39

Sample crash report:
INFO: task syz-executor:16920 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor    state:D stack:24872 pid:16920 ppid:1      flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5382 [inline]
 __schedule+0x15ae/0x4660 kernel/sched/core.c:6701
 schedule+0xbd/0x170 kernel/sched/core.c:6775
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6834
 __mutex_lock_common kernel/locking/mutex.c:679 [inline]
 __mutex_lock+0x673/0xc80 kernel/locking/mutex.c:747
 add_one_compat_dev+0xee/0x5c0 drivers/infiniband/core/device.c:953
 rdma_dev_init_net+0x1e6/0x280 drivers/infiniband/core/device.c:1195
 ops_init+0x391/0x640 net/core/net_namespace.c:139
 setup_net+0x3b6/0xa20 net/core/net_namespace.c:343
 copy_net_ns+0x361/0x530 net/core/net_namespace.c:524
 create_new_namespaces+0x3ce/0x700 kernel/nsproxy.c:110
 unshare_nsproxy_namespaces+0x11a/0x160 kernel/nsproxy.c:228
 ksys_unshare+0x4fa/0x8f0 kernel/fork.c:3444
 __do_sys_unshare kernel/fork.c:3518 [inline]
 __se_sys_unshare kernel/fork.c:3516 [inline]
 __x64_sys_unshare+0x38/0x40 kernel/fork.c:3516
 do_syscall_x64 arch/x86/entry/common.c:46 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f94ab99f827
RSP: 002b:00007ffd112209d8 EFLAGS: 00000202 ORIG_RAX: 0000000000000110
RAX: ffffffffffffffda RBX: 00007f94abc25f40 RCX: 00007f94ab99f827
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000040000000
RBP: 00007f94abc267b8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000008
R13: 0000000000000003 R14: 00007ffd11220c18 R15: 0000000000000000
 </TASK>

Showing all locks held in the system:
1 lock held by pool_workqueue_/3:
 #0: ffffffff8df37ab8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:324 [inline]
 #0: ffffffff8df37ab8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x3da/0x880 kernel/rcu/tree_exp.h:1004
1 lock held by khungtaskd/29:
 #0: ffffffff8df320e0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:334 [inline]
 #0: ffffffff8df320e0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:786 [inline]
 #0: ffffffff8df320e0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x290 kernel/locking/lockdep.c:6669
2 locks held by kworker/u4:2/36:
 #0: ffff8880b8c3c258 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x29/0x130 kernel/sched/core.c:559
 #1: ffffc90000acfd00 ((work_completion)(&(&kfence_timer)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2632 [inline]
 #1: ffffc90000acfd00 ((work_completion)(&(&kfence_timer)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x975/0x1600 kernel/workqueue.c:2734
3 locks held by kworker/0:2/173:
3 locks held by kworker/u4:8/1098:
2 locks held by kworker/0:3/1211:
 #0: ffff888018872d38 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2632 [inline]
 #0: ffff888018872d38 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_scheduled_works+0x975/0x1600 kernel/workqueue.c:2734
 #1: ffffc90004acfd00 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2632 [inline]
 #1: ffffc90004acfd00 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_scheduled_works+0x975/0x1600 kernel/workqueue.c:2734
2 locks held by getty/5530:
 #0: ffff88802ea450a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
 #1: ffffc9000327e2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x428/0x1370 drivers/tty/n_tty.c:2217
1 lock held by sshd-session/5760:
3 locks held by kworker/0:8/13630:
5 locks held by kworker/u4:3/16802:
 #0: ffff88801ae5d138 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2632 [inline]
 #0: ffff88801ae5d138 ((wq_completion)netns){+.+.}-{0:0}, at: process_scheduled_works+0x975/0x1600 kernel/workqueue.c:2734
 #1: ffffc900034a7d00 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2632 [inline]
 #1: ffffc900034a7d00 (net_cleanup_work){+.+.}-{0:0}, at: process_scheduled_works+0x975/0x1600 kernel/workqueue.c:2734
 #2: ffffffff8f1c5810 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0x140/0xb00 net/core/net_namespace.c:610
 #3: ffff888028f0a250 (&devlink->lock_key#10){+.+.}-{3:3}, at: devl_lock net/devlink/core.c:60 [inline]
 #3: ffff888028f0a250 (&devlink->lock_key#10){+.+.}-{3:3}, at: devlink_pernet_pre_exit+0xee/0x360 net/devlink/core.c:285
 #4: ffffffff8f1d2888 (rtnl_mutex){+.+.}-{3:3}, at: nsim_destroy+0x3f/0x180 drivers/net/netdevsim/netdev.c:417
3 locks held by kworker/u4:7/16849:
2 locks held by syz-executor/16878:
 #0: ffff88802f908e70 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close net/bluetooth/hci_core.c:521 [inline]
 #0: ffff88802f908e70 (&hdev->req_lock){+.+.}-{3:3}, at: hci_unregister_dev+0x212/0x500 net/bluetooth/hci_core.c:2709
 #1: ffff88802f9080b8 (&hdev->lock){+.+.}-{3:3}, at: hci_dev_close_sync+0x552/0x1170 net/bluetooth/hci_sync.c:5396
2 locks held by syz-executor/16887:
 #0: ffffffff8f1c5810 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x347/0x530 net/core/net_namespace.c:520
 #1: ffffffff8ef7d190 (rdma_nets_rwsem){++++}-{3:3}, at: rdma_dev_exit_net+0x90/0x340 drivers/infiniband/core/device.c:1133
2 locks held by syz-executor/16916:
 #0: ffffffff8f1c5810 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x347/0x530 net/core/net_namespace.c:520
 #1: ffffffff8f1d2888 (rtnl_mutex){+.+.}-{3:3}, at: ip_tunnel_init_net+0x2d2/0x7c0 net/ipv4/ip_tunnel.c:1103
6 locks held by syz-executor/16920:
 #0: ffffffff8f1c5810 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x347/0x530 net/core/net_namespace.c:520
 #1: ffffffff8ef7cfd0 (devices_rwsem){++++}-{3:3}, at: rdma_dev_init_net+0x1a3/0x280 drivers/infiniband/core/device.c:1189
 #2: ffffffff8ef7d190 (rdma_nets_rwsem){++++}-{3:3}, at: rdma_dev_init_net+0x1db/0x280 drivers/infiniband/core/device.c:1194
 #3: ffff888024b3cf80 (&device->compat_devs_mutex){+.+.}-{3:3}, at: add_one_compat_dev+0xee/0x5c0 drivers/infiniband/core/device.c:953
 #4: ffff888024b3d1b0 (&rxe->usdev_lock){+.+.}-{3:3}, at: rxe_query_port+0x78/0x2d0 drivers/infiniband/sw/rxe/rxe_verbs.c:61
 #5: ffffffff8f1d2888 (rtnl_mutex){+.+.}-{3:3}, at: ib_get_eth_speed+0x170/0x8d0 drivers/infiniband/core/verbs.c:1990
2 locks held by syz-executor/16924:
 #0: ffffffff8f1c5810 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x347/0x530 net/core/net_namespace.c:520
 #1: ffffffff8f1d2888 (rtnl_mutex){+.+.}-{3:3}, at: wg_netns_pre_exit+0x1c/0x1c0 drivers/net/wireguard/device.c:421

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/10/16 12:45 linux-6.6.y cecd39af8a1a 4c840a2f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: task hung in add_one_compat_dev
* Struck through repros no longer work on HEAD.