commit | 9470e24f35ab81574da54e69df90c1eb4a96b43f | [log] [tgz] |
---|---|---|
author | Eric Dumazet <edumazet@google.com> | Wed Dec 09 07:25:06 2015 -0800 |
committer | David S. Miller <davem@davemloft.net> | Fri Dec 11 20:18:40 2015 -0500 |
tree | f1ddb2ca0d9eb735f1fb9dbafc238b0d8f83b543 | |
parent | d188ba86dd07a72ebebfa22fe9cb0b0572e57740 [diff] |
ipv6: sctp: clone options to avoid use after free SCTP is lacking proper np->opt cloning at accept() time. TCP and DCCP use ipv6_dup_options() helper, do the same in SCTP. We might later factorize this code in a common helper to avoid future mistakes. Reported-by: Dmitry Vyukov <dvyukov@google.com> Signed-off-by: Eric Dumazet <edumazet@google.com> Acked-by: Vlad Yasevich <vyasevich@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>