No description
Find a file
Adrian Chadd a50789d8b8 powerpc: put the isync inside the TD_LOCK() checking loop
Fix a narrow window where the lock is unlocked but the checking CPU
hasn't flushed things appropriately.

Inside this window the CPU inside cpu_switch() will loop forever thinking
the destination thread is still blocked/locked even though it is not.

This manifests as the system hanging after starting all APs.

I've seen this reliably trigger in qemu-system-ppc64 running power9 pseries
guests; the more CPUs the more likely it triggers at boot.

PR: kern/292167
Differential Revision:	https://reviews.freebsd.org/D54478
Reviewed by:	jhibbits
MFC after:	1 week
Relnotes:	yes

(cherry picked from commit 8df2e54214)
2026-01-11 11:21:52 -08:00
.cirrus-ci
.github .github: Use make.py's --cross-toolchain option on macOS 2025-08-06 16:14:37 -04:00
bin sh: avoid warnings about too-long initializer strings 2026-01-02 21:40:38 +01:00
cddl ctfmerge: fix segfault when building on macOS 2025-12-15 14:22:54 -08:00
contrib Merge commit faa5141b9be4 from file git (by Christos Zoulas): 2026-01-11 11:21:47 -08:00
crypto openssh: Don't attempt to connect to unsupported addresses 2025-11-25 03:18:24 +00:00
etc libc/tests: add stdbit test framework and unit tests 2026-01-01 21:57:32 +01:00
gnu diff3: Move to own package 2025-10-03 09:52:43 -07:00
include libc: add glibc-compatible tdestroy(3) 2026-01-05 02:44:21 +02:00
kerberos5 heimdal-kadmin: Add support for the -f dump option 2025-10-07 18:47:21 -07:00
krb5 krb5: Remove extraneous exports file 2026-01-05 12:00:01 -08:00
lib gpart: add libxo support for "show" subcommand + man page updates 2026-01-05 15:40:49 +01:00
libexec rc.subr: Use the variable we defined to invoke setaudit(8) 2025-12-29 14:31:31 +00:00
release GCE: Fix growfs path 2026-01-10 09:03:25 -08:00
rescue nvmf: Switch several ioctls to using nvlists 2024-12-30 13:52:21 -05:00
sbin ifconfig: Fix the -L flag when using netlink 2026-01-06 15:56:48 +00:00
secure libcrypto: Install tests in the tests package 2025-11-07 05:16:08 +00:00
share freebsd-base.7: Fix stray -r 2026-01-09 19:24:27 +01:00
stand libsa: smbios: Detect less-than-64-bit platforms via __SIZEOF_SIZE_T__ 2026-01-06 14:33:19 +01:00
sys powerpc: put the isync inside the TD_LOCK() checking loop 2026-01-11 11:21:52 -08:00
targets blocklist: Rename blacklist to blocklist 2025-10-14 00:53:16 +00:00
tests pf: Fix state handling when ICMP packets are diverted 2026-01-06 15:56:49 +00:00
tools ipfilter: Disable ipfs(8) by default 2026-01-05 12:00:01 -08:00
usr.bin Update to bmake-20251111 2026-01-10 13:10:53 -08:00
usr.sbin inetd.conf: Correct rsync example 2026-01-07 10:47:04 -05: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
.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
.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
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: Indicate that no-clean builds are on by default 2026-01-06 09:30:11 -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 apm(8): Drop MLINK to apmconf(8) 2025-12-18 17:50:14 -05: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.