Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1282697
| From | David Miller <davem@davemloft.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH net] ipv6: add complete rcu protection around np->opt |
| Date | 2015-12-03 05:40 +0100 |
| Message-ID | <qBtQu-6V-7@gated-at.bofh.it> (permalink) |
| References | <qzRkd-3eL-1@gated-at.bofh.it> <qzRtU-3ig-21@gated-at.bofh.it> <qAntM-6zI-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Eric Dumazet <eric.dumazet@gmail.com> Date: Sun, 29 Nov 2015 19:37:57 -0800 > From: Eric Dumazet <edumazet@google.com> > > This patch addresses multiple problems : > > UDP/RAW sendmsg() need to get a stable struct ipv6_txoptions > while socket is not locked : Other threads can change np->opt > concurrently. Dmitry posted a syzkaller > (http://github.com/google/syzkaller) program desmonstrating > use-after-free. > > Starting with TCP/DCCP lockless listeners, tcp_v6_syn_recv_sock() > and dccp_v6_request_recv_sock() also need to use RCU protection > to dereference np->opt once (before calling ipv6_dup_options()) > > This patch adds full RCU protection to np->opt > > Reported-by: Dmitry Vyukov <dvyukov@google.com> > Signed-off-by: Eric Dumazet <edumazet@google.com> Applied and queued up for -stable. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
Re: [PATCH net] ipv6: add complete rcu protection around np->opt David Miller <davem@davemloft.net> - 2015-12-03 05:40 +0100 Re: [PATCH net] ipv6: add complete rcu protection around np->opt Eric Dumazet <eric.dumazet@gmail.com> - 2015-12-03 06:40 +0100
csiph-web