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-07-26 #2246

Merged
merged 280 commits into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
280 commits
Select commit Hold shift + click to select a range
fcc350c
LinuxKPI: Add pci_iomap_range function
wulf7 Jul 21, 2024
14fc33e
LinuxKPI: Fix resource leak on pci_iounmap-ing of PCI BAR
wulf7 Jul 21, 2024
950d2f4
wpa: Import wpa 2.11
cschuber Jul 21, 2024
24388fc
Bump __FreeBSD_version after LinuxKPI changes.
wulf7 Jul 21, 2024
82f5dfc
db_pprint: Fix offset calculation for struct members
bnovkov Jul 21, 2024
1cbd613
db_pprint: Properly handle complex pointer types
bnovkov Jul 21, 2024
6377230
wpa: Import hostapd 2.11 into wpa
cschuber Jul 21, 2024
397c269
Fix llvm register allocator for native/cross build differences
DimitryAndric Jul 21, 2024
026cdaa
nfscl: Scan readdir reply filenames for invalid characters
Jul 21, 2024
5241b21
cxgbe(4): Basic infrastructure for ULDs to participate in adapter reset.
np-2020 Jul 8, 2024
fd3aca5
cxgbe(4): Stop and restart the atid allocator with the LLD.
np-2020 Jul 12, 2024
cd93fde
cxgbe(4): Stop and restart the L2T allocator with the LLD.
np-2020 Jul 19, 2024
283333c
cxgbe/t4_tom: Track all synq entries in a per-adapter list.
np-2020 Jul 20, 2024
c1c5248
cxgbe/t4_tom: Implement uld_stop and uld_restart for ULD_TOM.
np-2020 Jul 12, 2024
f1c4ed1
cxgbe/iw_cxgbe: Add a placeholder uld_restart.
np-2020 Jul 7, 2024
37b3e6a
tcp: use TCP_MAXWIN instead of 65535
tuexen Jul 22, 2024
7f2411b
tcp: improve whitespace consistency
tuexen Jul 22, 2024
644b7b5
pf: convert DIOCGETADDRS to netlink
kprovost Jul 19, 2024
9ae91f5
pf: convert DIOCGETADDR to netlink
kprovost Jul 19, 2024
5688843
sys: Index netlink/ files with the cscope target
kwitaszczyk Jul 9, 2024
bb8fa2e
sbin/nos-tun: correct SIOCDIFADDR calls to use ifreq
kwitaszczyk Jun 28, 2024
2ab5515
usr.sbin/ppp: correct SIOCDIFADDR{,_IN6} calls to use {,in6_}ifreq
kwitaszczyk Jun 28, 2024
bc06c51
netinet: correct SIOCDIFADDR{,_IN6} calls to use {,in6_}ifreq
kwitaszczyk Jun 27, 2024
c74a4ce
usr.sbin/uhsoctl: correct SIOCDIFADDR calls to use ifreq
kwitaszczyk Jun 28, 2024
43d45f2
nvmf_tcp: Don't require a data digest for PDUs without data
bsdjhb Jul 22, 2024
4736185
arm64: Add EL1 and EL12 register alt names
zxombie Jul 23, 2024
997511d
arm64: Support counter access with E2H
zxombie Jul 23, 2024
57ef793
arm64: Fix the gicv3 check in locore.S
zxombie Jul 23, 2024
034c83f
arm64: Ensure sctlr and pstate are in known states
zxombie Jul 23, 2024
9840598
dev/uart: Add APMC0D08 as found in the Intel E2100
zxombie Jul 23, 2024
7b73ecf
nuageinit: Accept plain text passwords
jlduran Jul 23, 2024
07d17ca
nuageinit: Set recommended SSH permissions
jlduran Jul 23, 2024
ae8d588
vnet tests: verify that we can load if_epair and if_bridge
kprovost Jul 18, 2024
b0fcf4d
pf tests: ensure temporary files end up in the atf working directory
kprovost Jul 19, 2024
4f752a1
netpfil tests: run in parallel
kprovost Jul 19, 2024
dcfa666
nvmft: Handle qpair allocation failures during handoff
bsdjhb Jul 23, 2024
a90b9d0
wpa: Import 2.11
cschuber Jul 21, 2024
158f319
route: avoid overlapping strcpy
kevans91 Jul 23, 2024
0ac6cc3
iichid: Soften "Interrupt setup failed" message
emaste Jul 23, 2024
381c116
ota: Import 9f971fba471b from bsd-feature for 20240623
bsdimp Jul 23, 2024
cade8f6
ELF auxargs: reserve a slot for CheriABI use
brooksdavis Jul 23, 2024
17853db
ota: Merge 20240623 (bsd-features) from ota 9f971fba471b
bsdimp Jul 23, 2024
8f77be2
mitigations(7): note that FORTIFY_SOURCE must be set in the env
kevans91 Jul 23, 2024
86909f7
nvme: Always lock and only avoid processing for recovery state
bsdimp Jul 23, 2024
e6d3ba4
nvme: Lock when processing an abort completion command.
bsdimp Jul 23, 2024
aa41354
nvme: Optimize timeout code further
bsdimp Jul 23, 2024
bb7f7d5
nvme: Warn if there's system interrupt issues.
bsdimp Jul 23, 2024
9e6544d
malloc(9): extend contigmalloc(9) by a "slab cookie"
Jun 30, 2024
c0df224
kern_malloc: remove '.' and '\n' from KASSERT/panic
Jul 23, 2024
124ae0e
tarfs: Fix typo.
Ximalas Jul 24, 2024
8880825
wpa: Fix gcc build
cschuber Jul 24, 2024
cd836f6
vm: Retire kmem_arena
alcriceedu Jul 21, 2024
096dfa3
vm: Retire vm_page_alloc_freelist{,_domain}()
alcriceedu Jul 23, 2024
647d4a8
ls: Make -, apply to -s as well as -l.
dag-erling Jul 24, 2024
f890020
pax: Clear arcn in each read function.
dag-erling Jul 24, 2024
1c30cf9
malloc: Handle large malloc sizes in malloc_size()
markjdb Jul 24, 2024
82283ca
dtrace: Avoid including dtrace_isa.c directly into dtrace.c
markjdb Jul 24, 2024
f68c4b4
nvme: Add bit names for nvme 2.0 for Async Events
bsdimp Jul 24, 2024
4a0b795
cross-build: Move fcntl.h workaround to Linux specific file
bsdimp Jul 25, 2024
744991d
cross-build: progname.c is used only on linux, so no ifdefs needed
bsdimp Jul 25, 2024
18cf1e5
cross-build: Define DEFFILEMODE and ALLPERMS if not defined
bsdimp Jul 25, 2024
195a96f
stand: Stop building in fat, ext2fs, gzip and bzip to BIOS /boot/loader
bsdimp Jul 25, 2024
22ea1ec
newbus: introduce DEVICE_UNIT_ANY
bsdimp Jul 25, 2024
29d13f3
newbus: Document new DEVICE_UNIT_ANY
bsdimp Jul 25, 2024
5b56413
newbus: globally replace device_add_child(..., -1) with DEVICE_UNIT_ANY
bsdimp Jul 25, 2024
a05a680
newbus: replace -1 in BUS_ADD_CHILD(...-1) with DEVICE_UNIT_ANY
bsdimp Jul 25, 2024
0a59a6b
style: Allow C++ comments
bsdimp Jul 25, 2024
028b16e
cam: better ioctl compatibility for cd
bsdimp Jul 25, 2024
ce41bee
ipmi_smbios: Only search for the BIOS signature on x86
bsdimp Jul 25, 2024
0632661
smbios: Add length sanity checking
bsdimp Jul 25, 2024
2e35684
arm64: Add smbios to kernel
bsdimp Jul 25, 2024
5a0e903
ipmi: Sort ipmi lines.
bsdimp Jul 25, 2024
169d069
smbios: Compile into the kernel more completely
allanjude Jul 25, 2024
4eee292
Revert "cam: better ioctl compatibility for cd"
bsdimp Jul 25, 2024
cab41e0
Do not allow snapshots on UFS filesystems using gjournal.
Jul 25, 2024
98dd639
arm64 pmap: Eliminate an unnecessary conditional
alcriceedu Jul 24, 2024
1991946
CODEOWNERS: Add nuageinit
jlduran Jul 23, 2024
7aecd68
nuageinit: Fix the homedir variable name
jlduran Jul 23, 2024
8edd6c0
nuageinit: Fix tests
jlduran Jul 23, 2024
40299c5
tcp: implement challenge ACK throttling for the base stack
tuexen Jul 25, 2024
4d8c65b
LinuxKPI: remove dummy kstrtox.h
Jul 25, 2024
a8a9527
pfctl: Allow a semicolon (;) as a comment
jurajlutter Jul 25, 2024
250e074
pfctl tests: fix dependency
kprovost Jul 25, 2024
bd206a6
LinuxKPI: 802.11: consistently spell TRACE-RX: as such
Jun 5, 2024
a48df53
nd6: Fix the routing table subscription
markjdb Jul 25, 2024
db8b357
LinuxKPI: 802.11: implement ieee80211_sn_*()
Jun 5, 2024
59d262f
LinuxKPI: 802.11 compile in debugging based on IEEE80211 debugging
Apr 6, 2024
5670b8c
libthr: Preresolve selected EABI symbols on arm.
strejda Jul 24, 2024
e8fe3b9
arm64: turn on IEEE80211 debugging and IEEE80211_SUPPORT_MESH too
Apr 6, 2024
9565854
cc_cubic: remove the redundant variable num_cong_events from struct c…
ccfbsd Jul 19, 2024
55a2a91
Merge commit 28a2b85602a5 from llvm-project (by Kazu Hirata):
DimitryAndric Jul 25, 2024
9baed39
Add osamaabb as src committer and cperciva as mentor
Jul 17, 2024
4aff404
LinuxKPI: 802.11: support manual lladdr changes
Jul 25, 2024
5d0498d
nvmf_tcp: Rename max_c2hdata sysctl to max_transmit_data
bsdjhb Jul 25, 2024
6549718
nvmfd: Stop setting MAXR2T in association parameters
bsdjhb Jul 25, 2024
fd0e6af
libnvmf: Require MAXH2CDATA to be a multiple of 4
bsdjhb Jul 25, 2024
846d702
libnvmf: Reject invalid values of MAXH2CDATA for new associations
bsdjhb Jul 25, 2024
7f73c04
nvmfd: Correct usage description
bsdjhb Jul 25, 2024
399362b
nvmfd: Permit setting the MAXH2CDATA value via -H
bsdjhb Jul 25, 2024
feda329
netinet6 tests: Add a regression test for default router handling
markjdb Jul 25, 2024
2b22973
Avoid division in round_up.
VoxSciurorum Jul 25, 2024
f5c8944
Revert "Avoid division in round_up."
brooksdavis Jul 25, 2024
5b8c01d
amd64 pmap: Optimize PKU lookups when creating superpage mappings
alcriceedu Jul 25, 2024
d1bdc28
Deprecate contigfree(9) in favour of free(9)
Jul 23, 2024
4fab5f0
kern_malloc: fold free and zfree together into one __always_inline func
Jul 24, 2024
5668c22
LinuxKPI/lindebugfs: stop panicing in lindebugfs, fix simple_read_fro…
Jun 27, 2024
c179937
libc/getnameinfo: stop adding NI_NUMERICHOST where inappropriate
Jun 10, 2024
9776aba
net80211: scan/internal: change boolean argument from int to bool
Jun 30, 2024
5c3af1d
nullfs: Use an a_gen field to cast to vop_generic_args
kwitaszczyk Nov 9, 2022
1f7df75
LinuxKPI: move __kmalloc from slab.h to slab.c
Jun 30, 2024
1d897d1
netisr: avoid ffs(0)
Jul 26, 2024
56ecc8a
pci_user: Rename _old to _freebsd6
bsdimp Jul 26, 2024
64179c3
stress2: Fix tests after the new default for newfs(8) is "SU"
phoatfreebsd Jul 20, 2024
237be33
cdefs.9: Update for C++ environments
bsdimp Jul 20, 2024
740420e
ipf: correct size limit in snprintf
rlibby Jul 20, 2024
2ec6e0b
Merge bmake-20240711
sgerraty Jul 20, 2024
c798d32
cam/iosched: Use better malloc idiom
bsdimp Jul 20, 2024
468518e
leap-seconds: Update to leap-seconds 3960057600 obtained from IERS
cschuber Jul 21, 2024
9d0cbd1
include: ssp: fix last bare `inline`
kevans91 Jul 21, 2024
e2692d7
sockstat(1): tolerate situation where file info cannot be fetched
kostikbel Jul 20, 2024
7e128fe
netinet/ipsec.h: remove unneeded "extern"s
kostikbel Jul 19, 2024
6c334e9
netipsec: move declaration of the sysctl net.inet{,6}.ipsec nodes to …
kostikbel Jul 19, 2024
befabf3
ipsec_offload: hide SA/SP offload lifecycle prints under verbose sysctl
kostikbel Jul 19, 2024
d62beec
sctp(4): Fix typos in source code comments
gbergling Jul 21, 2024
d5bdb76
stress2: Fix a typo in namecache2.sh
gbergling Jul 21, 2024
e131cee
ipfilter(4): Fix typos in source code comments
gbergling Jul 21, 2024
d62474a
axgbe: Fix two typos in source code comments
gbergling Jul 21, 2024
f1af4f9
LinuxKPI: Automatically enable drm support for devices named "drmn"
wulf7 Jul 21, 2024
d76efb7
LinuxKPI: Add kvrealloc to linux/slab.h
wulf7 Jul 21, 2024
b705872
LinuxKPI: Add kmalloc_size_roundup function
wulf7 Jul 21, 2024
73cec25
LinuxKPI: Add __diag macros
wulf7 Jul 21, 2024
d12754a
LinuxKPI: Add page_to_virt function
wulf7 Jul 21, 2024
4cdb991
LinuxKPI: Add devm_device_add_group to linux/device.h
wulf7 Jul 21, 2024
16d1a96
LinuxKPI: Add pci_match_id to linux/pci.h
wulf7 Jul 21, 2024
b368dfb
LinuxKPI: Add acpi_dev_get_first_match_dev and acpi_device_handle
wulf7 Jul 21, 2024
fc5777b
LinuxKPI: Add linux/eventfd.h and linux/memremap.h dummy headers
wulf7 Jul 21, 2024
d4cf9c5
LinuxKPI: Remove owner argument from class_create function on KBI layer
wulf7 Jul 21, 2024
14ce409
LinuxKPI: Remove vmas argument from get_user_pages on KBI layer
wulf7 Jul 21, 2024
aa3aa27
LinuxKPI: Add pci_iomap_range function
wulf7 Jul 21, 2024
c308754
LinuxKPI: Fix resource leak on pci_iounmap-ing of PCI BAR
wulf7 Jul 21, 2024
677ee55
Bump __FreeBSD_version after LinuxKPI changes.
wulf7 Jul 21, 2024
3556c59
db_pprint: Fix offset calculation for struct members
bnovkov Jul 21, 2024
11ddb1e
db_pprint: Properly handle complex pointer types
bnovkov Jul 21, 2024
1623a06
tcp: improve SEG.ACK validation
tuexen Jul 21, 2024
d8428c8
tcp: simplify endpoint creation at the passive side
tuexen Jul 21, 2024
0865967
Fix llvm register allocator for native/cross build differences
DimitryAndric Jul 21, 2024
81631f5
Skipping merge of 026cdaa3b3a92574d9ac3155216e5cc0b0bd4c51
bsdjhb Nov 12, 2024
bce4125
tcp: mark TCP stacks which can serve as a default stack
tuexen Jul 21, 2024
3bf7874
cxgbe(4): Basic infrastructure for ULDs to participate in adapter reset.
np-2020 Jul 8, 2024
8b48729
cxgbe(4): Stop and restart the atid allocator with the LLD.
np-2020 Jul 12, 2024
c049766
cxgbe(4): Stop and restart the L2T allocator with the LLD.
np-2020 Jul 19, 2024
1127990
cxgbe/t4_tom: Track all synq entries in a per-adapter list.
np-2020 Jul 20, 2024
dd3ce87
cxgbe/t4_tom: Implement uld_stop and uld_restart for ULD_TOM.
np-2020 Jul 12, 2024
b69e238
cxgbe/iw_cxgbe: Add a placeholder uld_restart.
np-2020 Jul 7, 2024
6b75c16
pf: convert DIOCGETADDRS to netlink
kprovost Jul 19, 2024
98a5261
pf: convert DIOCGETADDR to netlink
kprovost Jul 19, 2024
670c87f
sys: Index netlink/ files with the cscope target
kwitaszczyk Jul 9, 2024
e709358
sbin/nos-tun: correct SIOCDIFADDR calls to use ifreq
kwitaszczyk Jun 28, 2024
b3450bb
usr.sbin/ppp: correct SIOCDIFADDR{,_IN6} calls to use {,in6_}ifreq
kwitaszczyk Jun 28, 2024
7fe0036
netinet: correct SIOCDIFADDR{,_IN6} calls to use {,in6_}ifreq
kwitaszczyk Jun 27, 2024
8733bfa
usr.sbin/uhsoctl: correct SIOCDIFADDR calls to use ifreq
kwitaszczyk Jun 28, 2024
2b6da6c
tcp: use TCP_MAXWIN instead of 65535
tuexen Jul 22, 2024
8f94821
tcp: improve whitespace consistency
tuexen Jul 22, 2024
a33e092
nvmf_tcp: Don't require a data digest for PDUs without data
bsdjhb Jul 22, 2024
d7b7739
arm64: Add EL1 and EL12 register alt names
zxombie Jul 23, 2024
87b1be9
arm64: Support counter access with E2H
zxombie Jul 23, 2024
4cfceaa
arm64: Fix the gicv3 check in locore.S
zxombie Jul 23, 2024
4d2dec8
arm64: Ensure sctlr and pstate are in known states
zxombie Jul 23, 2024
aa34c5c
dev/uart: Add APMC0D08 as found in the Intel E2100
zxombie Jul 23, 2024
4fe63d6
nuageinit: Accept plain text passwords
jlduran Jul 23, 2024
240e52e
nuageinit: Set recommended SSH permissions
jlduran Jul 23, 2024
93062a9
vnet tests: verify that we can load if_epair and if_bridge
kprovost Jul 18, 2024
9a3ac3b
pf tests: ensure temporary files end up in the atf working directory
kprovost Jul 19, 2024
b96e46b
netpfil tests: run in parallel
kprovost Jul 19, 2024
68d404d
nvmft: Handle qpair allocation failures during handoff
bsdjhb Jul 23, 2024
bad08e9
wpa: Import 2.11
cschuber Jul 21, 2024
735e37b
route: avoid overlapping strcpy
kevans91 Jul 23, 2024
a5432d3
iichid: Soften "Interrupt setup failed" message
emaste Jul 23, 2024
c41eab9
Skipping merge of cade8f6c118f304eb7c91a1d423b4a97ee466284
bsdjhb Nov 12, 2024
e8c1892
ota: Merge 20240623 (bsd-features) from ota 9f971fba471b
bsdimp Jul 23, 2024
9c84938
mitigations(7): note that FORTIFY_SOURCE must be set in the env
kevans91 Jul 23, 2024
5c57bae
nvme: Always lock and only avoid processing for recovery state
bsdimp Jul 23, 2024
f6eee52
nvme: Lock when processing an abort completion command.
bsdimp Jul 23, 2024
62573a9
nvme: Optimize timeout code further
bsdimp Jul 23, 2024
d651d23
nvme: Warn if there's system interrupt issues.
bsdimp Jul 23, 2024
7eb25c2
malloc(9): extend contigmalloc(9) by a "slab cookie"
Jun 30, 2024
76ef969
kern_malloc: remove '.' and '\n' from KASSERT/panic
Jul 23, 2024
d3f4cbd
tarfs: Fix typo.
Ximalas Jul 24, 2024
b539ce5
wpa: Fix gcc build
cschuber Jul 24, 2024
2f39930
vm: Retire kmem_arena
alcriceedu Jul 21, 2024
ec8792a
vm: Retire vm_page_alloc_freelist{,_domain}()
alcriceedu Jul 23, 2024
e1b29bf
ls: Make -, apply to -s as well as -l.
dag-erling Jul 24, 2024
b57bdd6
pax: Clear arcn in each read function.
dag-erling Jul 24, 2024
b93b4ae
malloc: Handle large malloc sizes in malloc_size()
markjdb Jul 24, 2024
19a68b0
dtrace: Avoid including dtrace_isa.c directly into dtrace.c
markjdb Jul 24, 2024
d65558b
nvme: Add bit names for nvme 2.0 for Async Events
bsdimp Jul 24, 2024
0cdcc5e
cross-build: Move fcntl.h workaround to Linux specific file
bsdimp Jul 25, 2024
9e3bf5a
cross-build: progname.c is used only on linux, so no ifdefs needed
bsdimp Jul 25, 2024
2313921
cross-build: Define DEFFILEMODE and ALLPERMS if not defined
bsdimp Jul 25, 2024
aea7542
stand: Stop building in fat, ext2fs, gzip and bzip to BIOS /boot/loader
bsdimp Jul 25, 2024
50203cb
newbus: introduce DEVICE_UNIT_ANY
bsdimp Jul 25, 2024
3068f2f
newbus: Document new DEVICE_UNIT_ANY
bsdimp Jul 25, 2024
76e03c4
newbus: globally replace device_add_child(..., -1) with DEVICE_UNIT_ANY
bsdimp Jul 25, 2024
03ec335
newbus: replace -1 in BUS_ADD_CHILD(...-1) with DEVICE_UNIT_ANY
bsdimp Jul 25, 2024
6710ffd
style: Allow C++ comments
bsdimp Jul 25, 2024
8c95fb2
cam: better ioctl compatibility for cd
bsdimp Jul 25, 2024
5688518
ipmi_smbios: Only search for the BIOS signature on x86
bsdimp Jul 25, 2024
8106be3
smbios: Add length sanity checking
bsdimp Jul 25, 2024
cfea652
arm64: Add smbios to kernel
bsdimp Jul 25, 2024
e20f59e
ipmi: Sort ipmi lines.
bsdimp Jul 25, 2024
94fac9f
smbios: Compile into the kernel more completely
allanjude Jul 25, 2024
cfcbee5
Revert "cam: better ioctl compatibility for cd"
bsdimp Jul 25, 2024
6065527
Do not allow snapshots on UFS filesystems using gjournal.
Jul 25, 2024
62e876c
arm64 pmap: Eliminate an unnecessary conditional
alcriceedu Jul 24, 2024
90a08a5
Skipping merge of 1991946cff2a4c87c9272c2ccc1c2fb3b1cfba96
bsdjhb Nov 12, 2024
7f710fe
nuageinit: Fix the homedir variable name
jlduran Jul 23, 2024
607ac82
nuageinit: Fix tests
jlduran Jul 23, 2024
249ae56
LinuxKPI: remove dummy kstrtox.h
Jul 25, 2024
aff4e9f
pfctl: Allow a semicolon (;) as a comment
jurajlutter Jul 25, 2024
234bf0e
pfctl tests: fix dependency
kprovost Jul 25, 2024
91cbf66
LinuxKPI: 802.11: consistently spell TRACE-RX: as such
Jun 5, 2024
b563692
nd6: Fix the routing table subscription
markjdb Jul 25, 2024
158bee8
LinuxKPI: 802.11: implement ieee80211_sn_*()
Jun 5, 2024
faedf01
LinuxKPI: 802.11 compile in debugging based on IEEE80211 debugging
Apr 6, 2024
d628248
libthr: Preresolve selected EABI symbols on arm.
strejda Jul 24, 2024
583db14
arm64: turn on IEEE80211 debugging and IEEE80211_SUPPORT_MESH too
Apr 6, 2024
0d9769b
cc_cubic: remove the redundant variable num_cong_events from struct c…
ccfbsd Jul 19, 2024
3e94fed
Merge commit 28a2b85602a5 from llvm-project (by Kazu Hirata):
DimitryAndric Jul 25, 2024
48617b0
Add osamaabb as src committer and cperciva as mentor
Jul 17, 2024
0673a69
LinuxKPI: 802.11: support manual lladdr changes
Jul 25, 2024
d4b62ee
nvmf_tcp: Rename max_c2hdata sysctl to max_transmit_data
bsdjhb Jul 25, 2024
69d8cfd
nvmfd: Stop setting MAXR2T in association parameters
bsdjhb Jul 25, 2024
cacb84b
libnvmf: Require MAXH2CDATA to be a multiple of 4
bsdjhb Jul 25, 2024
fba36bd
libnvmf: Reject invalid values of MAXH2CDATA for new associations
bsdjhb Jul 25, 2024
30ee42b
nvmfd: Correct usage description
bsdjhb Jul 25, 2024
06d64a9
nvmfd: Permit setting the MAXH2CDATA value via -H
bsdjhb Jul 25, 2024
cd590d6
tcp: implement challenge ACK throttling for the base stack
tuexen Jul 25, 2024
395b406
netinet6 tests: Add a regression test for default router handling
markjdb Jul 25, 2024
b2a5154
Avoid division in round_up.
VoxSciurorum Jul 25, 2024
958d1cf
Revert "Avoid division in round_up."
brooksdavis Jul 25, 2024
1e0133d
amd64 pmap: Optimize PKU lookups when creating superpage mappings
alcriceedu Jul 25, 2024
33a69ba
Deprecate contigfree(9) in favour of free(9)
Jul 23, 2024
146ba07
kern_malloc: fold free and zfree together into one __always_inline func
Jul 24, 2024
a102d21
LinuxKPI/lindebugfs: stop panicing in lindebugfs, fix simple_read_fro…
Jun 27, 2024
92394ac
libc/getnameinfo: stop adding NI_NUMERICHOST where inappropriate
Jun 10, 2024
6b20ff0
net80211: scan/internal: change boolean argument from int to bool
Jun 30, 2024
390ee82
nullfs: Use an a_gen field to cast to vop_generic_args
kwitaszczyk Nov 9, 2022
7165b71
LinuxKPI: move __kmalloc from slab.h to slab.c
Jun 30, 2024
0bf8ce9
netisr: avoid ffs(0)
Jul 26, 2024
242e374
pci_user: Rename _old to _freebsd6
bsdimp Jul 26, 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
  •  
  •  
  •  
7 changes: 7 additions & 0 deletions ObsoleteFiles.inc
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@
# xargs -n1 | sort | uniq -d;
# done

# 20240726: deprecate contigfree(9)
OLD_FILES+=usr/share/man/man9/contigfree.9.gz

# 20240721: retire vm_page_alloc_freelist
OLD_FILES+=usr/share/man/man9/vm_page_alloc_freelist.9.gz
OLD_FILES+=usr/share/man/man9/vm_page_alloc_freelist_domain.9.gz

# 20240716: retire mergemaster
OLD_FILES+=usr/sbin/mergemaster
OLD_FILES+=usr/share/man/man8/mergemaster.8.gz
Expand Down
4 changes: 3 additions & 1 deletion bin/ls/ls.1
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.Dd February 21, 2024
.Dd July 22, 2024
.Dt LS 1
.Os
.Sh NAME
Expand Down Expand Up @@ -434,6 +434,8 @@ output is not to a terminal.
.It Fl ,
(Comma) When the
.Fl l
or
.Fl s
option is set, print file sizes grouped and separated by thousands using the
non-monetary separator returned by
.Xr localeconv 3 ,
Expand Down
3 changes: 2 additions & 1 deletion bin/ls/ls.c
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,8 @@ display(const FTSENT *p, FTSENT *list, int options)
d.maxlen = maxlen;
if (needstats) {
d.btotal = btotal;
d.s_block = snprintf(NULL, 0, "%lu", howmany(maxblock, blocksize));
d.s_block = snprintf(NULL, 0, f_thousands ? "%'ld" : "%ld",
howmany(maxblock, blocksize));
d.s_flags = maxflags;
d.s_label = maxlabelstr;
d.s_group = maxgroup;
Expand Down
14 changes: 6 additions & 8 deletions bin/ls/print.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ printlong(const DISPLAY *dp)
(void)printf("%*ju ",
dp->s_inode, (uintmax_t)sp->st_ino);
if (f_size)
(void)printf("%*jd ",
(void)printf(f_thousands ? "%'*jd " : "%*jd ",
dp->s_block, howmany(sp->st_blocks, blocksize));
strmode(sp->st_mode, buf);
aclmode(buf, p);
Expand Down Expand Up @@ -400,7 +400,7 @@ printaname(const FTSENT *p, u_long inodefield, u_long sizefield)
chcnt += printf("%*ju ",
(int)inodefield, (uintmax_t)sp->st_ino);
if (f_size)
chcnt += printf("%*jd ",
chcnt += printf(f_thousands ? "%'*jd " : "%*jd ",
(int)sizefield, howmany(sp->st_blocks, blocksize));
#ifdef COLORLS
if (f_color)
Expand Down Expand Up @@ -753,12 +753,10 @@ printsize(size_t width, off_t bytes)
humanize_number(buf, sizeof(buf), (int64_t)bytes, "",
HN_AUTOSCALE, HN_B | HN_NOSPACE | HN_DECIMAL);
(void)printf("%*s ", (u_int)width, buf);
} else if (f_thousands) { /* with commas */
/* This format assignment needed to work round gcc bug. */
const char *format = "%*j'd ";
(void)printf(format, (u_int)width, bytes);
} else
(void)printf("%*jd ", (u_int)width, bytes);
} else {
(void)printf(f_thousands ? "%'*jd " : "%*jd ",
(u_int)width, bytes);
}
}

/*
Expand Down
16 changes: 16 additions & 0 deletions bin/ls/tests/ls_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,21 @@ s_flag_body()
done
}

atf_test_case scomma_flag
scomma_flag_head()
{
atf_set "descr" "Verify that -s, prints out the size with ',' delimiters"
}

scomma_flag_body()
{
export LC_ALL=en_US.UTF-8
atf_check -e ignore dd if=/dev/urandom of=file bs=65536 count=64
blocks=$(stat -f "%b" file)
cblocks=$(printf "%'d" $blocks)
atf_check -e empty -o match:"$cblocks[[:space:]]+file" ls -s, file
}

atf_test_case t_flag
t_flag_head()
{
Expand Down Expand Up @@ -972,6 +987,7 @@ atf_init_test_cases()
atf_add_test_case q_flag_and_w_flag
atf_add_test_case r_flag
atf_add_test_case s_flag
atf_add_test_case scomma_flag
atf_add_test_case t_flag
atf_add_test_case u_flag
atf_add_test_case v_flag
Expand Down
12 changes: 3 additions & 9 deletions bin/pax/cpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,13 +274,13 @@ cpio_rd(ARCHD *arcn, char *buf)
*/
if (cpio_id(buf, sizeof(HD_CPIO)) < 0)
return(-1);
memset(arcn, 0, sizeof *arcn);
hd = (HD_CPIO *)buf;

/*
* byte oriented cpio (posix) does not have padding! extract the octal
* ascii fields from the header
*/
arcn->pad = 0L;
arcn->sb.st_dev = (dev_t)asc_ul(hd->c_dev, sizeof(hd->c_dev), OCT);
arcn->sb.st_ino = (ino_t)asc_ul(hd->c_ino, sizeof(hd->c_ino), OCT);
arcn->sb.st_mode = (mode_t)asc_ul(hd->c_mode, sizeof(hd->c_mode), OCT);
Expand Down Expand Up @@ -309,8 +309,6 @@ cpio_rd(ARCHD *arcn, char *buf)
/*
* no link name to read for this file
*/
arcn->ln_nlen = 0;
arcn->ln_name[0] = '\0';
return(com_rd(arcn));
}

Expand Down Expand Up @@ -555,8 +553,8 @@ vcpio_rd(ARCHD *arcn, char *buf)
return(-1);
}

memset(arcn, 0, sizeof *arcn);
hd = (HD_VCPIO *)buf;
arcn->pad = 0L;

/*
* extract the hex ascii fields from the header
Expand Down Expand Up @@ -603,8 +601,6 @@ vcpio_rd(ARCHD *arcn, char *buf)
/*
* we have a valid header (not a link)
*/
arcn->ln_nlen = 0;
arcn->ln_name[0] = '\0';
arcn->pad = VCPIO_PAD(arcn->sb.st_size);
return(com_rd(arcn));
}
Expand Down Expand Up @@ -851,7 +847,7 @@ bcpio_rd(ARCHD *arcn, char *buf)
if (bcpio_id(buf, sizeof(HD_BCPIO)) < 0)
return(-1);

arcn->pad = 0L;
memset(arcn, 0, sizeof *arcn);
hd = (HD_BCPIO *)buf;
if (swp_head) {
/*
Expand Down Expand Up @@ -913,8 +909,6 @@ bcpio_rd(ARCHD *arcn, char *buf)
/*
* we have a valid header (not a link)
*/
arcn->ln_nlen = 0;
arcn->ln_name[0] = '\0';
arcn->pad = BCPIO_PAD(arcn->sb.st_size);
return(com_rd(arcn));
}
Expand Down
20 changes: 2 additions & 18 deletions bin/pax/tar.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,9 @@ tar_rd(ARCHD *arcn, char *buf)
*/
if (tar_id(buf, BLKMULT) < 0)
return(-1);
memset(arcn, 0, sizeof *arcn);
arcn->org_name = arcn->name;
arcn->sb.st_nlink = 1;
arcn->pat = NULL;

/*
* copy out the name and values in the stat buffer
Expand All @@ -396,8 +396,6 @@ tar_rd(ARCHD *arcn, char *buf)
* to encode this as a directory
*/
pt = &(arcn->name[arcn->nlen - 1]);
arcn->pad = 0;
arcn->skip = 0;
switch(hd->linkflag) {
case SYMTYPE:
/*
Expand Down Expand Up @@ -434,17 +432,13 @@ tar_rd(ARCHD *arcn, char *buf)
arcn->type = PAX_DIR;
arcn->sb.st_mode |= S_IFDIR;
arcn->sb.st_nlink = 2;
arcn->ln_name[0] = '\0';
arcn->ln_nlen = 0;
break;
case AREGTYPE:
case REGTYPE:
default:
/*
* If we have a trailing / this is a directory and NOT a file.
*/
arcn->ln_name[0] = '\0';
arcn->ln_nlen = 0;
if (*pt == '/') {
/*
* it is a directory, set the mode for -v printing
Expand Down Expand Up @@ -721,10 +715,9 @@ ustar_rd(ARCHD *arcn, char *buf)
*/
if (ustar_id(buf, BLKMULT) < 0)
return(-1);
memset(arcn, 0, sizeof *arcn);
arcn->org_name = arcn->name;
arcn->sb.st_nlink = 1;
arcn->pat = NULL;
arcn->nlen = 0;
hd = (HD_USTAR *)buf;

/*
Expand Down Expand Up @@ -771,15 +764,6 @@ ustar_rd(ARCHD *arcn, char *buf)
if (uid_name(hd->uname, &(arcn->sb.st_uid)) < 0)
arcn->sb.st_uid = (uid_t)asc_ul(hd->uid, sizeof(hd->uid), OCT);

/*
* set the defaults, these may be changed depending on the file type
*/
arcn->ln_name[0] = '\0';
arcn->ln_nlen = 0;
arcn->pad = 0;
arcn->skip = 0;
arcn->sb.st_rdev = (dev_t)0;

/*
* set the mode and PAX type according to the typeflag in the header
*/
Expand Down
83 changes: 83 additions & 0 deletions contrib/bmake/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,86 @@
2024-07-13 Simon J Gerraty <sjg@beast.crufty.net>

* cleanup redundant differences from NetBSD make
o parse.c: no longer uses mmap
o var.c: check __STDC_VERSION__ not __STDC__

2024-07-12 Simon J Gerraty <sjg@beast.crufty.net>

* Apply some patches from NetBSD pkgsrc to reduce divergence
o meta.c: requires sys/select.h if available
o var.c: ensure SIZE_MAX has a value
o util.c: ensure SA_RESTART is defined

* configure.in: use *ksh* rather than just *ksh to match
ksh shell specification.

* unit-tests/Makefile: expand BROKEN_TESTS for ksh and
mksh in particular

2024-07-11 Simon J Gerraty <sjg@beast.crufty.net>

* VERSION (_MAKE_VERSION): 20240711
Merge with NetBSD make, pick up
o compat.c: allow Compat_RunCommand to also handle very long
commands by writing to a temp file when needed.
o main.c: extract the temp file logic recently added to Cmd_Exec
to Cmd_Argv so it can be leveraged by Compat_RunCommand.

2024-07-09 Simon J Gerraty <sjg@beast.crufty.net>

* VERSION (_MAKE_VERSION): 20240709
Merge with NetBSD make, pick up
o error out on parse/evaluation errors in shell commands
o var.c: error out on syntax errors in ':M' and ':N' modifiers

2024-07-07 Simon J Gerraty <sjg@beast.crufty.net>

* VERSION (_MAKE_VERSION): 20240707
Merge with NetBSD make, pick up
o only generate code for cleanup functions in CLEANUP mode
o hash.c: don't track hash table chain lengths during lookup
unless debugging
o main.c: move initialization of variable scopes to targ.c
o var.c: remove Var_End as it is now unnecessary

2024-07-06 Simon J Gerraty <sjg@beast.crufty.net>

* VERSION (_MAKE_VERSION): 20240706
Merge with NetBSD make, pick up
o reduce lint comments about ARGSUSED
o cond.c: error out on conditions containing the operators '&' and '|'
o str.c: error out on a matching malformed matching pattern '[['
o var.c: in error messages, distinguish parsing from evaluating
in error messages for anonymous variables, log the value
error out on unclosed expressions during parse time

2024-07-04 Simon J Gerraty <sjg@beast.crufty.net>

* VERSION (_MAKE_VERSION): 20240704
Merge with NetBSD make, pick up
o add more context information to error messages
o main.c: on error, print the targets to be made
add detailed exit status to message for failed sub-commands
o var.c: error out on the "Bad modifier" error message

2024-07-01 Simon J Gerraty <sjg@beast.crufty.net>

* VERSION (_MAKE_VERSION): 20240701
Merge with NetBSD make, pick up
o var.c: add :tt for Title case

2024-06-30 Simon J Gerraty <sjg@beast.crufty.net>

* configure.in: 20240630 further refine check for whether
TZ=Europe/Berlin works

* VERSION (_MAKE_VERSION): 20240630
Merge with NetBSD make, pick up
o job.c: reduce use of UNCONST
o main.c: add detailed exit status to message for failed sub-commands
o var.c: error out on some more syntax errors
add more context to "returned non-zero status" message

2024-06-25 Simon J Gerraty <sjg@beast.crufty.net>

* VERSION (_MAKE_VERSION): 20240625
Expand Down
2 changes: 2 additions & 0 deletions contrib/bmake/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -759,6 +759,8 @@ unit-tests/varmod-to-one-word.exp
unit-tests/varmod-to-one-word.mk
unit-tests/varmod-to-separator.exp
unit-tests/varmod-to-separator.mk
unit-tests/varmod-to-title.exp
unit-tests/varmod-to-title.mk
unit-tests/varmod-to-upper.exp
unit-tests/varmod-to-upper.mk
unit-tests/varmod-undefined.exp
Expand Down
2 changes: 1 addition & 1 deletion contrib/bmake/VERSION
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# keep this compatible with sh and make
_MAKE_VERSION=20240625
_MAKE_VERSION=20240711
10 changes: 4 additions & 6 deletions contrib/bmake/arch.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $NetBSD: arch.c,v 1.219 2024/06/02 15:31:25 rillig Exp $ */
/* $NetBSD: arch.c,v 1.221 2024/07/07 07:50:57 rillig Exp $ */

/*
* Copyright (c) 1988, 1989, 1990, 1993
Expand Down Expand Up @@ -147,7 +147,7 @@ struct ar_hdr {
#include "dir.h"

/* "@(#)arch.c 8.2 (Berkeley) 1/2/94" */
MAKE_RCSID("$NetBSD: arch.c,v 1.219 2024/06/02 15:31:25 rillig Exp $");
MAKE_RCSID("$NetBSD: arch.c,v 1.221 2024/07/07 07:50:57 rillig Exp $");

typedef struct List ArchList;
typedef struct ListNode ArchListNode;
Expand Down Expand Up @@ -821,7 +821,6 @@ Arch_Touch(GNode *gn)
* Both the modification time of the library and of the RANLIBMAG member are
* set to 'now'.
*/
/*ARGSUSED*/
void
Arch_TouchLib(GNode *gn MAKE_ATTR_UNUSED)
{
Expand Down Expand Up @@ -922,7 +921,6 @@ Arch_FindLib(GNode *gn, SearchPath *path)
Var_Set(gn, TARGET, gn->name);
}

/* ARGSUSED */
static bool
RanlibOODate(const GNode *gn MAKE_ATTR_UNUSED)
{
Expand Down Expand Up @@ -1002,18 +1000,18 @@ Arch_Init(void)
Lst_Init(&archives);
}

#ifdef CLEANUP
/* Clean up the archives module. */
void
Arch_End(void)
{
#ifdef CLEANUP
ArchListNode *ln;

for (ln = archives.first; ln != NULL; ln = ln->next)
ArchFree(ln->datum);
Lst_Done(&archives);
#endif
}
#endif

bool
Arch_IsLib(GNode *gn)
Expand Down
Loading
Loading