| commit | 09c6cf7f980f1e8dbf58dc9ae0ebf4f6eb93cc0d | [log] [tgz] |
|---|---|---|
| author | Eric Dumazet <edumazet@google.com> | Mon Sep 24 07:00:11 2012 +0000 |
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sat Oct 13 05:38:44 2012 +0900 |
| tree | f50557960f49a3f54e4e1df40a0364ce637d08df | |
| parent | 6b8fc5c4eba92b5cd3c9ca0d926e99831604f81e [diff] |
net: guard tcp_set_keepalive() to tcp sockets [ Upstream commit 3e10986d1d698140747fcfc2761ec9cb64c1d582 ] Its possible to use RAW sockets to get a crash in tcp_set_keepalive() / sk_reset_timer() Fix is to make sure socket is a SOCK_STREAM one. Reported-by: Dave Jones <davej@redhat.com> Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>