[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <54140A87.603@redhat.com>
Date: Sat, 13 Sep 2014 11:12:39 +0200
From: Daniel Borkmann <dborkman@...hat.com>
To: Sasha Levin <sasha.levin@...cle.com>
CC: davem@...emloft.net, ast@...mgrid.com, keescook@...omium.org,
hannes@...essinduktion.org, spender@...ecurity.net,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] net: bpf: correctly handle errors in sk_attach_filter()
On 09/13/2014 06:06 AM, Sasha Levin wrote:
> Commit "net: bpf: make eBPF interpreter images read-only" has changed bpf_prog
> to be vmalloc()ed but never handled some of the errors paths of the old code.
>
> On error within sk_attach_filter (which userspace can easily trigger), we'd
> kfree() the vmalloc()ed memory, and leak the internal bpf_work_struct.
>
> Signed-off-by: Sasha Levin <sasha.levin@...cle.com>
[ This patch is for net-next. ]
Acked-by: Daniel Borkmann <dborkman@...hat.com>
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists