David Ahern
d7226c7a4d
net: diag: Fix refcnt leak in error path destroying socket
...
inet_diag_find_one_icsk takes a reference to a socket that is not
released if sock_diag_destroy returns an error. Fix by changing
tcp_diag_destroy to manage the refcnt for all cases and remove
the sock_put calls from tcp_abort.
Fixes: c1e64e298b8ca ("net: diag: Support destroying TCP sockets")
Reported-by: Lorenzo Colitti <lorenzo@google.com>
Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-08-23 23:11:36 -07:00
..
2016-07-18 21:35:23 +02:00
2016-07-11 22:44:26 -07:00
2015-08-25 13:38:50 -07:00
2016-04-27 22:48:24 -04:00
2016-07-07 10:15:34 +10:00
2015-07-29 22:44:04 -07:00
2016-07-09 18:12:25 -04:00
2016-06-23 11:52:00 -04:00
2016-05-06 15:51:47 -04:00
2015-07-24 22:46:11 -07:00
2016-06-08 11:36:02 -07:00
2016-07-11 13:41:09 -07:00
2016-08-18 23:51:23 -07:00
2016-06-07 23:51:14 -07:00
2016-06-30 05:03:36 -04:00
2016-05-20 18:03:15 -04:00
2016-04-27 22:48:23 -04:00
2016-03-08 12:34:12 -05:00
2016-07-07 10:35:06 +02:00
2016-06-28 05:25:04 -04:00
2016-06-05 22:56:42 -04:00
2016-05-04 00:52:29 -04:00
2016-07-07 10:35:06 +02:00
2015-08-28 13:32:36 -07:00
2016-07-19 16:40:22 -07:00
2016-04-27 22:48:23 -04:00
2016-08-15 13:37:12 -07:00
2016-05-11 19:31:40 -04:00
2016-03-01 17:18:44 -05:00
2016-07-19 16:40:22 -07:00
2016-05-16 13:46:23 -04:00
2016-08-22 17:11:01 -07:00
2016-06-15 21:39:59 -07:00
2016-08-09 12:57:49 -07:00
2015-04-03 12:11:15 -04:00
2016-06-11 20:40:24 -07:00
2016-07-09 17:45:56 -04:00
2016-07-26 15:18:31 -07:00
2016-06-10 23:07:49 -07:00
2016-06-10 23:07:49 -07:00
2015-09-29 20:21:32 +02:00
2016-04-04 15:50:30 -04:00
2016-02-16 20:42:54 -05:00
2016-04-04 15:50:30 -04:00
2016-05-09 22:33:52 -04:00
2016-04-27 22:48:24 -04:00
2016-05-23 14:32:06 -07:00
2016-05-11 14:43:19 -04:00
2016-05-11 14:43:19 -04:00
2015-09-25 13:00:38 -07:00
2016-05-11 14:43:19 -04:00
2016-06-14 23:46:30 -07:00
2016-08-23 23:11:36 -07:00
2016-05-02 17:02:25 -04:00
2015-07-09 14:22:52 -07:00
2016-05-11 14:43:19 -04:00
2015-07-09 14:22:52 -07:00
2016-05-11 14:43:19 -04:00
2016-07-29 17:38:46 -07:00
2016-08-23 16:55:49 -07:00
2016-05-11 14:43:19 -04:00
2016-04-23 20:13:24 -04:00
2016-05-02 17:02:25 -04:00
2016-06-10 23:07:49 -07:00
2016-05-20 18:03:15 -04:00
2016-07-30 21:21:57 -07:00
2016-03-01 17:18:44 -05:00
2016-05-02 17:02:25 -04:00
2015-07-09 14:22:52 -07:00
2016-07-15 23:18:14 -07:00
2016-05-11 14:43:19 -04:00
2016-05-11 14:43:19 -04:00
2016-05-11 14:43:19 -04:00
2016-05-11 14:43:19 -04:00
2016-05-11 14:43:19 -04:00
2016-08-23 23:11:36 -07:00
2016-07-11 13:27:06 -07:00
2016-04-04 22:11:19 -04:00
2015-03-02 13:06:31 -05:00
2016-05-20 18:03:15 -04:00
2016-06-17 20:23:32 -07:00
2016-08-23 17:46:17 -07:00
2016-08-23 17:46:17 -07:00
2015-09-17 17:18:37 -07:00
2015-03-25 14:07:04 -04:00
2015-10-24 06:54:12 -07:00
2016-06-16 22:06:30 -07:00