Skip to content

Sync with FreeBSD stable/14 for 25.01.1 #350

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

Merged
merged 1,382 commits into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1382 commits
Select commit Hold shift + click to select a range
9daf6d6
shm: Handle swap pager allocation failures
markjdb Dec 4, 2024
7053374
amd iommu: remove unused function
kostikbel Dec 15, 2024
efe6a09
fs: Add static asserts for the size of fid structures
Dec 6, 2024
859e098
services: fix typo ucp -> udp
Nov 30, 2024
a7d5652
geom: Allow BSD type '!0' partitions
jlduran Nov 17, 2024
0520d2e
nanobsd: Remove dependency on bsdlabel
jlduran Nov 18, 2024
4bbc691
uhid(4): update ugd_actlen in USB_GET_REPORT ioctl
mndodd Nov 18, 2024
c620dfb
hidraw(4): update hgd_actlen in HIDRAW_GET_REPORT ioctl
mndodd Nov 18, 2024
8e62ae9
iwmbtfw(4): Add support for 9260/9560 bluetooth adaptors
wulf7 Nov 6, 2024
624635e
iwmbtfw(8): Ignore unexpected HCI events
wulf7 Nov 6, 2024
f5b685a
ng_ubt(4): do not attach Realtek 87XX/88XX adaptors in bootloader mode.
wulf7 Nov 6, 2024
5ce844d
ng_ubt_intel: Allow to attach to 9260 bluetooth adaptors
wulf7 Nov 6, 2024
ccfbbe2
rtlbtfw: Firmware loader for Realtek 87XX/88XX bluetooth USB adaptors
wulf7 Nov 6, 2024
e908df9
ng_ubt_intel: Ignore unexpected HCI events
wulf7 Nov 6, 2024
97cf82e
Revise qsort(3) reflect POSIX.1-2024 update.
delphij Oct 28, 2024
679e924
MFC: MFV: xz 5.6.2.
delphij Jun 4, 2024
edf0691
MFC: MFV: xz 5.6.3
delphij Dec 9, 2024
71c92e6
MFC: MFV: file 5.46.
delphij Dec 8, 2024
7fcc9d6
MFC: MFV: expat 2.6.3
ngie-eign Sep 28, 2024
8c7e4d1
MFC: Update the expat version referenced in libbsdxml.3
ngie-eign Oct 2, 2024
78ab4c1
MFC: MFV: expat 2.6.4.
delphij Dec 9, 2024
0bb4c18
MFC: MFV: less v668.
delphij Dec 9, 2024
538bf98
MFC: hexdump: Do not trust st_size if it equals zero.
ricardobranco777 Jan 3, 2024
1c6b4a0
MFC: tail: Do not trust st_size if it equals zero.
ricardobranco777 Jan 3, 2024
7165685
isp: Fix use after free in aborts handling
amotin Dec 9, 2024
1fd197d
isp: Improve task aborts handling
amotin Dec 9, 2024
0f30121
bsd-family-tree: add FreeBSD 14.2
Dec 11, 2024
14f2a08
bsd-family-tree: add NetBSD 10.1
osokin Dec 20, 2024
2a6c77b
linuxkpi: Fix a lock leak in lkpi_sta_scan_to_auth()
markjdb Dec 13, 2024
ae21b1f
ipfw.d: Add required dependency declarations
markjdb Dec 16, 2024
5c15d49
Revert "ixl: fix multicast filters handling"
fichtner Dec 11, 2024
673cd5f
sfxge: defer ether_ifattach to when ifmedia_init is done
fichtner Nov 29, 2024
6cfff79
igc.4: Add I226 and other additions to supported list
kev009 Dec 3, 2024
30b9d8a
pfctl: add -T `reset` to touch pfras_tzero only for non-zero entries
Dec 6, 2024
13ea23e
pf: fix potential NULL dereference in SCTP multihome handling
kprovost Dec 3, 2024
400fcd1
mount_nfs.c: Add an NFS mount option to set a port# for Mount
Dec 11, 2024
0a9808e
mount_nfs.8: Document the new "mountport" NFS mount option
Dec 11, 2024
57d12ea
nullfs: stop lying about mount flags in statfs(2)
kostikbel Dec 19, 2024
e34dce0
pci_user.c: Cosmetic fixes
bsdjhb Nov 13, 2024
4425d92
socket: Move SO_SPLICE next to other socket option constants
bsdjhb Nov 19, 2024
836ed5b
ccr(4): Mention geli(4) and ktls(4) as other consumers
bsdjhb Nov 25, 2024
35135bb
ccr(4): Belatedly bump .Dd for prior commit
bsdjhb Nov 25, 2024
9a15a1f
manuals: Misc macro typos
gperciva Sep 12, 2024
66cb373
procctl.2: Editing pass
bsdjhb Dec 4, 2024
334e641
fgets.3: document gets_s() __STDC_WANT_LIB_EXT1__
gperciva Oct 6, 2024
0008235
find: Re-enable the -acl primary on FreeBSD
ykasap Dec 6, 2024
32b7c5e
cd9660: Apply the file and directory mode masks bits to all 12 access…
bsdjhb Dec 6, 2024
18a9da1
mount_cd9660.8: Bump .Dd for expanding mode mask bits
bsdjhb Dec 7, 2024
1e87d76
cxgbe tom: Restore support for zerocopy TCP receive for aio_read()
bsdjhb Dec 11, 2024
5403bb7
timeradd.3: Add missing .Pp after .Ed
bsdjhb Dec 13, 2024
a653e83
ntp: Undo upstream (ntp.org) fix for upstream Bug 3851
cschuber Dec 23, 2024
6c7cef4
pf: Set cleared time when zeroing stats for table addresses
TuxPowered42 Nov 21, 2024
8ae2369
bsd.lib.mk: Capitalize "Building" for libraries
fel1x-developer Dec 8, 2024
9be96a2
acpi/apm: Improve APM ioctl interface emulation
bsdimp Jan 3, 2024
6d85340
fwget.8: polish
concussious Jun 1, 2024
7f2d1ca
loader/menu: tweak for added line
bsdimp Aug 22, 2024
3463f0d
loader/4th: Move from hint.acpi.0.rsdp to acpi.rsdp
bsdimp Oct 4, 2024
940984f
loader: Use printc instead of print to fit in 24,80
bsdimp Sep 24, 2024
28e212c
loader: Fix 0 vs 1 confusion for column numbers
bsdimp Sep 24, 2024
708c8a9
loader: Use Cyan instead of Blue for some menu items
bsdimp Oct 11, 2024
c2623a7
acpidump: Move to acpi.rsdp
bsdimp Oct 15, 2024
840ca63
vt.4: document kern.consmute
concussious Nov 8, 2024
daa4c9f
sh.1: update history + spdx + linter error
concussious Sep 29, 2024
267717c
cu.1: describe better + tag spdx
concussious Sep 14, 2024
e4520bc
nvmecontrol: Fix minor usage typo
concussious Dec 6, 2024
a3ce161
u3g.4: Fall cleaning
concussious Nov 7, 2024
8a0aec9
uart.4: describe better + spdx
concussious Nov 16, 2024
7d6ae58
bsdinstall zfsboot: Add an option to edit the ZFS pool creation options
leres Dec 26, 2024
0fd06bd
pf: fix double free in pf_state_key_attach()
kprovost Dec 11, 2024
e0a1a2e
if_ovpn: improve reconnect handling
kprovost Dec 18, 2024
afb7a85
makefs: Exit with error if writing cd image fails
emaste Dec 23, 2024
97e2aea
sound(4): Fix a typo in a source code comment
gbergling Dec 28, 2024
07afd89
arm/qualcomm: Fix a typo in a source code comment
gbergling Dec 28, 2024
13bd8f0
kern: Fix a typo in a source code comment
gbergling Dec 28, 2024
9be823d
isci(4): Fix a typo in a source code comment
gbergling Dec 28, 2024
7700d45
linprocfs: Properly reset error variable for mtab generation
michael-o Dec 2, 2024
fb3408b
rc.d/sendmail: Fix error with some configurations
TijlCoosemans Dec 3, 2024
18bbc3c
release: vmimage: setup the default BE properly
kevans91 Dec 11, 2024
2882d0c
usb: serial: propagate errors from ucom_queue_command()
kevans91 Dec 11, 2024
2ba5217
usb: serial: allow the open/close sleep to be interruptible
kevans91 Dec 11, 2024
4c20884
usb: serial: make more commands execute synchronously
kevans91 Dec 11, 2024
8094b35
amd64: extract code to print fault details from trap_fatal() into a n…
kostikbel Dec 24, 2024
e27089c
amd64: on any fault during call to EFI RT, restore execution and prin…
kostikbel Dec 24, 2024
bc3dfb0
efirt: use correct ABI for runtime EFI functions
VexedUXR Dec 21, 2024
f27d1ec
Export additional __aeabi_ symbols from arm's libgcc_s
DimitryAndric Dec 28, 2024
d51ecba
thr_cancel.c: style
kostikbel Dec 21, 2024
06a8084
thr_sig.c: style
kostikbel Dec 22, 2024
60b5e18
libthr: move dlerror_msg into zeroed part of struct thread
kostikbel Dec 23, 2024
20f173f
thr_cancel.c: use testcancel() instead of manually expanding it
kostikbel Dec 21, 2024
2f645d5
pthread_setcancelstate(3): make it async-signal-safe
kostikbel Dec 23, 2024
85671ce
check_cancel: when in_sigsuspend, send SIGCANCEL unconditionally
kostikbel Dec 24, 2024
9e4acac
timeout(1): Some minor tweaks and improvements
gbergling Dec 28, 2024
f9275f9
riscv: Permit spurious faults in kernel mode
markjdb Dec 10, 2024
f1933ed
jail: Handle jail removal in a dedicated thread
markjdb Dec 21, 2024
4e793a6
inpcb: Factor out parts of in6_pcbbind() and in_pcbbind_setup()
markjdb Dec 5, 2024
eecdd41
sysctl: Do not serialize requests when running as root
markjdb Dec 21, 2024
5ada29a
inpcb: Fix the GENERIC-NODEBUG build
markjdb Dec 5, 2024
589cf0f
Revert "Export additional __aeabi_ symbols from arm's libgcc_s"
DimitryAndric Jan 4, 2025
58734b1
libusb: fix hotplug sigbus
bapt Jan 3, 2025
452f261
kernel: Clarify kern.elfNN.nxstack sysctl description
emaste Dec 27, 2024
96ef85c
lindebugfs: Export symbols
emaste Dec 7, 2024
6584e5a
mount(8): Avoid truncation when fstab-formatting unionfs mount info
Dec 22, 2024
ba667ef
Add 'contrib/libder/' from commit '9c40c4de4c33b2ba1124fb752ebea0beba…
kevans91 Jan 1, 2025
c876932
lib: hook libder up to the build
kevans91 Jan 1, 2025
539736e
Add 'crypto/libecc/' from commit '736d663976d1768533badbf06581481d01f…
kevans91 Jan 1, 2025
616156f
secure: hook up libecc as libpkgecc
kevans91 Jan 1, 2025
292d658
pkg: pull rsa bits out of pkg.c
kevans91 Jan 1, 2025
836f1da
pkg: refactor out a pkg_read_fd()
kevans91 Jan 1, 2025
1e3003b
pkg: abstract rsa out behind a pkgsign API
kevans91 Jan 1, 2025
cb09fc9
pkg: add a pkgsign_verify_data callback
kevans91 Jan 1, 2025
8aeeab4
pkg: finish adding the ECC signer and signature type bits
kevans91 Jan 1, 2025
4ce976c
shar: add a deprecation notice
kevans91 Jan 2, 2025
e5869ff
uart: Add support for Brainboxes / Intashield serial cards.
nyan- Dec 31, 2024
d62b2d8
Fix failure to add an interface prefix route
AlexanderChernikov Nov 12, 2024
2e2c4e3
umtx: handle allocation failire in umtx_pi_alloc()
kprovost Jan 5, 2025
7fbbab2
bsnmpwalk: Fix crash on invalid data
shteryana Jan 10, 2025
1879016
pkg: include missing <string.h>
kevans91 Jan 12, 2025
e6de39b
MFC: libmagic: Unbreak for older FreeBSD releases.
delphij Jan 8, 2025
9110e31
tcpdump/print-pflog: Print uid with host endianness
eborisch Jan 3, 2025
42d4bcc
sys/sys/kernel.h: Remove SI_SUB_DONE
gmshake Dec 31, 2024
aa8067c
open(2): allow O_PATH | O_CREAT
kostikbel Jan 6, 2025
1b2bf32
path_test: adjust test for open(O_PATH | O_CREAT)
kostikbel Jan 6, 2025
df3796c
pci_find_cap_method(): limit number of iterations for finding a capab…
kostikbel Jan 6, 2025
2c1c6bd
sed: Fix handling of an empty pattern space
mohd-akram Dec 23, 2024
cbf77ce
inpcb: Remove bogus SO_REUSEPORT(_LB) checks in in_pcbbind()
markjdb Dec 12, 2024
5f610cf
inpcb: Close some SO_REUSEPORT_LB races
markjdb Dec 12, 2024
1c7f325
rc: Document rtadvd_flags
markjdb Jan 6, 2025
872da05
SO_SPLICE tests: Fix a comment typo
markjdb Jan 6, 2025
ad3a4bb
bsdinstall: Fix a typo in a comment
markjdb Jan 6, 2025
e59fdfb
makefs: Remove dead code in inode_type()
markjdb Jan 7, 2025
e394357
rawip: Take the inpcb lock when appropriate in rip_ctloutput()
markjdb Jan 7, 2025
f849557
x86: Short-circuit ipi_all_but_self() on UP systems
markjdb Jan 7, 2025
0325afa
ktrace: Make -t t trace struct arrays as well as structs
markjdb Jan 7, 2025
fb0239e
makefs: Crudely fix a sprintf warning
emaste Dec 22, 2024
999c7a8
makefs: Fix cd9660 filename buffer maximum length
emaste Dec 24, 2024
302be49
makefs: Remove impossible if condition
emaste Dec 24, 2024
40b11c1
makefs: Fix cd9660 duplicate directory names
emaste Dec 30, 2024
ff91171
isp: Fix abort issue introduced by previous commit
amotin Jan 8, 2025
707a34a
nuageinit: remove redundant mkdirs
bapt Nov 27, 2024
68f025f
nuageinit: use io.popen instead of pipes in shell for password
bapt Nov 20, 2024
88f55c3
nvi: import version 2.2.1-52c07e8
bapt Jan 2, 2025
73121d8
usb_vendors: update to 2024.12.04
bapt Jan 9, 2025
7e56062
pci_vendors: update to 2024.11.25
bapt Jan 9, 2025
2c5fbcf
libdtrace: Be less strict when comparing pointer types
markjdb Dec 31, 2024
16dee1c
bintrans(1): qp switch to getopt_long
bapt Jan 8, 2025
1795eae
bintrans(1): RFC2047 variant of quoted print
bapt Jan 8, 2025
f538407
hda: Add patch for Framework Laptop Intel 13th gen
JohnAZoidberg Jan 4, 2025
3870483
pf tests: check cleared time when zeroing stats for table addresses
darkk Jan 2, 2025
279d6c5
bintrans(1): fix typo
bapt Jan 16, 2025
1ae0a4f
Open-code proc_set_cred_init()
OlCe2 Sep 25, 2023
3e496c9
Add function to OSD to get values without taking the lock.
Apr 4, 2024
0635f5e
riscv: Implement atomic operations
bukinr May 22, 2024
63abb6a
osd: Constify signature of osd_register()
OlCe2 Jul 1, 2024
1fc5db8
atomics: Constify loads
OlCe2 Jul 19, 2024
2e866a1
refcount: Constify refcount_load()
OlCe2 Jul 19, 2024
fa940dd
queue: New debug macros for STAILQ
OlCe2 Jul 8, 2024
b1fe5ea
MAC: mac.h: Fix missing includes/typedefs
OlCe2 Jul 29, 2024
1bd0297
MAC: mac.h: Separately test inclusion from userspace
OlCe2 Jul 31, 2024
f878893
MAC: 'kernel_mac_support' module: Make an outdated comment more generic
OlCe2 Jul 3, 2024
66fb52a
MAC: Define a common 'mac' node for MAC's jail parameters
OlCe2 Jul 3, 2024
ec661f2
jail.h: Fix whitespace in the param macros declaration block
OlCe2 Jul 4, 2024
7340eb4
jail.h: New SYSCTL_JAIL_PARAM_SYS_SUBNODE()
OlCe2 Jul 4, 2024
4ccba65
jail.h: New SYSCTL_JAIL_PARAM_DECL()
OlCe2 Jul 4, 2024
62d3e81
MAC: mac_policy.h: Declare common MAC sysctl and jail parameters' nodes
OlCe2 Jul 4, 2024
f0bd9df
MAC: syscalls: Factor out common label copy-in code
OlCe2 Jul 26, 2024
c2bf375
MAC: syscalls: Split mac_set_proc() into reusable pieces
OlCe2 Jul 27, 2024
731dc89
MAC: syscalls: mac_label_copyin(): 32-bit compatibility
OlCe2 Dec 2, 2024
6a65495
cred: crget(): Compute initial 'cr_agroups' with nitems()
OlCe2 Jul 16, 2024
aeff686
mountd(8): parsecred(): uid:gid:... loop: Simplify a bit
OlCe2 Sep 26, 2024
a633b10
mountd(8): parsecred(): Remove "duplicate compression"
OlCe2 Sep 26, 2024
fb651b2
mountd(8): parsecred(): Fallback to "nogroup" or GID_NOGROUP
OlCe2 Oct 8, 2024
b82144e
exports(5): -maproot, -mapall: Explain the fallback on no group
OlCe2 Oct 8, 2024
3f0b888
mountd(8): parsecred(): Groups limit: NGROUPS_MAX => NGROUPS_MAX + 1
OlCe2 Oct 3, 2024
d8b77cc
nmount(2), NFS: Accept 'ngroups_max + 1' groups in "export" credentials
OlCe2 Oct 8, 2024
42a885e
mountd(8): parsecred(): Remove comment on non-existent bug
OlCe2 Oct 8, 2024
8caa6bc
mountd(8): parsecred(): Re-order operations for clarity
OlCe2 Oct 8, 2024
ca9614d
mountd(8): Allow to pass {NGROUPS_MAX} + 1 groups
OlCe2 Oct 8, 2024
d1830c7
cred: proc_set_cred(): Remove obsolete comments
OlCe2 Aug 1, 2024
b6c9ff0
cred: proc_set_cred(), proc_unset_cred(): Update user's process count
OlCe2 Aug 2, 2024
eed0849
syscallsubr.h: Header inclusions: Explicit <sys/param.h>, sort
OlCe2 Dec 2, 2024
24e4f03
x86 atomics: Remove unused WANT_FUNCTIONS
OlCe2 Dec 9, 2024
31eb78a
atomic(9): Update manpage after constifying atomic loads
OlCe2 Dec 16, 2024
22e8819
proc_set_cred(): Fix compilation of GENERIC-NODEBUG
OlCe2 Dec 16, 2024
fce2a35
atomics: Constify loads: Fix powerpc build
OlCe2 Dec 16, 2024
b14c0e1
queue: Fix STAILQ_SWAP
markjdb Dec 17, 2024
dd0fae3
atomic: Update interceptor function signatures after commit 5e9a82e898d5
markjdb Dec 17, 2024
76d0aed
libprocstat: ZFS support: Makefile: Tidy up a bit
OlCe2 Dec 12, 2024
5e60792
tmpfs: Rework file handles
OlCe2 Dec 6, 2024
e16a250
vm_pageout: Make vmd_oom a bool
markjdb Jan 9, 2025
4b9ba27
audit: Fix short-circuiting in syscallenter()
markjdb Jan 14, 2025
f97d802
tarfs(5): Grammar fix for a source code comment
gbergling Apr 20, 2024
155987e
tarfs: Fix the size of struct tarfs_fid and add a static assert
Dec 6, 2024
4634282
tarfs: 'struct tarfs_fid': Switch 'gen' to 'u_int', avoid packing
OlCe2 Dec 6, 2024
7a3a040
ext2fs: Fix the size of struct ufid and add a static assert
Dec 6, 2024
6b1a5d3
ext2fs: 'struct ufid': Re-order fields and unpack
OlCe2 Dec 6, 2024
ca22082
RELNOTES: Document recent file handle layout changes
markjdb Jan 15, 2025
e6025bc
Fix "vrefact: wrong use count 0" with DRM
trasz Nov 13, 2024
3e22772
sed: The change ("c") command should start a new cycle.
nbuwe Dec 17, 2024
6d34cce
sed tests: Add a regression test for the c function
markjdb Dec 23, 2024
797bb39
sockets: virtualize kern.ipc.numopensockets
glebius Jan 13, 2025
c348cdf
sockets: virtualize kern.ipc.soacceptqueue
glebius Jan 13, 2025
bc14b1e
Expose POSIX functions incorporated into C23
stephen-hurd Jan 18, 2025
685cafd
pf: allow ICMP messages related to an SCTP state to pass
kprovost Dec 20, 2024
6823172
amdsmn(4), amdtemp(4): add support for AMD Ryzen 7 "Cezanne" cpus
Jan 12, 2025
15e2065
amdsmn(4), amdtemp(4): add support for Zen 5
Jan 12, 2025
bfa14ad
release: fix architecture for OCI images
Dec 4, 2024
6ede5a2
release: install etc files from the source tree, not the host
Dec 23, 2024
dc3f24e
Merge llvm-project release/19.x llvmorg-19.1.7-0-gcd708029e0b2
DimitryAndric Jan 16, 2025
f31dbc1
timeout(1): Add -v/--verbose option to show diagnosis info
gbergling Jan 4, 2025
ead3cd3
mountd.c: Define a new -a command line option
Dec 28, 2024
3ac1af1
mound.8: Document the new -a command line option
Dec 28, 2024
2cd9a4f
exports.5: Document the current behavior of -alldirs
Dec 28, 2024
22d2336
RELNOTES: Add entry for commit ead3cd3ef628
Jan 20, 2025
a158d26
contrib/tzdata: import tzdata 2025a
ppaeps Jan 17, 2025
8373644
unix: Be consistent about error handling for unconnected sockets
markjdb Jan 6, 2025
65da237
netipsec: Pass the right mbuf up
markjdb Jan 6, 2025
bd40a5a
jail: Avoid a potential use-after-free when destroying jails
markjdb Jan 6, 2025
6404a5a
genl.1: Improve grammar
cschuber Jan 17, 2025
97eaa12
ffs_blkpref_ufsX(): do not iterate over startcg twice
kostikbel Jan 5, 2025
6149261
ffs_reallocblks(): ensure that pref cg is valid
kostikbel Jan 5, 2025
6e9b6e5
mb_unmapped_to_ext(): return error code on error
kostikbel Dec 28, 2024
c968d55
ipsec + ktls: cannot coexists
kostikbel Dec 28, 2024
5094faf
pvscsi: Explicitly mask out CTS_SAS_VALID_SPEED bit
gmshake Jan 15, 2025
c4cae8c
libbsnmp: avoid division by zero with empty password
glebius Jan 11, 2025
0bfbd30
libbsnmptools: avoid uninitialized snmptoolctx->passwd with empty pas…
glebius Jan 11, 2025
61c5090
munmap.2: Unaligned addresses do not return error
emaste Jan 15, 2025
e2cbfa1
munmap.2: Remove EINVAL for negative len
emaste Jan 15, 2025
4ea1574
tmpfs: remove duplicate flags check in tmpfs_rmdir
rmscotty Oct 13, 2024
6203d08
ktls.4: note that security/gnutls now supports ktls
asomers Oct 28, 2024
23b2704
Make the CTL tests more resilient
asomers Nov 5, 2024
980eedb
pf: avoid use-after-free on reassembly
kprovost Jan 6, 2025
b797d07
fusefs: FUSE_NOTIFY_INVAL_* must busy the mountpoint
asomers Dec 13, 2024
8874941
namei: add more detail about LOCKSHARED's behavior
asomers Dec 17, 2024
b034811
fusefs: More accurately test the unique tokens in the test suite
asomers Dec 18, 2024
fb4e032
fusefs: delete a comment in the tests
asomers Dec 18, 2024
d2c25c4
fusefs: ignore FUSE_NO_OPEN(DIR)_SUPPORT flags
CismonX Nov 2, 2024
60311a5
fusefs: fix a memory leak
asomers Dec 23, 2024
8b2b77c
fusefs: minor cleanup in the tests
asomers Dec 27, 2024
09df42f
fusefs: Coverity cleanup in the lseek tests
asomers Jan 6, 2025
3dc0144
Fix lib/libc/nss/getgr_test with large numbers of groups
asomers Dec 31, 2024
99d5ee8
ktrace: Fix uninitialized memory disclosure
markjdb Jan 20, 2025
0961e16
libthr: use atomic_add_int() instead of atomic_fetchadd_int()
kostikbel Jan 13, 2025
d6a896c
pthread_mutex_trylock(): init libthr if needed
kostikbel Jan 12, 2025
2050430
libthr: switch thread and sleepq memory allocator to crt from libc ma…
kostikbel Jan 14, 2025
e226851
libpthread_init(): ensure curthread == NULL until set explicitly
kostikbel Jan 14, 2025
1a085ee
pthread_create(): style
kostikbel Jan 14, 2025
2c0e00d
kill.1: mention special PID 0
Jan 19, 2025
fe74df3
kill.1: mention special meaning of PGID as a PID
Jan 19, 2025
f47d632
Merge remote-tracking branch 'freebsd/stable/14' into 25.01.1
ericbsd Jan 21, 2025
c3b1aa7
Update package-version
ericbsd Jan 21, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
20 changes: 18 additions & 2 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ compute_engine_instance:
# gcloud compute images list --project freebsd-org-cloud-dev --no-standard-images
platform: freebsd
image_project: freebsd-org-cloud-dev
image: freebsd-13-2-release-amd64
image: freebsd-13-3-release-amd64
cpu: 8
memory: 8G
disk: 40
Expand All @@ -37,12 +37,20 @@ task:
TOOLCHAIN: llvm17
TOOLCHAIN_PKG: ${TOOLCHAIN}-lite
- name: amd64-llvm18 World and kernel build and boot smoke test
only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src' || $CIRRUS_BRANCH =~ 'pull/.*'
only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
trigger_type: manual
env:
TARGET: amd64
TARGET_ARCH: amd64
TOOLCHAIN: llvm18
TOOLCHAIN_PKG: ${TOOLCHAIN}-lite
- name: amd64-llvm19 World and kernel build and boot smoke test
only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src' || $CIRRUS_BRANCH =~ 'pull/.*'
env:
TARGET: amd64
TARGET_ARCH: amd64
TOOLCHAIN: llvm19
TOOLCHAIN_PKG: ${TOOLCHAIN}-lite
- name: arm64-llvm16 World and kernel build and boot smoke test
only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
trigger_type: manual
Expand All @@ -67,6 +75,14 @@ task:
TARGET_ARCH: aarch64
TOOLCHAIN: llvm18
TOOLCHAIN_PKG: ${TOOLCHAIN}
- name: arm64-llvm19 World and kernel build and boot smoke test
only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
trigger_type: manual
env:
TARGET: arm64
TARGET_ARCH: aarch64
TOOLCHAIN: llvm19
TOOLCHAIN_PKG: ${TOOLCHAIN}
- name: amd64-gcc12 World and kernel build and boot smoke test (manual)
only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
trigger_type: manual
Expand Down
8 changes: 5 additions & 3 deletions Makefile.inc1
Original file line number Diff line number Diff line change
Expand Up @@ -979,6 +979,9 @@ IMAKE_INSTALL= INSTALL="${INSTALL_CMD} ${INSTALLFLAGS}"
IMAKE_MTREE= MTREE_CMD="${MTREE_CMD} ${MTREEFLAGS}"
.endif
.if make(distributeworld)
.if ${DISTDIR:U/} == /
.error DISTDIR must be set for make distributeworld and may not be the root directory.
.endif
CERTCTLDESTDIR= ${DESTDIR}/${DISTDIR}
CERTCTLFLAGS+= -d /base
.else
Expand Down Expand Up @@ -2280,14 +2283,13 @@ real-sign-packages: _pkgbootstrap .PHONY
.if ${PKG_BIN_VERSION} < 11700
printf "packing_format = \"${PKG_FORMAT}\";\n" >> ${WSTAGEDIR}/meta
.endif
@[ -L "${REPODIR}/${PKG_ABI}/latest" ] && unlink ${REPODIR}/${PKG_ABI}/latest; \
${PKG_CMD} -o ABI=${PKG_ABI} repo -o OSVERSION="${SRCRELDATE}" \
@${PKG_CMD} -o ABI=${PKG_ABI} repo -o OSVERSION="${SRCRELDATE}" \
-m ${WSTAGEDIR}/meta \
-o ${REPODIR}/${PKG_ABI}/${PKG_VERSION} \
${REPODIR}/${PKG_ABI}/${PKG_VERSION} \
${PKG_REPO_SIGNING_KEY} ; \
cd ${REPODIR}/${PKG_ABI}; \
ln -s ${PKG_OUTPUT_DIR} latest
ln -hfs ${PKG_OUTPUT_DIR} latest

#
#
Expand Down
494 changes: 485 additions & 9 deletions ObsoleteFiles.inc

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions RELNOTES
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,22 @@ newline. Entries should be separated by a newline.

Changes to this file should not be MFCed.

ead3cd3ef628:
Add a new -a command line option to mountd(8).
If this command line option is specified, when
a line in exports(5) has the -alldirs export option,
the directory must be a server file system mount point.

54974e731f27, 155987e20190, 4634282f8908, 7a3a0402aeb6, 6b1a5d3535d9:
The layout of NFS file handles for the tarfs, cd9660, and ext2fs
file systems has changed. An NFS server that exports any of these file
systems will need its clients to unmount and remount the exports.

83f1b98d8227:
grep(1) no longer follows symbolic links by default for
recursive searches. This matches the documented behavior in
the manual page.

c333758fca3e:
new MAC/do policy and mdo(1) utility which enables a user to
become another user without the requirement of setuid root.
Expand Down
5 changes: 5 additions & 0 deletions UPDATING
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ Items affecting the ports and packages system can be found in
/usr/ports/UPDATING. Please read that file before updating system packages
and/or ports.

20250117:
The layout of NFS file handles for the tarfs, cd9660, and ext2fs
file systems has changed. An NFS server that exports any of these file
systems will need its clients to unmount and remount the exports.

20240419:
Clang, llvm, lld, lldb, compiler-rt, libc++, libunwind and openmp have
been upgraded to 18.1.6. It is important that you run `make delete-old`
Expand Down
6 changes: 6 additions & 0 deletions bin/kill/kill.1
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,15 @@ of the default
.Pp
The following PIDs have special meanings:
.Bl -tag -width indent
.It 0
The signal is sent to all processes whose group ID is equal to the process
group ID of the sender, and for which the process has permission.
.It -1
If superuser, broadcast the signal to all processes; otherwise broadcast
to all processes belonging to the user.
.It - Ns Ar PGID
The signal is sent to all processes that belong to the specified
process group ID (PGID).
.El
.Pp
Some of the more commonly used signals:
Expand Down
72 changes: 45 additions & 27 deletions bin/ps/ps.1
Original file line number Diff line number Diff line change
Expand Up @@ -333,33 +333,33 @@ The flags associated with the process as in
the include file
.In sys/proc.h :
.Bl -column P_SINGLE_BOUNDARY 0x40000000
.It Dv "P_ADVLOCK" Ta No "0x00001" Ta "Process may hold a POSIX advisory lock"
.It Dv "P_CONTROLT" Ta No "0x00002" Ta "Has a controlling terminal"
.It Dv "P_KPROC" Ta No "0x00004" Ta "Kernel process"
.It Dv "P_PPWAIT" Ta No "0x00010" Ta "Parent is waiting for child to exec/exit"
.It Dv "P_PROFIL" Ta No "0x00020" Ta "Has started profiling"
.It Dv "P_STOPPROF" Ta No "0x00040" Ta "Has thread in requesting to stop prof"
.It Dv "P_HADTHREADS" Ta No "0x00080" Ta "Has had threads (no cleanup shortcuts)"
.It Dv "P_SUGID" Ta No "0x00100" Ta "Had set id privileges since last exec"
.It Dv "P_SYSTEM" Ta No "0x00200" Ta "System proc: no sigs, stats or swapping"
.It Dv "P_SINGLE_EXIT" Ta No "0x00400" Ta "Threads suspending should exit, not wait"
.It Dv "P_TRACED" Ta No "0x00800" Ta "Debugged process being traced"
.It Dv "P_WAITED" Ta No "0x01000" Ta "Someone is waiting for us"
.It Dv "P_WEXIT" Ta No "0x02000" Ta "Working on exiting"
.It Dv "P_EXEC" Ta No "0x04000" Ta "Process called exec"
.It Dv "P_WKILLED" Ta No "0x08000" Ta "Killed, shall go to kernel/user boundary ASAP"
.It Dv "P_CONTINUED" Ta No "0x10000" Ta "Proc has continued from a stopped state"
.It Dv "P_STOPPED_SIG" Ta No "0x20000" Ta "Stopped due to SIGSTOP/SIGTSTP"
.It Dv "P_STOPPED_TRACE" Ta No "0x40000" Ta "Stopped because of tracing"
.It Dv "P_STOPPED_SINGLE" Ta No "0x80000" Ta "Only one thread can continue"
.It Dv "P_PROTECTED" Ta No "0x100000" Ta "Do not kill on memory overcommit"
.It Dv "P_SIGEVENT" Ta No "0x200000" Ta "Process pending signals changed"
.It Dv "P_SINGLE_BOUNDARY" Ta No "0x400000" Ta "Threads should suspend at user boundary"
.It Dv "P_HWPMC" Ta No "0x800000" Ta "Process is using HWPMCs"
.It Dv "P_JAILED" Ta No "0x1000000" Ta "Process is in jail"
.It Dv "P_TOTAL_STOP" Ta No "0x2000000" Ta "Stopped for system suspend"
.It Dv "P_INEXEC" Ta No "0x4000000" Ta Process is in Xr execve 2
.It Dv "P_STATCHILD" Ta No "0x8000000" Ta "Child process stopped or exited"
.It Dv "P_ADVLOCK" Ta No "0x00000001" Ta "Process may hold a POSIX advisory lock"
.It Dv "P_CONTROLT" Ta No "0x00000002" Ta "Has a controlling terminal"
.It Dv "P_KPROC" Ta No "0x00000004" Ta "Kernel process"
.It Dv "P_PPWAIT" Ta No "0x00000010" Ta "Parent is waiting for child to exec/exit"
.It Dv "P_PROFIL" Ta No "0x00000020" Ta "Has started profiling"
.It Dv "P_STOPPROF" Ta No "0x00000040" Ta "Has thread in requesting to stop prof"
.It Dv "P_HADTHREADS" Ta No "0x00000080" Ta "Has had threads (no cleanup shortcuts)"
.It Dv "P_SUGID" Ta No "0x00000100" Ta "Had set id privileges since last exec"
.It Dv "P_SYSTEM" Ta No "0x00000200" Ta "System proc: no sigs, stats or swapping"
.It Dv "P_SINGLE_EXIT" Ta No "0x00000400" Ta "Threads suspending should exit, not wait"
.It Dv "P_TRACED" Ta No "0x00000800" Ta "Debugged process being traced"
.It Dv "P_WAITED" Ta No "0x00001000" Ta "Someone is waiting for us"
.It Dv "P_WEXIT" Ta No "0x00002000" Ta "Working on exiting"
.It Dv "P_EXEC" Ta No "0x00004000" Ta "Process called exec"
.It Dv "P_WKILLED" Ta No "0x00008000" Ta "Killed, shall go to kernel/user boundary ASAP"
.It Dv "P_CONTINUED" Ta No "0x00010000" Ta "Proc has continued from a stopped state"
.It Dv "P_STOPPED_SIG" Ta No "0x00020000" Ta "Stopped due to SIGSTOP/SIGTSTP"
.It Dv "P_STOPPED_TRACE" Ta No "0x00040000" Ta "Stopped because of tracing"
.It Dv "P_STOPPED_SINGLE" Ta No "0x00080000" Ta "Only one thread can continue"
.It Dv "P_PROTECTED" Ta No "0x00100000" Ta "Do not kill on memory overcommit"
.It Dv "P_SIGEVENT" Ta No "0x00200000" Ta "Process pending signals changed"
.It Dv "P_SINGLE_BOUNDARY" Ta No "0x00400000" Ta "Threads should suspend at user boundary"
.It Dv "P_HWPMC" Ta No "0x00800000" Ta "Process is using HWPMCs"
.It Dv "P_JAILED" Ta No "0x01000000" Ta "Process is in jail"
.It Dv "P_TOTAL_STOP" Ta No "0x02000000" Ta "Stopped for system suspend"
.It Dv "P_INEXEC" Ta No "0x04000000" Ta Process is in Xr execve 2
.It Dv "P_STATCHILD" Ta No "0x08000000" Ta "Child process stopped or exited"
.It Dv "P_INMEM" Ta No "0x10000000" Ta "Loaded into memory"
.It Dv "P_SWAPPINGOUT" Ta No "0x20000000" Ta "Process is being swapped out"
.It Dv "P_SWAPPINGIN" Ta No "0x40000000" Ta "Process is being swapped in"
Expand All @@ -377,6 +377,24 @@ the include file
.It Dv "P2_NOTRACE_EXEC" Ta No "0x00000004" Ta Keep P2_NOPTRACE on Xr execve 2
.It Dv "P2_AST_SU" Ta No "0x00000008" Ta "Handles SU ast for kthreads"
.It Dv "P2_PTRACE_FSTP" Ta No "0x00000010" Ta "SIGSTOP from PT_ATTACH not yet handled"
.It Dv "P2_TRAPCAP" Ta No "0x00000020" Ta "SIGTRAP on ENOTCAPABLE"
.It Dv "P2_ASLR_ENABLE" Ta No "0x00000040" Ta "Force enable ASLR"
.It Dv "P2_ASLR_DISABLE" Ta No "0x00000080" Ta "Force disable ASLR"
.It Dv "P2_ASLR_IGNSTART" Ta No "0x00000100" Ta "Enable ASLR to consume sbrk area"
.It Dv "P2_PROTMAX_ENABLE" Ta No "0x00000200" Ta "Force enable implied PROT_MAX"
.It Dv "P2_PROTMAX_DISABLE" Ta No "0x00000400" Ta "Force disable implied PROT_MAX"
.It Dv "P2_STKGAP_DISABLE" Ta No "0x00000800" Ta "Disable stack gap for MAP_STACK"
.It Dv "P2_STKGAP_DISABLE_EXEC" Ta No "0x00001000" Ta "Stack gap disabled after exec"
.It Dv "P2_ITSTOPPED" Ta No "0x00002000" Ta "itimers stopped (as part of process stop)"
.It Dv "P2_PTRACEREQ" Ta No "0x00004000" Ta "Active ptrace req"
.It Dv "P2_NO_NEW_PRIVS" Ta No "0x00008000" Ta "Ignore setuid on exec"
.It Dv "P2_WXORX_DISABLE" Ta No "0x00010000" Ta "WX mappings enabled"
.It Dv "P2_WXORX_ENABLE_EXEC" Ta No "0x00020000" Ta "WxorX enabled after exec"
.It Dv "P2_WEXIT" Ta No "0x00040000" Ta "Internal exit early state"
.It Dv "P2_REAPKILLED" Ta No "0x00080000" Ta "REAP_KILL pass handled the process"
.It Dv "P2_MEMBAR_PRIVE" Ta No "0x00100000" Ta "membarrier private expedited registered"
.It Dv "P2_MEMBAR_PRIVE_SYNCORE" Ta No "0x00200000" Ta "membarrier private expedited sync core registered"
.It Dv "P2_MEMBAR_GLOBE" Ta No "0x00400000" Ta "membar global expedited registered"
.El
.It Cm label
The MAC label of the process.
Expand Down
5 changes: 3 additions & 2 deletions bin/sh/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ main(int argc, char *argv[])
static struct stackmark smark, smark2;
volatile int state;
char *shinit;
int login;

(void) setlocale(LC_ALL, "");
initcharset();
Expand Down Expand Up @@ -140,13 +141,13 @@ main(int argc, char *argv[])
initvar();
setstackmark(&smark);
setstackmark(&smark2);
procargs(argc, argv);
login = procargs(argc, argv);
trap_init();
pwd_init(iflag);
INTON;
if (iflag)
chkmail(1);
if (argv[0] && argv[0][0] == '-') {
if (login) {
state = 1;
read_profile("/etc/profile");
state1:
Expand Down
24 changes: 16 additions & 8 deletions bin/sh/options.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ char *nextopt_optptr; /* used by nextopt */
char *minusc; /* argument to -c option */


static void options(int);
static int options(int);
static void minus_o(char *, int);
static void setoption(int, int);
static void setoptionbyindex(int, int);
Expand All @@ -82,19 +82,20 @@ static int getopts(char *, char *, char **, char ***, char **);
* Process the shell command line arguments.
*/

void
int
procargs(int argc, char **argv)
{
int i;
int i, login;
char *scriptname;

argptr = argv;
login = argptr[0] != NULL && argptr[0][0] == '-';
if (argc > 0)
argptr++;
for (i = 0; i < NOPTS; i++)
optval[i] = 2;
privileged = (getuid() != geteuid() || getgid() != getegid());
options(1);
login |= options(1);
if (*argptr == NULL && minusc == NULL)
sflag = 1;
if (iflag != 0 && sflag == 1 && isatty(0) && isatty(1)) {
Expand Down Expand Up @@ -125,6 +126,8 @@ procargs(int argc, char **argv)
argptr++;
}
optschanged();

return (login);
}


Expand All @@ -145,12 +148,13 @@ optschanged(void)
* to the set special builtin.
*/

static void
static int
options(int cmdline)
{
char *kp, *p;
int val;
int c;
int login = 0;

if (cmdline)
minusc = NULL;
Expand Down Expand Up @@ -196,6 +200,8 @@ options(int cmdline)
if (q == NULL || minusc != NULL)
error("Bad -c option");
minusc = q;
} else if (c == 'l' && cmdline) {
login = 1;
} else if (c == 'o') {
minus_o(*argptr, val);
if (*argptr)
Expand All @@ -204,13 +210,13 @@ options(int cmdline)
setoption(c, val);
}
}
return;
return (login);

/* When processing `set', a single "-" means turn off -x and -v */
end_options1:
if (!cmdline) {
xflag = vflag = 0;
return;
return (login);
}

/*
Expand All @@ -223,7 +229,7 @@ options(int cmdline)
if (!cmdline) {
if (*argptr == NULL)
setparam(0, argptr);
return;
return (login);
}

/*
Expand All @@ -242,6 +248,8 @@ options(int cmdline)
/* We need to keep the final argument */
argptr--;
}

return (login);
}

static void
Expand Down
2 changes: 1 addition & 1 deletion bin/sh/options.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ extern char **argptr; /* argument list for builtin commands */
extern char *shoptarg; /* set by nextopt */
extern char *nextopt_optptr; /* used by nextopt */

void procargs(int, char **);
int procargs(int, char **);
void optschanged(void);
void freeparam(struct shparam *);
int nextopt(const char *);
Expand Down
Loading