Eric Dumazet
521f1cf1db
inet_diag: fix access to tcp cc information
...
Two different problems are fixed here :
1) inet_sk_diag_fill() might be called without socket lock held.
icsk->icsk_ca_ops can change under us and module be unloaded.
-> Access to freed memory.
Fix this using rcu_read_lock() to prevent module unload.
2) Some TCP Congestion Control modules provide information
but again this is not safe against icsk->icsk_ca_ops
change and nla_put() errors were ignored. Some sockets
could not get the additional info if skb was almost full.
Fix this by returning a status from get_info() handlers and
using rcu protection as well.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-04-17 13:28:31 -04:00
..
2015-04-13 17:17:29 +02:00
2015-04-03 12:11:15 -04:00
2014-09-18 10:54:36 +02:00
2015-04-07 15:25:55 -04:00
2015-04-03 12:11:15 -04:00
2014-07-07 21:14:21 -07:00
2015-04-03 12:11:15 -04:00
2015-04-03 12:11:15 -04:00
2015-04-06 22:34:15 -04:00
2015-03-11 16:22:14 -04:00
2015-04-03 12:11:15 -04:00
2015-04-03 12:11:15 -04:00
2015-04-03 12:11:15 -04:00
2015-04-16 12:11:19 -04:00
2015-04-14 15:44:14 -04:00
2014-09-08 15:23:05 -07:00
2015-04-03 12:11:15 -04:00
2015-04-03 12:11:15 -04:00
2015-04-03 12:11:15 -04:00
2015-04-03 12:11:15 -04:00
2015-04-17 13:28:31 -04:00
2015-04-03 12:11:15 -04:00
2015-04-13 16:40:05 -04:00
2013-12-29 16:34:25 -05:00
2015-04-13 16:40:05 -04:00
2014-09-08 16:42:42 -07:00
2015-04-07 15:25:55 -04:00
2015-04-03 12:11:15 -04:00
2015-04-03 12:11:15 -04:00
2015-04-07 15:25:55 -04:00
2015-04-03 12:11:15 -04:00
2015-04-07 22:24:37 -04:00
2015-04-03 12:11:15 -04:00
2015-04-08 12:09:42 -04:00
2015-04-07 15:29:08 -04:00
2015-04-03 12:11:15 -04:00
2015-04-03 12:11:15 -04:00
2015-04-03 12:11:15 -04:00
2015-04-03 12:11:15 -04:00
2015-04-07 15:25:55 -04:00
2014-11-05 16:30:02 -05:00
2014-10-06 00:32:20 -04:00
2015-04-04 12:25:22 -04:00
2015-04-03 12:11:15 -04:00
2015-04-13 16:40:05 -04:00
2014-09-19 17:15:31 -04:00
2015-04-13 18:18:05 -04:00
2015-04-03 12:11:15 -04:00
2015-03-25 00:57:48 -04:00
2015-04-03 12:11:15 -04:00
2015-01-28 22:18:37 -08:00
2015-03-20 18:51:09 -04:00
2015-03-11 16:51:51 -04:00
2015-04-17 13:28:31 -04:00
2015-04-03 12:11:15 -04:00
2015-04-07 18:36:39 -04:00
2014-09-01 18:12:45 -07:00
2014-09-01 18:12:45 -07:00
2014-09-01 18:12:45 -07:00
2015-04-17 13:28:31 -04:00
2015-04-13 13:54:25 -04:00
2015-04-13 16:40:05 -04:00
2014-05-03 19:23:07 -04:00
2015-02-12 18:54:10 -08:00
2015-04-07 18:36:39 -04:00
2015-04-13 16:40:05 -04:00
2015-02-28 16:56:51 -05:00
2015-04-14 15:44:14 -04:00
2014-09-01 18:12:45 -07:00
2015-01-28 22:18:37 -08:00
2015-04-07 18:36:39 -04:00
2015-04-17 13:28:31 -04:00
2015-04-17 13:28:31 -04:00
2015-01-28 22:18:37 -08:00
2015-04-17 13:28:31 -04:00
2015-01-28 22:18:37 -08:00
2015-04-17 13:28:31 -04:00
2012-03-11 23:42:51 -07:00
2015-04-03 12:11:15 -04:00
2015-03-02 13:06:31 -05:00
2015-04-03 12:11:15 -04:00
2015-04-07 15:29:08 -04:00
2015-04-07 22:24:37 -04:00
2014-05-23 16:28:53 -04:00
2015-04-07 15:25:55 -04:00
2013-12-26 13:43:21 -05:00
2007-10-10 16:55:54 -07:00
2015-03-25 14:07:04 -04:00
2015-04-07 15:25:55 -04:00
2015-04-03 12:11:15 -04:00
2014-06-30 07:49:47 +02:00
2013-12-18 16:58:20 -05:00
2013-05-31 17:19:05 -07:00