[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20150202.191948.1745138515710019835.davem@davemloft.net>
Date: Mon, 02 Feb 2015 19:19:48 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: herbert@...dor.apana.org.au
Cc: tgraf@...g.ch, netdev@...r.kernel.org
Subject: Re: rhashtable: Fix potential crash on destroy in rhashtable_shrink
From: Herbert Xu <herbert@...dor.apana.org.au>
Date: Sat, 31 Jan 2015 20:36:38 +1100
> The current being_destroyed check in rhashtable_expand is not
> enough since if we start a shrinking process after freeing all
> elements in the table that's also going to crash.
>
> This patch adds a being_destroyed check to the deferred worker
> thread so that we bail out as soon as we take the lock.
>
> Signed-off-by: Herbert Xu <herbert@...dor.apana.org.au>
Applied to net-next
--
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