-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge FreeBSD 2024-04-26 #2193
Merge FreeBSD 2024-04-26 #2193
Commits on Apr 23, 2024
-
kern_thr.c: normalize includes
Remove extra sys/param.h, provided by sys/systm.h. Order the rest alphabetically. Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D44867
Configuration menu - View commit details
-
Copy full SHA for 0c11c17 - Browse repository at this point
Copy the full SHA 0c11c17View commit details -
sigqueue(2): add impl-specific flag __SIGQUEUE_TID
The flag allows the pid argument to designate a thread from the calling process. The flag value is carved from the high bit of the signal number, which slightly changes the ABI of syscall. Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D44867
Configuration menu - View commit details
-
Copy full SHA for 53186bc - Browse repository at this point
Copy the full SHA 53186bcView commit details -
sigqueue(2): Document __SIGQUEUE_TID
Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D44867
Configuration menu - View commit details
-
Copy full SHA for dcc180c - Browse repository at this point
Copy the full SHA dcc180cView commit details -
sys/signal.h: move union sigval into dedicated private header sys/_si…
…gval.h Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D44867
Configuration menu - View commit details
-
Copy full SHA for 97acb35 - Browse repository at this point
Copy the full SHA 97acb35View commit details -
libthr: add pthread_sigqueue(3)
PR: 278459 Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D44867
Configuration menu - View commit details
-
Copy full SHA for 220aa0f - Browse repository at this point
Copy the full SHA 220aa0fView commit details -
Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D44867
Configuration menu - View commit details
-
Copy full SHA for 91da6be - Browse repository at this point
Copy the full SHA 91da6beView commit details -
Add test for pthread_sigqueue(3)
Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D44867
Configuration menu - View commit details
-
Copy full SHA for fb2ab7c - Browse repository at this point
Copy the full SHA fb2ab7cView commit details -
nfsserver: Default to nfs_reserved_port_only="YES"
This setting causes the NFS server to check that all RPCs are sent from a privileged (<= 1023) port, rejecting those that are not. This slightly raises the bar for a user with network access to an unauthenticated NFS server to access exported NFS filesystems. Users that use traditional NFS clients (e.g., those provided by FreeBSD or Linux) should not see any difference, assuming that unprivileged filesystem mounting is disallowed. Note that the setting is per-VNET, so may be overridden in VNET jails without affecting the rest of the system. Discussed with: freebsd-arch@ Reviewed by: rmacklem, bz, emaste Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D44906
Configuration menu - View commit details
-
Copy full SHA for 6d5ce2b - Browse repository at this point
Copy the full SHA 6d5ce2bView commit details -
RELNOTES: Add an entry for the nfs_reserved_port_only default change
Sponsored by: The FreeBSD Foundation
Configuration menu - View commit details
-
Copy full SHA for ca0620b - Browse repository at this point
Copy the full SHA ca0620bView commit details -
Use MOVED_LIBS for usr/lib/libcxxrt.so.1 ObsoleteFiles.inc entry
Otherwise, the "make delete-old-libs" mechanism also deletes 32-bit copies, such as in /usr/lib32. Reported by: Josef 'Jeff' Sipek <[email protected]> Fixes: 911a647
Configuration menu - View commit details
-
Copy full SHA for f48643d - Browse repository at this point
Copy the full SHA f48643dView commit details -
camcontrol: Enable WITH_NVME unconditionally
MK_NVME is no longer marked broken for any platforms, so just include support for it always as we do for ATA and SCSI. Reviewed by: emaste Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D44841
Configuration menu - View commit details
-
Copy full SHA for 2b676a6 - Browse repository at this point
Copy the full SHA 2b676a6View commit details -
nvmecontrol: Always build instead of being conditional on WITH_NVME
This now builds fine on all platforms so always include it similar to other tools such as camcontrol. Reviewed by: imp, emaste Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D44842
Configuration menu - View commit details
-
Copy full SHA for 2d51a98 - Browse repository at this point
Copy the full SHA 2d51a98View commit details -
Remove the MK_NVME build option
The drivers and utilities are now built and installed unconditionally. Reviewed by: imp, emaste Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D44843
Configuration menu - View commit details
-
Copy full SHA for ee3187f - Browse repository at this point
Copy the full SHA ee3187fView commit details -
Configuration menu - View commit details
-
Copy full SHA for cbbc577 - Browse repository at this point
Copy the full SHA cbbc577View commit details -
libc: make strerror_rl() usable for libc
Reviewed by: imp Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D44916
Configuration menu - View commit details
-
Copy full SHA for 92771bc - Browse repository at this point
Copy the full SHA 92771bcView commit details -
__vprintf(): switch from strerror() to strerror_rl()
This eliminates the use of non-thread-safe function in printf*() family, and make the call locale-aware. Also, it stops obliterating the strerror() static buffer, which aligns with the POSIX requirement that implementations must behave as if no standard-mandated functions call strerror(). PR: 278556 Reported by: Jonathan Gruber <[email protected]> Reviewed by: imp Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D44916
Configuration menu - View commit details
-
Copy full SHA for f887667 - Browse repository at this point
Copy the full SHA f887667View commit details -
libc: minor style, wrap long lines
Reviewed by: imp Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D44916
Configuration menu - View commit details
-
Copy full SHA for bac9d7e - Browse repository at this point
Copy the full SHA bac9d7eView commit details -
libc printf_render_errno(): do not use strerror()
Reviewed by: imp Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D44916
Configuration menu - View commit details
-
Copy full SHA for aa66995 - Browse repository at this point
Copy the full SHA aa66995View commit details -
pow,powf(3),__ieee754_rem_pio2(f): Avoid negative integer left shift UB
A compiler clever enough to know that z is positive with a non-zero biased exponent could, for example, optimize away the scalbnf(z,n) in pow() because behavior for left shift of negative values is undefined. `n` is negative when y*log2(|x|) < -0.5. i.e. |x^y| < sqrt(0.5) The intended behavior for operator<< in this code is to shift the two's complement representation of the first operand. In the pow() functions, the result is added to the IEEE 754 exponent of z = 2^y'. n may be negative enough to underflow the biased IEEE 754 exponent below zero, which is manifested in the sign bit of j (which would correspond to the IEEE 754 sign bit). The conversion from uint32_t to int32_t for out-of-int32_t-range values is implementation defined. The assumed behavior of interpreting the uint32_t value as a two's complement representation of a signed value is already assumed in many parts of the code, such as uses of GET_FLOAT_WORD() with signed integers. This code passes all the current tests, and makes some out of tree fuzzing tests pass again rather than hit UB (detailed in the commentary of the pull request). Signed-off-by: Karl Tomlinson <[email protected]> Reviewed by: imp, steve kargl, dim Pull Request: freebsd/freebsd-src#1137
Configuration menu - View commit details
-
Copy full SHA for e75a1bb - Browse repository at this point
Copy the full SHA e75a1bbView commit details -
checkstyle9.pl: Warn if there's no SOB line
If there's no Signed-off-by: line, complain. Sponsored by: Netflix
Configuration menu - View commit details
-
Copy full SHA for ea6f2d7 - Browse repository at this point
Copy the full SHA ea6f2d7View commit details -
ahc(4) clean up old Linux defines
Linux removed theirs starting in 2018 in commit: "scsi: aic7xxx: Fix build using bare-metal toolchain" Also remove now-useless sys/cdefs.h includes Signed-off-by: HP van Braam <[email protected]> Reviewed by: imp, mav, emaste Pull Request: freebsd/freebsd-src#1189
Configuration menu - View commit details
-
Copy full SHA for 6597107 - Browse repository at this point
Copy the full SHA 6597107View commit details -
ahc(4)/ahd(4): target mode: cancel outstanding AIOs and INOTs
When disabling a lun there can still be outstanding AIOs and INOTs, when this happens previously the lun would just fail to disable and trying to re-use the lun would break the card. isp(4) in target mode does the same thing when disabling a lun, in testing this allows re-starting of ctld(8) with connected initiators and allows initiators to gracefully resume afterwards. Signed-off-by: HP van Braam <[email protected]> Reviewed by: imp, mav Pull Request: freebsd/freebsd-src#1190
Configuration menu - View commit details
-
Copy full SHA for d31b677 - Browse repository at this point
Copy the full SHA d31b677View commit details -
sys/net/if_bridge: support non-INET kernels
Reviewed by: imp Pull Request: freebsd/freebsd-src#1159
Configuration menu - View commit details
-
Copy full SHA for 65767e6 - Browse repository at this point
Copy the full SHA 65767e6View commit details -
sys/netpfil/pf: fix non-INET module build
pf.ko, when built as a module without 'options INET' but with 'options VIMAGE', won't load: link_elf_obj: symbol vnet_entry_in_loopback_mask undefined This is because it uses IN_LOOPBACK(), which in the VIMAGE case uses INET-specific symbols. Fix by making this check conditional on #ifdef INET. Reviewed by: imp Pull Request: freebsd/freebsd-src#1157
Configuration menu - View commit details
-
Copy full SHA for 93c5ba5 - Browse repository at this point
Copy the full SHA 93c5ba5View commit details -
sys: add conf/std.debug, generic debugging options
The new sys/conf/std.debug contains the list of debugging options enabled by default in -CURRENT, so they don't need to be listed individually in every kernel config. The enabled options are the set of all debug options which were enabled for the GENERIC kernel on any platform. This means some architectures now have debugging options enabled in GENERIC which weren't previously enabled: - amd64: [1] - arm64: [2] - arm: [2]. [3] - i386: [1], [2] - powerpc: [1], [2], [3] - riscv: [2] [1] ALT_BREAK_TO_DEBUGGER is now enabled. [2] BUF_TRACKING, FULL_BUF_TRACKING, and QUEUE_MACRO_DEBUG_TRASH are now enabled. [3] DEADLKRES is now enabled. While here, move the documentation for the (commented out) K*SAN options for amd64 from GENERIC to NOTES. Reviewed by: imp Pull Request: freebsd/freebsd-src#1124
Configuration menu - View commit details
-
Copy full SHA for 4f8f9d7 - Browse repository at this point
Copy the full SHA 4f8f9d7View commit details -
sys/*/conf: do not use "../../conf/" when including std.*
Since config(8) searches sys/conf by default, there's no need to specify the full relative path here; replace it by the filename alone. Reviewed by: imp Pull Request: freebsd/freebsd-src#1124
Configuration menu - View commit details
-
Copy full SHA for 8a8daea - Browse repository at this point
Copy the full SHA 8a8daeaView commit details -
nanobsd: Set a GPT label for EFI and cfg partitions
Use efiboot0 for the EFI partition, the nomenclature efiboot + #index was taken from bsdinstall (zfsboot). Use cfg for the cfg partition. Poudriere firmware images are already using this label. PR: 278480 Reviewed by: imp Pull Request: freebsd/freebsd-src#1187
Configuration menu - View commit details
-
Copy full SHA for 14e3f2d - Browse repository at this point
Copy the full SHA 14e3f2dView commit details -
release: Change vmimage EFI GPT label
This matches the default bsdinstall nomenclature. PR: 278480 Reviewed by: imp Pull Request: freebsd/freebsd-src#1188
Configuration menu - View commit details
-
Copy full SHA for 4f223e0 - Browse repository at this point
Copy the full SHA 4f223e0View commit details -
swapon: Do not overwrite Linux swap header
Reviewed by: imp, jhb Pull Request: freebsd/freebsd-src#1084
Configuration menu - View commit details
-
Copy full SHA for cf04a77 - Browse repository at this point
Copy the full SHA cf04a77View commit details -
zfs: merge openzfs/zfs@1f940de07
Notable upstream pull request merges: #16038 1f940de L2ARC: Cleanup buffer re-compression #16093 c183d16 Parallel pool import #16094 cd3e6b4 Add zfetch stats in arcstats #16103 35bf258 Fix: FreeBSD Arm64 does not build currently #16104 4036b8d Refactor dbuf_read() for safer decryption #16110 9f83eec Handle FLUSH errors as "expected" #16117 c346068 zfs get: add '-t fs' and '-t vol' options Obtained from: OpenZFS OpenZFS commit: 1f940de
Configuration menu - View commit details
-
Copy full SHA for 0d4ad64 - Browse repository at this point
Copy the full SHA 0d4ad64View commit details -
bsdinstall/distfetch.c: check environment variables before downloadin…
…g and handle memory allocation errors 1. Currently, distfetch checks environment variables existence when it will use them or in a case (in chdir()) it doesn't check at all. As they are necessary to set before doing anything with it, check them, if they set or not, before proceeding any further. This also avoids extra cleaning when that environment variable isn't set. 2. Handle memory allocation error in malloc(PATH_MAX) and replace (sizeof const char *) with (sizeof char *). Both are similar and const doesn't have a size. 3. Indent the error message a bit in chdir(). Signed-off-by: rilysh <[email protected]> Reviewed by: imp Pull Request: freebsd/freebsd-src#1071
Configuration menu - View commit details
-
Copy full SHA for 91bdebc - Browse repository at this point
Copy the full SHA 91bdebcView commit details
Commits on Apr 24, 2024
-
sockets: inherit SO_ACCEPTFILTER from listener to child
This is crucial for operation of accept_filter(9). See added comment. Fixes: d29b95e
Configuration menu - View commit details
-
Copy full SHA for a8acc2b - Browse repository at this point
Copy the full SHA a8acc2bView commit details -
ktrace: Describe CAPFAIL trace point in man page
Update the ktrace(1) man page to describe the recently improved capability failure tracing. Approved by: markj (mentor) Reviewed by: markj MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D44886
Configuration menu - View commit details
-
Copy full SHA for 4f2ada0 - Browse repository at this point
Copy the full SHA 4f2ada0View commit details -
ktrace: Remove CAPFAIL from default trace points
The CAPFAIL tracepoint was recently extended to report ECAPMODE capability violations for processes that do not enter capability mode. This allows developers that are interested in Capsicumizing their programs to determine where violations are being raised. Previously, CAPFAIL only produced output for processes using Capsicum(4) capabilties. Thus, most ktrace users never received log output from the trace point. With the recent changes, this is no longer the case. Having this trace point enabled by default will produce output for all processes that use syscalls that are not permitted in capability mode. This may lead to confusion for users that are not familiar with the feature. Remove KTRFAC_CAPFAIL from ktrace's default points to avoid this. Approved by: markj (mentor) Reviewed by: markj MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D44887
Configuration menu - View commit details
-
Copy full SHA for f239db4 - Browse repository at this point
Copy the full SHA f239db4View commit details -
Revert "bsdinstall/distfetch.c: check environment variables before do…
…wnloading and handle memory allocation errors" This reverts commit 91bdebc. It wasn't as ready as I thought
Configuration menu - View commit details
-
Copy full SHA for 5609315 - Browse repository at this point
Copy the full SHA 5609315View commit details -
Revert "swapon: Do not overwrite Linux swap header"
This reverts commit cf04a77.This is broken on armv7, and closer scrutiny of the reviews shows I was in error when I thought it was ready.
Configuration menu - View commit details
-
Copy full SHA for feabaf8 - Browse repository at this point
Copy the full SHA feabaf8View commit details -
Configuration menu - View commit details
-
Copy full SHA for e8ec4b5 - Browse repository at this point
Copy the full SHA e8ec4b5View commit details -
MFV: less: Do not trust st_size if it equals zero
This is a smaller version of upstream 1fafd968b48e5cea6c85f126d77071a8de707a55 to address the issue that less not being able to operate on files residing in pseudo-filesystems that advertize a zero size value. PR: bin/276133 MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for cae3362 - Browse repository at this point
Copy the full SHA cae3362View commit details -
Add a new kdc_restart rc variable that manages kdc (or krb5kdc) under daemon(8). This automatically restarts the kdc should it fail, i.e. when it's configured to use LDAP as a backend and cannot connect to its LDAP directory. Set kdc_restart="YES" to auto restart kdc on abnormal termination. Set kdc_restart_delay="N" to the number of seconds to delay before restarting the kdc. The daemon(8) default seconds applies when not set. Reported by: Lexi Winter <[email protected]> PR: 278395 Differential Revision: https://reviews.freebsd.org/D44898
Configuration menu - View commit details
-
Copy full SHA for 9e248b7 - Browse repository at this point
Copy the full SHA 9e248b7View commit details -
heimdal: Fix compiling hdb ldap as a module
Fix build when WITH_OPENLDAP defined. PR: 278430 Obtained from: Upstream c1c7da7f79
Configuration menu - View commit details
-
Copy full SHA for a0d7d68 - Browse repository at this point
Copy the full SHA a0d7d68View commit details -
Signed-off-by: Martin Vahlensieck <[email protected]> Reviewed by: markj MFC after: 2 weeks Pull Request: freebsd/freebsd-src#1181
Configuration menu - View commit details
-
Copy full SHA for 8512311 - Browse repository at this point
Copy the full SHA 8512311View commit details -
ng_pipe: Remove node when all hooks are disconnected
This is the behavior described in the man page. Signed-off-by: Martin Vahlensieck <[email protected]> Discussed with: glebius Reviewed by: markj MFC after: 2 weeks Pull Request: freebsd/freebsd-src#1181
Configuration menu - View commit details
-
Copy full SHA for bb2ab7a - Browse repository at this point
Copy the full SHA bb2ab7aView commit details -
ng_pipe: Replace deprecated random() with prng32_bounded()
Signed-off-by: Martin Vahlensieck <[email protected]> MFC after: 2 weeks Reviewed by: markj Pull Request: freebsd/freebsd-src#1181
Configuration menu - View commit details
-
Copy full SHA for a3ecf8c - Browse repository at this point
Copy the full SHA a3ecf8cView commit details -
ng_pipe: Do not panic when memory allocations fail
Signed-off-by: Martin Vahlensieck <[email protected]> Reviewed by: markj MFC after: 2 weeks Pull Request: freebsd/freebsd-src#1181
Configuration menu - View commit details
-
Copy full SHA for d44c780 - Browse repository at this point
Copy the full SHA d44c780View commit details -
dpaa: uma_zcreate() does not fail
No functional change intended. MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for 9640649 - Browse repository at this point
Copy the full SHA 9640649View commit details -
wg: uma_zcreate() does not fail
No functional change intended. MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for b6a0ed7 - Browse repository at this point
Copy the full SHA b6a0ed7View commit details -
udf: uma_zcreate() does not fail
While here remove an old comment regarding preallocation; it appears to refer to an optimization that is almost certainly irrelevant at this point. No functional change intended. MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for 78c51db - Browse repository at this point
Copy the full SHA 78c51dbView commit details -
khelp: uma_zcreate() does not fail
No functional change intended. MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for 1e607a0 - Browse repository at this point
Copy the full SHA 1e607a0View commit details -
busdma: uma_zcreate() does not fail
No functional change intended. MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for 8ef2c02 - Browse repository at this point
Copy the full SHA 8ef2c02View commit details -
geli.8: add some notes regarding performance tuning
MFC after: 1 week Sponsored by: Axcient Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D44908
Configuration menu - View commit details
-
Copy full SHA for 4b79491 - Browse repository at this point
Copy the full SHA 4b79491View commit details -
bhyve.8: Remove mention of the -A flag
It is a no-op on amd64 now and is not implemented on arm64, so let's remove mention of it altogether so as to reduce confusion for arm64 users. Reviewed by: corvink, jhb Sponsored by: Innovate UK Differential Revision: https://reviews.freebsd.org/D44737
Configuration menu - View commit details
-
Copy full SHA for 1075847 - Browse repository at this point
Copy the full SHA 1075847View commit details -
vmrun.sh: Stop passing -A to bhyve
It's a no-op now. Sponsored by: Innovate UK
Configuration menu - View commit details
-
Copy full SHA for 63d5f8c - Browse repository at this point
Copy the full SHA 63d5f8cView commit details -
bhyve.8: Document arm64 support
- Mention the options that are amd64-only. - Provide a minimal example for booting an arm64 guest. Reviewed by: corvink Sponsored by: Innovate UK Differential Revision: https://reviews.freebsd.org/D44738
Configuration menu - View commit details
-
Copy full SHA for 71b2ba9 - Browse repository at this point
Copy the full SHA 71b2ba9View commit details -
arm64/vmm: Ensure the tlbi has completed
Ensure the TLB is invalidated before enabling the EL2 MMU. Without this the TLB may be in an inconsistant state leading to a possible exception when enabling the MMU. PR: 277559 Reviewed by: markj Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D44799
Configuration menu - View commit details
-
Copy full SHA for ef80df0 - Browse repository at this point
Copy the full SHA ef80df0View commit details -
arm64: Check DMAP address is valid in PHYS_IN_DMAP
When checking if a physical address is in the DMAP region we assume all physical addresses between DMAP_MIN_PHYSADDR and DMAP_MAX_PHYSADDR are able to be accesses through the DMAP. It may be the case that there is device memory in this range that shouldn't be accessed through the DMAP mappings. Add a check to PHYS_IN_DMAP that the translated virtual address is a valid kernel address. To support code that already checks the address is valid add PHYS_IN_DMAP_RANGE. PR: 278233 Reviewed by: alc, markj Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D44677
Configuration menu - View commit details
-
Copy full SHA for 9d40492 - Browse repository at this point
Copy the full SHA 9d40492View commit details -
showconfig: Set MACHINE for src.opts.mk
Also set MACHINE and MACHINE_ARCH when reading config options from src.opts.mk. This ensures any machine-dependent options are reported correctly. Reviewed by: emaste, imp Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D44838
Configuration menu - View commit details
-
Copy full SHA for 2c35c86 - Browse repository at this point
Copy the full SHA 2c35c86View commit details -
elf_common.h: Add STO_AARCH64_VARIANT_PCS
This is used to mark symbols that use a variant procedure call with a different calling convention to the main ABI. Reviewed by: kib, imp Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D44868
Configuration menu - View commit details
-
Copy full SHA for d7ac426 - Browse repository at this point
Copy the full SHA d7ac426View commit details -
meta.autodep.mk do not override start_utc
Update meta.autodep.mk If included at level 0 it is important not to override start_utc
Configuration menu - View commit details
-
Copy full SHA for 0135101 - Browse repository at this point
Copy the full SHA 0135101View commit details -
sys/namei.h: move NI_CAP_VIOLATION() macro from namei.h to vfs_lookup.c
Reviewed by: emaste, imp, markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D44931
Configuration menu - View commit details
-
Copy full SHA for 66df810 - Browse repository at this point
Copy the full SHA 66df810View commit details -
vfs_lookup.c: only call ktrcapfail() if KTRACE is enabled
Reviewed by: emaste, imp, markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D44931
Configuration menu - View commit details
-
Copy full SHA for 6b0cf2a - Browse repository at this point
Copy the full SHA 6b0cf2aView commit details -
syscalls.master: correct return type of {read,write}v
This was missed when read/write, etc were updated to return ssize_t. Fixes: 2e83b28 Fix a few syscall arguments to use size_t instead of u_int. Reviewed by: imp, kib Differential Revision: https://reviews.freebsd.org/D44930
Configuration menu - View commit details
-
Copy full SHA for 78101d4 - Browse repository at this point
Copy the full SHA 78101d4View commit details
Commits on Apr 25, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c68eed8 - Browse repository at this point
Copy the full SHA c68eed8View commit details -
accept_filter: return different errors for non-listener and a busy so…
…cket The fact that an accept filter needs to be cleared first before setting to a different one isn't properly documented. The requirement that the socket needs already be listening, although trivial, isn't documented either. At least return a more meaningful error than EINVAL for an existing filter. Cover this with a test case.
Configuration menu - View commit details
-
Copy full SHA for 19307b8 - Browse repository at this point
Copy the full SHA 19307b8View commit details -
Document that gettimeofday() is obsolescent
Reported by: kaktus Reviewed by: kaktus, pstef MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D23942
Configuration menu - View commit details
-
Copy full SHA for 4395d3c - Browse repository at this point
Copy the full SHA 4395d3cView commit details -
sync.8: Document that the "sync dance" is not a thing
People still believe that it is essential to run sync(8) a couple of times before a reboot/halt. Document that this has not been necessary for a long time now. Reviewed by: imp, bcr, Pau Amma <[email protected]> MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D33233
Configuration menu - View commit details
-
Copy full SHA for 177ba18 - Browse repository at this point
Copy the full SHA 177ba18View commit details -
checkstyle9: Allow a space between "*" and _*restrict
Before the change, we would get errors like this: ERROR: "foo * bar" should be "foo *bar" CTSRD-CHERI#369: FILE: foobar.c:369: +barbaz(char * __restrict s, Reviewed by: des, imp Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D44911
Configuration menu - View commit details
-
Copy full SHA for 42255af - Browse repository at this point
Copy the full SHA 42255afView commit details -
kthread: Set *tdptr earlier in kproc_kthread_add()
See commit ae77041 ("kthread: Set *newtdp earlier in kthread_add1()") for details. That commit was incomplete since g_init()'s first call to kproc_kthread_add() will cause kproc_kthread_add() to take the `*procptr == NULL` branch, which avoids kthread_create(). To ensure that the thread pointer is initialized before the thread starts running, we have to start the kernel process with RFSTOPPED. We could perhaps go further and use RFSTOPPED only when tdptr != NULL, but it's probably better to have consistent behaviour. Reviewed by: olce, kib Reported by: [email protected] MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D44927
Configuration menu - View commit details
-
Copy full SHA for d663993 - Browse repository at this point
Copy the full SHA d663993View commit details -
Skip building libclang_rt when WITHOUT_CLANG is used
As noted in bug 277096, when building a pkgbase repository using WITHOUT_CROSS_COMPILER and WITHOUT_TOOLCHAIN (which sets WITHOUT_CLANG), the following residual files are left over: /usr/lib/clang/18/lib/freebsd/libclang_rt.asan-x86_64.so /usr/lib/clang/18/share/asan_ignore_list.txt /usr/lib/clang/18/share/cfi_ignore_list.txt /usr/lib/clang/18/share/msan_ignore_list.txt This is because the lib/libclang_rt directory is still descended into, even if WITHOUT_CLANG is used. Fix it by not descending into the libclang_rt directory in that case. PR: 277096 Reported by: Siva Mahadevan <[email protected]> MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for 514773a - Browse repository at this point
Copy the full SHA 514773aView commit details -
Revert "nfsd: Fix NFSv4.1/4.2 Claim_Deleg_Cur_FH"
This reverts commit f300335. It turns out that the old code was correct and it was wireshark that was broken and indicated that the RPC's XDR was bogus. Found during IETF bakeathon testing this week.
Rick Macklem authored and Rick Macklem committedApr 25, 2024 Configuration menu - View commit details
-
Copy full SHA for 54c3aa0 - Browse repository at this point
Copy the full SHA 54c3aa0View commit details -
Merge commit 0f329e0246d1 from llvm-project (by Dimitry Andric):
[sanitizer_symbolizer] Cast arguments for format strings in markup (#89815) When compiling the common sanitizer libraries, there are many warnings about format specifiers, similar to: compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_markup.cpp:31:32: warning: format specifies type 'void *' but the argument has type 'uptr' (aka 'unsigned long') [-Wformat] 31 | buffer->AppendF(kFormatData, DI->start); | ~~~~~~~~~~~ ^~~~~~~~~ compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_markup_constants.h:33:46: note: format string is defined here 33 | constexpr const char *kFormatData = "{{{data:%p}}}"; | ^~ | %lu compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_markup.cpp:46:43: warning: format specifies type 'void *' but the argument has type 'uptr' (aka 'unsigned long') [-Wformat] 46 | buffer->AppendF(kFormatFrame, frame_no, address); | ~~~~~~~~~~~~ ^~~~~~~ compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_markup_constants.h:36:48: note: format string is defined here 36 | constexpr const char *kFormatFrame = "{{{bt:%u:%p}}}"; | ^~ | %lu ... This is because `uptr` is dependent on the platform, and can be either `unsigned long long`, `unsigned long`, or `unsigned int`. To fix the warnings, cast the arguments to the expected type of the format strings. PR: 276104 Reported by: pstef MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for f08bf5a - Browse repository at this point
Copy the full SHA f08bf5aView commit details -
bsdinstall: update comment related to pkg
pkg_add has been gone since 2013(?). Refer to pkg(8) instead. Sponsored by: The FreeBSD Foundation MFC after: 3 days Reviewed by: jrtc27 Differential Revision: https://reviews.freebsd.org/D44946
Bjoern A. Zeeb authored and Bjoern A. Zeeb committedApr 25, 2024 Configuration menu - View commit details
-
Copy full SHA for ad31d47 - Browse repository at this point
Copy the full SHA ad31d47View commit details -
And more comments on the #ifdef INET blocks to improve readability. While here, revert the order of two prototypes to produce minimal diff compared to stable branches. MFC with: 65767e6
Configuration menu - View commit details
-
Copy full SHA for 7358517 - Browse repository at this point
Copy the full SHA 7358517View commit details -
tftpd: Use
size_t
where appropriate.* Limit the use of `ssize_t` to only where it's needed. * Correct one case of `int` being used for a length. MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D44954
Configuration menu - View commit details
-
Copy full SHA for 1ed44fc - Browse repository at this point
Copy the full SHA 1ed44fcView commit details -
MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D44955
Configuration menu - View commit details
-
Copy full SHA for 7ab7ecf - Browse repository at this point
Copy the full SHA 7ab7ecfView commit details -
tftpd: Check the server status after each test.
* In the setup phase, wait for the server to start (or fail to start) before proceeding with the test. This makes it possible to write test cases that don't expect a response from the server without ending up in a race over the server PID file. * After running each test, wait up to 30 seconds for the server to exit and check that the exit status matches what the test case says to expect (usually 0). * We still kill and collect the server in the cleanup phase, in case the test ended early. MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D44956
Configuration menu - View commit details
-
Copy full SHA for 83a6e98 - Browse repository at this point
Copy the full SHA 83a6e98View commit details -
tftpd: Immediately reject any request shorter than 4 bytes.
MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D44957
Configuration menu - View commit details
-
Copy full SHA for 9f231af - Browse repository at this point
Copy the full SHA 9f231afView commit details -
nfscl: Revert part of commit 196787f
Commit 196787f erroneously assumed that the client code for Open/Claim_deleg_cur_FH was broken, but it was not. It was actually wireshark that was broken and indicated that the correct XDR was bogus. This reverts the part of 196787f that changed the arguments for Open/Claim_deleg_cur_FH. Found during the IETF bakeathon testing event this week. MFC after: 3 days
Rick Macklem authored and Rick Macklem committedApr 25, 2024 Configuration menu - View commit details
-
Copy full SHA for 8efba70 - Browse repository at this point
Copy the full SHA 8efba70View commit details -
Revert "config.mk: Add MK_VIMAGE knob"
This commit broke "make makeman" checks in github CI due to a lack of option description files. The split between VIMAGE and VIMAGE_SUPPORT is not clearly justified and the code is broken because there is no opt_vimage.h (it's in opt_global.h). This reverts commit 22ca6db.
Configuration menu - View commit details
-
Copy full SHA for 68cbb07 - Browse repository at this point
Copy the full SHA 68cbb07View commit details -
release: remove the RPI CM4s .dtb
This isn't actually packaged by the sysutils/rpi-firmware port, so we cannot include it in the image. Fix the RPI release build until an interested party adds it to the port and packages are available. Reported by: cperciva
Configuration menu - View commit details
-
Copy full SHA for 9245ced - Browse repository at this point
Copy the full SHA 9245cedView commit details -
nvmecontrol: Flesh out nvmecontrol format information
The format command takes a number of different parameters. Include a brief summary of what the values mean, though since the driver's support for metadata is at best weak, 0's are almost always used for values other than -f format. Add an example that ties it all together. Sponsored by: Netflix Reviewed by: [email protected], chuck Differential Revision: https://reviews.freebsd.org/D44958
Configuration menu - View commit details
-
Copy full SHA for ce3b53f - Browse repository at this point
Copy the full SHA ce3b53fView commit details
Commits on Apr 26, 2024
-
CTL: READ(6) should be allowed on CD devices
DOS ASPI drivers use this, with this change applied it is possible to load a DOS ASPI CDROM driver and run the Windows 98 installer. Signed-off-by: HP van Braam <[email protected]> Reviewed by: imp Pull Request: freebsd/freebsd-src#1202
Configuration menu - View commit details
-
Copy full SHA for f0e59ec - Browse repository at this point
Copy the full SHA f0e59ecView commit details -
nfscl: Do not use nfso_own for delayed nfsrpc_doclose()
When an initial attempt to close an NFSv4 lock returns NFSERR_DELAY, the open structure is put on a list for delayed closing. When this is done, the nfso_own field is set to NULL, so it cannot be used by nfsrpc_doclose(). Without this patch, the NFSv4 client can crash when a NFSv4 server replies NFSERR_DELAY to a Close operation. Fortunately, most extant NFSv4 servers do not do this. This patch avoids the crash for any that do return NFSERR_DELAY for Close. Found during a IETF bakeathon testing event this week. MFC after: 5 days
Rick Macklem authored and Rick Macklem committedApr 26, 2024 Configuration menu - View commit details
-
Copy full SHA for 6251027 - Browse repository at this point
Copy the full SHA 6251027View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b10aa4 - Browse repository at this point
Copy the full SHA 9b10aa4View commit details -
date: Add support for nanoseconds
This patch introduces support for a conversion specification for nanoseconds. The format of %N is meant to be compatible with that of GNU date. The nanoseconds conversion specification is implemented directly in date(1) instead of libc (in strftime(3)) to avoid introducing non-standard functions to libc at this time and modifying struct tm. Apart from introducing the nanoseconds conversion specification, this patch brings the following changes: - The "ns" format for ISO 8061 dates is now unlocked. E.g., date -Ins prints: 2024-04-22T12:20:28,763742224+02:00 - The -r flag when fed a file is now aware of the nanosecond part of the last modification time. - date(1) is now able to set the time with nanosecond precision. It is not possible as of now to do that by specifying nanoseconds directly via the command-line arguments. Instead, the -r flag can be used. - date(1) is now using the clock_gettime(3) family of functions instead of ctime(3) family of functions where possible. Reviewed by: des, markj Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D44905
Configuration menu - View commit details
-
Copy full SHA for eeb04a7 - Browse repository at this point
Copy the full SHA eeb04a7View commit details -
style.9: Document the existence of tools/build/checkstyle9.pl
MFC after: 3 days Sponsored by: Klara, Inc.
Configuration menu - View commit details
-
Copy full SHA for 5626f9e - Browse repository at this point
Copy the full SHA 5626f9eView commit details -
date: Fix tests by initializing timespec structure
The tests related to nanosecond support were failing on amd64 due to uninitialized timespec structure. Fixes: eeb04a7 date: Add support for nanoseconds Reviewed by: markj Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D44975
Configuration menu - View commit details
-
Copy full SHA for 7b390cb - Browse repository at this point
Copy the full SHA 7b390cbView commit details -
script: minor style improvements
Fix some nits pointed out by checkstyle9.pl in advance of functional changes to script(1). Reviewed by: des Sponsored by: Modirum MDPay Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D44167
Configuration menu - View commit details
-
Copy full SHA for 4459abe - Browse repository at this point
Copy the full SHA 4459abeView commit details -
script: handle terminal resize on SIGWINCH
Add a -w flag to forward terminal resize events on to the child, which can be useful in some circumstances to avoid terminal corruption. Reviewed by: des Co-authored-by: Xavier Beaudouin <[email protected]> Sponsored by: Modirum MDPay Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D44167
Configuration menu - View commit details
-
Copy full SHA for 8ceac8e - Browse repository at this point
Copy the full SHA 8ceac8eView commit details
Commits on Apr 27, 2024
-
krpc: Ref cnt the client structures for TLS upcalls
A crash occurred during testing, where the client structures had already been free'd when the upcall thread tried to lock them. This patch acquires a reference count on both of the structures and these are released when the upcall is done, so that the structures cannot be free'd prematurely. This happened because the testing is done over a very slow vpn. Found during a IETF bakeathon testing event this week. MFC after: 5 days
Rick Macklem authored and Rick Macklem committedApr 27, 2024 Configuration menu - View commit details
-
Copy full SHA for 4ba444d - Browse repository at this point
Copy the full SHA 4ba444dView commit details
Commits on Aug 10, 2024
-
ldconfig: document changed default byte-order
Document that the hints file is created in little-endian byte-order by default now. The -B option can be used to create a big-endian hints file. Currently, both formats are accepted by the run-time linker on all architectures. MFC after: 3 days Relnotes: yes
Configuration menu - View commit details
-
Copy full SHA for ceb6d49 - Browse repository at this point
Copy the full SHA ceb6d49View commit details -
man: do not ignore the exit status of roff tools
PR: 223516 Approved by: emaste, bapt Differential Revision: https://reviews.freebsd.org/D44798
Configuration menu - View commit details
-
Copy full SHA for 4973acc - Browse repository at this point
Copy the full SHA 4973accView commit details -
binmiscctl.8: Remove a double word
- s/the the/the/ MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for 759886d - Browse repository at this point
Copy the full SHA 759886dView commit details -
nvmecontrol(8): Remove a double word in a source code comment
- s/the the/the/ MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for d2899bd - Browse repository at this point
Copy the full SHA d2899bdView commit details -
tarfs(5): Grammar fix for a source code comment
- s/the the/of the/ MFC after:i 3 days
Configuration menu - View commit details
-
Copy full SHA for 425384c - Browse repository at this point
Copy the full SHA 425384cView commit details -
timerfd.2: Remove a double word
- s/is is/is/ MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for 1e2f1cf - Browse repository at this point
Copy the full SHA 1e2f1cfView commit details -
ifconfig(8): Fix two typos in source code comments
- s/the the/the/ MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for cd28e59 - Browse repository at this point
Copy the full SHA cd28e59View commit details -
mwlstats: Fix a typo in an error message
- s/the the/the/ MFC after: 5 days
Configuration menu - View commit details
-
Copy full SHA for 9aad8fb - Browse repository at this point
Copy the full SHA 9aad8fbView commit details -
sys: Remove two double words in source code comments
- s/of of/of/ MFC after: 5 days
Configuration menu - View commit details
-
Copy full SHA for 1b98b75 - Browse repository at this point
Copy the full SHA 1b98b75View commit details -
arm64: Remove a double word in a source code comment
- s/of of/of/ MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for bfb914b - Browse repository at this point
Copy the full SHA bfb914bView commit details -
NOTES: Remove a double word in comment
- s/of of/of/ MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for 88fac8f - Browse repository at this point
Copy the full SHA 88fac8fView commit details -
bhnd(4): Remove a double word in a source code comment
- s/of of/of/ MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for 2c3494b - Browse repository at this point
Copy the full SHA 2c3494bView commit details -
usb(4): Remove a double word in a source code comment
- s/of of/of/ MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for 2c23bbd - Browse repository at this point
Copy the full SHA 2c23bbdView commit details -
safe(4): Remove a double word in a source code comment
- s/of of/of/ MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for 0aaf639 - Browse repository at this point
Copy the full SHA 0aaf639View commit details -
i386: Fix a typo in a source code comment
- s/slighly/slightly/ MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for ebeda08 - Browse repository at this point
Copy the full SHA ebeda08View commit details -
ds1307(4): Fix a typo in a source code comment
- s/slighly/slightly/ MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for f0e2ebb - Browse repository at this point
Copy the full SHA f0e2ebbView commit details -
rtld(1): minor clarification for LD_STATIC_TLS_EXTRA
Also properly style the paragraph. Sponsored by: The FreeBSD Foundation MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for 00d3a90 - Browse repository at this point
Copy the full SHA 00d3a90View commit details -
Merge llvm-project release/18.x llvmorg-18.1.4-0-ge6c3289804a6
This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvm-project release/18.x llvmorg-18.1.4-0-ge6c3289804a6. PR: 276104 MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for 81df346 - Browse repository at this point
Copy the full SHA 81df346View commit details -
libpmc: Import AMD Zen 4 PMU events
MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for 39896e4 - Browse repository at this point
Copy the full SHA 39896e4View commit details -
When in netmap (emulated) mode, wireguard interfaces prepend or strip a dummy ethernet header when interfacing with netmap. The netmap application thus sees unencrypted, de-encapsulated frames with a fixed header. In this mode, netmap hooks the if_input and if_transmit routines of the ifnet. Packets from the host TX ring are handled by wg_if_input(), which simply hands them to the netisr layer; packets which would otherwise be tunneled are intercepted in wg_output() and placed in the host RX ring. The "physical" TX ring is processed by wg_transmit(), which behaves identically to wg_output() when netmap is not enabled, and packets appear in the "physical" RX ring by hooking wg_deliver_in(). Reviewed by: vmaffione MFC after: 1 month Sponsored by: Klara, Inc. Sponsored by: Zenarmor Differential Revision: https://reviews.freebsd.org/D43460
Configuration menu - View commit details
-
Copy full SHA for b24b0d5 - Browse repository at this point
Copy the full SHA b24b0d5View commit details
Commits on Aug 11, 2024
-
wg tests: Add a simple regression test case for netmap support
MFC after: 1 month Sponsored by: Klara, Inc. Sponsored by: Zenarmor
Configuration menu - View commit details
-
Copy full SHA for bb2efb0 - Browse repository at this point
Copy the full SHA bb2efb0View commit details -
graid3: Fix teardown in g_raid3_try_destroy()
Commit 33cb9b3 replaced a g_raid3_destroy_device() call with a g_raid3_free_device() call, which was incorrect and could lead to a panic if a RAID3 GEOM failed to start (e.g., due to missing disks). Reported by: graid3 tests Fixes: 33cb9b3 ("graid3: Fix teardown races") MFC after: 3 days Sponsored by: Klara, Inc.
Configuration menu - View commit details
-
Copy full SHA for 707ec89 - Browse repository at this point
Copy the full SHA 707ec89View commit details -
ldconfig: fix man-page - duplicate dot at end of sentence
Reported by: gbe
Configuration menu - View commit details
-
Copy full SHA for 86d1098 - Browse repository at this point
Copy the full SHA 86d1098View commit details -
adduser: A few more improvements.
MFC after: 1 week Reviewed by: jrm Differential Revision: https://reviews.freebsd.org/D44871
Configuration menu - View commit details
-
Copy full SHA for 09b5a67 - Browse repository at this point
Copy the full SHA 09b5a67View commit details -
ahc(4): resolve some minor nits
In ahc_init(), qoutfifo is already assigned to effectively the same value a couple lines up, except in the first assignment it uses the proper definition; keep the more descriptive assignment. ahc_targetcmd_offset() gets the offset wrong entirely; as per the area of ahc_init() this diff also touches, targetcmds is laid out first in the shared map and it's followed by the qoutfifo. As a result, we'd generally be getting negative offsets here. We can't actually do a partial sync anyways, so there was no consequence to getting this wrong. Reviewed by: imp, mav Differential Revision: https://reviews.freebsd.org/D44859
Configuration menu - View commit details
-
Copy full SHA for 8b511da - Browse repository at this point
Copy the full SHA 8b511daView commit details -
ahc(4)/ahd(4): fix target mode on ARM
One of the comments in ahc_execute_scb() notes that the CAM direction is actually w.r.t. the initiator. As a consequence, all of our sync ops end up being wrong because the direction is flipped from that of the transfer. Fix it to do proper invalidation and avoid spewing random garbage out on the SCSI bus. Reported and tested by: HP van Braam <[email protected]> Reviewed by: imp, mav Differential Revision: https://reviews.freebsd.org/D44860
Configuration menu - View commit details
-
Copy full SHA for 68840f7 - Browse repository at this point
Copy the full SHA 68840f7View commit details -
vmm(4): Fix a typo in a kernel message
- s/cant/can't/ MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for ebba87d - Browse repository at this point
Copy the full SHA ebba87dView commit details -
wtap: Fix typos in kernel messages
- s/cant/can't/ MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for d00e014 - Browse repository at this point
Copy the full SHA d00e014View commit details -
geom(4): Fix a typo in a source code comment
- s/cant/can't/ MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for b1e86a7 - Browse repository at this point
Copy the full SHA b1e86a7View commit details -
uipc_domain: Fix a typo in a source code comment
- s/cant/can't/ MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for 46c6900 - Browse repository at this point
Copy the full SHA 46c6900View commit details -
freescale: Fix a typo in a source code comment
- s/cant/can't/ MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for 628b98a - Browse repository at this point
Copy the full SHA 628b98aView commit details -
Revert "dtrace: make 'ring' and 'fill' policies imply 'noswitch' flag"
This reverts commit e92491d. The general idea looked good to me. In particular, it allowed to save some memory and avoid memory allocation failures when a large buffer size was requested along with ring and fill policies. But I didn't take into account that the second, supposedly unused buffer, was actually used as the scratch buffer. The scratch buffer is used as a temporary space for DTrace subroutines like copyin, copyinstr, and alloca. I think that the change can be fixed by allocating a separate smaller buffer for the scratch buffer, but that fix would require more work than I am able to do now. Hence the revert. Reported by: Domagoj Stolfa Diagnosed by: Domagoj Stolfa, markj MFC after: immediately
Configuration menu - View commit details
-
Copy full SHA for 4aa5d34 - Browse repository at this point
Copy the full SHA 4aa5d34View commit details -
mfc-candidates: move pretty printing into lua
d51c590 moved the MFC hash matching logic into a lua utility script but left the output formatting in the shell script. Simplify this slightly by just printing the formatted output from lua. Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D44836
Configuration menu - View commit details
-
Copy full SHA for fcc8b6f - Browse repository at this point
Copy the full SHA fcc8b6fView commit details -
bsd.subdir.mk: improve
SUBDIR.${MK_FOO}
advice- Remove superfluous whitespace by removing trailing whitespace before `\` (line continuation character) - Quote `SUBDIR.` to clarify the fact that this is a variable reference--not the end of a sentence.
Configuration menu - View commit details
-
Copy full SHA for 06e62ac - Browse repository at this point
Copy the full SHA 06e62acView commit details -
OpenSSL: use the upstream provided version.map files for the fips/leg…
…acy providers This change introduces a static copy of the fips and legacy linker version maps generated by the OpenSSL 3.0.13 build process. This unbreaks the fips and legacy providers by not exposing unnecessary symbols from the fips/legacy provider shared objects shared with other providers (base, default) and libcrypto. More discussion: Prior to this change, loading the fips provider indirectly from a FreeBSD 14.0-CURRENT and 15.0-CURRENT host would result in a process-wide deadlock when invoking select OpenSSL APIs (CONF_modules_load* in this particular example). Speaking with the upstream maintainers [1], it became obvious that the FreeBSD base system was incorrectly building/linking the fips provider, resulting in a symbol collision at runtime, and thus a process-wide deadlock in specific circumstances. The fips provider would deadlock when trying to acquire a write lock on internal structures which should have only been available to the base and default providers, as certain preprocessor ifdefs only allow specific internal calls to be made with the base and default providers. 1. openssl/openssl#24202 Differential Revision: https://reviews.freebsd.org/D44892
Configuration menu - View commit details
-
Copy full SHA for 299d24e - Browse repository at this point
Copy the full SHA 299d24eView commit details -
Revert "OpenSSL: use the upstream provided version.map files for the …
…fips/legacy providers" This change is still under review and should not have been merged directly to main (yet). This is a case and point for using `push.default` to nothing instead of matching or simple. This reverts commit 42ce242.
Configuration menu - View commit details
-
Copy full SHA for aca11fc - Browse repository at this point
Copy the full SHA aca11fcView commit details -
Add a few missed libclang_rt files to ObsoleteFiles.inc
PR: 276104 Reported by: Mark Millard <[email protected]> MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for 5afdae0 - Browse repository at this point
Copy the full SHA 5afdae0View commit details -
Enable L1SS handling on RPI4 pcib
Thanks to @kevans91 for pointing me in the right direction. FreeBSD had the same bug as Linux (see https://bugzilla.kernel.org/show_bug.cgi?id=217276) where the ultimate solution was to honor the brcm,enable-l1ss FDT property. In current versions of the dtb files this property has been added by default. Without this on many, many pcie addin cards the pcib will Serror when trying to assert the clreq# pin on the pcie bus. Many cards do not have these hooked up. PR: 260131, 277638, 277605 Reviewed-by: emaste Signed-off-by: HP van Braam <[email protected]> Pull-request: freebsd/freebsd-src#1179
Configuration menu - View commit details
-
Copy full SHA for 9e4d347 - Browse repository at this point
Copy the full SHA 9e4d347View commit details -
riscv: create a convenience composite macro
Define PTE_TO_VM_PAGE to compose the PHYS_TO_VM_PAGE and PTE_TO_PHYS macros. Use it where appropriate, and drop some variables that it makes unnecessary. Reviewed by: jhb (previous version) Differential Revision: https://reviews.freebsd.org/D44700
Configuration menu - View commit details
-
Copy full SHA for 04f9e6c - Browse repository at this point
Copy the full SHA 04f9e6cView commit details -
thread: Simplify sanitizer integration with thread creation
fork() may allocate a new thread in one of two ways: from UMA, or cached in a freed proc that was just allocated from UMA. In either case, KASAN and KMSAN need to initialize some state; in particular they need to initialize the shadow mapping of the new thread's stack. This is done differently between KASAN and KMSAN, which is confusing. This patch improves things a bit: - Add a new thread_recycle() function, which moves all kernel stack handling out of kern_fork.c, since it doesn't really belong there. - Then, thread_alloc_stack() has only one local caller, so just inline it. - Avoid redundant shadow stack initialization: thread_alloc() initializes the KMSAN shadow stack (via kmsan_thread_alloc()) even through vm_thread_new() already did that. - Add kasan_thread_alloc(), for consistency with kmsan_thread_alloc(). No functional change intended. Reviewed by: khng MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D44891
Configuration menu - View commit details
-
Copy full SHA for 730668c - Browse repository at this point
Copy the full SHA 730668cView commit details -
ng_hci: Add sockaddr validation to sendto()
ng_btsocket_hci_raw_send() wasn't verifying that the destination address specified by sendto() is large enough to fill a struct sockaddr_hci. Thus, when copying the socket address into an mbuf, ng_btsocket_hci_raw_send() may read past the end of the input sockaddr while copying. In practice this is effectively harmless since ng_btsocket_hci_raw_output() only uses the address to identify a netgraph node. Reported by: Oliver Sieber <[email protected]> MFC after: 1 week Sponsored by: The FreeBSD Foundation
Configuration menu - View commit details
-
Copy full SHA for a4d3342 - Browse repository at this point
Copy the full SHA a4d3342View commit details -
if_bridge: clean up INET/INET6 handling
The if_bridge contains several instances of: if (AF_INET code ... #ifdef INET6 AF_INET6 code ... #endif ) { ... Clean this up by adding a couple of macros at the top of the file that are conditionally defined based on whether INET and/or INET6 are enabled, which makes the code more readable and easier to maintain. No functional change intended. Reviewed by: zlei, markj MFC after: 1 week Pull Request: freebsd/freebsd-src#1191
Configuration menu - View commit details
-
Copy full SHA for b38e3e6 - Browse repository at this point
Copy the full SHA b38e3e6View commit details -
thread: Add a missing include of asan.h
I didn't notice this during testing because invariants-enabled kernels implicitly include asan.h via kassert.h. Reported by: Lexi Winter <[email protected]> Fixes: 800da34 ("thread: Simplify sanitizer integration with thread creation")
Configuration menu - View commit details
-
Copy full SHA for fa772bb - Browse repository at this point
Copy the full SHA fa772bbView commit details -
mfc-candidates: use stable/14 as default MFC-to branch
This tool is typically invoked from within a working tree containing the desired MFC target branch, which is detected automatically. It also has a default for when it is invoked from elsewhere. Switch the default to the most recent branch, stable/14. Sponsored by: The FreeBSD Foundation
Configuration menu - View commit details
-
Copy full SHA for 228963d - Browse repository at this point
Copy the full SHA 228963dView commit details -
libcxxrt: define SHLIBDIR before including bsd.own.mk
Otherwise bsd.own.mk overrides it, causing libcxxrt.so.1 to be erroneously installed into /usr/lib. Also add an ObsoleteFiles.inc entry, for removing the bad copy. Reported by: Josef 'Jeff' Sipek <[email protected]> Fixes: da77a1b
Configuration menu - View commit details
-
Copy full SHA for a7a3e51 - Browse repository at this point
Copy the full SHA a7a3e51View commit details -
Reported by: Jose Luis Duran <[email protected]> Fixes: b373338 MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D44871
Configuration menu - View commit details
-
Copy full SHA for 10b7c6f - Browse repository at this point
Copy the full SHA 10b7c6fView commit details -
geli: add a read-only kern.geom.eli.use_uma_bytes sysctl
It reports the value of the g_eli_alloc_sz variable. Allocations of this size or less will use UMA. Larger allocations will use malloc. Since malloc is slower, it is useful for users to know this variable so they can avoid such allocations. For example, ZFS users can set vfs.zfs.vdev.aggregation_limit to this value. MFC after: 1 week Sponsored by: Axcient Reviewed by: markj, imp Differential Revision: https://reviews.freebsd.org/D44904
Configuration menu - View commit details
-
Copy full SHA for 344bab2 - Browse repository at this point
Copy the full SHA 344bab2View commit details -
libthr: always use __libc_interposing_slot()
Use __libc_interposing_slot() in favor of __libsys_interposing_slot() so that the interposing interface is entierly between libc and libthr with libsys only involved as an implementation detail. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D44880
Configuration menu - View commit details
-
Copy full SHA for b815d6d - Browse repository at this point
Copy the full SHA b815d6dView commit details -
Make __libsys_interposing_slot libsys only
Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D44881
Configuration menu - View commit details
-
Copy full SHA for 67856e6 - Browse repository at this point
Copy the full SHA 67856e6View commit details -
src.conf.5: rebuild after WITH_NVME changes
WITH_NVME is no longer marked broken on armv7, riscv64, or powerpc. Fixes: 2fda3ab WITH_NVME: Remove from broken. Differential Revision: https://reviews.freebsd.org/D44850
Configuration menu - View commit details
-
Copy full SHA for 20c9114 - Browse repository at this point
Copy the full SHA 20c9114View commit details -
openssl: don't export nonexistant symbols
These are all OpenSSL 1.1.0 and 1.1.1 symbols that aren't present in our OpenSSL 3.0 builds. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D44249
Configuration menu - View commit details
-
Copy full SHA for f2514aa - Browse repository at this point
Copy the full SHA f2514aaView commit details -
libsys/arm: make vfork less of an outlier
Following the pattern of other architectures, make __sys_vfork the main symbol and _vfork and vfork weak aliases. This avoids the need to special case vfork in the generated list of symbols. Differential Revision: https://reviews.freebsd.org/D44330
Configuration menu - View commit details
-
Copy full SHA for 5d2bd4d - Browse repository at this point
Copy the full SHA 5d2bd4dView commit details -
libcxxrt: align more with libc/Makefile
Use src.opts.mk instead of bsd.own.mk and define PACKAGE first. Fixes: da77a1b libcxxrt: don't export nonexistant symbols
Configuration menu - View commit details
-
Copy full SHA for c70dd9e - Browse repository at this point
Copy the full SHA c70dd9eView commit details -
MFC after: 3 days Sponsored by: Axcient Reviewed by: imp, pauamma (manpages) Differential Revision: https://reviews.freebsd.org/D44907
Configuration menu - View commit details
-
Copy full SHA for 7cbace0 - Browse repository at this point
Copy the full SHA 7cbace0View commit details -
- add const to the appropriate places in the libipsec public API and the relevant internal functions needed to support that. - replace caddr_t with c_caddr_t in ipsec_dump_policy() - update the ipsec_dump_policy manpage to use c_caddr_t (this manpage was already wrong as it had "char *" instead of caddr_t previously). While here, update pfkeyv2.h to not cast away const in the PFKEY_*() macros. This should not cause any ABI changes as the actual types have not changed. Reviewed by: imp Pull Request: freebsd/freebsd-src#1099
Configuration menu - View commit details
-
Copy full SHA for e619c3a - Browse repository at this point
Copy the full SHA e619c3aView commit details -
linux: ignore setsockopt(IPV6_RECVERR)
Under Linux, the socket options IP_RECVERR and IPV6_RECVERR are used to receive socket errors via a dedicated 'error queue' which can be retrieved via recvmsg(). FreeBSD does not support this functionality. For IPv4, the sysctl compat.linux.ignore_ip_recverr can be set to 1 to silently ignore attempts to set IP_RECVERR and return success to the application, which is wrong, but is required for (among other things) a functional DNS client in recent versions of glibc. Add support for ignoring IPV6_RECVERR, controlled by the same sysctl. This fixes DNS in Linux when using IPv6 resolvers. Reviewed by: imp, Jose Luis Duran Pull Request: freebsd/freebsd-src#1118
Configuration menu - View commit details
-
Copy full SHA for 8d47b9c - Browse repository at this point
Copy the full SHA 8d47b9cView commit details -
package: move hv_{vss,kvp}_daemon into hyperv-tools
Reviewed by: imp, manu Pull Request: freebsd/freebsd-src#1170
Configuration menu - View commit details
-
Copy full SHA for 8ad80ea - Browse repository at this point
Copy the full SHA 8ad80eaView commit details -
package: move cron into its own package
Reviewed by: imp, manu, Mina Galic Pull Request: freebsd/freebsd-src#1172
Configuration menu - View commit details
-
Copy full SHA for 449489a - Browse repository at this point
Copy the full SHA 449489aView commit details -
package: add DESC and COMMENT for cron package
Reviewed by: imp, manu, Mina Galic Pull Request: freebsd/freebsd-src#1172
Configuration menu - View commit details
-
Copy full SHA for b6a6ff8 - Browse repository at this point
Copy the full SHA b6a6ff8View commit details -
share/examples: move examples into appropriate packages
Allow a new variable SE_xxxPACKAGE to be used to place an example group into a package. Move the following examples into existing appropriate packages: - bhyve examples into FreeBSD-bhyve - bootforth examples into FreeBSD-bootloader - csh examples into FreeBSD-csh - ipfw examples into FreeBSD-ipfw - jail examples into FreeBSD-jail - pf examples into FreeBSD-pf - ppp examples into FreeBSD-ppp - printing examples into FreeBSD-lp - uefisign examples into FreeBSD-efi-tools - ypldap examples into FreeBSD-yp - hast examples into FreeBSD-hast Move all other examples into the new 'FreeBSD-examples' package. This removes a significant number of files from the FreeBSD-utilities package. Reviewed by: imp, manu Pull Request: freebsd/freebsd-src#1176
Configuration menu - View commit details
-
Copy full SHA for 4481979 - Browse repository at this point
Copy the full SHA 4481979View commit details -
umount: Support partitions & slices with -d option
Signed-off-by: Ricardo Branco <[email protected]> Reviewed by: imp Pull Request: freebsd/freebsd-src#1183
Configuration menu - View commit details
-
Copy full SHA for 1c5fe5d - Browse repository at this point
Copy the full SHA 1c5fe5dView commit details -
alc(4): disable MSI-X by default on Killer cards
Several users with alc(4)-based "Killer" Ethernet cards have reported issues with this driver not passing traffic, which are solved by disabling MSI-X using the provided tunable. To work around this issue, disable MSI-X by default on this card. This is done by having msix_disable default to 2, which means "auto-detect". The user can still override this to either 0 or 1 as desired. Since these are slow (1Gbps) Ethernet ICs used in low-end systems, it's unlikely this will cause any practical performance issues; on the other hand, the card not working by default likely causes issues for many new FreeBSD users who find their network port doesn't work and have no idea why. PR: 230807 MFC after: 1 week Reviewed by: imp Pull Request: freebsd/freebsd-src#1185
Configuration menu - View commit details
-
Copy full SHA for 67dbdc8 - Browse repository at this point
Copy the full SHA 67dbdc8View commit details -
ifconfig tunnelfib is implemented in wg(4)
MFC After: 1 week Reviewed by: imp, zlei, kevans Pull Request: freebsd/freebsd-src#1186
Configuration menu - View commit details
-
Copy full SHA for 0dcd54c - Browse repository at this point
Copy the full SHA 0dcd54cView commit details -
swab.c(libc): use a simplified version of byte swapping
This version of swab function simplifies the logic of swapping adjacent bytes. Previous version of swab() used an arbitrary unrolling, which was relevant back in the day but unnecessary for modern compilers, as if the input size is known at compile time, they can do it automatically. This version of swab() is inspired by musl. A similar version can be found at: https://github.com/openbsd/src/blob/master/lib/libc/string/swab.c Signed-off-by: rilysh <[email protected]> Reviewed by: imp Pull Request: freebsd/freebsd-src#1086
Configuration menu - View commit details
-
Copy full SHA for 0b05154 - Browse repository at this point
Copy the full SHA 0b05154View commit details -
zfsbootcfg(8), zpool_influxdb(8): move to the zfs package
These tools are only useful on a system running ZFS. Reviewed by: imp, manu Pull Request: freebsd/freebsd-src#1175
Configuration menu - View commit details
-
Copy full SHA for 71d682f - Browse repository at this point
Copy the full SHA 71d682fView commit details -
Remove WITHOUT_CAPSICUM build support
Capsicum is non-optional as of c24c117 ("Remove WITHOUT_{CAPSICUM,CASPER} options"). `#ifndef WITHOUT_CAPSICUM` is left in the source for the benefit of downstream consumers, but is never defined in FreeBSD. Reviewed by: oshogbo Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D42077
Configuration menu - View commit details
-
Copy full SHA for 2107d4f - Browse repository at this point
Copy the full SHA 2107d4fView commit details -
src.conf: regen after 91d35fb, WITHOUT_CAPSICUM removal
Sponsored by: The FreeBSD Foundation
Configuration menu - View commit details
-
Copy full SHA for a98c00c - Browse repository at this point
Copy the full SHA a98c00cView commit details -
Update manual page references and macros to align to mandoc syntax
xlocale.3: Comment out reference to atof_l(3), atoi_l(3), atol_l(3), atoll_l(3) These manual page references do not exist. lagg.4: Change the reference for /etc/rc.conf from a reference link .Xr -> .Pa based on the context within the manual page it is used. buf.9: Remove .Xr entries from the file The buf.9 manual page contains a commented out .Xr reference. The <filmmein> 9 entry is a placeholder and has been removed for clarity. Reviewed by: mhorne Pull Request: freebsd/freebsd-src#1114
Configuration menu - View commit details
-
Copy full SHA for 0d8b6f0 - Browse repository at this point
Copy the full SHA 0d8b6f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 118043f - Browse repository at this point
Copy the full SHA 118043fView commit details -
This is used by 802.3 Ethernet. (Also be used by 802.4 Token Bus and 802.5 Token Ring, but we don't support those.) This was accidentally removed along with FDDI support in commit 0437c8e, presumably because comments implied it was used only by FDDI or Token Ring. Fixes: 0437c8e ("Remove support for FDDI networks.") Reviewed-by: emaste Signed-off-by: Denny Page <[email protected]> Pull-request: freebsd/freebsd-src#1166
Configuration menu - View commit details
-
Copy full SHA for 264729b - Browse repository at this point
Copy the full SHA 264729bView commit details -
kern_thread.c: remove unneeded include of sys/param.h
Handled by sys/systm.h already. Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D44867
Configuration menu - View commit details
-
Copy full SHA for 4e77c49 - Browse repository at this point
Copy the full SHA 4e77c49View commit details -
kern_thr.c/kern_sig.c: remove sys/cdefs.h
Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D44867
Configuration menu - View commit details
-
Copy full SHA for ace373f - Browse repository at this point
Copy the full SHA ace373fView commit details -
kern_thr.c: normalize includes
Remove extra sys/param.h, provided by sys/systm.h. Order the rest alphabetically. Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D44867
Configuration menu - View commit details
-
Copy full SHA for df3aa87 - Browse repository at this point
Copy the full SHA df3aa87View commit details -
sigqueue(2): add impl-specific flag __SIGQUEUE_TID
The flag allows the pid argument to designate a thread from the calling process. The flag value is carved from the high bit of the signal number, which slightly changes the ABI of syscall. Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D44867
Configuration menu - View commit details
-
Copy full SHA for 5b5b336 - Browse repository at this point
Copy the full SHA 5b5b336View commit details -
sigqueue(2): Document __SIGQUEUE_TID
Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D44867
Configuration menu - View commit details
-
Copy full SHA for b89a631 - Browse repository at this point
Copy the full SHA b89a631View commit details -
sys/signal.h: move union sigval into dedicated private header sys/_si…
…gval.h Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D44867
Configuration menu - View commit details
-
Copy full SHA for 9d4a9af - Browse repository at this point
Copy the full SHA 9d4a9afView commit details -
libthr: add pthread_sigqueue(3)
PR: 278459 Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D44867
Configuration menu - View commit details
-
Copy full SHA for 95a3949 - Browse repository at this point
Copy the full SHA 95a3949View commit details -
Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D44867
Configuration menu - View commit details
-
Copy full SHA for 1cd0054 - Browse repository at this point
Copy the full SHA 1cd0054View commit details -
Add test for pthread_sigqueue(3)
Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D44867
Configuration menu - View commit details
-
Copy full SHA for ff379b9 - Browse repository at this point
Copy the full SHA ff379b9View commit details -
nfsserver: Default to nfs_reserved_port_only="YES"
This setting causes the NFS server to check that all RPCs are sent from a privileged (<= 1023) port, rejecting those that are not. This slightly raises the bar for a user with network access to an unauthenticated NFS server to access exported NFS filesystems. Users that use traditional NFS clients (e.g., those provided by FreeBSD or Linux) should not see any difference, assuming that unprivileged filesystem mounting is disallowed. Note that the setting is per-VNET, so may be overridden in VNET jails without affecting the rest of the system. Discussed with: freebsd-arch@ Reviewed by: rmacklem, bz, emaste Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D44906
Configuration menu - View commit details
-
Copy full SHA for 074aede - Browse repository at this point
Copy the full SHA 074aedeView commit details -
RELNOTES: Add an entry for the nfs_reserved_port_only default change
Sponsored by: The FreeBSD Foundation
Configuration menu - View commit details
-
Copy full SHA for 557912d - Browse repository at this point
Copy the full SHA 557912dView commit details -
Use MOVED_LIBS for usr/lib/libcxxrt.so.1 ObsoleteFiles.inc entry
Otherwise, the "make delete-old-libs" mechanism also deletes 32-bit copies, such as in /usr/lib32. Reported by: Josef 'Jeff' Sipek <[email protected]> Fixes: 911a647
Configuration menu - View commit details
-
Copy full SHA for 86a429d - Browse repository at this point
Copy the full SHA 86a429dView commit details -
camcontrol: Enable WITH_NVME unconditionally
MK_NVME is no longer marked broken for any platforms, so just include support for it always as we do for ATA and SCSI. Reviewed by: emaste Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D44841
Configuration menu - View commit details
-
Copy full SHA for ab758ac - Browse repository at this point
Copy the full SHA ab758acView commit details -
nvmecontrol: Always build instead of being conditional on WITH_NVME
This now builds fine on all platforms so always include it similar to other tools such as camcontrol. Reviewed by: imp, emaste Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D44842
Configuration menu - View commit details
-
Copy full SHA for d9f3784 - Browse repository at this point
Copy the full SHA d9f3784View commit details -
Remove the MK_NVME build option
The drivers and utilities are now built and installed unconditionally. Reviewed by: imp, emaste Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D44843
Configuration menu - View commit details
-
Copy full SHA for 32de3db - Browse repository at this point
Copy the full SHA 32de3dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9d1933e - Browse repository at this point
Copy the full SHA 9d1933eView commit details -
libc: make strerror_rl() usable for libc
Reviewed by: imp Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D44916
Configuration menu - View commit details
-
Copy full SHA for 93dd428 - Browse repository at this point
Copy the full SHA 93dd428View commit details -
__vprintf(): switch from strerror() to strerror_rl()
This eliminates the use of non-thread-safe function in printf*() family, and make the call locale-aware. Also, it stops obliterating the strerror() static buffer, which aligns with the POSIX requirement that implementations must behave as if no standard-mandated functions call strerror(). PR: 278556 Reported by: Jonathan Gruber <[email protected]> Reviewed by: imp Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D44916
Configuration menu - View commit details
-
Copy full SHA for 151f2b2 - Browse repository at this point
Copy the full SHA 151f2b2View commit details -
libc: minor style, wrap long lines
Reviewed by: imp Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D44916
Configuration menu - View commit details
-
Copy full SHA for 921cc15 - Browse repository at this point
Copy the full SHA 921cc15View commit details -
libc printf_render_errno(): do not use strerror()
Reviewed by: imp Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D44916
Configuration menu - View commit details
-
Copy full SHA for aa33692 - Browse repository at this point
Copy the full SHA aa33692View commit details -
pow,powf(3),__ieee754_rem_pio2(f): Avoid negative integer left shift UB
A compiler clever enough to know that z is positive with a non-zero biased exponent could, for example, optimize away the scalbnf(z,n) in pow() because behavior for left shift of negative values is undefined. `n` is negative when y*log2(|x|) < -0.5. i.e. |x^y| < sqrt(0.5) The intended behavior for operator<< in this code is to shift the two's complement representation of the first operand. In the pow() functions, the result is added to the IEEE 754 exponent of z = 2^y'. n may be negative enough to underflow the biased IEEE 754 exponent below zero, which is manifested in the sign bit of j (which would correspond to the IEEE 754 sign bit). The conversion from uint32_t to int32_t for out-of-int32_t-range values is implementation defined. The assumed behavior of interpreting the uint32_t value as a two's complement representation of a signed value is already assumed in many parts of the code, such as uses of GET_FLOAT_WORD() with signed integers. This code passes all the current tests, and makes some out of tree fuzzing tests pass again rather than hit UB (detailed in the commentary of the pull request). Signed-off-by: Karl Tomlinson <[email protected]> Reviewed by: imp, steve kargl, dim Pull Request: freebsd/freebsd-src#1137
Configuration menu - View commit details
-
Copy full SHA for 6ea6d81 - Browse repository at this point
Copy the full SHA 6ea6d81View commit details -
checkstyle9.pl: Warn if there's no SOB line
If there's no Signed-off-by: line, complain. Sponsored by: Netflix
Configuration menu - View commit details
-
Copy full SHA for 838d124 - Browse repository at this point
Copy the full SHA 838d124View commit details -
ahc(4) clean up old Linux defines
Linux removed theirs starting in 2018 in commit: "scsi: aic7xxx: Fix build using bare-metal toolchain" Also remove now-useless sys/cdefs.h includes Signed-off-by: HP van Braam <[email protected]> Reviewed by: imp, mav, emaste Pull Request: freebsd/freebsd-src#1189
Configuration menu - View commit details
-
Copy full SHA for 8f9eb97 - Browse repository at this point
Copy the full SHA 8f9eb97View commit details -
ahc(4)/ahd(4): target mode: cancel outstanding AIOs and INOTs
When disabling a lun there can still be outstanding AIOs and INOTs, when this happens previously the lun would just fail to disable and trying to re-use the lun would break the card. isp(4) in target mode does the same thing when disabling a lun, in testing this allows re-starting of ctld(8) with connected initiators and allows initiators to gracefully resume afterwards. Signed-off-by: HP van Braam <[email protected]> Reviewed by: imp, mav Pull Request: freebsd/freebsd-src#1190
Configuration menu - View commit details
-
Copy full SHA for e75f3c3 - Browse repository at this point
Copy the full SHA e75f3c3View commit details -
sys/net/if_bridge: support non-INET kernels
Reviewed by: imp Pull Request: freebsd/freebsd-src#1159
Configuration menu - View commit details
-
Copy full SHA for f124d32 - Browse repository at this point
Copy the full SHA f124d32View commit details -
sys/netpfil/pf: fix non-INET module build
pf.ko, when built as a module without 'options INET' but with 'options VIMAGE', won't load: link_elf_obj: symbol vnet_entry_in_loopback_mask undefined This is because it uses IN_LOOPBACK(), which in the VIMAGE case uses INET-specific symbols. Fix by making this check conditional on #ifdef INET. Reviewed by: imp Pull Request: freebsd/freebsd-src#1157
Configuration menu - View commit details
-
Copy full SHA for 437d1f9 - Browse repository at this point
Copy the full SHA 437d1f9View commit details -
sys: add conf/std.debug, generic debugging options
The new sys/conf/std.debug contains the list of debugging options enabled by default in -CURRENT, so they don't need to be listed individually in every kernel config. The enabled options are the set of all debug options which were enabled for the GENERIC kernel on any platform. This means some architectures now have debugging options enabled in GENERIC which weren't previously enabled: - amd64: [1] - arm64: [2] - arm: [2]. [3] - i386: [1], [2] - powerpc: [1], [2], [3] - riscv: [2] [1] ALT_BREAK_TO_DEBUGGER is now enabled. [2] BUF_TRACKING, FULL_BUF_TRACKING, and QUEUE_MACRO_DEBUG_TRASH are now enabled. [3] DEADLKRES is now enabled. While here, move the documentation for the (commented out) K*SAN options for amd64 from GENERIC to NOTES. Reviewed by: imp Pull Request: freebsd/freebsd-src#1124
Configuration menu - View commit details
-
Copy full SHA for 91e2161 - Browse repository at this point
Copy the full SHA 91e2161View commit details -
sys/*/conf: do not use "../../conf/" when including std.*
Since config(8) searches sys/conf by default, there's no need to specify the full relative path here; replace it by the filename alone. Reviewed by: imp Pull Request: freebsd/freebsd-src#1124
Configuration menu - View commit details
-
Copy full SHA for 0043f13 - Browse repository at this point
Copy the full SHA 0043f13View commit details -
nanobsd: Set a GPT label for EFI and cfg partitions
Use efiboot0 for the EFI partition, the nomenclature efiboot + #index was taken from bsdinstall (zfsboot). Use cfg for the cfg partition. Poudriere firmware images are already using this label. PR: 278480 Reviewed by: imp Pull Request: freebsd/freebsd-src#1187
Configuration menu - View commit details
-
Copy full SHA for e68fd7e - Browse repository at this point
Copy the full SHA e68fd7eView commit details -
release: Change vmimage EFI GPT label
This matches the default bsdinstall nomenclature. PR: 278480 Reviewed by: imp Pull Request: freebsd/freebsd-src#1188
Configuration menu - View commit details
-
Copy full SHA for 5576af6 - Browse repository at this point
Copy the full SHA 5576af6View commit details -
swapon: Do not overwrite Linux swap header
Reviewed by: imp, jhb Pull Request: freebsd/freebsd-src#1084
Configuration menu - View commit details
-
Copy full SHA for b103d67 - Browse repository at this point
Copy the full SHA b103d67View commit details -
zfs: merge openzfs/zfs@1f940de07
Notable upstream pull request merges: #16038 1f940de L2ARC: Cleanup buffer re-compression #16093 c183d16 Parallel pool import #16094 cd3e6b4 Add zfetch stats in arcstats #16103 35bf258 Fix: FreeBSD Arm64 does not build currently #16104 4036b8d Refactor dbuf_read() for safer decryption #16110 9f83eec Handle FLUSH errors as "expected" #16117 c346068 zfs get: add '-t fs' and '-t vol' options Obtained from: OpenZFS OpenZFS commit: 1f940de
Configuration menu - View commit details
-
Copy full SHA for ab69b58 - Browse repository at this point
Copy the full SHA ab69b58View commit details -
git subrepo pull --force sys/contrib/subrepo-openzfs
subrepo: subdir: "sys/contrib/subrepo-openzfs" merged: "3b59372835d2" upstream: origin: "https://github.com/CTSRD-CHERI/zfs.git" branch: "cheri-hybrid" commit: "3b59372835d2" git-subrepo: version: "0.4.6" origin: "???" commit: "???"
Configuration menu - View commit details
-
Copy full SHA for 5d93c6f - Browse repository at this point
Copy the full SHA 5d93c6fView commit details -
bsdinstall/distfetch.c: check environment variables before downloadin…
…g and handle memory allocation errors 1. Currently, distfetch checks environment variables existence when it will use them or in a case (in chdir()) it doesn't check at all. As they are necessary to set before doing anything with it, check them, if they set or not, before proceeding any further. This also avoids extra cleaning when that environment variable isn't set. 2. Handle memory allocation error in malloc(PATH_MAX) and replace (sizeof const char *) with (sizeof char *). Both are similar and const doesn't have a size. 3. Indent the error message a bit in chdir(). Signed-off-by: rilysh <[email protected]> Reviewed by: imp Pull Request: freebsd/freebsd-src#1071
Configuration menu - View commit details
-
Copy full SHA for 6609f62 - Browse repository at this point
Copy the full SHA 6609f62View commit details -
sockets: inherit SO_ACCEPTFILTER from listener to child
This is crucial for operation of accept_filter(9). See added comment. Fixes: d29b95e
Configuration menu - View commit details
-
Copy full SHA for 4acff4c - Browse repository at this point
Copy the full SHA 4acff4cView commit details -
ktrace: Describe CAPFAIL trace point in man page
Update the ktrace(1) man page to describe the recently improved capability failure tracing. Approved by: markj (mentor) Reviewed by: markj MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D44886
Configuration menu - View commit details
-
Copy full SHA for 010a921 - Browse repository at this point
Copy the full SHA 010a921View commit details -
ktrace: Remove CAPFAIL from default trace points
The CAPFAIL tracepoint was recently extended to report ECAPMODE capability violations for processes that do not enter capability mode. This allows developers that are interested in Capsicumizing their programs to determine where violations are being raised. Previously, CAPFAIL only produced output for processes using Capsicum(4) capabilties. Thus, most ktrace users never received log output from the trace point. With the recent changes, this is no longer the case. Having this trace point enabled by default will produce output for all processes that use syscalls that are not permitted in capability mode. This may lead to confusion for users that are not familiar with the feature. Remove KTRFAC_CAPFAIL from ktrace's default points to avoid this. Approved by: markj (mentor) Reviewed by: markj MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D44887
Configuration menu - View commit details
-
Copy full SHA for d542786 - Browse repository at this point
Copy the full SHA d542786View commit details -
Revert "bsdinstall/distfetch.c: check environment variables before do…
…wnloading and handle memory allocation errors" This reverts commit 91bdebc. It wasn't as ready as I thought
Configuration menu - View commit details
-
Copy full SHA for bef4729 - Browse repository at this point
Copy the full SHA bef4729View commit details -
Revert "swapon: Do not overwrite Linux swap header"
This reverts commit cf04a77.This is broken on armv7, and closer scrutiny of the reviews shows I was in error when I thought it was ready.
Configuration menu - View commit details
-
Copy full SHA for e0cf6f5 - Browse repository at this point
Copy the full SHA e0cf6f5View commit details -
MFV: less: Do not trust st_size if it equals zero
This is a smaller version of upstream 1fafd968b48e5cea6c85f126d77071a8de707a55 to address the issue that less not being able to operate on files residing in pseudo-filesystems that advertize a zero size value. PR: bin/276133 MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for f6901f3 - Browse repository at this point
Copy the full SHA f6901f3View commit details -
Add a new kdc_restart rc variable that manages kdc (or krb5kdc) under daemon(8). This automatically restarts the kdc should it fail, i.e. when it's configured to use LDAP as a backend and cannot connect to its LDAP directory. Set kdc_restart="YES" to auto restart kdc on abnormal termination. Set kdc_restart_delay="N" to the number of seconds to delay before restarting the kdc. The daemon(8) default seconds applies when not set. Reported by: Lexi Winter <[email protected]> PR: 278395 Differential Revision: https://reviews.freebsd.org/D44898
Configuration menu - View commit details
-
Copy full SHA for 2c628b2 - Browse repository at this point
Copy the full SHA 2c628b2View commit details -
heimdal: Fix compiling hdb ldap as a module
Fix build when WITH_OPENLDAP defined. PR: 278430 Obtained from: Upstream c1c7da7f79
Configuration menu - View commit details
-
Copy full SHA for 5821586 - Browse repository at this point
Copy the full SHA 5821586View commit details -
Signed-off-by: Martin Vahlensieck <[email protected]> Reviewed by: markj MFC after: 2 weeks Pull Request: freebsd/freebsd-src#1181
Configuration menu - View commit details
-
Copy full SHA for 73917b0 - Browse repository at this point
Copy the full SHA 73917b0View commit details -
ng_pipe: Remove node when all hooks are disconnected
This is the behavior described in the man page. Signed-off-by: Martin Vahlensieck <[email protected]> Discussed with: glebius Reviewed by: markj MFC after: 2 weeks Pull Request: freebsd/freebsd-src#1181
Configuration menu - View commit details
-
Copy full SHA for 5a76658 - Browse repository at this point
Copy the full SHA 5a76658View commit details -
ng_pipe: Replace deprecated random() with prng32_bounded()
Signed-off-by: Martin Vahlensieck <[email protected]> MFC after: 2 weeks Reviewed by: markj Pull Request: freebsd/freebsd-src#1181
Configuration menu - View commit details
-
Copy full SHA for 4f3befc - Browse repository at this point
Copy the full SHA 4f3befcView commit details -
ng_pipe: Do not panic when memory allocations fail
Signed-off-by: Martin Vahlensieck <[email protected]> Reviewed by: markj MFC after: 2 weeks Pull Request: freebsd/freebsd-src#1181
Configuration menu - View commit details
-
Copy full SHA for b4b7e8f - Browse repository at this point
Copy the full SHA b4b7e8fView commit details -
dpaa: uma_zcreate() does not fail
No functional change intended. MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for fd63ae2 - Browse repository at this point
Copy the full SHA fd63ae2View commit details -
wg: uma_zcreate() does not fail
No functional change intended. MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for 679d84b - Browse repository at this point
Copy the full SHA 679d84bView commit details -
udf: uma_zcreate() does not fail
While here remove an old comment regarding preallocation; it appears to refer to an optimization that is almost certainly irrelevant at this point. No functional change intended. MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for 17c2dc2 - Browse repository at this point
Copy the full SHA 17c2dc2View commit details -
khelp: uma_zcreate() does not fail
No functional change intended. MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for 4e75a4f - Browse repository at this point
Copy the full SHA 4e75a4fView commit details -
busdma: uma_zcreate() does not fail
No functional change intended. MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for 6cc30ca - Browse repository at this point
Copy the full SHA 6cc30caView commit details -
geli.8: add some notes regarding performance tuning
MFC after: 1 week Sponsored by: Axcient Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D44908
Configuration menu - View commit details
-
Copy full SHA for 6aaa5be - Browse repository at this point
Copy the full SHA 6aaa5beView commit details -
bhyve.8: Remove mention of the -A flag
It is a no-op on amd64 now and is not implemented on arm64, so let's remove mention of it altogether so as to reduce confusion for arm64 users. Reviewed by: corvink, jhb Sponsored by: Innovate UK Differential Revision: https://reviews.freebsd.org/D44737
Configuration menu - View commit details
-
Copy full SHA for 4ceca0f - Browse repository at this point
Copy the full SHA 4ceca0fView commit details -
Configuration menu - View commit details
-
Copy full SHA for c28b67b - Browse repository at this point
Copy the full SHA c28b67bView commit details -
bhyve.8: Document arm64 support
- Mention the options that are amd64-only. - Provide a minimal example for booting an arm64 guest. Reviewed by: corvink Sponsored by: Innovate UK Differential Revision: https://reviews.freebsd.org/D44738
Configuration menu - View commit details
-
Copy full SHA for 6c5fcf4 - Browse repository at this point
Copy the full SHA 6c5fcf4View commit details -
arm64/vmm: Ensure the tlbi has completed
Ensure the TLB is invalidated before enabling the EL2 MMU. Without this the TLB may be in an inconsistant state leading to a possible exception when enabling the MMU. PR: 277559 Reviewed by: markj Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D44799
Configuration menu - View commit details
-
Copy full SHA for e6a2b83 - Browse repository at this point
Copy the full SHA e6a2b83View commit details -
arm64: Check DMAP address is valid in PHYS_IN_DMAP
When checking if a physical address is in the DMAP region we assume all physical addresses between DMAP_MIN_PHYSADDR and DMAP_MAX_PHYSADDR are able to be accesses through the DMAP. It may be the case that there is device memory in this range that shouldn't be accessed through the DMAP mappings. Add a check to PHYS_IN_DMAP that the translated virtual address is a valid kernel address. To support code that already checks the address is valid add PHYS_IN_DMAP_RANGE. PR: 278233 Reviewed by: alc, markj Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D44677
Configuration menu - View commit details
-
Copy full SHA for 255c368 - Browse repository at this point
Copy the full SHA 255c368View commit details -
showconfig: Set MACHINE for src.opts.mk
Also set MACHINE and MACHINE_ARCH when reading config options from src.opts.mk. This ensures any machine-dependent options are reported correctly. Reviewed by: emaste, imp Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D44838
Configuration menu - View commit details
-
Copy full SHA for 1f82e23 - Browse repository at this point
Copy the full SHA 1f82e23View commit details -
elf_common.h: Add STO_AARCH64_VARIANT_PCS
This is used to mark symbols that use a variant procedure call with a different calling convention to the main ABI. Reviewed by: kib, imp Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D44868
Configuration menu - View commit details
-
Copy full SHA for ecbdc88 - Browse repository at this point
Copy the full SHA ecbdc88View commit details -
meta.autodep.mk do not override start_utc
Update meta.autodep.mk If included at level 0 it is important not to override start_utc
Configuration menu - View commit details
-
Copy full SHA for 26ca32f - Browse repository at this point
Copy the full SHA 26ca32fView commit details -
sys/namei.h: move NI_CAP_VIOLATION() macro from namei.h to vfs_lookup.c
Reviewed by: emaste, imp, markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D44931
Configuration menu - View commit details
-
Copy full SHA for f1e58d1 - Browse repository at this point
Copy the full SHA f1e58d1View commit details -
vfs_lookup.c: only call ktrcapfail() if KTRACE is enabled
Reviewed by: emaste, imp, markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D44931
Configuration menu - View commit details
-
Copy full SHA for 1361843 - Browse repository at this point
Copy the full SHA 1361843View commit details -
syscalls.master: correct return type of {read,write}v
This was missed when read/write, etc were updated to return ssize_t. Fixes: 2e83b28 Fix a few syscall arguments to use size_t instead of u_int. Reviewed by: imp, kib Differential Revision: https://reviews.freebsd.org/D44930
Configuration menu - View commit details
-
Copy full SHA for 8b7dd9c - Browse repository at this point
Copy the full SHA 8b7dd9cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b07daf - Browse repository at this point
Copy the full SHA 9b07dafView commit details -
accept_filter: return different errors for non-listener and a busy so…
…cket The fact that an accept filter needs to be cleared first before setting to a different one isn't properly documented. The requirement that the socket needs already be listening, although trivial, isn't documented either. At least return a more meaningful error than EINVAL for an existing filter. Cover this with a test case.
Configuration menu - View commit details
-
Copy full SHA for 445f2b7 - Browse repository at this point
Copy the full SHA 445f2b7View commit details -
Document that gettimeofday() is obsolescent
Reported by: kaktus Reviewed by: kaktus, pstef MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D23942
Configuration menu - View commit details
-
Copy full SHA for 87776f1 - Browse repository at this point
Copy the full SHA 87776f1View commit details -
sync.8: Document that the "sync dance" is not a thing
People still believe that it is essential to run sync(8) a couple of times before a reboot/halt. Document that this has not been necessary for a long time now. Reviewed by: imp, bcr, Pau Amma <[email protected]> MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D33233
Configuration menu - View commit details
-
Copy full SHA for fe11905 - Browse repository at this point
Copy the full SHA fe11905View commit details -
checkstyle9: Allow a space between "*" and _*restrict
Before the change, we would get errors like this: ERROR: "foo * bar" should be "foo *bar" CTSRD-CHERI#369: FILE: foobar.c:369: +barbaz(char * __restrict s, Reviewed by: des, imp Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D44911
Configuration menu - View commit details
-
Copy full SHA for 2be62d9 - Browse repository at this point
Copy the full SHA 2be62d9View commit details -
kthread: Set *tdptr earlier in kproc_kthread_add()
See commit ae77041 ("kthread: Set *newtdp earlier in kthread_add1()") for details. That commit was incomplete since g_init()'s first call to kproc_kthread_add() will cause kproc_kthread_add() to take the `*procptr == NULL` branch, which avoids kthread_create(). To ensure that the thread pointer is initialized before the thread starts running, we have to start the kernel process with RFSTOPPED. We could perhaps go further and use RFSTOPPED only when tdptr != NULL, but it's probably better to have consistent behaviour. Reviewed by: olce, kib Reported by: [email protected] MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D44927
Configuration menu - View commit details
-
Copy full SHA for 2ef6c92 - Browse repository at this point
Copy the full SHA 2ef6c92View commit details -
Skip building libclang_rt when WITHOUT_CLANG is used
As noted in bug 277096, when building a pkgbase repository using WITHOUT_CROSS_COMPILER and WITHOUT_TOOLCHAIN (which sets WITHOUT_CLANG), the following residual files are left over: /usr/lib/clang/18/lib/freebsd/libclang_rt.asan-x86_64.so /usr/lib/clang/18/share/asan_ignore_list.txt /usr/lib/clang/18/share/cfi_ignore_list.txt /usr/lib/clang/18/share/msan_ignore_list.txt This is because the lib/libclang_rt directory is still descended into, even if WITHOUT_CLANG is used. Fix it by not descending into the libclang_rt directory in that case. PR: 277096 Reported by: Siva Mahadevan <[email protected]> MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for aa0bae6 - Browse repository at this point
Copy the full SHA aa0bae6View commit details -
Revert "nfsd: Fix NFSv4.1/4.2 Claim_Deleg_Cur_FH"
This reverts commit f300335. It turns out that the old code was correct and it was wireshark that was broken and indicated that the RPC's XDR was bogus. Found during IETF bakeathon testing this week.
Configuration menu - View commit details
-
Copy full SHA for aa450af - Browse repository at this point
Copy the full SHA aa450afView commit details -
Merge commit 0f329e0246d1 from llvm-project (by Dimitry Andric):
[sanitizer_symbolizer] Cast arguments for format strings in markup (#89815) When compiling the common sanitizer libraries, there are many warnings about format specifiers, similar to: compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_markup.cpp:31:32: warning: format specifies type 'void *' but the argument has type 'uptr' (aka 'unsigned long') [-Wformat] 31 | buffer->AppendF(kFormatData, DI->start); | ~~~~~~~~~~~ ^~~~~~~~~ compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_markup_constants.h:33:46: note: format string is defined here 33 | constexpr const char *kFormatData = "{{{data:%p}}}"; | ^~ | %lu compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_markup.cpp:46:43: warning: format specifies type 'void *' but the argument has type 'uptr' (aka 'unsigned long') [-Wformat] 46 | buffer->AppendF(kFormatFrame, frame_no, address); | ~~~~~~~~~~~~ ^~~~~~~ compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_markup_constants.h:36:48: note: format string is defined here 36 | constexpr const char *kFormatFrame = "{{{bt:%u:%p}}}"; | ^~ | %lu ... This is because `uptr` is dependent on the platform, and can be either `unsigned long long`, `unsigned long`, or `unsigned int`. To fix the warnings, cast the arguments to the expected type of the format strings. PR: 276104 Reported by: pstef MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for 625aa02 - Browse repository at this point
Copy the full SHA 625aa02View commit details -
bsdinstall: update comment related to pkg
pkg_add has been gone since 2013(?). Refer to pkg(8) instead. Sponsored by: The FreeBSD Foundation MFC after: 3 days Reviewed by: jrtc27 Differential Revision: https://reviews.freebsd.org/D44946
Configuration menu - View commit details
-
Copy full SHA for b9f9572 - Browse repository at this point
Copy the full SHA b9f9572View commit details -
And more comments on the #ifdef INET blocks to improve readability. While here, revert the order of two prototypes to produce minimal diff compared to stable branches. MFC with: 65767e6
Configuration menu - View commit details
-
Copy full SHA for fbf0ebc - Browse repository at this point
Copy the full SHA fbf0ebcView commit details -
tftpd: Use
size_t
where appropriate.* Limit the use of `ssize_t` to only where it's needed. * Correct one case of `int` being used for a length. MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D44954
Configuration menu - View commit details
-
Copy full SHA for 084a8db - Browse repository at this point
Copy the full SHA 084a8dbView commit details -
MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D44955
Configuration menu - View commit details
-
Copy full SHA for 33f6195 - Browse repository at this point
Copy the full SHA 33f6195View commit details -
tftpd: Check the server status after each test.
* In the setup phase, wait for the server to start (or fail to start) before proceeding with the test. This makes it possible to write test cases that don't expect a response from the server without ending up in a race over the server PID file. * After running each test, wait up to 30 seconds for the server to exit and check that the exit status matches what the test case says to expect (usually 0). * We still kill and collect the server in the cleanup phase, in case the test ended early. MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D44956
Configuration menu - View commit details
-
Copy full SHA for a5c4681 - Browse repository at this point
Copy the full SHA a5c4681View commit details -
tftpd: Immediately reject any request shorter than 4 bytes.
MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D44957
Configuration menu - View commit details
-
Copy full SHA for c281478 - Browse repository at this point
Copy the full SHA c281478View commit details -
nfscl: Revert part of commit 196787f
Commit 196787f erroneously assumed that the client code for Open/Claim_deleg_cur_FH was broken, but it was not. It was actually wireshark that was broken and indicated that the correct XDR was bogus. This reverts the part of 196787f that changed the arguments for Open/Claim_deleg_cur_FH. Found during the IETF bakeathon testing event this week. MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for 798d50e - Browse repository at this point
Copy the full SHA 798d50eView commit details -
Revert "config.mk: Add MK_VIMAGE knob"
This commit broke "make makeman" checks in github CI due to a lack of option description files. The split between VIMAGE and VIMAGE_SUPPORT is not clearly justified and the code is broken because there is no opt_vimage.h (it's in opt_global.h). This reverts commit 22ca6db.
Configuration menu - View commit details
-
Copy full SHA for 174eaf3 - Browse repository at this point
Copy the full SHA 174eaf3View commit details -
release: remove the RPI CM4s .dtb
This isn't actually packaged by the sysutils/rpi-firmware port, so we cannot include it in the image. Fix the RPI release build until an interested party adds it to the port and packages are available. Reported by: cperciva
Configuration menu - View commit details
-
Copy full SHA for 4fb7fab - Browse repository at this point
Copy the full SHA 4fb7fabView commit details -
nvmecontrol: Flesh out nvmecontrol format information
The format command takes a number of different parameters. Include a brief summary of what the values mean, though since the driver's support for metadata is at best weak, 0's are almost always used for values other than -f format. Add an example that ties it all together. Sponsored by: Netflix Reviewed by: [email protected], chuck Differential Revision: https://reviews.freebsd.org/D44958
Configuration menu - View commit details
-
Copy full SHA for 8c450f4 - Browse repository at this point
Copy the full SHA 8c450f4View commit details -
CTL: READ(6) should be allowed on CD devices
DOS ASPI drivers use this, with this change applied it is possible to load a DOS ASPI CDROM driver and run the Windows 98 installer. Signed-off-by: HP van Braam <[email protected]> Reviewed by: imp Pull Request: freebsd/freebsd-src#1202
Configuration menu - View commit details
-
Copy full SHA for a883c39 - Browse repository at this point
Copy the full SHA a883c39View commit details -
nfscl: Do not use nfso_own for delayed nfsrpc_doclose()
When an initial attempt to close an NFSv4 lock returns NFSERR_DELAY, the open structure is put on a list for delayed closing. When this is done, the nfso_own field is set to NULL, so it cannot be used by nfsrpc_doclose(). Without this patch, the NFSv4 client can crash when a NFSv4 server replies NFSERR_DELAY to a Close operation. Fortunately, most extant NFSv4 servers do not do this. This patch avoids the crash for any that do return NFSERR_DELAY for Close. Found during a IETF bakeathon testing event this week. MFC after: 5 days
Configuration menu - View commit details
-
Copy full SHA for e3cb8ab - Browse repository at this point
Copy the full SHA e3cb8abView commit details -
Configuration menu - View commit details
-
Copy full SHA for e32b234 - Browse repository at this point
Copy the full SHA e32b234View commit details -
date: Add support for nanoseconds
This patch introduces support for a conversion specification for nanoseconds. The format of %N is meant to be compatible with that of GNU date. The nanoseconds conversion specification is implemented directly in date(1) instead of libc (in strftime(3)) to avoid introducing non-standard functions to libc at this time and modifying struct tm. Apart from introducing the nanoseconds conversion specification, this patch brings the following changes: - The "ns" format for ISO 8061 dates is now unlocked. E.g., date -Ins prints: 2024-04-22T12:20:28,763742224+02:00 - The -r flag when fed a file is now aware of the nanosecond part of the last modification time. - date(1) is now able to set the time with nanosecond precision. It is not possible as of now to do that by specifying nanoseconds directly via the command-line arguments. Instead, the -r flag can be used. - date(1) is now using the clock_gettime(3) family of functions instead of ctime(3) family of functions where possible. Reviewed by: des, markj Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D44905
Configuration menu - View commit details
-
Copy full SHA for 3d34e64 - Browse repository at this point
Copy the full SHA 3d34e64View commit details -
style.9: Document the existence of tools/build/checkstyle9.pl
MFC after: 3 days Sponsored by: Klara, Inc.
Configuration menu - View commit details
-
Copy full SHA for ce6830f - Browse repository at this point
Copy the full SHA ce6830fView commit details -
date: Fix tests by initializing timespec structure
The tests related to nanosecond support were failing on amd64 due to uninitialized timespec structure. Fixes: eeb04a7 date: Add support for nanoseconds Reviewed by: markj Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D44975
Configuration menu - View commit details
-
Copy full SHA for da5fa04 - Browse repository at this point
Copy the full SHA da5fa04View commit details -
script: minor style improvements
Fix some nits pointed out by checkstyle9.pl in advance of functional changes to script(1). Reviewed by: des Sponsored by: Modirum MDPay Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D44167
Configuration menu - View commit details
-
Copy full SHA for f043711 - Browse repository at this point
Copy the full SHA f043711View commit details -
script: handle terminal resize on SIGWINCH
Add a -w flag to forward terminal resize events on to the child, which can be useful in some circumstances to avoid terminal corruption. Reviewed by: des Co-authored-by: Xavier Beaudouin <[email protected]> Sponsored by: Modirum MDPay Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D44167
Configuration menu - View commit details
-
Copy full SHA for f7a58a4 - Browse repository at this point
Copy the full SHA f7a58a4View commit details -
krpc: Ref cnt the client structures for TLS upcalls
A crash occurred during testing, where the client structures had already been free'd when the upcall thread tried to lock them. This patch acquires a reference count on both of the structures and these are released when the upcall is done, so that the structures cannot be free'd prematurely. This happened because the testing is done over a very slow vpn. Found during a IETF bakeathon testing event this week. MFC after: 5 days
Configuration menu - View commit details
-
Copy full SHA for 3110b15 - Browse repository at this point
Copy the full SHA 3110b15View commit details