Re: [PATCH nf-next 2/8] netfilter: nf_tables: nf_tables_gettable: use call_rcu

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



kbuild test robot <lkp@xxxxxxxxx> wrote:
> >> include/linux/rcupdate.h:686:9: sparse: context imbalance in 'nft_netlink_dump_start_rcu' - unexpected unlock

Yep, i forgot to mention this in change log.

I don't know how to fix this.
nft_netlink_dump_start_rcu() is called with rcu read lock held.

But we call netlink_dump_start and that might sleep.

So I'm grabbing the module ref, release rcu read lock and re-acquire
it on return.

I didn't find out how to annotate this.

Given large number of similar warnings in alike-patterned code
I guess there isn't a way to do this.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux