freebsd-dev/sys/net/route
Alexander V. Chernikov aad59c79f5 Fix panic when trying to delete non-existent gateway in multipath route.
IF non-existend gateway was specified, the code responsible for calculating
 an updated nexthop group, returned the same already-used nexthop group.
After the route table update, the operation result contained the same
 old & new nexthop groups. Thus, the code responsible for decomposing
 the notification to the list of simple nexthop-level notifications,
 was not able to find any differences. As a result, it hasn't updated any
  of the "simple" notification fields, resulting in empty rtentry pointer.
This empty pointer was the direct reason of a panic.

Fix the problem by returning ESRCH when the new nexthop group is the same
 as the old one after applying gateway filter.

Reported by:	Michael <michael.adm at gmail.com>
PR:		255665
MFC after:	3 days
2021-05-07 20:41:31 +00:00
..
fib_algo.c [fib algo] Update fib_gen counter under FIB_MOD_LOCK. 2021-04-28 20:23:03 +00:00
fib_algo.h Fib algo: extend KPI by allowing algo to set datapath pointers. 2021-04-18 16:12:12 +01:00
mpath_ctl.c Fix panic when trying to delete non-existent gateway in multipath route. 2021-05-07 20:41:31 +00:00
nhgrp_ctl.c Fix panic when trying to delete non-existent gateway in multipath route. 2021-05-07 20:41:31 +00:00
nhgrp_var.h Introduce scalable route multipath. 2020-10-03 10:47:17 +00:00
nhgrp.c Rename variables inside nexhtop group consider_resize() code. 2021-03-29 23:06:13 +00:00
nhop_ctl.c Simplify ifa/ifp refcounting in the routing stack. 2021-02-22 23:37:59 +00:00
nhop_utils.c Remove unused nhop_ref_any() function. 2020-09-20 21:32:52 +00:00
nhop_utils.h net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
nhop_var.h Fix route flags update during RTM_CHANGE. 2020-10-04 13:24:58 +00:00
nhop.c Introduce scalable route multipath. 2020-10-03 10:47:17 +00:00
nhop.h Remove now-unused RT_GATEWAY* definitions. 2021-01-04 21:45:46 +00:00
route_ctl.c Fix rib generation count for fib algo. 2021-04-20 22:02:41 +00:00
route_ctl.h Add rib_walk_from() wrapper for selective rib tree traversal. 2021-04-28 08:09:45 +00:00
route_ddb.c Rename rt_flags to rte_flags && reduce number of rt_nhop accesses. 2020-08-22 19:30:56 +00:00
route_helpers.c Add rib_walk_from() wrapper for selective rib tree traversal. 2021-04-28 08:09:45 +00:00
route_ifaddrs.c Make gcc happy by initializing error in rib_handle_ifaddr_info(). 2021-04-25 08:44:59 +00:00
route_tables.c [fib algo] Delay algo init at fib growth to to allow to reliably use rib KPI. 2021-04-27 22:10:08 +00:00
route_temporal.c net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
route_var.h [fib algo] Delay algo init at fib growth to to allow to reliably use rib KPI. 2021-04-27 22:10:08 +00:00