OPNsense - FreeBSD source
Find a file
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
.cirrus-ci Cirrus-CI: add some timing info on pkg install failure 2022-02-09 12:39:50 -05:00
.github/workflows .github: Add a build on Ubuntu 22.04 using llvm 14. 2022-07-13 11:44:26 -07:00
bin uuidgen: add -c for compact uuid 2023-03-06 22:18:00 +01:00
cddl Delete obsolete Solaris compat header file stdlib.h 2023-03-02 16:22:26 +08:00
contrib contrib/tzdata: import tzdata 2023c 2023-03-29 10:32:25 +08:00
crypto ssh: Update to OpenSSH 9.3p1 2023-03-16 21:38:16 -04:00
etc rc.d: Generate machine-id from hostid_save 2023-03-12 22:46:07 +01:00
gnu gnu diff3: apply patch to committed src, rather than at build time 2022-11-19 14:10:48 -05:00
include netlink: add headers installation 2023-02-15 17:14:47 +00:00
kerberos5 pkgbase: split kerberos binaries and libs 2022-08-19 14:27:16 +01:00
lib Update in preparation for 13.2-RELEASE 2023-04-06 17:03:18 -07:00
libexec rc.d: Generate machine-id from hostid_save 2023-03-12 22:46:07 +01:00
release 13.2: create releng/13.2 branch 2023-02-09 16:37:06 -08:00
rescue Add an internal libiscsiutil library. 2022-04-29 14:13:00 -07:00
sbin ipfw.8: MFC: improve description for interface matching 2023-05-09 10:41:14 +02:00
secure ssh: Update to OpenSSH 9.3p1 2023-03-16 21:38:16 -04:00
share netlink: Fix "version introduced" documentation 2023-03-15 17:14:29 -06:00
stand stand: fix build userboot without zfs 2023-03-02 10:09:32 -07:00
sys netinet6: Fix mbuf leak in NDP 2023-05-09 11:05:03 +02:00
targets Fix bootstrapping to actually build lldb-tblgen for later use 2021-09-07 13:08:18 +01:00
tests routing: fix panic when adding an interface route to the p2p interface 2023-05-09 10:58:12 +02:00
tools Bring our tzcode up to date. 2023-01-31 10:44:19 +01:00
usr.bin netinet6: Fix mbuf leak in NDP 2023-05-09 11:05:03 +02:00
usr.sbin makefs: make msdos creation go fast 2023-03-15 17:14:12 -06:00
.arcconfig arcconfig: add callsign again 2020-11-23 04:39:29 +00:00
.arclint arc lint: ignore /tests/ in chmod 2017-12-19 03:38:06 +00:00
.cirrus.yml Cirrus-CI: add gpart show to setup script 2023-01-09 12:26:34 -05:00
.clang-format clang-format: Add bitset loop macros 2021-11-01 09:20:11 -04:00
.gitattributes Add a basic clang-format configuration file 2019-06-07 15:23:52 +00:00
.gitignore add exuberant ctags tags file to gitignore 2022-01-11 15:25:37 +02:00
COPYRIGHT copyrights: Happy New Year 2021 2020-12-31 10:29:44 -05:00
LOCKS LOCKS: update current locks 2018-06-09 03:08:04 +00:00
MAINTAINERS Add a pointer to csprng@ for the CSPRNG driver. This is enforced anyway by 2020-09-01 08:02:12 +00:00
Makefile Makefile: Avoid sanitizing PATH on non-FreeBSD systems 2023-01-31 01:46:18 +00:00
Makefile.inc1 Makefile.inc1: Print the right PATH for missing install tool error 2023-01-31 10:44:19 +01:00
Makefile.libcompat Prefer MK_SSP=no to SSP_CFLAGS= 2021-08-11 13:56:28 -03:00
Makefile.sys.inc AUTO_OBJ: For all top-level targets enforce using an OBJDIR. 2017-12-05 21:29:47 +00:00
ObsoleteFiles.inc rc.d: Generate machine-id from hostid_save 2023-03-12 22:46:07 +01:00
README.md hier(7): remove text describing /usr/src layout 2022-12-05 12:37:07 -04:00
RELNOTES Note upgrade to sendmail 8.17.1 2023-02-01 02:48:05 +00:00
UPDATING Update in preparation for 13.2-RELEASE 2023-04-06 17:03:18 -07:00

FreeBSD Source:

This is the top level of the FreeBSD source directory.

FreeBSD is an operating system used to power modern servers, desktops, and embedded platforms. A large community has continually developed it for more than thirty years. Its advanced networking, security, and storage features have made FreeBSD the platform of choice for many of the busiest web sites and most pervasive embedded networking and storage devices.

For copyright information, please see the file COPYRIGHT in this directory. Additional copyright information also exists for some sources in this tree - please see the specific source directories for more information.

The Makefile in this directory supports a number of targets for building components (or all) of the FreeBSD source tree. See build(7), config(8), FreeBSD handbook on building userland, and Handbook for kernels for more information, including setting make(1) variables.

For information on the CPU architectures and platforms supported by FreeBSD, see the FreeBSD website's Platforms page.

Source Roadmap:

Directory Description
bin System/user commands.
cddl Various commands and libraries under the Common Development and Distribution License.
contrib Packages contributed by 3rd parties.
crypto Cryptography stuff (see crypto/README).
etc Template files for /etc.
gnu Commands and libraries under the GNU General Public License (GPL) or Lesser General Public License (LGPL). Please see gnu/COPYING* for more information.
include System include files.
kerberos5 Kerberos5 (Heimdal) package.
lib System libraries.
libexec System daemons.
release Release building Makefile & associated tools.
rescue Build system for statically linked /rescue utilities.
sbin System commands.
secure Cryptographic libraries and commands.
share Shared resources.
stand Boot loader sources.
sys Kernel sources (see sys/README.md).
targets Support for experimental DIRDEPS_BUILD
tests Regression tests which can be run by Kyua. See tests/README for additional information.
tools Utilities for regression testing and miscellaneous tasks.
usr.bin User commands.
usr.sbin System administration commands.

For information on synchronizing your source tree with one or more of the FreeBSD Project's development branches, please see FreeBSD Handbook.