Find a file
Kristof Provost d0b0424fa0 altq codel: do not insert the same mtag twice
If we're called on an mbuf that's passed through codel before it may
already contain the MTAG_CODEL tag. The code accounts for this and does
not allocate a new mtag. However, it inserts the mtag unconditionally.
That is, it inserts the existing mtag a second time.

When the mbuf later gets freed we iterate over the list of mtags to fee
them one by one, and we'll end up freeing an mtag that's already been
freed.

Only insert the mtag if we've allocated a new one. If we found one
there's no need to insert it again.

See also:	https://redmine.pfsense.org/issues/14497
Sponsored by:	Rubicon Communications, LLC ("Netgate")
2023-07-03 21:32:33 +02:00
.cirrus-ci
.github MAINTAINERS: Add myself to stand 2023-05-07 22:30:10 -06:00
bin Separate dependencies on tools built for host. 2023-06-29 23:52:03 -07:00
cddl dtrace: improve siftr probe 2023-07-02 03:08:51 +02:00
contrib contrib: dracut: Conditionalize copying of libgcc_s.so.1 to glibc only 2023-06-29 12:54:37 -07:00
crypto Merge OpenSSL 3.0.9 2023-06-23 18:53:36 -04:00
etc Create correct engines debug directory after OpenSSL 3.0.9 merge 2023-07-01 22:59:23 +02:00
gnu Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
include Revert "spa.h: use IN_BASE instead of IN_FREEBSD_BASE" 2023-06-30 10:03:46 -07:00
kerberos5 kerberos: Request the OpenSSL 1.1 API 2023-06-23 18:53:36 -04:00
lib syslog.3: document ident[N] format 2023-07-03 19:46:40 +07:00
libexec dumpdev: respect kenv for stable branches 2023-07-02 14:54:57 +07:00
release release: update GCE configuration for python3 2023-07-03 15:28:33 -04:00
rescue Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
sbin newfs: nextnum should be a u_int32_t, not an int 2023-06-28 16:26:06 -06:00
secure caroot: add new certs 2023-06-25 18:49:07 -05:00
share dtrace: improve siftr probe 2023-07-02 03:08:51 +02:00
stand Stand: Silence undefined symbols check command 2023-07-01 11:16:58 -06:00
sys altq codel: do not insert the same mtag twice 2023-07-03 21:32:33 +02:00
targets local.dirdeps.mk skip N_host_libs for non-FreeBSD host 2023-05-04 11:58:39 -07:00
tests netinet tests: Add a test which connects a disconnected socket 2023-06-23 10:06:13 -04:00
tools test: remove remainder of testfloat 2023-06-30 22:43:50 +02:00
usr.bin syslog.3: document ident[N] format 2023-07-03 19:46:40 +07:00
usr.sbin bhyve: Rename a pci_cfgrw() parameter 2023-06-28 16:29:49 -04:00
.arcconfig
.arclint
.cirrus.yml Cirrus-CI: use llvm16 job by default and make llvm15 manual 2023-06-22 20:26:34 -04:00
.clang-format
.git-blame-ignore-revs Add git-blame ignore file 2023-01-23 15:27:25 -05:00
.gitattributes
.gitignore .gitignore: Ignore LSP generated .cache 2023-03-07 10:04:18 -05:00
CONTRIBUTING.md CONTRIBUTING.md: minor changes 2023-05-14 06:51:56 -06:00
COPYRIGHT Happy New Year 2023! 2023-01-01 13:44:43 +08:00
LOCKS
MAINTAINERS MAINTAINERS: Add myself to stand 2023-05-07 22:30:10 -06:00
Makefile Move MACHINE/MACHINE_ARCH handling to sys.machine.mk 2023-05-13 08:15:49 -07:00
Makefile.inc1 Generalise libcompat to be a list rather than a single option 2023-06-28 00:10:49 +01:00
Makefile.libcompat Generalise libcompat to be a list rather than a single option 2023-06-28 00:10:49 +01:00
Makefile.sys.inc
ObsoleteFiles.inc Stop removing OpenSSL man pages that were revived in 3.0.9 2023-07-03 18:58:24 +02:00
README.md README.md: link to the list of supported platforms 2022-11-01 12:20:55 -03:00
RELNOTES nvd/nda: Add release notes info. 2023-06-13 09:18:18 -06:00
UPDATING atkbc: Better test for old chromebooks 2023-06-29 08:34:47 -06: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 and gnu/COPYING.LIB 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.