[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20150720.125953.222408356580015102.davem@davemloft.net>
Date: Mon, 20 Jul 2015 12:59:53 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: phil@....cc
Cc: netdev@...r.kernel.org, fw@...len.de
Subject: Re: [PATCH net-next] net/ipv6: update flowi6_oif in
ip6_dst_lookup_flow if not set
From: Phil Sutter <phil@....cc>
Date: Wed, 15 Jul 2015 21:56:26 +0200
> Newly created flows don't have flowi6_oif set (at least if the
> associated socket is not interface-bound). This leads to a mismatch in
> __xfrm6_selector_match() for policies which specify an interface in the
> selector (sel->ifindex != 0).
>
> Backtracing shows this happens in code-paths originating from e.g.
> ip6_datagram_connect(), rawv6_sendmsg() or tcp_v6_connect(). (UDP was
> not tested for.)
>
> In summary, this patch fixes policy matching on outgoing interface for
> locally generated packets.
>
> Signed-off-by: Phil Sutter <phil@....cc>
Applied, 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