Skip to content

netfilter: nf_tables: Use rcu lock to enhance protection of the lists

Ziyang Xuan netfilter-devel 1 version Applied

Status from this message: Applied to nf, thanks

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2netfilter: nf_tables: Fix potential data-race in __nft_expr_type_get()net/netfilter/nf_tables_api.c+6 -21 reply
2/2netfilter: nf_tables: Fix potential data-race in __nft_obj_type_get()net/netfilter/nf_tables_api.c+6 -21 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH nft 0/2] netfilter: nf_tables: Use rcu lock to enhance protection of the lists

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(-)
Signature · 1 line
2.25.1