From: Steffen Klassert Subject: Re: [net] xfrm_user: use xfrm_state_put to free xfrm_state_alloc return value Date: Tue, 27 Nov 2018 08:55:48 +0100 Message-ID: <20181127075548.GK3581@gauss3.secunet.de> References: <1542783468-67482-1-git-send-email-bianpan2016@163.com> <20181121080045.4vtozqc6eyeyis2n@gondor.apana.org.au> <20181121200923.GA12460@jig.fritz.box> <20181122144321.5gmyynui254qfeoq@gondor.apana.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: Mathias Krause , Pan Bian , "David S. Miller" , , , Pan Bian To: Herbert Xu Return-path: Content-Disposition: inline In-Reply-To: <20181122144321.5gmyynui254qfeoq@gondor.apana.org.au> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Thu, Nov 22, 2018 at 10:43:21PM +0800, Herbert Xu wrote: > On Wed, Nov 21, 2018 at 09:09:23PM +0100, Mathias Krause wrote: > > > > -- >8 -- > > > > Subject: [PATCH] xfrm_user: fix freeing of xfrm states on acquire > > > > Commit 565f0fa902b6 ("xfrm: use a dedicated slab cache for struct > > xfrm_state") moved xfrm state objects to use their own slab cache. > > However, it missed to adapt xfrm_user to use this new cache when > > freeing xfrm states. > > > > Fix this by introducing and make use of a new helper for freeing > > xfrm_state objects. > > > > Fixes: 565f0fa902b6 ("xfrm: use a dedicated slab cache for struct xfrm_state") > > Reported-by: Pan Bian > > Cc: # v4.18+ > > Signed-off-by: Mathias Krause > > Acked-by: Herbert Xu Applied, thanks everyone!