opnsense-src/sys/netinet6
Arseny Smalyuk ed80803df4 netinet6: Fix mbuf leak in NDP
Mbufs leak when manually removing incomplete NDP records with pending packet via ndp -d.
It happens because lltable_drop_entry_queue() rely on `la_numheld`
counter when dropping NDP entries (lles). It turned out NDP code never
increased `la_numheld`, so the actual free never happened.

Fix the issue by introducing unified lltable_append_entry_queue(),
common for both ARP and NDP code, properly addressing packet queue
maintenance.

Reviewed By: melifaro
Differential Revision: https://reviews.freebsd.org/D35365
MFC after:	2 weeks

(cherry picked from commit d18b4bec98)
2023-05-09 11:05:03 +02:00
..
dest6.c Fix m_pullup() problem after removing PULLDOWN_TESTs and KAME EXT_*macros. 2019-12-01 00:22:04 +00:00
frag6.c netinet6: Fix a typo in a sysctl description 2021-12-03 16:53:41 +01:00
icmp6.c icmp6: Improve validation of PMTU 2022-08-16 10:16:50 +02:00
icmp6.h
in6.c routing: fix panic for p2p interfaces after 800c68469b. 2023-01-13 21:22:57 +00:00
in6.h in6: Consolidate IN6_ARE_ADDR_EQUAL definitions 2022-11-10 12:03:03 -05:00
in6_cksum.c net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
in6_fib.c routing: refactor private KPI 2023-01-13 21:18:26 +00:00
in6_fib.h Add modular fib lookup framework. 2020-12-25 11:33:17 +00:00
in6_fib_algo.c Fix dpdk/ldradix fib lookup algorithm preference calculation. 2021-03-10 21:50:19 +00:00
in6_gif.c net: Introduce IPV6_DSCP(), IPV6_ECN() and IPV6_TRAFFIC_CLASS() macros 2021-05-10 16:30:44 +02:00
in6_ifattach.c in6: Enter the net epoch in in6_tmpaddrtimer() 2021-08-16 09:01:39 -04:00
in6_ifattach.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
in6_jail.c sysent: Get rid of bogus sys/sysent.h include. 2022-06-17 22:35:31 +03:00
in6_mcast.c Fix panic in IPv6 multicast code. 2021-08-13 10:31:11 +03:00
in6_pcb.c net: Allow binding of unspecified address without address existance 2021-11-18 19:28:56 -05:00
in6_pcb.h Filter TCP connections to SO_REUSEPORT_LB listen sockets by NUMA domain 2020-12-19 22:04:46 +00:00
in6_pcbgroup.c sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
in6_proto.c inet6(4): add a missing IPPROTO_ETHERIP entry 2022-10-19 12:23:16 +09:00
in6_rmx.c routing: add nhop(9) kpi. 2023-01-13 21:18:26 +00:00
in6_rss.c Implement flowid calculation for outbound connections to balance 2020-10-18 17:15:47 +00:00
in6_rss.h Implement flowid calculation for outbound connections to balance 2020-10-18 17:15:47 +00:00
in6_src.c netinet6: simplify selectroute() 2023-01-13 21:24:11 +00:00
in6_var.h netinet6: fix SIOCSPFXFLUSH_IN6 by skipping manually-configured prefixes 2023-01-13 21:24:10 +00:00
ip6.h
ip6_ecn.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
ip6_fastfwd.c net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
ip6_forward.c netinet6: honor blackhole/unreach routes in the non-fastforwading code. 2023-02-09 15:46:09 +00:00
ip6_gre.c ip_gre: Fix a common typo in source code comments 2023-01-22 10:08:15 +01:00
ip6_id.c ip6_randomflowlabel: Avoid blocking if random(4) is not available 2019-04-23 17:18:20 +00:00
ip6_input.c netinet6: perform out-of-bounds check for loX multicast statistics 2023-01-13 21:24:10 +00:00
ip6_mroute.c pim6_input: eliminate write only variable rc 2022-10-01 22:25:57 -06:00
ip6_mroute.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
ip6_output.c Fix ipfw fwd that doesn't work in some cases 2022-04-18 11:58:45 +03:00
ip6_var.h Convert route caching to nexthop caching. 2020-04-25 09:06:11 +00:00
ip6protosw.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
ip_fw_nat64.h Reapply r345274 with build fixes for 32-bit architectures. 2019-03-19 10:57:03 +00:00
ip_fw_nptv6.h net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
mld6.c mld6: Ensure that mld_domifattach() always succeeds 2022-04-27 20:34:17 -04:00
mld6.h sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
mld6_var.h icmpv6: Fix mbuf change in mld 2019-11-18 21:59:47 +00:00
nd6.c netinet6: Fix mbuf leak in NDP 2023-05-09 11:05:03 +02:00
nd6.h netinet6: fix SIOCSPFXFLUSH_IN6 by skipping manually-configured prefixes 2023-01-13 21:24:10 +00:00
nd6_nbr.c netinet6: call lle_event eventhandler after updating state 2023-01-13 21:24:12 +00:00
nd6_rtr.c netinet6: simplify defrouter_select_fib() 2023-01-13 21:24:11 +00:00
pim6.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
pim6_var.h Rework IP encapsulation handling code. 2018-06-05 20:51:01 +00:00
raw_ip6.c rip6: Fix a lock order reversal in rip6_bind() 2022-06-21 08:53:34 -04:00
raw_ip6.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
route6.c Fix m_pullup() problem after removing PULLDOWN_TESTs and KAME EXT_*macros. 2019-12-01 00:22:04 +00:00
scope6.c net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
scope6_var.h Make net.inet6.ip6.deembed_scopeid behaviour default & remove sysctl. 2020-08-15 11:37:44 +00:00
sctp6_usrreq.c sctp: improve sctp_pathmtu_adjustment() 2022-02-23 00:58:06 +01:00
sctp6_var.h Whitespace changes due to changes in ident. 2018-07-19 20:16:33 +00:00
send.c socket: Implement SO_RERROR 2021-08-10 18:54:00 -07:00
send.h sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
tcp6_var.h mend 2021-06-07 11:01:28 +02:00
udp6_usrreq.c netinet6: Remove a double word in a source code comment 2022-09-13 07:21:39 +02:00
udp6_var.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00