opnsense-src/sys/net/route
Alexander V. Chernikov f279295521 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
2021-05-30 10:30:45 +00:00
..
fib_algo.c [fib algo] Update fib_gen counter under FIB_MOD_LOCK. 2021-05-04 21:31:36 +00:00
fib_algo.h Add batched update support for the fib algo. 2021-04-29 08:47:32 +00:00
mpath_ctl.c Fix panic when trying to delete non-existent gateway in multipath route. 2021-05-30 10:30:45 +00:00
nhgrp.c Fix nexhtop group index array scaling. 2021-03-30 07:34:31 +00:00
nhgrp_ctl.c Fix panic when trying to delete non-existent gateway in multipath route. 2021-05-30 10:30:45 +00:00
nhgrp_var.h Introduce scalable route multipath. 2020-10-03 10:47:17 +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
nhop_ctl.c Fix interface route addition with net/bird. 2021-02-14 10:30:15 +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
route_ctl.c Fix rib generation count for fib algo. 2021-04-29 08:47:32 +00:00
route_ctl.h Add rib_walk_from() wrapper for selective rib tree traversal. 2021-05-04 21:30:35 +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-05-04 21:30:35 +00:00
route_ifaddrs.c Make gcc happy by initializing error in rib_handle_ifaddr_info(). 2021-04-26 08:49:24 +00:00
route_tables.c [fib algo] Delay algo init at fib growth to to allow to reliably use rib KPI. 2021-05-04 21:30:35 +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 Fix drace CTF for the rib_head. 2021-05-04 21:31:25 +00:00