All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH nf v2 0/3] netfilter: nft_fib_ipv6: handle routes via external nexthop
@ 2026-05-20  2:34 Jiayuan Chen
  2026-05-20  2:34 ` [PATCH nf v2 1/3] netfilter: nft_fib_ipv6: walk fib6_siblings under RCU Jiayuan Chen
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Jiayuan Chen @ 2026-05-20  2:34 UTC (permalink / raw)
  To: netfilter-devel; +Cc: pablo, fw, phil, coreteam

Patch 1 switches the fib6_siblings walk in nft_fib6_info_nh_uses_dev()
to list_for_each_entry_rcu().

Patch 2 fixes the slab-out-of-bounds when the matched route uses an
external nexthop object.

Patch 3 adds a selftest covering single nh, nh group and old-style
multipath.

v1: https://lore.kernel.org/netfilter-devel/20260519041431.396218-1-jiayuan.chen@linux.dev/

Changes since v1:
  - new patch 1: list_for_each_entry_rcu() conversion split out
    (Suggested-by: Phil Sutter)
  - patch 2:
    * drop redundant ternary in nft_fib6_nh_match_dev_cb (Phil)
    * drop redundant "!= 0" on nexthop_for_each_fib6_nh return (Phil)
    * use READ_ONCE() for rt->fib6_nsiblings (Phil)

Jiayuan Chen (3):
  netfilter: nft_fib_ipv6: walk fib6_siblings under RCU
  netfilter: nft_fib_ipv6: handle routes via external nexthop
  selftests: netfilter: add nft_fib_nexthop test

 net/ipv6/netfilter/nft_fib_ipv6.c             |  18 ++-
 .../testing/selftests/net/netfilter/Makefile  |   1 +
 .../net/netfilter/nft_fib_nexthop.sh          | 152 ++++++++++++++++++
 3 files changed, 170 insertions(+), 1 deletion(-)
 create mode 100755 tools/testing/selftests/net/netfilter/nft_fib_nexthop.sh

-- 
2.43.0


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

end of thread, other threads:[~2026-05-20 10:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-20  2:34 [PATCH nf v2 0/3] netfilter: nft_fib_ipv6: handle routes via external nexthop Jiayuan Chen
2026-05-20  2:34 ` [PATCH nf v2 1/3] netfilter: nft_fib_ipv6: walk fib6_siblings under RCU Jiayuan Chen
2026-05-20  2:34 ` [PATCH nf v2 2/3] netfilter: nft_fib_ipv6: handle routes via external nexthop Jiayuan Chen
2026-05-20  2:34 ` [PATCH nf v2 3/3] selftests: netfilter: add nft_fib_nexthop test Jiayuan Chen
2026-05-20  9:26 ` [PATCH nf v2 0/3] netfilter: nft_fib_ipv6: handle routes via external nexthop Phil Sutter
2026-05-20  9:39   ` Jiayuan Chen
2026-05-20 10:48     ` Phil Sutter

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.