Re: [PATCH nf] netfilter: nf_ct_expect: use proper RCU list traversal/update APIs

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

 



On Sun, Apr 02, 2017 at 06:25:37PM +0800, Liping Zhang wrote:
> From: Liping Zhang <zlpnobody@xxxxxxxxx>
> 
> We should use proper RCU list APIs to manipulate help->expectations,
> as we can dump the conntrack's expectations via nfnetlink, i.e. in
> ctnetlink_exp_ct_dump_table(), where only rcu_read_lock is acquired.
> 
> So for list traversal, use hlist_for_each_entry_rcu; for list add/del,
> use hlist_add_head_rcu and hlist_del_rcu.

Good catch. Applied, thanks.
--
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