[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHA+R7Mpry29vbYLu9wmoE=REW1GkyPfEsbj5QxiWVdGrYtG5A@mail.gmail.com>
Date: Tue, 18 Mar 2014 09:41:45 -0700
From: Cong Wang <cwang@...pensource.com>
To: Mike Rapoport <mike.rapoport@...ellosystems.com>
Cc: netdev <netdev@...r.kernel.org>
Subject: Re: [PATCH net] net: vxlan: fix crash when interface is created with
no group
On Mon, Mar 17, 2014 at 4:17 AM, Mike Rapoport
<mike.rapoport@...ellosystems.com> wrote:
...
> The crash occurs because vxlan_rcv decides on protocol version of outer
> packed using vxlan->default_dst.remote_ip.sa.sa_family field which is
> not initialized if no multicast group was specified at interface
> creation time. This causes vxlan driver to always assume that outer
> packet is IPv6.
>
> Using IP protocol version from skb instead of default destination
> address family fixes the problem.
>
> Signed-off-by: Mike Rapoport <mike.rapoport@...ellosystems.com>
Acked-by: Cong Wang <cwang@...pensource.com>
Thanks for the fix!
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists