Mono Gateway (NXP LS1046A) fork of OPNsense src: DPAA/LS1046A kernel support, rebased on upstream release tags
Find a file
Kyle Evans 33a3ccfc16 if_tuntap: defer transient destroy_dev() to a taskqueue
We're in the dtor, so we can't destroy it now without deadlocking after
recent changes to make destroy_dev() provide a barrier.  However, we
know there isn't any other dtor to run, so we can go ahead and clean up
our state and just prevent a use-after-free if someone races to open
the device while we're trying to destroy it.  tunopen() now uses the
net epoch to protect against softc release by a concurrent
tun_destroy().

While we're here, allow a destroy operation to proceed if we caught a
signal in cv_wait_sig() but tun_busy dropped to 0 while we were waiting
to acquire the lock.

This was more of an inherent design flaw, rather than a bug in the
below-refed commit.

Reviewed by:	kib, markj

(cherry picked from commit 96c1d8db39dfeea78ea3f27d67649252a39bbf2e)
2025-12-17 21:51:56 -06:00
.cirrus-ci
.github .github: Use make.py's --cross-toolchain option on macOS 2025-08-06 16:14:37 -04:00
bin sh: Don't assume EINTR means SIGALRM 2025-11-25 03:18:24 +00:00
cddl ctfmerge: fix segfault when building on macOS 2025-12-15 14:22:54 -08:00
contrib ofed/libibverbs: remove no longer needed local alloca.h 2025-12-16 06:57:02 +02:00
crypto openssh: Don't attempt to connect to unsupported addresses 2025-11-25 03:18:24 +00:00
etc mtree: Keep mtree files indented with spaces 2025-12-02 01:59:06 +00:00
gnu diff3: Move to own package 2025-10-03 09:52:43 -07:00
include libc/string: add strdupa(3) and strndupa(3) 2025-12-16 06:57:01 +02:00
kerberos5 heimdal-kadmin: Add support for the -f dump option 2025-10-07 18:47:21 -07:00
krb5 krb5: Add missing symbol 2025-12-12 18:19:40 -08:00
lib libc/string: add strdupa(3) and strndupa(3) 2025-12-16 06:57:01 +02:00
libexec noshutdown: Fix startup order 2025-12-13 22:01:14 +00:00
release release: Include comms/usbmuxd to DVD to ensure ipheth(4) works 2025-12-08 08:49:09 +08:00
rescue nvmf: Switch several ioctls to using nvlists 2024-12-30 13:52:21 -05:00
sbin shutdown(8): Document additional formats supported by the code. 2025-12-15 19:46:52 -08:00
secure libcrypto: Install tests in the tests package 2025-11-07 05:16:08 +00:00
share iwmfw(4): fix spelling of the iwm8000C firmware. 2025-12-15 18:09:21 +00:00
stand iwmfw(4): fix spelling of the iwm8000C firmware. 2025-12-15 18:09:21 +00:00
sys if_tuntap: defer transient destroy_dev() to a taskqueue 2025-12-17 21:51:56 -06:00
targets blocklist: Rename blacklist to blocklist 2025-10-14 00:53:16 +00:00
tests */*: remove recallocarray() compat shims following import into libc 2025-12-12 11:37:07 +01:00
tools locale: make install Unicode 17.0.0/CLDR 48 2025-12-13 04:14:46 +00:00
usr.bin ministat: Clean up usage message, manual page, and chameleon 2025-12-15 15:42:47 +01:00
usr.sbin rtsold: Validate entries in domain search lists 2025-12-16 23:39:27 +00:00
.arcconfig
.arclint
.cirrus.yml Cirrus-CI: Switch back to tzst packages, but use level 1 2025-10-14 20:47:10 -04:00
.clang-format clang-format: Minor tweaks 2024-04-30 17:33:43 -04:00
.clean_build_epoch build: introduce the notion of a build epoch 2025-08-14 23:43:42 -05:00
.git-blame-ignore-revs git-blame-ignore-revs: witness white space cleanup and style(9) tweeks 2025-08-29 18:01:43 +08:00
.gitattributes Remove SVN related Git attributes 2023-12-26 10:28:28 -07:00
.gitignore src.sys.mk: Support src.conf in SRCTOP 2025-09-16 13:27:43 +00:00
.mailmap mailmap: Add Joyu Liao 2025-06-26 14:13:21 +02:00
CONTRIBUTING.md CONTRIBUTING: Tweak the language 2025-08-08 11:16:13 -06:00
COPYRIGHT copyright: Happy New Year 2025 2025-01-01 00:04:28 +00:00
LOCKS Update LOCKS for Git 2023-12-26 10:28:25 -07:00
MAINTAINERS man filesystems: fix more xrefs after move to s4 2024-06-27 18:32:05 -06:00
Makefile Makefile: Force DISTDIR=/ for (update-)packages 2025-10-10 05:29:35 +01:00
Makefile.inc1 Makefile.inc1: Force NO_ROOT for distribute* and package* 2025-12-10 13:05:09 -05:00
Makefile.libcompat Makefile.libcompat: Use same PATH for _lc_build-tools as _build-tools 2025-08-22 21:46:15 +01:00
Makefile.sys.inc
ObsoleteFiles.inc iwmfw(4): fix spelling of the iwm8000C firmware. 2025-12-15 18:09:21 +00:00
README.md Update README.md to add pointer to release page. 2024-05-09 20:40:46 -06:00
RELNOTES RELNOTES: Fix another typo 2025-08-26 10:01:31 -07:00
UPDATING UPDATING: Add an entry for f27afc4765 2025-11-23 12:39:46 -08: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.

For official FreeBSD bootable images, see the release 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.