From: Eric Dumazet <eric.duma...@gmail.com> Date: Thu, 16 Apr 2015 18:10:35 -0700
> From: Eric Dumazet <eduma...@google.com> > > 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 <eduma...@google.com> Applied. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html