Re: rhashtable: warnings caused by "rhashtable: Fix use-after-free in rhashtable_walk_stop"

From: Herbert Xu
Date: Mon Mar 23 2015 - 17:55:29 EST


On Mon, Mar 23, 2015 at 02:27:58PM -0400, Sasha Levin wrote:
> Hi all,
>
> Commit 963ecbd41a ("rhashtable: Fix use-after-free in rhashtable_walk_stop") is causing
> RCU warnings since the code now locks a mutex (which might sleep) within an RCU critical
> section within rhashtable_walk_stop().

OK I will add a spin lock to bucket_table for this.

Cheers,
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/