[Devel] [PATCH] Fix ipc entries removal

Pavel Emelianov xemul at openvz.org
Mon Oct 30 04:07:21 PST 2006


This patch fixes two issuses related to ipc_ids->entries freeing.

1. When freeing ipc namespace we need to free entries allocated
   with ipc_init_ids().

2. When removing old entries in grow_ary() ipc_rcu_putref()
   may be called on entries set to &ids->nullentry earlier in
   ipc_init_ids().
   This is almost impossible without namespaces, but with
   them this situation becomes possible.

Found during OpenVZ testing after obvious leaks in beancounters.

Signed-off-by: Pavel Emelianov <xemul at openvz.org>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diff-ipc-entries-fix
URL: <http://lists.openvz.org/pipermail/devel/attachments/20061030/68253d3c/attachment-0001.ksh>


More information about the Devel mailing list