[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20160919110749.GH31137@gauss.secunet.com>
Date: Mon, 19 Sep 2016 13:07:49 +0200
From: Steffen Klassert <steffen.klassert@...unet.com>
To: Ilan Tayari <ilant@...lanox.com>
CC: Herbert Xu <herbert@...dor.apana.org.au>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: Re: [PATCH net] xfrm: Fix memory leak of aead algorithm name
On Sun, Sep 18, 2016 at 07:42:53AM +0000, Ilan Tayari wrote:
> commit 1a6509d99122 ("[IPSEC]: Add support for combined mode algorithms")
> introduced aead. The function attach_aead kmemdup()s the algorithm
> name during xfrm_state_construct().
> However this memory is never freed.
> Implementation has since been slightly modified in
> commit ee5c23176fcc ("xfrm: Clone states properly on migration")
> without resolving this leak.
> This patch adds a kfree() call for the aead algorithm name.
>
> Fixes: 1a6509d99122 ("[IPSEC]: Add support for combined mode algorithms")
> Signed-off-by: Ilan Tayari <ilant@...lanox.com>
Applied to the ipsec tree, thanks Ilan!
Powered by blists - more mailing lists