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-08-23 #2251

Merged
merged 274 commits into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
274 commits
Select commit Hold shift + click to select a range
7e65cfc
pf: Make pf_get_translation() more expressive
markjdb Aug 19, 2024
aa141ad
socket: Split up soreceive_stream()
markjdb Aug 19, 2024
0a68f64
socket: Split up soreceive_generic()
markjdb Aug 19, 2024
fb90193
socket: Split up sosend_generic()
markjdb Aug 19, 2024
6982be3
socket: Microoptimize soreceive_stream_locked()
markjdb Jul 5, 2024
d02dcf2
pkgbase: Make src package creation recipes more precise
markjdb Aug 19, 2024
6a88e22
pfctl: pfik_ifp is always NULL
kprovost Aug 16, 2024
22a632c
pf: Make pf_test6 handle m_len < sizeof(struct ip6_hdr) case
ihoro Aug 16, 2024
d06fe34
libgeom: Avoid fixed remappings of the devstat device
markjdb Aug 19, 2024
b9d1249
pci_vendors: update to 2024.06.23
bapt Aug 19, 2024
3cd90cb
usb_vendors: update to 2024.07.04
bapt Aug 19, 2024
e06022e
Makefile.ec2: Add missing CLEANFILES entry
cperciva Aug 18, 2024
2dac89a
EC2: Bump AMI size to 8 GB
cperciva Aug 18, 2024
c482d65
EC2: Drop UEFI-PREFERRED from AMI names
cperciva Aug 18, 2024
2a91649
bsd-family-tree: shorter URL for FreeBSD manual pages
wosch Aug 19, 2024
4132c4b
bsd-family-tree: add FreeBSD Documentation Archive
wosch Aug 19, 2024
12a6257
sys/conf: Introduce NOSAN_CFLAGS and NOSAN_C
zxombie Aug 19, 2024
43e8849
conf: Enable BTI checking in the arm64 kernel
zxombie Aug 19, 2024
4db15ab
arm64: Add counter timer registers to armreg.h
zxombie Aug 19, 2024
3d61bcf
arm64/vmm: Start to extract code not needed by VHE
zxombie Aug 19, 2024
4b6c9f8
arm64/vmm: Move nVHE-only code to the new file
zxombie Aug 19, 2024
a745cdc
arm64/vmm: Teach the vtimer about VHE
zxombie Aug 19, 2024
55aa314
arm64/vmm: Create functions to call into EL2
zxombie Aug 19, 2024
387f878
arm64/vmm: Teach vmm_arm.c about VHE
zxombie Aug 19, 2024
6b17f49
arm64/vmm: Restore hcr_el2 earlier
zxombie Aug 19, 2024
7861ecd
arm64/vmm: Teach the switcher about new registers
zxombie Aug 19, 2024
20eabb3
arm64/vmm: Only store the guest par_el1
zxombie Aug 19, 2024
5577bb2
arm64/vmm: Support tlbi from VHE
zxombie Aug 19, 2024
f83a0f3
arm64/vmm: Update exception vectors around a guest
zxombie Aug 19, 2024
79a19e0
arm64/vmm: Hide non-VHE exception code from VHE
zxombie Aug 19, 2024
b87952e
arm64/vmm: Mark asm files as supporting BTI
zxombie Aug 19, 2024
bbe97db
arm64/vmm: Add the VHE exception and switcher files
zxombie Aug 19, 2024
7279fa6
arm64/vmm: Convert the handlers into ifuncs
zxombie Aug 19, 2024
53b8812
arm64/vmm: Allow vmm when in VHE
zxombie Aug 19, 2024
19fb9ad
nuageinit: readd ssh key parsing when key is in meta_data.json
bapt Aug 20, 2024
a6ecbf2
nuageinit: improve debugging when mkdir fails
bapt Aug 20, 2024
0a59964
src.conf.5: Fix spelling typo
bsdjhb Aug 20, 2024
7d12558
pf: Make pf_test predict that m_len < sizeof(struct ip) is false
ihoro Aug 20, 2024
2787f8c
mlx5en: stop including mlx5_accel/ipsec.h from en.h
kostikbel Jul 31, 2024
d00f350
mlx5en: do now waste ipsec_accel_in_tag on non-ipsec packets rx
kostikbel Jul 31, 2024
828da10
mlx5en: fix destroying tx sa_entry when installing rx sa_entry failed
kostikbel Aug 13, 2024
c4a0ee9
ipsec_offload: add handler for interface down events
kostikbel Aug 8, 2024
4f4c34e
if_vlan.c: remove stray include of sys/cdefs.h
kostikbel Aug 14, 2024
84abf7e
ipsec_offload: support vlans
kostikbel Jul 17, 2024
205263a
mlx5en: support ipsec offload on vlan if
arieleren Jul 30, 2024
66f0e20
ipsec_offload: add ipsec_accel_drv_sa_lifetime_fetch()
kostikbel Aug 18, 2024
e9ace6e
net/if_lagg.c: remove stray include is sys/cdefs.h
kostikbel Aug 15, 2024
d1e78fb
bsd-family-tree: add NetBSD 9.4
wosch Aug 20, 2024
d4a4d1e
bsd-family-tree: shorter URLs
wosch Aug 20, 2024
e5b8538
libalias: add another check to previous change
Aug 20, 2024
b49aec0
bsd-family-tree: fix macOS 11 release date
wosch Aug 20, 2024
66aed7e
socket: Set lock flags properly
markjdb Aug 20, 2024
aa6c490
tcp: initialize the LRO hash table with correct size
tuexen Aug 20, 2024
0875f3c
Revert "x86: Enable Intel DMAR by default"
emaste Aug 20, 2024
aa72c5b
dummymbuf: fix build without INET or INET6
glebius Aug 20, 2024
6bc9669
dummymbuf: add to LINT
glebius Aug 20, 2024
417b35a
netinet: Add a sysctl to allow disabling connections to INADDR_ANY
markjdb Aug 20, 2024
6444382
tcp: fix list iteration in tcp_lro_flush_active()
tuexen Aug 20, 2024
aa0bc76
bsd.symver.mk: pass $CFLAGS to $CPP invocation
emaste May 24, 2024
2477e88
nfs: Add support for the NFSv4.2 mode_umask attribute
Aug 21, 2024
213eb10
msun: Fix typo in comment
Aug 21, 2024
db6e326
arm64: Remove the E2H check from has_hyp
zxombie Aug 19, 2024
0054693
arm64: Boot into VHE mode when able
zxombie Aug 19, 2024
7412517
init_main: Sprinkle const qualifiers where appropriate
gmshake Aug 21, 2024
78d69d0
arm64: Fix the kernel with options VMM
zxombie Aug 21, 2024
f1bc375
arm64: Use store-pair to zero the kernel bss
zxombie Aug 20, 2024
024248c
libc/aarch64: Remove an unneeded weak symbol
zxombie Jan 2, 2024
828445c
if_vlan: set if_cap{abilities2,enable2} after IFCAP_IPSEC_OFFLOAD is …
kostikbel Aug 20, 2024
e7f9171
pf: Handle m_len < sizeof(struct ether_header) case
ihoro Aug 21, 2024
1af7d5f
libfetch: don't include fragments in HTTP requests
gahr Aug 21, 2024
db87c98
ctl: avoid heap info leak in ctl_request_sense
emaste Aug 20, 2024
a3f10d0
rangelocks: add rangelock_free_free() helper to free free list
kostikbel Aug 12, 2024
8a5b2db
ranglelock_destroy(): do not remove lock entries from under live lock…
kostikbel Aug 9, 2024
e228961
rangelock_destoy(): poison lock->head to trip fault on lock attempt
kostikbel Aug 10, 2024
9467c1a
rangelock: assert that we never insert or remove our entry after a lo…
kostikbel Aug 11, 2024
a725d61
rangelock: if CAS for removal failed, restart list iteration
kostikbel Aug 16, 2024
c4d8b24
rangelocks: recheck that entry is not marked after sleepq is locked i…
kostikbel Aug 20, 2024
40bffb7
rangelocks: fix typo in rl_w_validate
kostikbel Aug 20, 2024
45543d3
DMAR: clear dmar_devs[unit] if attach failed
kostikbel Aug 20, 2024
111c7fc
amd64: add convenience wrappers for INVLPGB and TBLSYNC
kostikbel May 13, 2024
bc4ffca
amd64: add variables indicating INVLPGB works
kostikbel May 13, 2024
47656cc
amd64: use INVLPGB for kernel pmap invalidations
kostikbel May 13, 2024
297a9e5
libcxxrt: Add a stub implementation of __cxa_call_terminate
bsdjhb Aug 21, 2024
d668a0b
cxgbe(4): reset routine for general use.
np-2020 Jul 26, 2024
d48524e
dev_pager: define free_page for mgt devices
Aug 21, 2024
c0c1b1c
freebsd32: Fix a few typos in syscalls.conf comments
bsdjhb Aug 21, 2024
d399c79
bsd-family-tree: NetBSD 8.3 added
Aug 22, 2024
a1d9ce1
sctp: fix format of sysctl variables
tuexen Aug 22, 2024
0f64fc6
kern: Align the declaration of kernconfstring with its definition
gmshake Aug 22, 2024
498286d
tcp: fix format of sysctl variable
tuexen Aug 22, 2024
5680cf6
jemalloc: don't expose 3.0 compat symbols
brooksdavis Aug 22, 2024
776cd02
vmm ppt: Enable busmastering and BAR decoding while a device is assigned
bsdjhb Aug 22, 2024
33658af
rtld-elf: Pass parsed aux_info to ifunc_init
jrtc27 Aug 22, 2024
228a3e7
riscv: Recognise B extension for AT_HWCAP
jrtc27 Aug 22, 2024
729d2b1
rtld-elf: Support IFUNCs on riscv
jrtc27 Aug 22, 2024
8afae0c
riscv: Add machine/ifunc.h corresponding to rtld-elf's resolver inter…
jrtc27 Aug 22, 2024
e413647
tcp: improve consistency of SYN-cache handling
tuexen Aug 22, 2024
6aee1dc
pam_xdg.8: the module option name corrected
Aug 22, 2024
101afbc
loader/menu: tweak for added line
bsdimp Aug 22, 2024
ef3f8aa
amdsmn(4), amdtemp(4): add support for AMD Ryzen 7 "Phoenix" processors
Aug 23, 2024
abdc7bb
bhyve(8): Remove mention of -A flag, again
lwhsu Aug 23, 2024
bd8486b
kern.pre.mk include local.kern.pre.mk
sgerraty Aug 23, 2024
70174ef
proccontrol: make -s require a target
brooksdavis Aug 23, 2024
5cbb98c
proccontrol.1: bump doc date
brooksdavis Aug 23, 2024
e972e40
release: Redirect etcupdate logfile to /dev/null.
tetlowgm Aug 24, 2024
e83112d
stress2: Some tests use hw.ncpu to scale the load. Tests on a box with
phoatfreebsd Aug 17, 2024
667ee34
cxgbe/iw_cxgbe: Fix typo in assertion.
np-2020 Jul 22, 2024
e5a594d
cxgbe(4): Stop work request queues in a reliable manner.
np-2020 Jul 31, 2024
f7db8eb
libalias: fix subtle racy problem in outside-inside forwarding
Aug 19, 2024
8532e4d
tail -F: fix crash
Aug 19, 2024
192c67a
adduser: Better document ZFS dataset creation.
dag-erling Aug 19, 2024
b673a41
buf_ring: Remove PREFETCH_DEFINED
zxombie Jul 29, 2024
5822f06
buf_ring: Support DEBUG_BUFRING in userspace
zxombie Jul 29, 2024
f175fc1
buf_ring: Consistently use atomic_*_32
zxombie Jul 29, 2024
5067fb8
buf_ring: Keep the full head and tail values
zxombie Aug 19, 2024
cf18cfc
buf_ring: Use atomic operations with br_cons_tail
zxombie Aug 19, 2024
9a8997f
buf_ring: Remove old arm-only dequeue code
zxombie Aug 19, 2024
66d3691
buf_ring: Use atomic operations with br_prod_tail
zxombie Aug 19, 2024
49495e6
buf_ring: Ensure correct ordering of loads
zxombie Aug 19, 2024
39aa812
buf_ring: Add an Arm copyright
zxombie Aug 19, 2024
fa25d43
arm64: Expand the use of Armv8.1-A atomics
zxombie Jul 30, 2024
03815ba
bhyve: Make boot ROM handling more consistent
markjdb Aug 19, 2024
dd9ae38
Skipping merge of e962b37bf0ffe7f30f5b025b46ea49ba01c71f2f
bsdjhb Nov 20, 2024
0452171
linux.4: clarify path translation
emaste Aug 19, 2024
f81a269
linux.4: improve the path translation clarificiation
emaste Aug 19, 2024
d0c68c4
build.7: Document the packages target
markjdb Aug 19, 2024
1df6dad
pkgbase: Unify pkg ABI handling for pkgbase targets
markjdb Aug 19, 2024
b3a50cd
pkgbase: Let source packages be built in parallel
markjdb Aug 19, 2024
d34bcd1
pf: Let rdr rules modify the src port if doing so would avoid a conflict
markjdb Aug 19, 2024
f259337
pf: Make pf_get_translation() more expressive
markjdb Aug 19, 2024
ae4c8ab
socket: Split up soreceive_stream()
markjdb Aug 19, 2024
830b36b
socket: Split up soreceive_generic()
markjdb Aug 19, 2024
56ad879
socket: Split up sosend_generic()
markjdb Aug 19, 2024
42da52c
socket: Microoptimize soreceive_stream_locked()
markjdb Jul 5, 2024
bff406f
pkgbase: Make src package creation recipes more precise
markjdb Aug 19, 2024
980c206
pfctl: pfik_ifp is always NULL
kprovost Aug 16, 2024
019c958
pf: Make pf_test6 handle m_len < sizeof(struct ip6_hdr) case
ihoro Aug 16, 2024
695e6f0
libgeom: Avoid fixed remappings of the devstat device
markjdb Aug 19, 2024
c79a02f
pci_vendors: update to 2024.06.23
bapt Aug 19, 2024
dbf5511
usb_vendors: update to 2024.07.04
bapt Aug 19, 2024
9de7fd4
Makefile.ec2: Add missing CLEANFILES entry
cperciva Aug 18, 2024
0c0b933
EC2: Bump AMI size to 8 GB
cperciva Aug 18, 2024
566ce34
EC2: Drop UEFI-PREFERRED from AMI names
cperciva Aug 18, 2024
4ed7a7c
bsd-family-tree: shorter URL for FreeBSD manual pages
wosch Aug 19, 2024
620b300
bsd-family-tree: add FreeBSD Documentation Archive
wosch Aug 19, 2024
1f85942
sys/conf: Introduce NOSAN_CFLAGS and NOSAN_C
zxombie Aug 19, 2024
bd8b25f
conf: Enable BTI checking in the arm64 kernel
zxombie Aug 19, 2024
72323dd
arm64: Add counter timer registers to armreg.h
zxombie Aug 19, 2024
f7c03df
arm64/vmm: Start to extract code not needed by VHE
zxombie Aug 19, 2024
9a34d8c
arm64/vmm: Move nVHE-only code to the new file
zxombie Aug 19, 2024
03448d3
arm64/vmm: Teach the vtimer about VHE
zxombie Aug 19, 2024
3240c5c
arm64/vmm: Create functions to call into EL2
zxombie Aug 19, 2024
0716aab
arm64/vmm: Teach vmm_arm.c about VHE
zxombie Aug 19, 2024
0bcec4b
arm64/vmm: Restore hcr_el2 earlier
zxombie Aug 19, 2024
9ae5841
arm64/vmm: Teach the switcher about new registers
zxombie Aug 19, 2024
3088dbe
arm64/vmm: Only store the guest par_el1
zxombie Aug 19, 2024
356ccd0
arm64/vmm: Support tlbi from VHE
zxombie Aug 19, 2024
505f530
arm64/vmm: Update exception vectors around a guest
zxombie Aug 19, 2024
99fa578
arm64/vmm: Hide non-VHE exception code from VHE
zxombie Aug 19, 2024
dddd8df
arm64/vmm: Mark asm files as supporting BTI
zxombie Aug 19, 2024
661eeed
arm64/vmm: Add the VHE exception and switcher files
zxombie Aug 19, 2024
0264575
arm64/vmm: Convert the handlers into ifuncs
zxombie Aug 19, 2024
1c7437a
arm64/vmm: Allow vmm when in VHE
zxombie Aug 19, 2024
7170858
nuageinit: readd ssh key parsing when key is in meta_data.json
bapt Aug 20, 2024
eff30cf
nuageinit: improve debugging when mkdir fails
bapt Aug 20, 2024
8faedca
src.conf.5: Fix spelling typo
bsdjhb Aug 20, 2024
718d555
pf: Make pf_test predict that m_len < sizeof(struct ip) is false
ihoro Aug 20, 2024
2256b34
mlx5en: stop including mlx5_accel/ipsec.h from en.h
kostikbel Jul 31, 2024
9e3649b
mlx5en: do now waste ipsec_accel_in_tag on non-ipsec packets rx
kostikbel Jul 31, 2024
6df1d26
mlx5en: fix destroying tx sa_entry when installing rx sa_entry failed
kostikbel Aug 13, 2024
130174c
ipsec_offload: add handler for interface down events
kostikbel Aug 8, 2024
1cfee2d
if_vlan.c: remove stray include of sys/cdefs.h
kostikbel Aug 14, 2024
7debeb8
ipsec_offload: support vlans
kostikbel Jul 17, 2024
e0689bf
mlx5en: support ipsec offload on vlan if
arieleren Jul 30, 2024
221d757
ipsec_offload: add ipsec_accel_drv_sa_lifetime_fetch()
kostikbel Aug 18, 2024
2beea2a
net/if_lagg.c: remove stray include is sys/cdefs.h
kostikbel Aug 15, 2024
9d9a0f7
bsd-family-tree: add NetBSD 9.4
wosch Aug 20, 2024
793ace2
bsd-family-tree: shorter URLs
wosch Aug 20, 2024
e79038d
libalias: add another check to previous change
Aug 20, 2024
f25cc28
bsd-family-tree: fix macOS 11 release date
wosch Aug 20, 2024
528dcfd
socket: Set lock flags properly
markjdb Aug 20, 2024
aa337f7
tcp: initialize the LRO hash table with correct size
tuexen Aug 20, 2024
d4502fe
Revert "x86: Enable Intel DMAR by default"
emaste Aug 20, 2024
22554fe
dummymbuf: fix build without INET or INET6
glebius Aug 20, 2024
7f11216
dummymbuf: add to LINT
glebius Aug 20, 2024
d16428a
netinet: Add a sysctl to allow disabling connections to INADDR_ANY
markjdb Aug 20, 2024
09341ec
tcp: fix list iteration in tcp_lro_flush_active()
tuexen Aug 20, 2024
65ea71f
bsd.symver.mk: pass $CFLAGS to $CPP invocation
emaste May 24, 2024
59fd112
nfs: Add support for the NFSv4.2 mode_umask attribute
Aug 21, 2024
aa0427c
msun: Fix typo in comment
Aug 21, 2024
208dcff
arm64: Remove the E2H check from has_hyp
zxombie Aug 19, 2024
936a6f0
arm64: Boot into VHE mode when able
zxombie Aug 19, 2024
778bda9
init_main: Sprinkle const qualifiers where appropriate
gmshake Aug 21, 2024
9aff8b8
arm64: Fix the kernel with options VMM
zxombie Aug 21, 2024
0b9206b
arm64: Use store-pair to zero the kernel bss
zxombie Aug 20, 2024
3b82190
libc/aarch64: Remove an unneeded weak symbol
zxombie Jan 2, 2024
00ab876
if_vlan: set if_cap{abilities2,enable2} after IFCAP_IPSEC_OFFLOAD is …
kostikbel Aug 20, 2024
78ae06b
pf: Handle m_len < sizeof(struct ether_header) case
ihoro Aug 21, 2024
b6144c3
libfetch: don't include fragments in HTTP requests
gahr Aug 21, 2024
a74cd47
ctl: avoid heap info leak in ctl_request_sense
emaste Aug 20, 2024
132a4ce
rangelocks: add rangelock_free_free() helper to free free list
kostikbel Aug 12, 2024
2045137
ranglelock_destroy(): do not remove lock entries from under live lock…
kostikbel Aug 9, 2024
148b1ec
rangelock_destoy(): poison lock->head to trip fault on lock attempt
kostikbel Aug 10, 2024
821cc91
rangelock: assert that we never insert or remove our entry after a lo…
kostikbel Aug 11, 2024
fb50c4c
rangelock: if CAS for removal failed, restart list iteration
kostikbel Aug 16, 2024
9d37de9
rangelocks: recheck that entry is not marked after sleepq is locked i…
kostikbel Aug 20, 2024
bc9b403
rangelocks: fix typo in rl_w_validate
kostikbel Aug 20, 2024
b1da910
DMAR: clear dmar_devs[unit] if attach failed
kostikbel Aug 20, 2024
6041a1e
amd64: add convenience wrappers for INVLPGB and TBLSYNC
kostikbel May 13, 2024
6ba2f6a
amd64: add variables indicating INVLPGB works
kostikbel May 13, 2024
2a19150
amd64: use INVLPGB for kernel pmap invalidations
kostikbel May 13, 2024
e6717cc
libcxxrt: Add a stub implementation of __cxa_call_terminate
bsdjhb Aug 21, 2024
d6b1aaf
cxgbe(4): reset routine for general use.
np-2020 Jul 26, 2024
ab1605a
dev_pager: define free_page for mgt devices
Aug 21, 2024
6d46608
freebsd32: Fix a few typos in syscalls.conf comments
bsdjhb Aug 21, 2024
def60c0
bsd-family-tree: NetBSD 8.3 added
Aug 22, 2024
243a5cf
sctp: fix format of sysctl variables
tuexen Aug 22, 2024
248fc8b
kern: Align the declaration of kernconfstring with its definition
gmshake Aug 22, 2024
d496428
tcp: fix format of sysctl variable
tuexen Aug 22, 2024
ec8cc3c
jemalloc: don't expose 3.0 compat symbols
brooksdavis Aug 22, 2024
e1d5d78
vmm ppt: Enable busmastering and BAR decoding while a device is assigned
bsdjhb Aug 22, 2024
5b48a42
rtld-elf: Pass parsed aux_info to ifunc_init
jrtc27 Aug 22, 2024
3ddadaf
riscv: Recognise B extension for AT_HWCAP
jrtc27 Aug 22, 2024
03a9f22
rtld-elf: Support IFUNCs on riscv
jrtc27 Aug 22, 2024
90c3d43
riscv: Add machine/ifunc.h corresponding to rtld-elf's resolver inter…
jrtc27 Aug 22, 2024
44cb5b0
tcp: improve consistency of SYN-cache handling
tuexen Aug 22, 2024
75487aa
pam_xdg.8: the module option name corrected
Aug 22, 2024
bc49033
loader/menu: tweak for added line
bsdimp Aug 22, 2024
e422d86
amdsmn(4), amdtemp(4): add support for AMD Ryzen 7 "Phoenix" processors
Aug 23, 2024
c2a5e99
bhyve(8): Remove mention of -A flag, again
lwhsu Aug 23, 2024
5bd6a79
kern.pre.mk include local.kern.pre.mk
sgerraty Aug 23, 2024
0011f62
Skipping merge of 70174ef7d2c80abdfca0e3ad9d0bb1af61318542
bsdjhb Nov 20, 2024
d7e82e5
proccontrol.1: bump doc date
brooksdavis Aug 23, 2024
7c79181
release: Redirect etcupdate logfile to /dev/null.
tetlowgm Aug 24, 2024
ca2c196
mk: Add a BTI-report linker feature
jlduran Aug 22, 2024
1155f27
md: Fix linking of embedded filesystem images on aarch64
bsdjhb Nov 21, 2024
1d5719c
arm64: Trap floating-point registers with VHE
zxombie Sep 2, 2024
56f86ef
arm64: Adjust the indentation of CPTR_EL2 values
zxombie Sep 11, 2024
fc37b70
arm64: Add E2H to CPTR_EL2 register values
zxombie Sep 11, 2024
924f1e9
arm64: Add CPTR_E2H_TTA
zxombie Sep 11, 2024
3c62b50
arm64: Add CPTR_TRAP_ALL and use it in vmm
zxombie Sep 11, 2024
461a2fb
arm64: Don't trap SVE to EL2
zxombie Sep 27, 2024
424a25a
Morello: Add constant for CEN field in CPTR_EL2 when VHE is enabled
bsdjhb Nov 22, 2024
808fb2a
Morello: Don't trap Morello instructions in EL2 for the kernel under VHE
bsdjhb Nov 22, 2024
f2867b8
vmm: Don't trap access to Morello instructions for guests
bsdjhb Nov 22, 2024
d291e9d
locore: Set CPTR_EL2 before using any Morello instructions
bsdjhb Nov 22, 2024
9d00b32
locore: Don't clear DDC too early in the VHE case
bsdjhb Nov 22, 2024
2924ab0
vmm: Ensure guests start with a cleared CCTLR_EL1
bsdjhb Nov 22, 2024
1e64dbf
vmm: CCTLR_EL1 uses an alternate register (CCTLR_EL12) under VHE
bsdjhb Nov 22, 2024
ad5227e
Merged through August 23, 2024
bsdjhb Dec 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .last_merge
Original file line number Diff line number Diff line change
@@ -1 +1 @@
freebsd-main-20240816
freebsd-main-20240823
69 changes: 37 additions & 32 deletions Makefile.inc1
Original file line number Diff line number Diff line change
Expand Up @@ -2135,6 +2135,10 @@ REPODIR?= ${OBJROOT}repo
PKG_FORMAT?= tzst
PKG_REPO_SIGNING_KEY?= # empty
PKG_OUTPUT_DIR?= ${PKG_VERSION}
PKG_ABI_FILE?= ${WSTAGEDIR}/usr/bin/uname
.if make(create-*-packages*) || make(real-update-packages) || make(real-sign-packages)
PKG_ABI!= ${PKG_CMD} -o ABI_FILE=${PKG_ABI_FILE} config ABI
.endif

.ORDER: stage-packages create-packages
.ORDER: create-packages create-world-packages
Expand All @@ -2147,12 +2151,6 @@ _pkgbootstrap: .PHONY
@env ASSUME_ALWAYS_YES=YES pkg bootstrap
.endif

#
# Determine PKG_ABI from newvers.sh if not already set.
#
.if !defined(PKG_ABI) && (make(create-world-packages-jobs) || make(create-kernel-packages*) || make(real-update-packages) || make (create-source-packages) || make(sign-packages))
PKG_ABI=${_TYPE}:${MAJOR_REVISION}:${TARGET_ARCH}
.endif
PKG_BIN_VERSION!=${PKG_CMD} --version </dev/null 2>/dev/null |\
awk -F. '/^[0-9.]+$$/ {print $$1 * 10000 + $$2 * 100 + $$3}'
.if ${PKG_BIN_VERSION} < 11700
Expand All @@ -2162,8 +2160,7 @@ PKG_EXT= pkg
.endif

.if !defined(PKG_VERSION_FROM) && make(real-update-packages)
.if defined(PKG_ABI)
.if exists(${REPODIR}/${PKG_ABI})
.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:]][^\.]*).*/\1/}
Expand All @@ -2173,7 +2170,6 @@ PKG_VERSION_FROM_DIR=
BRANCH_EXT_FROM=
.endif
.endif
.endif

PKGMAKEARGS+= PKG_VERSION=${PKG_VERSION} \
NO_INSTALLEXTRAKERNELS=${NO_INSTALLEXTRAKERNELS}
Expand Down Expand Up @@ -2264,17 +2260,13 @@ create-packages-source: _pkgbootstrap _repodir .PHONY

create-packages: .PHONY create-packages-world create-packages-kernel create-packages-source

create-source-packages: _pkgbootstrap .PHONY
rm -f ${SSTAGEDIR}/*.plist 2>/dev/null || :
create-source-src-package: _pkgbootstrap .PHONY
rm -f ${SSTAGEDIR}/src.plist 2>/dev/null || :
.if !empty(GIT_CMD) && exists(${GIT_CMD}) && exists(${SRCDIR}/.git)
@cd ${SRCDIR}; \
( echo "@override_prefix /usr/src" ; \
${GIT_CMD} ls-files --recurse-submodules ":!:sys/" ) \
> ${SSTAGEDIR}/src.plist
@cd ${SRCDIR}; \
( echo "@override_prefix /usr/src" ; \
${GIT_CMD} ls-files --recurse-submodules "sys/" ) \
> ${SSTAGEDIR}/src-sys.plist
${SRCDIR}/release/packages/generate-ucl.lua \
PKGNAME "src" \
PKGGENNAME "src" \
Expand All @@ -2286,6 +2278,22 @@ create-source-packages: _pkgbootstrap .PHONY
PKG_WWW "${PKG_WWW}" \
${SRCDIR}/release/packages/template.ucl \
${SSTAGEDIR}/src.ucl
${PKG_CMD} -o ABI=${PKG_ABI} \
-o OSVERSION="${SRCRELDATE}" \
create -f ${PKG_FORMAT} \
-M ${SSTAGEDIR}/src.ucl \
-p ${SSTAGEDIR}/src.plist \
-r ${SRCDIR} \
-o ${REPODIR}/${PKG_ABI}/${PKG_OUTPUT_DIR}
.endif

create-source-src-sys-package: _pkgbootstrap .PHONY
rm -f ${SSTAGEDIR}/src-sys.plist 2>/dev/null || :
.if !empty(GIT_CMD) && exists(${GIT_CMD}) && exists(${SRCDIR}/.git)
@cd ${SRCDIR}; \
( echo "@override_prefix /usr/src" ; \
${GIT_CMD} ls-files --recurse-submodules "sys/" ) \
> ${SSTAGEDIR}/src-sys.plist
${SRCDIR}/release/packages/generate-ucl.lua \
PKGNAME "src-sys" \
PKGGENNAME "src" \
Expand All @@ -2297,13 +2305,6 @@ create-source-packages: _pkgbootstrap .PHONY
PKG_WWW "${PKG_WWW}" \
${SRCDIR}/release/packages/template.ucl \
${SSTAGEDIR}/src-sys.ucl
${PKG_CMD} -o ABI=${PKG_ABI} \
-o OSVERSION="${SRCRELDATE}" \
create -f ${PKG_FORMAT} \
-M ${SSTAGEDIR}/src.ucl \
-p ${SSTAGEDIR}/src.plist \
-r ${SRCDIR} \
-o ${REPODIR}/${PKG_ABI}/${PKG_OUTPUT_DIR}
${PKG_CMD} -o ABI=${PKG_ABI} \
-o OSVERSION="${SRCRELDATE}" \
create -f ${PKG_FORMAT} \
Expand All @@ -2313,6 +2314,8 @@ create-source-packages: _pkgbootstrap .PHONY
-o ${REPODIR}/${PKG_ABI}/${PKG_OUTPUT_DIR}
.endif

create-source-packages: .PHONY _pkgbootstrap create-source-src-package create-source-src-sys-package

create-world-packages: _pkgbootstrap .PHONY
@rm -f ${WSTAGEDIR}/*.plist 2>/dev/null || :
@cd ${WSTAGEDIR} ; \
Expand Down Expand Up @@ -2345,7 +2348,7 @@ create-world-package-${pkgname}: .PHONY
@if [ "${pkgname}" == "runtime" ]; then \
sed -i '' -e "s/%VCS_REVISION%/${VCS_REVISION}/" ${WSTAGEDIR}/${pkgname}.ucl ; \
fi
${PKG_CMD} -o ABI_FILE=${WSTAGEDIR}/usr/bin/uname -o ALLOW_BASE_SHLIBS=yes \
${PKG_CMD} -o ABI=${PKG_ABI} -o ALLOW_BASE_SHLIBS=yes \
-o OSVERSION="${SRCRELDATE}" \
create -f ${PKG_FORMAT} -M ${WSTAGEDIR}/${pkgname}.ucl \
-p ${WSTAGEDIR}/${pkgname}.plist \
Expand Down Expand Up @@ -2447,7 +2450,7 @@ create-kernel-packages-extra-flavor${flavor:C,^""$,${_default_flavor},}-${_kerne
/name/ { printf("===> Creating %s-", $$2); next } \
/version/ {print $$2; next } ' \
${KSTAGEDIR}/kernel.${_kernel}/kernel.${_kernel}${flavor}.ucl ; \
${PKG_CMD} -o ABI_FILE=${WSTAGEDIR}/usr/bin/uname -o ALLOW_BASE_SHLIBS=yes \
${PKG_CMD} -o ABI=${PKG_ABI} -o ALLOW_BASE_SHLIBS=yes \
-o OSVERSION="${SRCRELDATE}" \
create -f ${PKG_FORMAT} \
-M ${KSTAGEDIR}/kernel.${_kernel}/kernel.${_kernel}${flavor}.ucl \
Expand All @@ -2459,20 +2462,22 @@ create-kernel-packages-extra-flavor${flavor:C,^""$,${_default_flavor},}-${_kerne
. endfor
.endif

sign-packages: _pkgbootstrap .PHONY
sign-packages: .PHONY
${_+_}@cd ${.CURDIR}; \
${MAKE} -f Makefile.inc1 PKG_VERSION=${PKG_VERSION} real-sign-packages

real-sign-packages: _pkgbootstrap .PHONY
printf "version = 2;\n" > ${WSTAGEDIR}/meta
.if ${PKG_BIN_VERSION} < 11700
printf "packing_format = \"${PKG_FORMAT}\";\n" >> ${WSTAGEDIR}/meta
.endif
@[ -L "${REPODIR}/$$(${PKG_CMD} -o ABI_FILE=${WSTAGEDIR}/usr/bin/uname config ABI)/latest" ] && \
unlink ${REPODIR}/$$(${PKG_CMD} -o ABI_FILE=${WSTAGEDIR}/usr/bin/uname config ABI)/latest ; \
${PKG_CMD} -o ABI_FILE=${WSTAGEDIR}/usr/bin/uname repo \
-o OSVERSION="${SRCRELDATE}" \
@[ -L "${REPODIR}/${PKG_ABI}/latest" ] && unlink ${REPODIR}/${PKG_ABI}/latest; \
${PKG_CMD} -o ABI=${PKG_ABI} repo -o OSVERSION="${SRCRELDATE}" \
-m ${WSTAGEDIR}/meta \
-o ${REPODIR}/$$(${PKG_CMD} -o ABI_FILE=${WSTAGEDIR}/usr/bin/uname config ABI)/${PKG_VERSION} \
${REPODIR}/$$(${PKG_CMD} -o ABI_FILE=${WSTAGEDIR}/usr/bin/uname config ABI)/${PKG_VERSION} \
-o ${REPODIR}/${PKG_ABI}/${PKG_VERSION} \
${REPODIR}/${PKG_ABI}/${PKG_VERSION} \
${PKG_REPO_SIGNING_KEY} ; \
cd ${REPODIR}/$$(${PKG_CMD} -o ABI_FILE=${WSTAGEDIR}/usr/bin/uname config ABI); \
cd ${REPODIR}/${PKG_ABI}; \
ln -s ${PKG_OUTPUT_DIR} latest

#
Expand Down
26 changes: 15 additions & 11 deletions contrib/jemalloc/include/jemalloc/jemalloc_FreeBSD.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ extern int __isthreaded;
#undef je_malloc_stats_print
#undef je_allocm
#undef je_rallocm
#undef je_sallocm
#undef je_dallocm
#undef je_nallocm
#define je_malloc __malloc
Expand All @@ -165,11 +164,6 @@ extern int __isthreaded;
#define je_mallctlnametomib __mallctlnametomib
#define je_mallctlbymib __mallctlbymib
#define je_malloc_stats_print __malloc_stats_print
#define je_allocm __allocm
#define je_rallocm __rallocm
#define je_sallocm __sallocm
#define je_dallocm __dallocm
#define je_nallocm __nallocm
#define open _open
#define read _read
#define write _write
Expand Down Expand Up @@ -216,10 +210,20 @@ __weak_reference(__mallctlnametomib, mallctlnametomib);
__weak_reference(__mallctlbymib, mallctlbymib);
__weak_reference(__malloc_stats_print, malloc_stats_print);
#ifndef __CHERI_PURE_CAPABILITY__
__weak_reference(__allocm, allocm);
__weak_reference(__rallocm, rallocm);
__weak_reference(__sallocm, sallocm);
__weak_reference(__dallocm, dallocm);
__weak_reference(__nallocm, nallocm);
__weak_reference(je_allocm, weak_allocm);
__weak_reference(je_rallocm, weak_rallocm);
__weak_reference(je_sallocm, weak_sallocm);
__weak_reference(je_dallocm, weak_dallocm);
__weak_reference(je_nallocm, weak_nallocm);
__sym_compat(__allocm, je_allocm, FBSD_1.3);
__sym_compat(__rallocm, je_rallocm, FBSD_1.3);
__sym_compat(__sallocm, je_sallocm, FBSD_1.3);
__sym_compat(__dallocm, je_dallocm, FBSD_1.3);
__sym_compat(__nallocm, je_nallocm, FBSD_1.3);
__sym_compat(allocm, weak_allocm, FBSD_1.3);
__sym_compat(rallocm, weak_rallocm, FBSD_1.3);
__sym_compat(sallocm, weak_sallocm, FBSD_1.3);
__sym_compat(dallocm, weak_dallocm, FBSD_1.3);
__sym_compat(nallocm, weak_nallocm, FBSD_1.3);
#endif
#endif
13 changes: 13 additions & 0 deletions contrib/libcxxrt/exception.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1433,6 +1433,19 @@ extern "C" void __cxa_call_unexpected(void*exception)
abort();
}

/**
* ABI function, called when an object destructor exits due to an
* exception during stack unwinding.
*
* This function does not return.
*/
extern "C" void __cxa_call_terminate(void *exception) throw()
{
std::terminate();
// Should not be reached.
abort();
}

/**
* ABI function, returns the adjusted pointer to the exception object.
*/
Expand Down
3 changes: 0 additions & 3 deletions lib/libc/aarch64/string/memcpy.S
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
#define __memcpy_aarch64 memcpy
#define __memmove_aarch64 memmove
#include "aarch64/memcpy.S"

.weak index
.equ index, strchr
5 changes: 5 additions & 0 deletions lib/libcxxrt/Version.map
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,11 @@ CXXABI_1.3.11 {
# __cxa_init_primary_exception;
} CXXABI_1.3.9;

CXXABI_1.3.15 {
# Not present in CHERI libcxxrt
# __cxa_call_terminate;
} CXXABI_1.3.11;

CXXRT_1.0 {

extern "C++" {
Expand Down
5 changes: 5 additions & 0 deletions lib/libcxxrt/Version.map.arm
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,11 @@ CXXABI_1.3.11 {
# __cxa_init_primary_exception;
} CXXABI_1.3.9;

CXXABI_1.3.15 {
# Not present in CHERI libcxxrt
# __cxa_call_terminate;
} CXXABI_1.3.11;

CXXRT_1.0 {

extern "C++" {
Expand Down
5 changes: 4 additions & 1 deletion lib/libfetch/fetch.c
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,10 @@
goto ouch;
}
u->doc = doc;
while (*p != '\0') {
/* fragments are reserved for client-side processing, see

Check warning on line 450 in lib/libfetch/fetch.c

View workflow job for this annotation

GitHub Actions / Style Checker

Block comments use a leading /* on a separate line
* https://www.rfc-editor.org/rfc/rfc9110.html#section-7.1
*/
while (*p != '\0' && *p != '#') {
if (!isspace((unsigned char)*p)) {
*doc++ = *p++;
} else {
Expand Down
34 changes: 12 additions & 22 deletions lib/libgeom/geom_stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,12 @@ geom_stats_close(void)
{
if (statsfd == -1)
return;
munmap(statp, npages * pagesize);
statp = NULL;
close (statsfd);
if (statp != NULL) {
if (munmap(statp, npages * pagesize) != 0)
err(1, "munmap");
statp = NULL;
}
close(statsfd);
statsfd = -1;
}

Expand All @@ -73,38 +76,25 @@ geom_stats_resync(void)
if (error)
err(1, "DIOCGMEDIASIZE(" _PATH_DEV DEVSTAT_DEVICE_NAME ")");

munmap(statp, npages * pagesize);
p = mmap(statp, mediasize, PROT_READ, MAP_SHARED, statsfd, 0);
if (statp != NULL && munmap(statp, npages * pagesize) != 0)
err(1, "munmap");
p = mmap(NULL, mediasize, PROT_READ, MAP_SHARED, statsfd, 0);
if (p == MAP_FAILED)
err(1, "mmap(/dev/devstat):");
else {
statp = p;
npages = mediasize / pagesize;
}
err(1, "mmap(/dev/devstat)");
statp = p;
npages = mediasize / pagesize;
}

int
geom_stats_open(void)
{
int error;
void *p;

if (statsfd != -1)
return (EBUSY);
statsfd = open(_PATH_DEV DEVSTAT_DEVICE_NAME, O_RDONLY);
if (statsfd < 0)
return (errno);
pagesize = getpagesize();
spp = pagesize / sizeof(struct devstat);
p = mmap(NULL, pagesize, PROT_READ, MAP_SHARED, statsfd, 0);
if (p == MAP_FAILED) {
error = errno;
close(statsfd);
statsfd = -1;
errno = error;
return (error);
}
statp = p;
npages = 1;
geom_stats_resync();
return (0);
Expand Down
6 changes: 3 additions & 3 deletions lib/libpam/modules/pam_xdg/pam_xdg.8
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
.\" * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" * SUCH DAMAGE.
.Dd February 21, 2024
.Dd August 22, 2024
.Dt PAM_XDG 8
.Os
.Sh NAME
Expand All @@ -42,8 +42,8 @@ By default the directory is created under
.Pa /var/run/xdg/<username> .
.Pp
The following option may be passed to the authentication module:
.Bl -tag -width ".Cm runtime_dir"
.It Cm runtime_dir Ns = Ns Ar directory
.Bl -tag -width ".Cm runtime_dir_prefix"
.It Cm runtime_dir_prefix Ns = Ns Ar directory
Use an alternate base directory
.El
.Sh SEE ALSO
Expand Down
2 changes: 1 addition & 1 deletion lib/msun/src/math_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ do { \
* any extra precision into the type of 'a' -- 'a' should have type float_t,
* double_t or long double. b's type should be no larger than 'a's type.
* Callers should use these types with scopes as large as possible, to
* reduce their own extra-precision and efficiciency problems. In
* reduce their own extra-precision and efficiency problems. In
* particular, they shouldn't convert back and forth just to call here.
*/
#ifdef DEBUG
Expand Down
5 changes: 1 addition & 4 deletions libexec/nuageinit/nuage.lua
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,7 @@ local function addsshkey(homedir, key)
chownak = true
dirattrs = lfs.attributes(dotssh_path)
if dirattrs == nil then
if not lfs.mkdir(dotssh_path) then
warnmsg("nuageinit: impossible to create ".. dotssh_path)
return
end
assert(lfs.mkdir(dotssh_path))
chowndotssh = true
dirattrs = lfs.attributes(homedir)
end
Expand Down
6 changes: 6 additions & 0 deletions libexec/nuageinit/nuageinit
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,12 @@ if citype == "config-2" then
nuage.err("nuageinit: error parsing config-2: meta_data.json: " .. err)
end
local obj = parser:get_object()
if obj.public_keys then
local homedir = nuage.adduser(default_user)
for _,v in pairs(obj.public_keys) do
nuage.addsshkey(homedir, v)
end
end
nuage.sethostname(obj["hostname"])

-- network
Expand Down
Loading
Loading