Subject: Re: [PATCH bpf-next] bpf: fix sock_map_alloc() error path

From: Eric Dumazet <[email-masked]>
Date: Tue, 13 Feb 2018 15:43:12 -0800

On Tue, 2018-02-13 at 15:33 -0800, Eric Dumazet wrote:
> From: Eric Dumazet <[email-masked]>
> 
> In case user program provides silly parameters, we want
> a map_alloc() handler to return an error, not a NULL pointer,
> otherwise we crash later in find_and_alloc_map()
> 
> Fixes: 174a79ff9515 ("bpf: sockmap with sk redirect support")
> Signed-off-by: Eric Dumazet <[email-masked]>
> Reported-by: syzbot <[email-masked]>
> ---

This would apply to net or bpf trees, not -next ones, sorry for the
confusion in the [PATCH bpf-next] prefix.

Bug was added in 4.14