linux/drivers/net/vxlan
Ido Schimmel ce6adea19a vxlan: Make vxlan_fdb_find_uc() more robust against NPDs
first_remote_rcu() can return NULL if the FDB entry points to an FDB
nexthop group instead of a remote destination. However, unlike other
users of first_remote_rcu(), NPD cannot currently happen in
vxlan_fdb_find_uc() as it is only invoked by one driver which vetoes the
creation of FDB nexthops.

Make the function more robust by making sure the remote destination is
only dereferenced if it is not NULL.

Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Wang Liang <wangliang74@huawei.com>
Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Link: https://patch.msgid.link/20250908075141.125087-1-idosch@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-09-09 18:27:33 -07:00
..
Makefile vxlan: mdb: Add MDB control path support 2023-03-17 08:05:49 +00:00
vxlan_core.c vxlan: Make vxlan_fdb_find_uc() more robust against NPDs 2025-09-09 18:27:33 -07:00
vxlan_mdb.c net: vxlan: rename SKB_DROP_REASON_VXLAN_NO_REMOTE 2024-12-23 10:11:04 -08:00
vxlan_multicast.c
vxlan_private.h vxlan: Fix NPD when refreshing an FDB entry with a nexthop object 2025-09-02 16:56:59 -07:00
vxlan_vnifilter.c netlink: introduce type-checking attribute iteration for nlmsg 2025-07-02 15:39:04 -07:00