Re: [PATCH nf v3 1/1] netfilter: helper: Add the rcu lock when call __nf_conntrack_helper_find

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

 



On Wed, Mar 29, 2017 at 07:11:27PM +0800, gfree.wind@xxxxxxxxxxx wrote:
> From: Gao Feng <fgao@xxxxxxxxxx>
> 
> When invoke __nf_conntrack_helper_find, it needs the rcu lock to
> protect the helper module which would not be unloaded.
> 
> Now there are two caller nf_conntrack_helper_try_module_get and
> ctnetlink_create_expect which don't hold rcu lock. And the other
> callers left like ctnetlink_change_helper, ctnetlink_create_conntrack,
> and ctnetlink_glue_attach_expect, they already hold the rcu lock
> or spin_lock_bh.
> 
> Remove the rcu lock in functions nf_ct_helper_expectfn_find_by_name
> and nf_ct_helper_expectfn_find_by_symbol. Because they return one pointer
> which needs rcu lock, so their caller should hold the rcu lock, not in
> these two functions.

Applied.
--
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