diff options
author | Ido Schimmel <idosch@nvidia.com> | 2025-09-08 10:51:41 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-09-09 18:27:33 -0700 |
commit | ce6adea19ad93b957190d1a04192519f748bae7b (patch) | |
tree | 7d19b188469a345ca19a85d5fca6283a2d4f8a6e /scripts/generate_rust_target.rs | |
parent | 051b62b71e2e335af963caf5d54a9895f4695096 (diff) |
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>
Diffstat (limited to 'scripts/generate_rust_target.rs')
0 files changed, 0 insertions, 0 deletions