net: diag: support SOCK_DESTROY for UDP sockets
authorDavid Ahern <dsa@cumulusnetworks.com>
Wed, 24 Aug 2016 04:06:33 +0000 (21:06 -0700)
committerAmit Pundir <amit.pundir@linaro.org>
Wed, 12 Oct 2016 12:04:22 +0000 (17:34 +0530)
commit4727ce1c829c2be8ea2e5fedb31ee7d99d26d95d
tree00e90344b63d96b97f0a0786f5bd76a72dd9b134
parent65aad0e5bee187ebd08526ae5faa120b002cf1bb
net: diag: support SOCK_DESTROY for UDP sockets

This implements SOCK_DESTROY for UDP sockets similar to what was done
for TCP with commit c1e64e298b8ca ("net: diag: Support destroying TCP
sockets.") A process with a UDP socket targeted for destroy is awakened
and recvmsg fails with ECONNABORTED.

[cherry-pick of 5d77dca82839ef016a93ad7acd7058b14d967752]

Change-Id: I4b4862548e6e3c05dde27781e7daa0b18b93bd81
Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/udp.h
net/ipv4/udp.c
net/ipv4/udp_diag.c
net/ipv6/udp.c