[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAM_iQpWRHAuzFMcQ2=BKuxL8YNt-r0QP8MU0YsTku-i9Km1NUA@mail.gmail.com>
Date: Thu, 12 May 2016 13:02:11 -0700
From: Cong Wang <xiyou.wangcong@...il.com>
To: Alexander Duyck <aduyck@...antis.com>
Cc: Linux Kernel Network Developers <netdev@...r.kernel.org>,
David Miller <davem@...emloft.net>,
Alexander Duyck <alexander.duyck@...il.com>,
Thomas Graf <tgraf@...g.ch>, Tom Herbert <tom@...bertland.com>,
Jiri Benc <jbenc@...hat.com>,
Eric Dumazet <eric.dumazet@...il.com>
Subject: Re: [net-next PATCH v2] udp: Resolve NULL pointer dereference over
flow-based vxlan device
On Thu, May 12, 2016 at 12:51 PM, Alexander Duyck <aduyck@...antis.com> wrote:
> The following trace is seen when receiving a DHCP request over a flow-based
> VXLAN tunnel. I believe this is caused by the metadata dst having a NULL
> dev value and as a result dev_net(dev) is causing a NULL pointer dereference.
>
> To resolve this I am replacing the check for skb_dst() with skb_valid_dst()
> so that we do not attempt to use the metadata dst to retrieve a device in
> order to determine the network namespace.
Why does UDP layer need to care about tunnel layer things?
If the problem is really what you describe, then the tunnel layer
should reset that dst after finish.
Powered by blists - more mailing lists