[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <bda9ab7e-e92e-488b-5d9e-aef839e79941@gmail.com>
Date: Thu, 27 Sep 2018 05:36:27 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: Song Liu <songliubraving@...com>, netdev@...r.kernel.org
Cc: daniel@...earbox.net, kernel-team@...com,
Willem de Bruijn <willemb@...gle.com>,
Petar Penkov <ppenkov@...gle.com>
Subject: Re: [PATCH bpf-next] bpf: test_bpf: add dummy dev->net for
flow_dissector
On 09/27/2018 12:15 AM, Song Liu wrote:
> Latest changes in __skb_flow_dissect() assume skb->dev has valid nd_net.
> However, this is not true for test_bpf. As a result, test_bpf.ko crashes
> the system with the following stack trace:
>
>
> This patch fixes tes_bpf by adding a dummy struct net to the dummy dev.
>
> Fixes: d0e13a1488ad ("flow_dissector: lookup netns by skb->sk if skb->dev is NULL")
> Fixes: d58e468b1112 ("flow_dissector: implements flow dissector BPF hook")
> Cc: Willem de Bruijn <willemb@...gle.com>
> Cc: Petar Penkov <ppenkov@...gle.com>
> Signed-off-by: Song Liu <songliubraving@...com>
Reported-by: Eric Dumazet <edumazet@...gle.com>
Thanks.
Powered by blists - more mailing lists