coroipcc will segfault under certain loads when using the zero copy api of cpg without this patch because the memory mapped and unmapped are different sizes. Test case coming next.
Index: lib/coroipcc.c =================================================================== --- lib/coroipcc.c (revision 2355) +++ lib/coroipcc.c (working copy) @@ -964,7 +964,7 @@ return (res); } map_size = size + header_size + sizeof (struct coroipcs_zc_header); - res = memory_map (path, "corosync_zerocopy-XXXXXX", &buf, size); + res = memory_map (path, "corosync_zerocopy-XXXXXX", &buf, map_size); assert (res != -1); req_coroipcc_zc_alloc.header.size = sizeof (mar_req_coroipcc_zc_alloc_t);
_______________________________________________ Openais mailing list [email protected] https://lists.linux-foundation.org/mailman/listinfo/openais
