Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1595674
| From | Eric Dumazet <eric.dumazet@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH net] dccp/tcp: fix routing redirect race |
| Date | 2017-03-09 05:50 +0100 |
| Message-ID | <tiYbv-8nc-3@gated-at.bofh.it> (permalink) |
| References | <tiUUi-6eM-9@gated-at.bofh.it> <tiW9I-6YT-13@gated-at.bofh.it> <tiXfr-7KJ-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, 2017-03-09 at 14:42 +1100, Jonathan Maxwell wrote: > Sorry let me resend in plain text mode. > > On Thu, Mar 9, 2017 at 1:10 PM, Eric Dumazet <eric.dumazet@gmail.com> wrote: > > On Thu, 2017-03-09 at 12:15 +1100, Jon Maxwell wrote: > >> We have seen a few incidents lately where a dst_enty has been freed > >> with a dangling TCP socket reference (sk->sk_dst_cache) pointing to that > >> dst_entry. If the conditions/timings are right a crash then ensues when the > >> freed dst_entry is referenced later on. A Common crashing back trace is: > > > > Very nice catch ! > > > > Thanks Eric. > > > Don't we have a similar issue for IPv6 ? > > > > > > Good point. > > We checked and as far as we can tell IPv6 does not invalidate the route. > So it should be safer. Simply doing : __sk_dst_check(sk, np->dst_cookie); is racy, even before calling dst->ops->redirect(dst, sk, skb); (if socket is owned by user)
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH net] dccp/tcp: fix routing redirect race Jon Maxwell <jmaxwell37@gmail.com> - 2017-03-09 02:20 +0100
Re: [PATCH net] dccp/tcp: fix routing redirect race Eric Dumazet <eric.dumazet@gmail.com> - 2017-03-09 03:40 +0100
Re: [PATCH net] dccp/tcp: fix routing redirect race Jonathan Maxwell <jmaxwell37@gmail.com> - 2017-03-09 04:50 +0100
Re: [PATCH net] dccp/tcp: fix routing redirect race Eric Dumazet <eric.dumazet@gmail.com> - 2017-03-09 05:50 +0100
Re: [PATCH net] dccp/tcp: fix routing redirect race Jonathan Maxwell <jmaxwell37@gmail.com> - 2017-03-09 06:00 +0100
Re: [PATCH net] dccp/tcp: fix routing redirect race David Miller <davem@davemloft.net> - 2017-03-10 03:30 +0100
csiph-web