From: Andrey Vagin <ava...@openvz.org> Date: Thu, 7 Nov 2013 08:35:12 +0400
> sk_filter isn't freed if bpf_func is equal to sk_run_filter. > > This memory leak was introduced by v3.12-rc3-224-gd45ed4a4 > "net: fix unsafe set_memory_rw from softirq". > > Before this patch sk_filter was freed in sk_filter_release_rcu, > now it should be freed in bpf_jit_free. > > Here is output of kmemleak: ... > v2: add extra { } after else > > Fixes: d45ed4a4e33a ("net: fix unsafe set_memory_rw from softirq") > Acked-by: Daniel Borkmann <dbork...@redhat.com> > Cc: Alexei Starovoitov <a...@plumgrid.com> > Cc: Eric Dumazet <eduma...@google.com> > Cc: "David S. Miller" <da...@davemloft.net> > Signed-off-by: Andrey Vagin <ava...@openvz.org> Applied and queued up for -stable, thanks! -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/