syzbot


INFO: task hung in add_one_compat_dev (2)

Status: auto-obsoleted due to no activity on 2023/09/27 22:12
Subsystems: rdma
[Documentation on labels]
First crash: 647d, last: 492d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in add_one_compat_dev rdma 1 1111d 1111d 0/28 auto-closed as invalid on 2022/01/16 14:52
linux-5.15 INFO: task hung in add_one_compat_dev 1 527d 527d 0/3 auto-obsoleted due to no activity on 2023/09/02 14:33
upstream INFO: task hung in add_one_compat_dev (3) rdma 41 5d03h 12d 0/28 upstream: reported on 2024/10/22 07:39

Sample crash report:
INFO: task syz-executor.5:25343 blocked for more than 143 seconds.
      Not tainted 6.2.0-rc7-syzkaller-00135-g38c1e0c65865 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.5  state:D stack:27256 pid:25343 ppid:5107   flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5293 [inline]
 __schedule+0xb8a/0x5450 kernel/sched/core.c:6606
 schedule+0xde/0x1b0 kernel/sched/core.c:6682
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6741
 __mutex_lock_common kernel/locking/mutex.c:679 [inline]
 __mutex_lock+0xa48/0x1360 kernel/locking/mutex.c:747
 add_one_compat_dev drivers/infiniband/core/device.c:943 [inline]
 add_one_compat_dev+0xea/0x830 drivers/infiniband/core/device.c:920
 rdma_dev_init_net+0x2b9/0x4b0 drivers/infiniband/core/device.c:1185
 ops_init+0xb9/0x670 net/core/net_namespace.c:135
 setup_net+0x793/0xe60 net/core/net_namespace.c:333
 copy_net_ns+0x31b/0x6b0 net/core/net_namespace.c:483
 create_new_namespaces+0x3f6/0xb20 kernel/nsproxy.c:110
 unshare_nsproxy_namespaces+0xc5/0x1f0 kernel/nsproxy.c:228
 ksys_unshare+0x449/0x920 kernel/fork.c:3202
 __do_sys_unshare kernel/fork.c:3273 [inline]
 __se_sys_unshare kernel/fork.c:3271 [inline]
 __x64_sys_unshare+0x31/0x40 kernel/fork.c:3271
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f7d01e8c0f9
RSP: 002b:00007f7d02c4f168 EFLAGS: 00000246 ORIG_RAX: 0000000000000110
RAX: ffffffffffffffda RBX: 00007f7d01fac120 RCX: 00007f7d01e8c0f9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000040000000
RBP: 00007f7d01ee7ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fffeff8735f R14: 00007f7d02c4f300 R15: 0000000000022000
 </TASK>

Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/12:
 #0: ffffffff8c78f7b0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xc70 kernel/rcu/tasks.h:507
1 lock held by rcu_tasks_trace/13:

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/10 13:21 upstream 38c1e0c65865 07980f9d .config console log report info ci-upstream-kasan-gce-root INFO: task hung in add_one_compat_dev
2023/02/03 21:25 upstream 7b753a909f42 1b2f701a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in add_one_compat_dev
2023/01/25 17:14 upstream 948ef7bb70c4 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in add_one_compat_dev
2023/06/25 13:20 net f1bc9fc4a06d 09ffe269 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in add_one_compat_dev
2023/06/29 22:08 net-next ae230642190a 7b33cf8f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: task hung in add_one_compat_dev
2023/05/18 03:05 net-next af2eab1a8243 3bb7af1d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: task hung in add_one_compat_dev
2023/04/13 10:26 net-next f2b3b6a22df7 82d5e53e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: task hung in add_one_compat_dev
* Struck through repros no longer work on HEAD.