Thread (3 messages) 3 messages, 3 authors, 2017-06-25

Re: [PATCH v3 net] net: ipv6: reset daddr and dport in sk if connect() fails

flat view

From: Wei Wang <hidden>
Date: 2017-06-25 20:47:55

On Sun, Jun 25, 2017 at 8:46 AM, David Miller [off-list ref] wrote:
From: Wei Wang <redacted>
Date: Fri, 23 Jun 2017 15:25:37 -0700
quoted
From: Wei Wang <redacted>

In __ip6_datagram_connect(), reset sk->sk_v6_daddr and inet->dport if
error occurs.
In udp_v6_early_demux(), check for sk_state to make sure it is in
TCP_ESTABLISHED state.
Together, it makes sure unconnected UDP socket won't be considered as a
valid candidate for early demux.

Fixes: 5425077d73e0 ("net: ipv6: Add early demux handler for UDP unicast")

v3: add TCP_ESTABLISHED state check in udp_v6_early_demux()
v2: fix compilation error

Signed-off-by: Wei Wang <redacted>
Acked-by: Maciej Żenczykowski <redacted>
Please don't format the tag area like this, if you want to put a change
log put it first.

Then put all of the tags (Fixes:, Signed-off-by:, Acked-by:, etc.)
together with no empty line separators, at the end.

I fixed it up this time.

Applied and queued up for -stable, thanks.
Got it. Will note it down.
Thanks for taking care of it.

Wei
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help