Aller au fichier
Kyle Evans 7efda340ff if_wg: use proper barriers around pkt->p_state
Without appropriate load-synchronization to pair with store barriers in
wg_encrypt() and wg_decrypt(), the compiler and hardware are often
allowed to reorder these loads in wg_deliver_out() and wg_deliver_in()
such that we end up with a garbage or intermediate mbuf that we try to
pass on.  The issue is particularly prevalent with the weaker
memory models of !x86 platforms.

Switch from the big-hammer wmb() to more explicit acq/rel atomics to
both make it obvious what we're syncing up with, and to avoid somewhat
hefty fences on platforms that don't necessarily need this.

With this patch, my dual-iperf3 reproducer is dramatically more stable
than it is without on aarch64.

PR:		264115
Reviewed by:	andrew, zlei

(cherry picked from commit 3705d679a6344c957cae7a1b6372a8bfb8c44f0e)
2024-03-25 22:04:03 +01:00
.cirrus-ci Cirrus-CI: add some timing info on pkg install failure 2022-02-09 12:39:50 -05:00
.github Update bug_report.md 2023-11-11 10:52:45 +01:00
bin Remove $FreeBSD$: one-line sh pattern 2024-01-05 10:21:44 +01:00
cddl Remove $FreeBSD$: one-line sh pattern 2024-01-05 10:21:44 +01:00
contrib irdma(4): Upgrade to 1.2.36-k 2024-03-05 17:13:36 +01:00
crypto Implement "strict key exchange" in ssh and sshd. 2023-12-20 09:28:52 +01:00
etc Remove $FreeBSD$: one-line sh pattern 2024-01-05 10:21:44 +01:00
gnu Remove $FreeBSD$: one-line sh pattern 2024-01-05 10:21:44 +01:00
include Remove $FreeBSD$: one-line sh pattern 2024-01-05 10:21:44 +01:00
kerberos5 Remove $FreeBSD$: one-line sh pattern 2024-01-05 10:21:44 +01:00
lib setusercontext(): Apply personal settings only on matching effective UID 2024-02-14 08:25:50 +01:00
libexec rc.conf: correct $ntp_leapfile_sources 2024-02-14 08:26:11 +01:00
release Remove $FreeBSD$: one-line sh pattern 2024-01-05 10:21:44 +01:00
rescue Remove $FreeBSD$: one-line sh pattern 2024-01-05 10:21:44 +01:00
sbin net80211: adjust more VHT structures/fields 2024-02-23 10:50:26 +01:00
secure Remove $FreeBSD$: one-line sh pattern 2024-01-05 10:21:44 +01:00
share igb(4): Remove disconnected SYSCTL 2024-01-19 09:14:38 +01:00
stand Remove $FreeBSD$: one-line sh pattern 2024-01-05 10:21:44 +01:00
sys if_wg: use proper barriers around pkt->p_state 2024-03-25 22:04:03 +01:00
targets Remove $FreeBSD$: one-line sh pattern 2024-01-05 10:21:44 +01:00
tests pf tests: test IPv6 fragmentation with link-local addresses 2024-01-05 11:44:53 +01:00
tools Remove $FreeBSD$: one-line sh pattern 2024-01-05 10:21:44 +01:00
usr.bin Remove $FreeBSD$: one-line sh pattern 2024-01-05 10:21:44 +01:00
usr.sbin periodic/daily/480.leapfile-ntpd: only attempt to refresh leap-seconds.list 2024-02-14 08:26:07 +01:00
.arcconfig
.arclint
.cirrus.yml Remove $FreeBSD$: one-line sh pattern 2024-01-05 10:21:44 +01:00
.clang-format Remove $FreeBSD$: one-line sh pattern 2024-01-05 10:21:44 +01:00
.gitattributes
.gitignore
CONTRIBUTING.md Issues - add contributing guidelines and issue template. As this is mostly upstream, don't include feature request templates or questions 2023-05-09 14:36:50 +02:00
COPYRIGHT
LOCKS
MAINTAINERS
Makefile Remove $FreeBSD$: one-line sh pattern 2024-01-05 10:21:44 +01:00
Makefile.inc1 Remove $FreeBSD$: one-line sh pattern 2024-01-05 10:21:44 +01:00
Makefile.libcompat Remove $FreeBSD$: one-line sh pattern 2024-01-05 10:21:44 +01:00
Makefile.sys.inc Remove $FreeBSD$: one-line sh pattern 2024-01-05 10:21:44 +01:00
ObsoleteFiles.inc Remove $FreeBSD$: one-line sh pattern 2024-01-05 10:21:44 +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 Add UPDATING entries and bump the branch version. 2024-02-14 08:25:57 +01:00

README.md

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.