All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH nft 0/2] netfilter: nf_tables: Use rcu lock to enhance protection of the lists
@ 2024-04-07  6:56 Ziyang Xuan
  2024-04-07  6:56 ` [PATCH nft 1/2] netfilter: nf_tables: Fix potential data-race in __nft_expr_type_get() Ziyang Xuan
  2024-04-07  6:56 ` [PATCH nft 2/2] netfilter: nf_tables: Fix potential data-race in __nft_obj_type_get() Ziyang Xuan
  0 siblings, 2 replies; 5+ messages in thread
From: Ziyang Xuan @ 2024-04-07  6:56 UTC (permalink / raw)
  To: pablo, kadlec, netfilter-devel; +Cc: fw

nf_tables_expressions and nf_tables_objects lists can be concurrent
between type lookup and module unloading process. But there is not
any protection in type lookup process. Therefore, there is pertential
data-race of the lists entry.

Use rcu lock to enhance protection of the lists.

Ziyang Xuan (2):
  netfilter: nf_tables: Fix potential data-race in __nft_expr_type_get()
  netfilter: nf_tables: Fix potential data-race in __nft_obj_type_get()

 net/netfilter/nf_tables_api.c | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-04-11 10:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-07  6:56 [PATCH nft 0/2] netfilter: nf_tables: Use rcu lock to enhance protection of the lists Ziyang Xuan
2024-04-07  6:56 ` [PATCH nft 1/2] netfilter: nf_tables: Fix potential data-race in __nft_expr_type_get() Ziyang Xuan
2024-04-11 10:04   ` Pablo Neira Ayuso
2024-04-07  6:56 ` [PATCH nft 2/2] netfilter: nf_tables: Fix potential data-race in __nft_obj_type_get() Ziyang Xuan
2024-04-11 10:05   ` Pablo Neira Ayuso

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.