[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20170919.154334.1938133697292090820.davem@davemloft.net>
Date: Tue, 19 Sep 2017 15:43:34 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: kafai@...com, ast@...nel.org, netdev@...r.kernel.org
Subject: Re: [PATCH net] bpf: do not disable/enable BH in bpf_map_free_id()
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Tue, 19 Sep 2017 09:15:59 -0700
> From: Eric Dumazet <edumazet@...gle.com>
>
> syzkaller reported following splat [1]
>
> Since hard irq are disabled by the caller, bpf_map_free_id()
> should not try to enable/disable BH.
>
> Another solution would be to change htab_map_delete_elem() to
> defer the free_htab_elem() call after
> raw_spin_unlock_irqrestore(&b->lock, flags), but this might be not
> enough to cover other code paths.
>
> [1]
...
> Fixes: f3f1c054c288 ("bpf: Introduce bpf_map ID")
> Signed-off-by: Eric Dumazet <edumazet@...gle.com>
> Cc: Martin KaFai Lau <kafai@...com>
Applied and queued up for -stable, thanks Eric.
Powered by blists - more mailing lists