[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20180123.112246.308462044491465065.davem@davemloft.net>
Date: Tue, 23 Jan 2018 11:22:46 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: lucien.xin@...il.com
Cc: netdev@...r.kernel.org, linux-sctp@...r.kernel.org,
marcelo.leitner@...il.com, nhorman@...driver.com
Subject: Re: [PATCH net-next] sctp: reset ret in again path in
sctp_for_each_transport
From: Xin Long <lucien.xin@...il.com>
Date: Tue, 23 Jan 2018 18:22:25 +0800
> Commit 97a6ec4ac021 ("rhashtable: Change rhashtable_walk_start to
> return void") only initialized ret for the first time, when going
> to again path, the next tsp could be NULL. Without resetting ret,
> cb_done would be called with tsp as NULL.
>
> A kernel crash was caused by this when running sctpdiag testcase
> in sctp-tests.
>
> Note that this issue doesn't affect net.git yet.
>
> Fixes: 97a6ec4ac021 ("rhashtable: Change rhashtable_walk_start to return void")
> Signed-off-by: Xin Long <lucien.xin@...il.com>
Applied, thanks.
Powered by blists - more mailing lists