[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20150417.132852.665045419921409481.davem@davemloft.net>
Date: Fri, 17 Apr 2015 13:28:52 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH net] inet_diag: fix access to tcp cc information
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Thu, 16 Apr 2015 18:10:35 -0700
> From: Eric Dumazet <edumazet@...gle.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 <edumazet@...gle.com>
Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists