[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160907045514.GA14391@gondor.apana.org.au>
Date: Wed, 7 Sep 2016 12:55:14 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Andrei Vagin <avagin@...nvz.org>
Cc: netdev@...r.kernel.org, "David S. Miller" <davem@...emloft.net>
Subject: Re: [PATCH net-next v2] netlink: don't forget to release a
rhashtable_iter structure
On Tue, Sep 06, 2016 at 09:31:17PM -0700, Andrei Vagin wrote:
> This bug was detected by kmemleak:
> unreferenced object 0xffff8804269cc3c0 (size 64):
> comm "criu", pid 1042, jiffies 4294907360 (age 13.713s)
> hex dump (first 32 bytes):
> a0 32 cc 2c 04 88 ff ff 00 00 00 00 00 00 00 00 .2.,............
> 00 01 00 00 00 00 ad de 00 02 00 00 00 00 ad de ................
> backtrace:
> [<ffffffff8184dffa>] kmemleak_alloc+0x4a/0xa0
> [<ffffffff8124720f>] kmem_cache_alloc_trace+0x10f/0x280
> [<ffffffffa02864cc>] __netlink_diag_dump+0x26c/0x290 [netlink_diag]
>
> v2: don't remove a reference on a rhashtable_iter structure to
> release it from netlink_diag_dump_done
>
> Cc: Herbert Xu <herbert@...dor.apana.org.au>
> Fixes: ad202074320c ("netlink: Use rhashtable walk interface in diag dump")
> Signed-off-by: Andrei Vagin <avagin@...nvz.org>
Acked-by: Herbert Xu <herbert@...dor.apana.org.au>
Thanks for catching this!
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists