FreeBSD src
Go to file
Zhenlei Huang 90820ef121 infiniband: Widen NET_EPOCH coverage
From static code analysis, some device drivers (cxgbe, mlx4, mthca, and qlnx)
do not enter net epoch before lagg_input_infiniband(). If IPoIB interface is a
member of lagg(4) interface, and after returning from lagg_input_infiniband()
the receiving interface of mbuf is set to lagg(4) interface, then when
concurrently destroying the lagg(4) interface, there is a small window that the
interface gets destroyed and becomes invalid before infiniband_input() re-enter
net epoch, thus leading use-after-free.

Widen NET_EPOCH coverage to prevent use-after-free.

Thanks hselasky@ for testing with mlx5 devices.

Reviewed by:	hselasky
Tested by:	hselasky
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D39275
2023-04-03 00:51:49 +08:00
.cirrus-ci Cirrus-CI: add some timing info on pkg install failure 2021-08-04 15:02:00 -04:00
.github Vendor import of OpenSSH 9.3p1 2023-03-16 08:41:22 -04:00
bin fs/msdosfs: add tracking of free root directory entries 2023-03-29 08:46:01 +02:00
cddl libdtrace: fix indendation in dt_printd() 2023-03-20 09:34:20 -04:00
contrib libpcap: Update to 1.10.3 2023-03-31 16:02:22 -03:00
crypto ssh: update FREEBSD-upgrade for upstream CheckHostIP default change 2023-03-29 19:32:44 -04:00
etc libcasper: Move helper libraries from /lib/casper to /lib. 2023-03-29 15:04:28 -07:00
gnu gnu diff3: apply patch to committed src, rather than at build time 2022-11-13 21:33:40 -05:00
include arpa: garbage collect ns_newmsg/ns_rdata decls 2023-03-22 14:58:23 -04:00
kerberos5 heimdal: Do not build a redundant source file 2023-04-01 19:18:05 -07:00
lib libpcap: Update to 1.10.3 2023-03-31 16:02:22 -03:00
libexec libcasper: Move helper libraries from /lib/casper to /lib. 2023-03-29 15:04:28 -07:00
release pkg-stage.sh: update port trailing version information 2023-03-20 10:36:51 -04:00
rescue rescue: Fix link order of SSL libraries and fetch. 2023-02-02 09:23:02 -08:00
sbin ping: fix failing test_pinger[_3_1_verbose_false] test. 2023-04-02 14:10:16 +00:00
secure ssh: Update to OpenSSH 9.3p1 2023-03-16 10:29:55 -04:00
share Add myself (cc) as a src commiter. 2023-04-01 08:17:21 -04:00
stand amd64 loader: plug hard hang with serial console enabled 2023-03-31 11:19:25 -07:00
sys infiniband: Widen NET_EPOCH coverage 2023-04-03 00:51:49 +08:00
targets retire sconfig(8) ce(4)/cp(4) configuration tool 2022-12-13 15:25:13 -05:00
tests tests: fix utils import in netlink tests 2023-04-02 10:17:37 +00:00
tools nanobsd: Remove MIPS configurations. 2023-03-31 10:55:22 -07:00
usr.bin Remove LLVM build glue for MIPS as a native architecture. 2023-03-29 15:06:15 -07:00
usr.sbin cxgbetool(8): Add support for tracing loopback traffic for a port. 2023-04-01 17:50:57 -07:00
.arcconfig arcanist: use FreeBSD/git project repository instead of FreeBSD/svn 2022-08-23 14:16:41 +00:00
.arclint arc lint: ignore /tests/ in chmod 2017-12-19 03:38:06 +00:00
.cirrus.yml CI: Run pkgbase METALOG lint script 2023-03-14 21:13:46 -04:00
.clang-format clang-format: Add bitset loop macros 2021-09-21 12:08:01 -04:00
.git-blame-ignore-revs Add git-blame ignore file 2023-01-23 15:27:25 -05:00
.gitattributes Add a basic clang-format configuration file 2019-06-07 15:23:52 +00:00
.gitignore .gitignore: Ignore LSP generated .cache 2023-03-07 10:04:18 -05:00
CONTRIBUTING.md CONTRIBUTING.md: Fix checkstyle9.pl name 2023-03-27 16:23:13 -04:00
COPYRIGHT Happy New Year 2023! 2023-01-01 13:44:43 +08:00
LOCKS LOCKS: update current locks 2018-06-09 03:08:04 +00:00
MAINTAINERS MAINTAINERS: Remove myself from OpenSSL maintenance 2023-03-28 15:44:26 -04:00
Makefile universe: Switch GCC toolchains to GCC 12. 2023-01-27 13:35:13 -08:00
Makefile.inc1 libcasper: Move helper libraries from /lib/casper to /lib. 2023-03-29 15:04:28 -07:00
Makefile.libcompat libcompat: avoid installing include files twice 2022-11-16 19:15:20 -05: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 Add libcap_netdb.so.1 to the list of libcasper helper libraries. 2023-03-30 14:54:48 -07:00
README.md Vendor import of OpenSSH 9.3p1 2023-03-16 08:41:22 -04:00
RELNOTES RELNOTES: Add an entry for NFS server support in vnet prisons 2023-03-12 14:55:46 -07:00
UPDATING UPDATING: Document arm video devices renaming. 2023-03-17 13:35:03 +01: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.