Re: [PATCH net] tun: Add missing bpf_net_ctx_clear() in do_xdp_generic()

From: Willem de Bruijn
Date: Thu Jul 25 2024 - 23:04:42 EST


On Thu, Jul 25, 2024 at 10:21 PM Jason Wang <jasowang@xxxxxxxxxx> wrote:
>
> On Fri, Jul 26, 2024 at 5:41 AM Jeongjun Park <aha310510@xxxxxxxxx> wrote:
> >
> > There are cases where do_xdp_generic returns bpf_net_context without
> > clearing it. This causes various memory corruptions, so the missing
> > bpf_net_ctx_clear must be added.
> >
> > Reported-by: syzbot+44623300f057a28baf1e@xxxxxxxxxxxxxxxxxxxxxxxxx
> > Fixes: fecef4cd42c6 ("tun: Assign missing bpf_net_context.")
> > Signed-off-by: Jeongjun Park <aha310510@xxxxxxxxx>
>
> Acked-by: Jason Wang <jasowang@xxxxxxxxxx>

Reviewed-by: Willem de Bruijn <willemb@xxxxxxxxxx>