net: diag: support SOCK_DESTROY for UDP sockets
authorDavid Ahern <dsa@cumulusnetworks.com>
Wed, 24 Aug 2016 04:06:33 +0000 (21:06 -0700)
committerLorenzo Colitti <lorenzo@google.com>
Sun, 18 Sep 2016 17:19:26 +0000 (02:19 +0900)
commit2f500d61a4df5764d94abfab7cbc43e4e9b92881
treed9b424f491c53baf58ea0ae2706c6e3a9df463a4
parentecd02bbc43641454b940fcf9c16b39ab8179af67
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