diff options
author | Eric Dumazet <edumazet@google.com> | 2016-11-03 08:59:46 -0700 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2016-11-28 22:22:38 +0100 |
commit | ebf65c3c786790af3752d175362e0f05de319de4 (patch) | |
tree | 98243a6632fd58273907cb1f85928ef843fc5342 | |
parent | bfe7d1dee859cad6802f8e21a0a863f408114612 (diff) | |
download | lwn-ebf65c3c786790af3752d175362e0f05de319de4.tar.gz lwn-ebf65c3c786790af3752d175362e0f05de319de4.zip |
ipv6: dccp: add missing bind_conflict to dccp_ipv6_mapped
[ Upstream commit 990ff4d84408fc55942ca6644f67e361737b3d8e ]
While fuzzing kernel with syzkaller, Andrey reported a nasty crash
in inet6_bind() caused by DCCP lacking a required method.
Fixes: ab1e0a13d7029 ("[SOCK] proto: Add hashinfo member to struct proto")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Andrey Konovalov <andreyknvl@google.com>
Tested-by: Andrey Konovalov <andreyknvl@google.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
-rw-r--r-- | net/dccp/ipv6.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/dccp/ipv6.c b/net/dccp/ipv6.c index e9ce581b9502..736fdedf9c85 100644 --- a/net/dccp/ipv6.c +++ b/net/dccp/ipv6.c @@ -1023,6 +1023,7 @@ static const struct inet_connection_sock_af_ops dccp_ipv6_mapped = { .getsockopt = ipv6_getsockopt, .addr2sockaddr = inet6_csk_addr2sockaddr, .sockaddr_len = sizeof(struct sockaddr_in6), + .bind_conflict = inet6_csk_bind_conflict, #ifdef CONFIG_COMPAT .compat_setsockopt = compat_ipv6_setsockopt, .compat_getsockopt = compat_ipv6_getsockopt, |