Re: [PATCH v2 net-next] net: diag: support SOCK_DESTROY for UDP sockets

2016-08-22 Thread David Ahern
On 8/22/16 8:15 PM, Eric Dumazet wrote: > Hi David > > It seems you forgot the sock_diag_check_cookie() call, but other than > that this patch looks fine. > > Thanks. indeed. will fix tomorrow and re-send. Thanks for the review.

Re: [PATCH v2 net-next] net: diag: support SOCK_DESTROY for UDP sockets

2016-08-22 Thread Eric Dumazet
On Mon, 2016-08-22 at 18:03 -0700, David Ahern wrote: > 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 EC

[PATCH v2 net-next] net: diag: support SOCK_DESTROY for UDP sockets

2016-08-22 Thread David Ahern
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. Signed-off-by: David Ahern --- v2 - changed sock