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 <Sunday.Clement@amd.com>
Этот коммит содержится в:
Sunday Clement
2025-12-03 11:20:30 -05:00
коммит произвёл GitHub
родитель 2bfa9a4d4c
Коммит 3f3260ffd2
+1 -1
Просмотреть файл
@@ -894,7 +894,7 @@ class Runtime {
// IPC DMA buf unix domain socket server dmabuf FD passing
int ipc_sock_server_fd_;
std::map<uint64_t, int> ipc_sock_server_conns_;
std::map<uint64_t, size_t> ipc_sock_server_conns_;
KernelMutex ipc_sock_server_lock_;
private: