[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20141113.152025.1790925339761299005.davem@davemloft.net>
Date: Thu, 13 Nov 2014 15:20:25 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: mleitner@...hat.com
Cc: netdev@...r.kernel.org, stephen@...workplumber.org,
sergei.shtylyov@...entembedded.com
Subject: Re: [PATCH net v3] vxlan: Do not reuse sockets for a different
address family
From: Marcelo Ricardo Leitner <mleitner@...hat.com>
Date: Thu, 13 Nov 2014 14:43:08 -0200
> Currently, we only match against local port number in order to reuse
> socket. But if this new vxlan wants an IPv6 socket and a IPv4 one bound
> to that port, vxlan will reuse an IPv4 socket as IPv6 and a panic will
> follow. The following steps reproduce it:
>
> # ip link add vxlan6 type vxlan id 42 group 229.10.10.10 \
> srcport 5000 6000 dev eth0
> # ip link add vxlan7 type vxlan id 43 group ff0e::110 \
> srcport 5000 6000 dev eth0
> # ip link set vxlan6 up
> # ip link set vxlan7 up
> <panic>
...
> So address family must also match in order to reuse a socket.
>
> Reported-by: Jean-Tsung Hsiao <jhsiao@...hat.com>
> Signed-off-by: Marcelo Ricardo Leitner <mleitner@...hat.com>
Hey, this one actually compiles :-)
Applied and queued up for -stable, thanks!
--
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