Re: [PATCH] netfilter/nf_tables: silence a RCU-list warning

From: Florian Westphal
Date: Wed Mar 25 2020 - 19:14:01 EST


Qian Cai <cai@xxxxxx> wrote:
> It is safe to traverse &net->nft.tables with &net->nft.commit_mutex
> held using list_for_each_entry_rcu(). Silence the PROVE_RCU_LIST false
> positive,

[..]

> - list_for_each_entry_rcu(table, &net->nft.tables, list) {
> + list_for_each_entry_rcu(table, &net->nft.tables, list,
> + lockdep_is_held(&net->nft.commit_mutex)) {

Thanks for the patch.

Acked-by: Florian Westphal <fw@xxxxxxxxx>