summaryrefslogtreecommitdiff
path: root/arch/c6x
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2015-11-30 03:37:57 (GMT)
committerDavid S. Miller <davem@davemloft.net>2015-12-03 04:37:16 (GMT)
commit45f6fad84cc305103b28d73482b344d7f5b76f39 (patch)
tree283dbc3a6cd4a26288a3526d0de48cf8c2e27b75 /arch/c6x
parent01b3f52157ff5a47d6d8d796f396a4b34a53c61d (diff)
downloadlinux-45f6fad84cc305103b28d73482b344d7f5b76f39.tar.xz
ipv6: add complete rcu protection around np->opt
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> Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/c6x')
0 files changed, 0 insertions, 0 deletions