From 3f3260ffd2ee14f9e1ef83b37c81cf44b2e9b83d Mon Sep 17 00:00:00 2001 From: Sunday Clement <83687182+Sundance636@users.noreply.github.com> Date: Wed, 3 Dec 2025 11:20:30 -0500 Subject: [PATCH] rocr: Fix IPC dmabuf hang with large allocations (#1945) Changed ipc_sock_server_conns_ map's value type to size_t. Previous type of int caused allocations of sizes greater than 2GB to overflow, causing the message len to be stored as a negative value, preventing the IPC server from exporting dmabuf file descriptors, which lead to hangs. Signed-off-by: Sunday Clement --- projects/rocr-runtime/runtime/hsa-runtime/core/inc/runtime.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/rocr-runtime/runtime/hsa-runtime/core/inc/runtime.h b/projects/rocr-runtime/runtime/hsa-runtime/core/inc/runtime.h index 0327d6520a..bfffcb6c84 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/core/inc/runtime.h +++ b/projects/rocr-runtime/runtime/hsa-runtime/core/inc/runtime.h @@ -894,7 +894,7 @@ class Runtime { // IPC DMA buf unix domain socket server dmabuf FD passing int ipc_sock_server_fd_; - std::map ipc_sock_server_conns_; + std::map ipc_sock_server_conns_; KernelMutex ipc_sock_server_lock_; private: