No description
Find a file
Dag-Erling Smørgrav 3caee2a93f hastd: Fix nv data size check
The data size check, as currently written, can be defeated by providing
a very large number that rounds up to 0, which will pass the check
(because zero plus the size of the header and name is smaller than the
size of the message) but cause a segfault later when used to index the
data array.

Rewrite the data size check to take rounding into account, and add a
cast to ensure the name size can't round up to zero.

MFC after:	1 week
PR:		266827
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D51615
2025-08-06 15:49:37 +02:00
.cirrus-ci
.github GitHub: Use a link for CONTRIBUTING.md in comment 2025-07-27 17:01:55 -04:00
bin freebsd-version.8: Remove freebsd-update paragraph 2025-08-05 18:05:29 -04:00
cddl zfsd: don't try to fix an OFFLINE condition 2025-08-04 10:00:52 -06:00
contrib Merge bmake-20250804 2025-08-05 15:57:12 -07:00
crypto krb5: Rename the ALIGN macro in aestab.h 2025-08-02 06:30:17 +01:00
etc krb5: Remove et directory 2025-08-05 12:48:48 -07:00
gnu build: remove the last vestiges of lint support 2025-06-06 00:55:34 +01:00
include libc: Deprecate readdir_r() 2025-08-02 01:11:56 +02:00
kerberos5 build: remove the last vestiges of lint support 2025-06-06 00:55:34 +01:00
krb5 krb5: Move compile_et to /usr/bin as it was with Heimdal 2025-08-05 09:33:03 -07:00
lib libsys: add a dependency for syscall stubs 2025-08-06 12:31:24 +01:00
libexec rc.subr: Drop duplicate SPDX tag in test script 2025-08-02 01:19:37 +02:00
release libutil++: Add package definition 2025-08-05 18:14:09 +01:00
rescue nvmf: Switch several ioctls to using nvlists 2024-12-30 13:52:21 -05:00
sbin hastd: Fix nv data size check 2025-08-06 15:49:37 +02:00
secure openssh: Support building with MIT KRB5 2025-06-15 19:49:36 -07:00
share pf.conf.5: document limit-item "anchors"; from martin vahlensieck 2025-08-06 00:27:15 +02:00
stand libsa: errors with pointer conversion 2025-08-01 01:04:32 +03:00
sys Change the default of net.link.epair.ether_gen_addr 0 -> 1. 2025-08-06 13:07:14 +02:00
targets zfsboot: Remove zfsboot(8) program used to boot ZFS from MBR + BIOS 2025-07-28 10:58:02 -04:00
tests fusefs: don't fake the mountpoint's stat info before FUSE_INIT completes 2025-08-05 16:53:05 -06:00
tools krb5: Remove Heimdal library when MK_MITKRB5 is enabled 2025-08-05 09:32:43 -07:00
usr.bin Merge bmake-20250804 2025-08-05 15:57:12 -07:00
usr.sbin bhyve: protect MMIO mapped BDSM register 2025-08-05 16:02:09 +02:00
.arcconfig arcanist: use FreeBSD/git project repository instead of FreeBSD/svn 2022-08-23 14:16:41 +00:00
.arclint
.cirrus.yml .cirrus.yml: Switch to manual mode for internal CI 2025-07-06 14:40:24 +02:00
.clang-format clang-format: Minor tweaks 2024-04-30 17:33:43 -04:00
.git-blame-ignore-revs git-blame-ignore-revs: iflib style(9) tweaks 2025-06-06 18:07:06 +08:00
.gitattributes Remove SVN related Git attributes 2023-12-26 10:28:28 -07:00
.gitignore .gitignore: add sys/*/compile 2024-02-02 09:20:36 -07:00
.mailmap mailmap: Add Joyu Liao 2025-06-26 14:13:21 +02:00
CONTRIBUTING.md github: Update with better guidance on what's acceptable for src 2025-07-25 16:24:34 -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 powerpc: Disconnect 32-bit powerpc from make universe 2025-07-14 11:01:09 -04:00
Makefile.inc1 ObsoleteFiles: Stop looking for catpages 2025-08-06 15:37:06 +02:00
Makefile.libcompat Makefile: Hook MIT KRB5 into the build 2025-06-15 19:49:37 -07:00
Makefile.sys.inc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
ObsoleteFiles.inc ObsoleteFiles: Remove old entries 2025-08-06 15:36:59 +02:00
README.md Update README.md to add pointer to release page. 2024-05-09 20:40:46 -06:00
RELNOTES RELNOTES: Mention deprecation of readdir_r(3) 2025-08-02 19:56:35 +02:00
UPDATING Change the default of net.link.epair.ether_gen_addr 0 -> 1. 2025-08-06 13:07:14 +02: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.