Skip to content
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-10-11 #2297

Merged
merged 522 commits into from
Jan 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
522 commits
Select commit Hold shift + click to select a range
c2d93a8
env: Check the status of stdout.
dag-erling Oct 8, 2024
8b92fa1
manuals: Misc syntax fixes
gperciva Oct 7, 2024
643fc69
manuals: Fix "missing end of block" errors
gperciva Oct 8, 2024
9fd66e4
manuals: Fix syntax of list width
gperciva Oct 8, 2024
6df3a2d
Revert "libkldelf: use warnx instead of printf"
khng300 Oct 8, 2024
7007de7
Revert "libkldelf: add elf_lookup_symbol function"
khng300 Oct 8, 2024
50c64df
Revert "libkldelf: add a private library for kernel/kld-related ELF p…
khng300 Oct 8, 2024
1d83090
capsicum-test: skip SCTP tests if SCTP not available
emaste Oct 7, 2024
e4550c9
capsicum-test: include SCTP tests
emaste Oct 7, 2024
91a9e4e
sctp: propagate cap rights on sctp_peeloff
emaste Oct 3, 2024
38518fd
capsicum-test: rights are propagated on sctp_peeloff(2)
emaste Oct 7, 2024
e578fd8
shm_alloc(): cleanup
kostikbel Oct 8, 2024
d350e8d
cmp: Style and type issues.
dag-erling Oct 9, 2024
3c37828
cmp: Check the status of stdout.
dag-erling Oct 9, 2024
53bb561
ldd32: place in utilities-lib32 not utilities
ifreund Oct 9, 2024
b22be3b
release: basic-cloudinit disable rsa key
bapt Oct 9, 2024
d5e9faf
mk: honor TAGS for FILES in default group
ifreund Oct 7, 2024
458dc7f
pkgbase: fix incremental generation of packages
bapt Oct 8, 2024
2e9761e
sctp: cleanup sctp_delete_ifn
tuexen Oct 10, 2024
fae4b97
loader: reading from large dosfs fails
Jul 17, 2024
e1a09d1
sctp: make sctp_free_ifn() static
tuexen Oct 10, 2024
af4cd5e
vfs_subr: optimize inval_buf_range
Oct 10, 2024
2851aaf
mlx5 ipsec_offload: ensure that driver does not dereference dead sahi…
kostikbel Sep 28, 2024
ff22634
Revert "vfs_subr: optimize inval_buf_range"
Oct 10, 2024
440f4ba
tcp: fix duplicate retransmissions when RTO happens during SACK loss …
rscheff Oct 10, 2024
8751fbe
rc.d/sendmail: Fix stopping service during shutdown
0mp Oct 4, 2024
8de7f8e
pf: reduce IPv6 header parsing code duplication
kprovost Sep 21, 2024
ee9f418
pfctl: correctly print skip steps in -vv mode
kprovost Sep 26, 2024
7d0f8cd
pf: ensure that we won't enter an endless loop
kprovost Sep 26, 2024
5c3d74e
pf: add ttl to pf_pdesc
kprovost Sep 27, 2024
7b03396
pf: stricter address family checks in icmp-in-icmp
kprovost Sep 30, 2024
25e0f8f
pf: convert DIOCGETRULESETS to netlink
kprovost Oct 1, 2024
5de77e9
pf: remove the last hand-rolled IPv6 extension header loop
kprovost Sep 30, 2024
d01949e
pf.conf.5: sync documentation with code on the matter of max state li…
kprovost Oct 2, 2024
6562157
pfctl: avoid possible SIGSEGV when wrong tos option
kprovost Oct 2, 2024
abc8996
pf: deduplicate IPv4 and IPv6 code that handles fragments
kprovost Oct 2, 2024
05896f1
pf: move pf_test_rule() out of pf_setup_pdesc()
kprovost Oct 2, 2024
9414b8d
pf: unify some IPv4/IPv6 code in pf_setup_pdesc()
kprovost Oct 2, 2024
739731b
pf: consolidate pf function parameters
kprovost Oct 2, 2024
48f5bf8
pf: convert DIOCGETRULESET to netlink
kprovost Oct 3, 2024
b4a4258
pf: put kif into struct pf_pdesc
kprovost Oct 3, 2024
08b53c6
pf: remove switch (af) default cases
kprovost Oct 3, 2024
9a40586
pf: move the mbuf into struct pf_pdesc too
kprovost Oct 3, 2024
8978a08
pf: remove redundant arguments to pf_state_key_addr_setup()
kprovost Oct 7, 2024
0fbfb22
hier(7): fix manpage location in ports
bapt Oct 10, 2024
8e5b07d
mlx5_ipsec: add enough #ifdef IPSEC_OFFLOAD to make LINT_NOIP compilable
kostikbel Oct 10, 2024
4466a97
sctp: check locking requirements
tuexen Oct 10, 2024
c71c41d
vm_radix: add iter insert and remove interfaces
Oct 10, 2024
e3f0e0f
committers-doc: add myself
mhorne Oct 10, 2024
5793008
vmem.9: align lists + tag spdx
concussious Oct 8, 2024
d928328
manpath.1: align lists + tag spdx
concussious Oct 9, 2024
41b746e
LinuxKPI: 802.11: fix ieee80211_schedule_txq() to avoid rtw89 panic
amshafer Oct 10, 2024
3e501ef
e1000: Re-add AIM
kev009 Sep 22, 2024
7a7741a
zfs: merge openzfs/zfs@b10992582
mmatuska Oct 11, 2024
73c7cb5
depend-cleanup.sh: Add a rule to work around zfs arc_os.c dependency …
mmatuska Oct 11, 2024
d80d7a8
rc.conf.5: Clarify wording
cqexbesd Oct 11, 2024
ac9b565
kinfo_vmentry: report cdev name for device mappings
kostikbel Oct 10, 2024
d9daa28
sysctl vm.vm_objects: report cdev name for device-backed objects
kostikbel Oct 10, 2024
5c385a5
debugnet: Use precise types when accessing mbuf contents
markjdb Oct 9, 2024
7ff12dd
rtw8xfw: remove module build dirs for firmware long gone
Oct 10, 2024
ce15215
rtw89: add missing bsddriver.name assignments for two chipsets
Oct 10, 2024
310c31d
rtw89: add man page and hook driver up to the build
Apr 18, 2023
21d9853
arm64/gicv3: Skip programming vPE GITS_BASERs to avoid a boot crash
Oct 11, 2024
c008b8f
git-arc: minor manpage edits
emaste Oct 11, 2024
6cde8f3
lpd: Tighten permissions on /var/run/printer
Oct 11, 2024
818c7b7
uncompress: Avoid reading an extra byte
Oct 11, 2024
a78bacf
cdefs: Add __nosanitizecoverage
markjdb Oct 11, 2024
4f2ca36
arm64: Disable coverage sanitization of `pmap_update_strided`
RoundofThree Oct 11, 2024
1107834
swap_pager: swapoff detecting object death
Oct 11, 2024
2af5769
fdisk: Make confusing fdisk messages a little less ambiguous
bsdimp Oct 11, 2024
ca9e31e
Revert "apcidump: Add dumping SPCR"
bsdimp Oct 11, 2024
8056c66
acpica: Update the SPCR table to version 4
Feb 29, 2024
5d57fad
acpidump: Print SPCR v3 and v4 fields
bsdimp Oct 11, 2024
8f95676
LinuxKPI: add time_is_before_jiffies()
Sep 28, 2024
41283b4
LinuxKPI: always include linux/kconfig.h
Sep 26, 2024
5dbb0b7
man.4: Add .Sh HARDWARE for some wireless drivers for release notes
Sep 30, 2024
6621842
LinuxKPI: add new dummy headers visibility.h and of_net.h
Sep 28, 2024
87b759f
Add targets/pseudo/bootstrap-packages
sgerraty Oct 11, 2024
1e434da
powerpc: Add nominal support for POWER10 and POWER11
chmeeedalf Oct 11, 2024
f2e62e6
loader/powerpc: Add some CAS support for newer POWER CPUs
chmeeedalf Oct 11, 2024
baa7e9c
loader: Use Cyan instead of Blue for some menu items
bsdimp Oct 11, 2024
852233c
uart: Small style tweak
bsdimp Oct 11, 2024
9bb5635
uart: Document rw:XXX field of hw.uart.console
bsdimp Oct 11, 2024
9d81f99
mac_bsdextended: Use SYSCTL VARIABLES section
bsdimp Oct 11, 2024
0bd23ca
uart: Fix cut-n-paste error in DBG2 code
bsdimp Oct 11, 2024
37798b1
loader/4th: Move from hint.acpi.0.rsdp to acpi.rsdp
bsdimp Oct 4, 2024
a5fad87
dummymbuf: Validate syntax upon write to net.dummymbuf.rules sysctl
ihoro Oct 5, 2024
1080c91
kyua: Do not count skipped as passed in test cmd
ihoro Oct 5, 2024
1b5fe08
vm_kern: Use VM_ALLOC_NOFREE when allocating 'zero_region' page
bnovkov Oct 5, 2024
6e55543
dummymbuf: Fix code style
ihoro Oct 6, 2024
9e6ea69
vm_object: Widen the flags field
markjdb Oct 6, 2024
3decd0f
sesutil: Fix a typo in an error message
gldisater Oct 6, 2024
7915f81
bhyve/nvme: Fix out-of-bounds read in NVMe log page
Sep 19, 2024
fe65d41
membarrier.h: fix typo
emaste Oct 6, 2024
2cb5b62
pctrie: don't assign to root
Oct 6, 2024
999d05a
vm_object: Fix the argument type to vm_object_set_flag()
markjdb Oct 6, 2024
904f2e7
membarrier: Add manual page
emaste Oct 6, 2024
ab61df5
devctl: Add missing validation to DEV_RESET
markjdb Oct 6, 2024
610121b
unbound: Vendor import 1.21.1
cschuber Oct 7, 2024
73019e7
Add myself (uzsolt) to the calendar
Oct 7, 2024
579bb66
sysv_ipc: remove sys/cdefs.h include
kostikbel Oct 5, 2024
6081d2b
vm_object: reformat flags definitions
kostikbel Oct 6, 2024
e4cf439
vm_object: add OBJ_SYSVSHM flag to indicate SysV shm backing object
kostikbel Oct 5, 2024
5143c96
sysvshm: add shmobjinfo() function to find key/seq of the segment bac…
kostikbel Oct 5, 2024
738a3e0
kinfo_vmentry: report mappings of the SysV shm segments
kostikbel Oct 5, 2024
d74f009
kinfo_vmobject: report backing object of the SysV shm segments
kostikbel Oct 5, 2024
45d021f
procstat vm: report SysV shm segment mapping
kostikbel Oct 5, 2024
ad81624
vmstat -o: report objects backing SysV shm segments
kostikbel Oct 5, 2024
a0c2218
fetch: correct env var name for --crl option to work
fichtner Oct 7, 2024
77eb954
genl: allow to monitor all know groups
bapt Oct 7, 2024
eaace1f
genl: subscribe to all if no group is provided
bapt Oct 7, 2024
e8ed3b1
genl(1): fix typo
bapt Oct 7, 2024
b2d8f65
genl: add parser for nlsysevent
bapt Oct 7, 2024
0eb3df9
sysctl.3: Remove KERN_QUANTUM
kostikbel Sep 27, 2024
4714ee0
sysctl.3: document missing fixed oids from the kern. node
kostikbel Sep 27, 2024
fbc4039
sysctl.3: document missing oids from kern.proc. node
kostikbel Sep 27, 2024
3106cb5
getrlimitusage.2: add the man page
kostikbel Sep 27, 2024
6621bde
dummymbuf: Log the entire rule set if no delimiters are present
ihoro Oct 7, 2024
4b757ba
libsys: connect membarrier.2
emaste Oct 7, 2024
696fbe8
genl: small cleanup
bapt Oct 7, 2024
021c74f
iflib: Make iflib_stop() static
gmshake Oct 7, 2024
a03cac9
getsockopt: improve locking for SOL_SOCKET level socket options
tuexen Oct 7, 2024
88769d7
pkg: prefer .pkg extension
emaste Oct 7, 2024
bd0c1e9
swap_pager: rename iter init functions
Oct 7, 2024
c7372ea
vm_meter: Add counter for NOFREE pages
bnovkov Oct 7, 2024
36ff652
vmstat: Add NOFREE page count to -s report
bnovkov Oct 7, 2024
6fb742c
xen: expose support for poweroff/reboot/suspend on xenbus
Sep 30, 2024
8d1d490
xen: remove PV suspend/resume support copyright
Oct 1, 2024
e32c848
pkg: improve error message
emaste Oct 7, 2024
7909177
cxgbe(4): Use correct synchronization when marking the adapter offline.
np-2020 Oct 4, 2024
9e49f06
manuals: Fix "skipping end of block" .El errors
gperciva Oct 3, 2024
db413ca
manuals: Fix "missing end of block" errors
gperciva Oct 3, 2024
507c6da
manuals: Misc syntax fixes
gperciva Oct 4, 2024
b5850c8
capsicum-test: rights are propagated on accept(2)
emaste Oct 7, 2024
8dafc52
vm_page: Use atomic loads for cmpset loops
markjdb Oct 7, 2024
677805b
vm_page: Fix a logic bug in vm_page_unwire_managed()
markjdb Oct 7, 2024
1291219
env: Add a handful of test cases.
dag-erling Oct 7, 2024
8614e4d
env: Improve documentation.
dag-erling Oct 7, 2024
be8e35c
bsd-family-tree: FreeBSD 13.4 and OpenBSD 7.6 added
Oct 7, 2024
806c123
nvme: Don't create sysctl for io queues not created
bsdimp Oct 8, 2024
426a050
Skipping merge of 0a2cfd653e86ac41c4e6e32a449d133c0ee6d677
bsdjhb Jan 24, 2025
05de4f6
Skipping merge of 2c7d84795628cb9c7a266718b99b6bca68e0a135
bsdjhb Jan 24, 2025
eda2efb
Skipping merge of 550ee2d03c5b88bc5d74b257ffcb3ed2c06a60bb
bsdjhb Jan 24, 2025
ea9544c
powerd: use nlsysevent if possible
bapt Oct 7, 2024
50fd0b6
kinfo_vmentry: report max protection
kostikbel Oct 7, 2024
b7ec58c
ptrace(PT_VM_ENTRY): report max protection
kostikbel Oct 7, 2024
c0977db
pci_vendors: update to 2024-09-20
bapt Oct 8, 2024
9b05d61
xen/blk{front,back}: fix usage of sector sizes different than 512b
Aug 26, 2024
43a43c8
swap_pager: use iterators in swp_pager_meta_build
Oct 8, 2024
009089e
kinfo_{vmobject,vmentry}: move copy of pathes into the vnode handling…
kostikbel Oct 7, 2024
b969ea9
posix shm: mark backing objects with SHM_POSIXSHM flag
kostikbel Oct 7, 2024
27ea6a0
posix shm: add shm_get_path(9)
kostikbel Oct 7, 2024
fdafc80
sys/user.h: report posix shm mappings
kostikbel Oct 7, 2024
94568cf
sysctl vm.objects: report objects backing posix shm segments
kostikbel Oct 7, 2024
6c1599d
procstat vm: report posix shm segment mapping
kostikbel Oct 7, 2024
141d912
vmstat -o: report objects backing posix shm segments
kostikbel Oct 7, 2024
770e9b9
committers-src: Add myself (0mp)
0mp Oct 8, 2024
41947eb
committers-*.dot: Fix typos
0mp Oct 8, 2024
da74fc3
procctl(2): Clarify the ESRCH error code case
arrowd Oct 8, 2024
5fe39ee
env: Add an option to change the directory.
dag-erling Oct 8, 2024
b25e989
env: Check the status of stdout.
dag-erling Oct 8, 2024
34d1b7b
manuals: Misc syntax fixes
gperciva Oct 7, 2024
1775704
manuals: Fix "missing end of block" errors
gperciva Oct 8, 2024
73df644
manuals: Fix syntax of list width
gperciva Oct 8, 2024
e0cf856
Skipping merge of 6df3a2d1bfed791a29fcd403d525f46112235b89
bsdjhb Jan 24, 2025
32240b9
Skipping merge of 7007de7d1095e2bc45111756b3e5d3bc6f446a9d
bsdjhb Jan 24, 2025
7f45cda
Skipping merge of 50c64df2a1739dca84c0e3bc795b70e5991b7010
bsdjhb Jan 24, 2025
c1fb018
capsicum-test: skip SCTP tests if SCTP not available
emaste Oct 7, 2024
e99bb32
capsicum-test: include SCTP tests
emaste Oct 7, 2024
3554752
sctp: propagate cap rights on sctp_peeloff
emaste Oct 3, 2024
d187c92
capsicum-test: rights are propagated on sctp_peeloff(2)
emaste Oct 7, 2024
f919cac
shm_alloc(): cleanup
kostikbel Oct 8, 2024
e90a052
cmp: Style and type issues.
dag-erling Oct 9, 2024
dfbbd31
cmp: Check the status of stdout.
dag-erling Oct 9, 2024
2ae40f0
ldd32: place in utilities-lib32 not utilities
ifreund Oct 9, 2024
44ac416
release: basic-cloudinit disable rsa key
bapt Oct 9, 2024
6d42ae5
mk: honor TAGS for FILES in default group
ifreund Oct 7, 2024
2d2a90c
pkgbase: fix incremental generation of packages
bapt Oct 8, 2024
f54f330
sctp: cleanup sctp_delete_ifn
tuexen Oct 10, 2024
4450e12
loader: reading from large dosfs fails
Jul 17, 2024
75b463a
sctp: make sctp_free_ifn() static
tuexen Oct 10, 2024
132930a
vfs_subr: optimize inval_buf_range
Oct 10, 2024
91c49b1
mlx5 ipsec_offload: ensure that driver does not dereference dead sahi…
kostikbel Sep 28, 2024
432dba8
Revert "vfs_subr: optimize inval_buf_range"
Oct 10, 2024
7254d4a
rc.d/sendmail: Fix stopping service during shutdown
0mp Oct 4, 2024
def94cb
pf: reduce IPv6 header parsing code duplication
kprovost Sep 21, 2024
a42c309
pfctl: correctly print skip steps in -vv mode
kprovost Sep 26, 2024
572044c
pf: ensure that we won't enter an endless loop
kprovost Sep 26, 2024
b495a69
pf: add ttl to pf_pdesc
kprovost Sep 27, 2024
24a52ca
pf: stricter address family checks in icmp-in-icmp
kprovost Sep 30, 2024
1799711
pf: convert DIOCGETRULESETS to netlink
kprovost Oct 1, 2024
6220307
pf: remove the last hand-rolled IPv6 extension header loop
kprovost Sep 30, 2024
eb0c4e6
pf.conf.5: sync documentation with code on the matter of max state li…
kprovost Oct 2, 2024
11b2701
pfctl: avoid possible SIGSEGV when wrong tos option
kprovost Oct 2, 2024
45ba4e0
pf: deduplicate IPv4 and IPv6 code that handles fragments
kprovost Oct 2, 2024
a718ec0
pf: move pf_test_rule() out of pf_setup_pdesc()
kprovost Oct 2, 2024
2cb547b
pf: unify some IPv4/IPv6 code in pf_setup_pdesc()
kprovost Oct 2, 2024
f73347d
pf: consolidate pf function parameters
kprovost Oct 2, 2024
12b6390
pf: convert DIOCGETRULESET to netlink
kprovost Oct 3, 2024
84ecb9b
pf: put kif into struct pf_pdesc
kprovost Oct 3, 2024
b41302f
pf: remove switch (af) default cases
kprovost Oct 3, 2024
a44f209
pf: move the mbuf into struct pf_pdesc too
kprovost Oct 3, 2024
964e188
pf: remove redundant arguments to pf_state_key_addr_setup()
kprovost Oct 7, 2024
8ee8387
hier(7): fix manpage location in ports
bapt Oct 10, 2024
cad9775
mlx5_ipsec: add enough #ifdef IPSEC_OFFLOAD to make LINT_NOIP compilable
kostikbel Oct 10, 2024
6901131
sctp: check locking requirements
tuexen Oct 10, 2024
51a981e
vm_radix: add iter insert and remove interfaces
Oct 10, 2024
04480cb
committers-doc: add myself
mhorne Oct 10, 2024
47fbf9b
vmem.9: align lists + tag spdx
concussious Oct 8, 2024
b142b06
manpath.1: align lists + tag spdx
concussious Oct 9, 2024
235ddcb
LinuxKPI: 802.11: fix ieee80211_schedule_txq() to avoid rtw89 panic
amshafer Oct 10, 2024
c9e24c3
e1000: Re-add AIM
kev009 Sep 22, 2024
e42462b
zfs: merge openzfs/zfs@b10992582
mmatuska Oct 11, 2024
0f886f5
git subrepo pull --force sys/contrib/subrepo-openzfs
bsdjhb Jan 24, 2025
9a7c2fc
depend-cleanup.sh: Add a rule to work around zfs arc_os.c dependency …
mmatuska Oct 11, 2024
33c66cb
rc.conf.5: Clarify wording
cqexbesd Oct 11, 2024
14a424a
kinfo_vmentry: report cdev name for device mappings
kostikbel Oct 10, 2024
9ef0783
sysctl vm.vm_objects: report cdev name for device-backed objects
kostikbel Oct 10, 2024
ae79dc2
tcp: fix duplicate retransmissions when RTO happens during SACK loss …
rscheff Oct 10, 2024
95a3987
debugnet: Use precise types when accessing mbuf contents
markjdb Oct 9, 2024
dc5aed3
rtw8xfw: remove module build dirs for firmware long gone
Oct 10, 2024
5d8ab48
rtw89: add missing bsddriver.name assignments for two chipsets
Oct 10, 2024
3d776b3
rtw89: Update for CheriBSD
bsdjhb Jan 24, 2025
456d235
rtw89: add man page and hook driver up to the build
Apr 18, 2023
c904f47
arm64/gicv3: Skip programming vPE GITS_BASERs to avoid a boot crash
Oct 11, 2024
993052f
git-arc: minor manpage edits
emaste Oct 11, 2024
72a9716
lpd: Tighten permissions on /var/run/printer
Oct 11, 2024
9d59631
uncompress: Avoid reading an extra byte
Oct 11, 2024
e16810b
cdefs: Add __nosanitizecoverage
markjdb Oct 11, 2024
9739c1b
arm64: Disable coverage sanitization of `pmap_update_strided`
RoundofThree Oct 11, 2024
5c4670a
swap_pager: swapoff detecting object death
Oct 11, 2024
d792dbb
fdisk: Make confusing fdisk messages a little less ambiguous
bsdimp Oct 11, 2024
bf2e5bb
Revert "apcidump: Add dumping SPCR"
bsdimp Oct 11, 2024
7064a34
acpica: Update the SPCR table to version 4
Feb 29, 2024
4cf8c4d
acpidump: Print SPCR v3 and v4 fields
bsdimp Oct 11, 2024
e39fa62
LinuxKPI: add time_is_before_jiffies()
Sep 28, 2024
8529e5b
LinuxKPI: always include linux/kconfig.h
Sep 26, 2024
91a4bce
man.4: Add .Sh HARDWARE for some wireless drivers for release notes
Sep 30, 2024
b46e8c8
LinuxKPI: add new dummy headers visibility.h and of_net.h
Sep 28, 2024
0727861
Add targets/pseudo/bootstrap-packages
sgerraty Oct 11, 2024
42b4306
powerpc: Add nominal support for POWER10 and POWER11
chmeeedalf Oct 11, 2024
eea8ada
loader/powerpc: Add some CAS support for newer POWER CPUs
chmeeedalf Oct 11, 2024
c644946
loader: Use Cyan instead of Blue for some menu items
bsdimp Oct 11, 2024
1531e20
uart: Small style tweak
bsdimp Oct 11, 2024
769df65
uart: Document rw:XXX field of hw.uart.console
bsdimp Oct 11, 2024
02ea13e
mac_bsdextended: Use SYSCTL VARIABLES section
bsdimp Oct 11, 2024
65db70e
uart: Fix cut-n-paste error in DBG2 code
bsdimp Oct 11, 2024
e6f35de
loader/4th: Move from hint.acpi.0.rsdp to acpi.rsdp
bsdimp Oct 4, 2024
d40fdcb
tools/build/cross-build: Don't include sys/uio.h from linux limits.h
jrtc27 Oct 18, 2024
9d21abf
cdefs: Use __has_feature to gate the definition of __nosanitize*
markjdb Oct 19, 2024
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
  •  
  •  
  •  
46 changes: 32 additions & 14 deletions Makefile.inc1
Original file line number Diff line number Diff line change
Expand Up @@ -633,28 +633,27 @@ VERSION= FreeBSD ${_REVISION}-${_BRANCH:C/-p[0-9]+$//} ${TARGET_ARCH} ${SRCRELDA
.endif
MAJOR_REVISION= ${_REVISION:R}

.if !defined(PKG_VERSION)
_PKG_REVISION= ${_REVISION}
_STRTIMENOW= %Y%m%d%H%M%S
_TIMENOW= ${_STRTIMENOW:gmtime}
BRANCH_EXT=
.if ${_BRANCH:MCURRENT*} || ${_BRANCH:MSTABLE*} || ${_BRANCH:MPRERELEASE*}
_PKG_REVISION= ${MAJOR_REVISION}
BRANCH_EXT= snap
EXTRA_REVISION= .${BRANCH_EXT}${_TIMENOW}
_PKG_REVISION:= ${MAJOR_REVISION}
BRANCH_EXT= ${MAJOR_REVISION}.snap
EXTRA_REVISION= .snap${_TIMENOW}
.elif ${_BRANCH:MALPHA*}
BRANCH_EXT= a${_BRANCH:C/ALPHA([0-9]+).*/\1/}
EXTRA_REVISION= .${BRANCH_EXT}.${_TIMENOW}
BRANCH_EXT= alpha
EXTRA_REVISION= .${_BRANCH:C/ALPHA([0-9]+).*/\1/}.${_TIMENOW}
.elif ${_BRANCH:MBETA*}
BRANCH_EXT= b${_BRANCH:C/BETA([0-9]+).*/\1/}
EXTRA_REVISION= .${BRANCH_EXT}.${_TIMENOW}
BRANCH_EXT= beta
EXTRA_REVISION= .${_BRANCH:C/BETA([0-9]+).*/\1/}.${_TIMENOW}
.elif ${_BRANCH:MRC*}
BRANCH_EXT= rc${_BRANCH:C/RC([0-9]+).*/\1/}
EXTRA_REVISION= .${BRANCH_EXT}.${_TIMENOW}
BRANCH_EXT= rc
EXTRA_REVISION= .rc${_BRANCH:C/RC([0-9]+).*/\1/}.${_TIMENOW}
.elif ${_BRANCH:M*-p*}
BRANCH_EXT= p${_BRANCH:C/.*-p([0-9]+$)/\1/}
EXTRA_REVISION= ${BRANCH_EXT}
EXTRA_REVISION= p${_BRANCH:C/.*-p([0-9]+$)/\1/}
.endif
.if !defined(PKG_VERSION)
PKG_VERSION:= ${_PKG_REVISION}${EXTRA_REVISION:C/[[:space:]]//g}
.endif
.endif # !defined(PKG_VERSION)
Expand Down Expand Up @@ -2181,7 +2180,26 @@ PKG_EXT= pkg
.if exists(${PKG_ABI_FILE}) && exists(${REPODIR}/${PKG_ABI})
PKG_VERSION_FROM!=/usr/bin/readlink ${REPODIR}/${PKG_ABI}/latest
PKG_VERSION_FROM_DIR= ${REPODIR}/${PKG_ABI}/${PKG_VERSION_FROM}
BRANCH_EXT_FROM= ${PKG_VERSION_FROM:C/^[^[:alpha:]]+p?([[:alpha:]]*)[0-9]+$/\1/}
# Determine the name of the branch base on the version
# X.bY => beta
# X.aY => alpha
# X.rcY => rc
# X.snap => snap
# all others mean release
#
# This will be used when comparing to the branch that we are building
# to decide if we keep old packages or new packages when only their
# version differs
BRANCH_EXT_FROM=
.if ${PKG_VERSION_FROM:M*.snap*}
BRANCH_EXT_FROM= ${PKG_VERSION_FROM:C/.snap.*$//}.snap
.elif ${PKG_VERSION_FROM:M*.b*}
BRANCH_EXT_FROM= beta
.elif ${PKG_VERSION_FROM:M*.rc*}
BRANCH_EXT_FROM= rc
.elif ${PKG_VERSION_FROM:M*.a*}
BRANCH_EXT_FROM= alpha
.endif
.else
PKG_VERSION_FROM=
PKG_VERSION_FROM_DIR=
Expand Down Expand Up @@ -2222,7 +2240,7 @@ real-update-packages: stage-packages .PHONY
continue; \
fi ; \
newsum=$$(pkg query -F ${REPODIR}/${PKG_ABI}/${PKG_VERSION}/$${newpkgname} '%X') ; \
if [ "${BRANCH_EXT_FROM}" == "${BRANCH_EXT:C/[0-9]+$//}" -a "$${oldsum}" == "$${newsum}" ]; then \
if [ "${BRANCH_EXT_FROM}" = "${BRANCH_EXT}" -a "$${oldsum}" = "$${newsum}" ]; then \
echo "==> Keeping old ${PKG_NAME_PREFIX}-$${pkgname}-${PKG_VERSION_FROM}.${PKG_EXT}" ; \
rm ${REPODIR}/${PKG_ABI}/${PKG_VERSION}/$${newpkgname} ; \
cp $${pkg} ${REPODIR}/${PKG_ABI}/${PKG_VERSION} ; \
Expand Down
1 change: 1 addition & 0 deletions cddl/lib/libzdb/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ CSTD= c99
CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include
CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include
CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/os/freebsd
CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libzpool/include
CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/zfs
CFLAGS+= -I${SRCTOP}/sys
CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/include
Expand Down
1 change: 1 addition & 0 deletions cddl/lib/libzfs_core/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ CFLAGS+= -I${ZFSTOP}/include
CFLAGS+= -I${ZFSTOP}/lib/libzfs_core/common
CFLAGS+= -I${ZFSTOP}/lib/libspl/include/
CFLAGS+= -I${ZFSTOP}/lib/libspl/include/os/freebsd
CFLAGS+= -I${ZFSTOP}/lib/libzpool/include
CFLAGS+= -I${ZFSTOP}/include/os/freebsd/zfs
CFLAGS+= -I${SRCTOP}/sys
CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/include
Expand Down
1 change: 1 addition & 0 deletions cddl/lib/libzfsbootenv/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ CFLAGS+= -DIN_BASE
CFLAGS+= -I${ZFSTOP}/include
CFLAGS+= -I${ZFSTOP}/lib/libspl/include/
CFLAGS+= -I${ZFSTOP}/lib/libspl/include/os/freebsd
CFLAGS+= -I${ZFSTOP}/lib/libzpool/include
CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/include
CFLAGS+= -I${ZFSTOP}/module/icp/include
CFLAGS+= -include ${ZFSTOP}/include/os/freebsd/spl/sys/ccompile.h
Expand Down
18 changes: 11 additions & 7 deletions cddl/lib/libzpool/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
.PATH: ${ZFSTOP}/module/zstd/lib/compress
.PATH: ${ZFSTOP}/module/zstd/lib/decompress

.PATH: ${ZFSTOP}/module/os/linux/zfs

.if exists(${SRCTOP}/sys/cddl/contrib/opensolaris/common/atomic/${MACHINE_ARCH}/opensolaris_atomic.S)
.PATH: ${SRCTOP}/sys/cddl/contrib/opensolaris/common/atomic/${MACHINE_ARCH}
ATOMIC_SRCS= opensolaris_atomic.S
Expand All @@ -32,12 +30,16 @@ PACKAGE= zfs
LIB= zpool

USER_C = \
abd_os.c \
arc_os.c \
kernel.c \
taskq.c \
util.c
util.c \
zfs_debug.c

.PATH: ${ZFSTOP}/module/os/linux/zfs

KERNEL_C = \
simd_stat.c \
zfeature_common.c \
zfs_comutil.c \
zfs_deleg.c \
Expand All @@ -50,9 +52,9 @@ KERNEL_C = \
zpool_prop.c \
zprop_common.c \
abd.c \
abd_os.c \
aggsum.c \
arc.c \
arc_os.c \
blake3_zfs.c \
blkptr.c \
bplist.c \
Expand All @@ -70,6 +72,7 @@ KERNEL_C = \
ddt_zap.c \
dmu.c \
dmu_diff.c \
dmu_direct.c \
dmu_object.c \
dmu_objset.c \
dmu_recv.c \
Expand Down Expand Up @@ -170,7 +173,6 @@ KERNEL_C = \
zfeature.c \
zfs_byteswap.c \
zfs_chksum.c \
zfs_debug.c \
zfs_fm.c \
zfs_fuid.c \
zfs_sa.c \
Expand Down Expand Up @@ -246,7 +248,8 @@ LUA_C = \

UNICODE_C = u8_textprep.c uconv.c

SRCS= ${USER_C} ${KERNEL_C} ${LUA_C} ${UNICODE_C} ${ARCH_C}
SRCS+= ${USER_C} ${KERNEL_C} ${LUA_C} ${UNICODE_C} ${ARCH_C}


WARNS?= 2
CFLAGS+= \
Expand All @@ -259,6 +262,7 @@ CFLAGS+= \
-I${ZFSTOP}/include/os/freebsd/zfs \
-I${SRCTOP}/cddl/compat/opensolaris/include \
-I${ZFSTOP}/module/icp/include \
-I${SRCTOP}/compat/linuxkpi/common/include/linux \
-include ${ZFSTOP}/include/os/freebsd/spl/sys/ccompile.h \
-DHAVE_ISSETUGID \
-include ${SRCTOP}/sys/modules/zfs/zfs_config.h \
Expand Down
1 change: 1 addition & 0 deletions cddl/lib/libzutil/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ CSTD= c99
CFLAGS+= -I${ZFSTOP}/include
CFLAGS+= -I${ZFSTOP}/lib/libspl/include/
CFLAGS+= -I${ZFSTOP}/lib/libspl/include/os/freebsd
CFLAGS+= -I${ZFSTOP}/lib/libzpool/include
CFLAGS+= -I${ZFSTOP}/include/os/freebsd/zfs
CFLAGS+= -I${SRCTOP}/sys
CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/include
Expand Down
1 change: 1 addition & 0 deletions cddl/lib/pam_zfs_key/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ CFLAGS+= -DIN_BASE
CFLAGS+= -I${ZFSTOP}/include
CFLAGS+= -I${ZFSTOP}/lib/libspl/include/
CFLAGS+= -I${ZFSTOP}/lib/libspl/include/os/freebsd
CFLAGS+= -I${ZFSTOP}/lib/libzpool/include
CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/include
CFLAGS+= -I${ZFSTOP}/module/icp/include
CFLAGS+= -include ${ZFSTOP}/include/os/freebsd/spl/sys/ccompile.h
Expand Down
12 changes: 10 additions & 2 deletions cddl/share/zfs/compatibility.d/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ FILES= \
freebsd-11.2 \
freebsd-11.3 \
freenas-9.10.2 \
grub2 \
grub2-2.06 \
grub2-2.12 \
openzfsonosx-1.7.0 \
openzfsonosx-1.8.1 \
openzfsonosx-1.9.3 \
Expand All @@ -20,6 +21,7 @@ FILES= \
openzfs-2.1-freebsd \
openzfs-2.1-linux \
openzfs-2.2 \
openzfs-2.3 \
zol-0.6.1 \
zol-0.6.4 \
zol-0.6.5 \
Expand All @@ -44,13 +46,19 @@ LINKS= \
${FILESDIR}/freebsd-11.3 ${FILESDIR}/freebsd-12.4 \
${FILESDIR}/freebsd-11.3 ${FILESDIR}/freenas-11.3 \
${FILESDIR}/freenas-11.0 ${FILESDIR}/freenas-11.1 \
${FILESDIR}/grub2-2.12 ${FILESDIR}/grub2 \
${FILESDIR}/openzfsonosx-1.9.3 ${FILESDIR}/openzfsonosx-1.9.4 \
${FILESDIR}/openzfs-2.0-freebsd ${FILESDIR}/truenas-12.0 \
${FILESDIR}/openzfs-2.1-freebsd ${FILESDIR}/freebsd-13.0 \
${FILESDIR}/openzfs-2.1-freebsd ${FILESDIR}/freebsd-13.1 \
${FILESDIR}/openzfs-2.1-freebsd ${FILESDIR}/freebsd-13.2 \
${FILESDIR}/zol-0.7 ${FILESDIR}/ubuntu-18.04 \
${FILESDIR}/zol-0.8 ${FILESDIR}/ubuntu-20.04 \
${FILESDIR}/openzfs-2.1-linux ${FILESDIR}/ubuntu-22.04 \
${FILESDIR}/openzfs-2.2 ${FILESDIR}/openzfs-2.2-linux \
${FILESDIR}/openzfs-2.2 ${FILESDIR}/openzfs-2.2-freebsd
${FILESDIR}/openzfs-2.2 ${FILESDIR}/openzfs-2.2-freebsd \
${FILESDIR}/openzfs-2.3 ${FILESDIR}/openzfs-2.3-linux \
${FILESDIR}/openzfs-2.3 ${FILESDIR}/openzfs-2.3-freebsd

LINKMODE= ${NOBINMODE}

Expand Down
1 change: 0 additions & 1 deletion cddl/usr.sbin/zfsd/zfsd.8
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ will log interesting events and its actions to syslog with facility
.Em daemon
and identity
.Op zfsd .
.El
.Sh FILES
.Bl -tag -width a -compact
.It Pa /var/db/zfsd/cases
Expand Down
14 changes: 6 additions & 8 deletions contrib/capsicum-test/capsicum-freebsd.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,12 @@ typedef unsigned long cap_ioctl_t;
// Too many links
#define E_TOO_MANY_LINKS EMLINK

// TODO(FreeBSD): uncomment if/when FreeBSD propagates rights on accept.
// FreeBSD does not generate a capability from accept(cap_fd,...).
// https://bugs.freebsd.org/201052
// #define CAP_FROM_ACCEPT
// TODO(FreeBSD): uncomment if/when FreeBSD propagates rights on sctp_peeloff.
// FreeBSD does not generate a capability from sctp_peeloff(cap_fd,...).
// https://bugs.freebsd.org/201052
// #define CAP_FROM_PEELOFF
// As of commit 85b0f9de11c3 ("capsicum: propagate rights on accept(2)")
// FreeBSD generates a capability from accept(cap_fd,...).
#define CAP_FROM_ACCEPT
// As of commit 91a9e4e01dab ("capsicum: propagate rights on sctp_peeloff")
// FreeBSD generates a capability from sctp_peeloff(cap_fd,...).
#define CAP_FROM_PEELOFF

#endif /* __FreeBSD__ */

Expand Down
5 changes: 4 additions & 1 deletion contrib/capsicum-test/sctp.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Tests of SCTP functionality
// Requires: libsctp-dev package on Debian Linux, CONFIG_IP_SCTP in kernel config
#ifdef HAVE_SCTP
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
Expand All @@ -12,6 +11,7 @@
#include "capsicum.h"
#include "capsicum-test.h"

#ifdef HAVE_SCTP
static cap_rights_t r_ro;
static cap_rights_t r_wo;
static cap_rights_t r_rw;
Expand Down Expand Up @@ -61,6 +61,9 @@ static int SctpClient(int port, unsigned char byte) {

TEST(Sctp, Socket) {
int sock = socket(AF_INET, SOCK_SEQPACKET, IPPROTO_SCTP);
if (sock == -1 && errno == EPROTONOSUPPORT) {
GTEST_SKIP() << "socket(..., IPPROTO_SCTP) -> EPROTONOSUPPORT";
}
EXPECT_OK(sock);
if (sock < 0) return;

Expand Down
50 changes: 34 additions & 16 deletions contrib/kyua/cli/cmd_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,22 +64,19 @@
bool _parallel;

public:
/// The amount of positive test results found so far.
unsigned long good_count;

/// The amount of negative test results found so far.
unsigned long bad_count;
/// The amount of test results per type.
std::map<enum model::test_result_type, unsigned long> type_count;

/// Constructor for the hooks.
///
/// \param ui_ Object to interact with the I/O of the program.
/// \param parallel_ True if we are executing more than one test at once.
print_hooks(cmdline::ui* ui_, const bool parallel_) :
_ui(ui_),
_parallel(parallel_),
good_count(0),
bad_count(0)
_parallel(parallel_)
{
for (const auto& pair : model::test_result_types)

Check failure on line 78 in contrib/kyua/cli/cmd_test.cpp

View workflow job for this annotation

GitHub Actions / Style Checker

spaces required around that '&' (ctx:VxW)
type_count[pair.first] = 0;
}

/// Called when the processing of a test case begins.
Expand Down Expand Up @@ -116,10 +113,8 @@
}
_ui->out(F("%s [%s]") % cli::format_result(result) %
cli::format_delta(duration));
if (result.good())
good_count++;
else
bad_count++;

type_count[result.type()]++;
}
};

Expand Down Expand Up @@ -159,19 +154,42 @@
kyuafile_path(cmdline), build_root_path(cmdline), results.second,
parse_filters(cmdline.arguments()), user_config, hooks);

unsigned long total = 0;
unsigned long good = 0;
unsigned long bad = 0;
for (const auto& pair : model::test_result_types) {

Check failure on line 160 in contrib/kyua/cli/cmd_test.cpp

View workflow job for this annotation

GitHub Actions / Style Checker

spaces required around that '&' (ctx:VxW)
const auto& type = pair.second;

Check failure on line 161 in contrib/kyua/cli/cmd_test.cpp

View workflow job for this annotation

GitHub Actions / Style Checker

spaces required around that '&' (ctx:VxW)
const auto count = hooks.type_count[type.id];
total += count;
if (type.is_run && type.is_good)
good += count;
if (!type.is_good)
bad += count;
}

int exit_code;
if (hooks.good_count > 0 || hooks.bad_count > 0) {
if (total > 0) {
ui->out("");
if (!results.first.empty()) {
ui->out(F("Results file id is %s") % results.first);
}
ui->out(F("Results saved to %s") % results.second);
ui->out("");

ui->out(F("%s/%s passed (%s failed)") % hooks.good_count %
(hooks.good_count + hooks.bad_count) % hooks.bad_count);
ui->out(F("%s/%s passed (") % good % total, false);
const auto& types = model::test_result_types;

Check failure on line 180 in contrib/kyua/cli/cmd_test.cpp

View workflow job for this annotation

GitHub Actions / Style Checker

spaces required around that '&' (ctx:VxW)
for (auto it = types.begin(); it != types.end(); it++) {
const auto& type = it->second;

Check failure on line 182 in contrib/kyua/cli/cmd_test.cpp

View workflow job for this annotation

GitHub Actions / Style Checker

spaces required around that '&' (ctx:VxW)
if (!type.is_run || !type.is_good) {
if (it != types.begin())
ui->out(", ", false);
ui->out(F("%s %s") % hooks.type_count[type.id] % type.name,
false);
}
}
ui->out(")");

exit_code = (hooks.bad_count == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
exit_code = (bad == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
} else {
// TODO(jmmv): Delete created empty file; it's useless!
if (!results.first.empty()) {
Expand Down
Loading
Loading