Description of problem: SSIA Double allocation of member list if getting the membership of a group from outside (eg clustat). Fix: --- cluster/magma-plugins/sm/services.c 2005/12/09 17:00:49 +++ cluster/magma-plugins/sm/services.c 2006/05/15 16:50:00 @@ -235,8 +235,6 @@ } while (ioctl(sockfd, SIOCCLUSTER_GETMEMBERS, &cman_nl) != cman_nl.max_members); - /* Another biggie */ - foo = malloc(cml_size(cman_nl.max_members)); assert(foo != NULL); strncpy(foo->cml_groupname, groupname, sizeof(foo->cml_groupname));
Over a long time of running clustat, this will cause OOM conditions