mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
netfilter: nf_tables: pass ctx to nf_tables_expr_destroy()
nft_set_elem_destroy() can be called from call_rcu context. Annotate netns and table in set object so we can populate the context object. Moreover, pass context object to nf_tables_set_elem_destroy() from the commit phase, since it is already available from there. Signed-off-by: Pablo Neira Ayuso <[email protected]>
This commit is contained in:
parent
5e5cbc7b23
commit
3453c92731
2 changed files with 16 additions and 4 deletions
|
|
@ -370,6 +370,8 @@ void nft_unregister_set(struct nft_set_type *type);
|
|||
*
|
||||
* @list: table set list node
|
||||
* @bindings: list of set bindings
|
||||
* @table: table this set belongs to
|
||||
* @net: netnamespace this set belongs to
|
||||
* @name: name of the set
|
||||
* @handle: unique handle of the set
|
||||
* @ktype: key type (numeric type defined by userspace, not used in the kernel)
|
||||
|
|
@ -393,6 +395,8 @@ void nft_unregister_set(struct nft_set_type *type);
|
|||
struct nft_set {
|
||||
struct list_head list;
|
||||
struct list_head bindings;
|
||||
struct nft_table *table;
|
||||
possible_net_t net;
|
||||
char *name;
|
||||
u64 handle;
|
||||
u32 ktype;
|
||||
|
|
|
|||
Loading…
Reference in a new issue