Thread (6 messages) 6 messages, 2 authors, 2014-02-13

Re: [PATCH ipsec-next v3] xfrm: avoid creating temporary SA when there are no listeners

From: Steffen Klassert <steffen.klassert@secunet.com>
Date: 2014-02-13 12:08:31

On Wed, Feb 12, 2014 at 04:20:06PM +0200, Horia Geanta wrote:
In the case when KMs have no listeners, km_query() will fail and
temporary SAs are garbage collected immediately after their allocation.
This causes strain on memory allocation, leading even to OOM since
temporary SA alloc/free cycle is performed for every packet
and garbage collection does not keep up the pace.

The sane thing to do is to make sure we have audience before
temporary SA allocation.

Signed-off-by: Horia Geanta <redacted>
Applied to ipsec-next, thanks!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help