-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
caprevoke: merge through 2023-07-07 #1740
Commits on Jun 21, 2023
-
meta.sys.mk: downgrade missing Filemon error to warning
Cirrus-CI was red because `make makeman` failed with a spurious "filemon is not loaded" error. For now just make it a warning.
Configuration menu - View commit details
-
Copy full SHA for dba6f4b - Browse repository at this point
Copy the full SHA dba6f4bView commit details -
sctp: use constants from RFC 8260 to improve compliance
Keep the old constants for backwards compatibility. MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for 8c986c5 - Browse repository at this point
Copy the full SHA 8c986c5View commit details -
inpcb: Fix some bugs in _in_pcbinshash_wild()
- In _in_pcbinshash_wild(), we should avoid returning v6 sockets unless no other matches are available. This preserves pre-existing semantics. - Fix an inverted test: when inserting a non-jailed PCB, we want to search for the first non-jailed PCB in the hash chain. - Test the right PCB when searching for a non-jailed PCB. While here, add a required locking assertion. Fixes: 7b92493 ("inpcb: Avoid inp_cred dereferences in SMR-protected lookup")
Configuration menu - View commit details
-
Copy full SHA for eb681f0 - Browse repository at this point
Copy the full SHA eb681f0View commit details -
arm64: Implement bus_describe_intr() for nexus
Prompted by a compiler warning introduced by e582d4a ("arm64: nexus code tidy-up"). Reviewed by: mhorne, andrew MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D39749
Configuration menu - View commit details
-
Copy full SHA for 76b6ceb - Browse repository at this point
Copy the full SHA 76b6cebView commit details -
riscv: Implement bus_describe_intr() for nexus
Reviewed by: mhorne MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D39750
Configuration menu - View commit details
-
Copy full SHA for 8927a1e - Browse repository at this point
Copy the full SHA 8927a1eView commit details -
arm64: Disable PAC when booting on a Windows Dev Kit 2023
It appears that PAC registers are configured to trap upon access, but since the kernel starts in EL1 on this platform it has no ability to inspect or modify this configuration. Simply disable PAC on this platform for now, since the kernel otherwise hangs during boot. PR: 270472 Reviewed by: andrew, emaste MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D39748
Configuration menu - View commit details
-
Copy full SHA for 1537777 - Browse repository at this point
Copy the full SHA 1537777View commit details -
kcsan: add __tsan_mem(cpy|move|set) aliases for clang >= 16
Summary: After llvm/llvm-project@b4257d3bf58c ("[tsan] Replace mem intrinsics with calls to interceptors") intrinsic calls to memcpy, memmove or memset will directly call sanitizer interceptors, e.g. __tsan_memcpy, __tsan_memmove or __tsan_memset. Building GENERIC-KCSAN with clang >= 16 would thus result in link errors similar to: ld: error: undefined symbol: __tsan_memcpy >>> referenced by cam_compat.c:150 (/usr/src/sys/cam/cam_compat.c:150) >>> cam_compat.o:(cam_compat_handle_0x17) >>> referenced by cam_compat.c:151 (/usr/src/sys/cam/cam_compat.c:151) >>> cam_compat.o:(cam_compat_handle_0x17) >>> referenced by cam_compat.c:152 (/usr/src/sys/cam/cam_compat.c:152) >>> cam_compat.o:(cam_compat_handle_0x17) >>> referenced 1692 more times Similar to subr_msan.c, add aliases from the existing kcsan_* versions of these functions to __tsan_* names. Reviewed by: markj MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D39772
Configuration menu - View commit details
-
Copy full SHA for db1efd4 - Browse repository at this point
Copy the full SHA db1efd4View commit details -
Set UPDATE_DEPDFILE=NO for showconfig
Exporting UPDATE_DEPDFILE=NO from makeman didn't work, back to setting it in local.meta.sys.env.mk
Configuration menu - View commit details
-
Copy full SHA for a34fbbd - Browse repository at this point
Copy the full SHA a34fbbdView commit details -
mt76: import mediatek/mt76 driver
Import ISC-licensed driver parts of mediatek/mt76 assumed to be based on Linux wireless-testing at a02411a5b98612c12be99349836d99f07db12a77 (tag: wt-2022-11-23). Complement the driver and LinuxKPI with our own (dummy) implementations of missing parts (util.h and soc/mediatek/) as well as changes to make compile on FreeBSD with changes covered by #ifdef (__FreeBSD__) conditions. Further select updates were applied since the initial import in order to keep compiling along with other LinuxKPI based drivers. For the moment we only target the mt7915 and mt7921 PCI parts. More may follow in the future. Firmware is provided by port net/wifi-firmware-mt76-kmod. Given the lack of full license texts on non-local files this is imported under the draft policy for handling SPDX files (D29226). [1] Approved by: core (emaste, 2022-04-08) [1] MFC after: 2 months
Configuration menu - View commit details
-
Copy full SHA for 8a1c509 - Browse repository at this point
Copy the full SHA 8a1c509View commit details -
mt76: add module build framework and man pages
Add framework to build if_mt7915 and if_mt7921 with LinuxKPI as well as initial man pages for the two mt76 chipset drivers. MFC after: 2 months
Configuration menu - View commit details
-
Copy full SHA for 453057e - Browse repository at this point
Copy the full SHA 453057eView commit details -
mt76: devd: add support for mt79* wireless drivers to devd.conf
Add the "mt79" to the regex for wireless drivers in devd.conf so that they get handled as expected. MFC after: 2 months
Configuration menu - View commit details
-
Copy full SHA for e3513d2 - Browse repository at this point
Copy the full SHA e3513d2View commit details -
ath10k: ath11k: ammend devd.conf regex
In order to match these drivers, and in expectiation of ath12k happening add ath[0-9]+k to the regex pattern for wlan devices. MFC after: 2 months
Configuration menu - View commit details
-
Copy full SHA for fcde082 - Browse repository at this point
Copy the full SHA fcde082View commit details -
ath10k: ath11k: add specific LinuxKPI support
Add files needed by ath1?k drivers to linuxkpi/linuxkpi_wlan. This contain (skeleton) implementations of what is needed to compile but specifically mhi/qmi/qrtr will need more work for ath11k. MFC after: 2 months
Configuration menu - View commit details
-
Copy full SHA for 530fd06 - Browse repository at this point
Copy the full SHA 530fd06View commit details -
athk: import common code for ath1?k drivers
Import common ISC-licensed athk parts assumed to be based on Linux kvalo/ath.git master at 6bae9de622d3ef4805aba40e763eb4b0975c4f6d. The only modification should be for FreeBSD module handling in main.c. Add the module build framework unconnected to the build for now. These files will be shared by ath1?k drivers. MFC after: 2 months
Configuration menu - View commit details
-
Copy full SHA for 5002fb3 - Browse repository at this point
Copy the full SHA 5002fb3View commit details -
Import ISC-licensed ath10k driver assumed to be based on Linux kvalo/ath.git master at 6bae9de622d3ef4805aba40e763eb4b0975c4f6d. Import support to redirect fwlogs to kernel messages from https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/389075 Complement the driver to make compile on FreeBSD using LinuxKPI with changes covered by #ifdef (__FreeBSD__). Further select updates were applied since the initial import in order to keep compiling along with other LinuxKPI based drivers. Any other native driver using BUS_PROBE_DEFAULT will attach ignoring this one by default given bsd_probe_return is set to a lower priority. Add the module build framework. We only support PCI parts. The firmware is provided by port net/wifi-firmware-ath10k-kmod. Given the lack of full license texts on most files this is imported under the draft policy for handling SPDX files (D29226). [1] Approved by: core (emaste, 2022-04-08) [1] MFC after: 2 months
Configuration menu - View commit details
-
Copy full SHA for 07d44bc - Browse repository at this point
Copy the full SHA 07d44bcView commit details -
Add initial man page for ath10k.4. MFC after: 2 months
Configuration menu - View commit details
-
Copy full SHA for abd2807 - Browse repository at this point
Copy the full SHA abd2807View commit details -
posixshmcontrol(1): silently ignore inaccessible segments when listing
PR: 271038 Reported by: [email protected] Sponsored by: The FreeBSD Foundation MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for e859ce8 - Browse repository at this point
Copy the full SHA e859ce8View commit details -
showconfig - ignore options that do not start with A-Z
When building on various hosts it can be handy to create pseudo options like MK_host_egacy - building on a host that needs libegacy. Such options should be ignored by showconfig Reviewed by: emaste
Configuration menu - View commit details
-
Copy full SHA for f457275 - Browse repository at this point
Copy the full SHA f457275View commit details -
ext2fs: extract crc16 into sys/crc16.h
deduplicate this as it might be needed for other drivers (e.g. Apple SPI-HID) Sponsored by: https://www.patreon.com/valpackett Reviewed by: chuck, imp MFC after: 1 month Differential revision: https://reviews.freebsd.org/D32879
Configuration menu - View commit details
-
Copy full SHA for a63e7f6 - Browse repository at this point
Copy the full SHA a63e7f6View commit details -
spibus: extend API: add cs_delay ivar, KEEP_CS and NO_SLEEP flags
These feature are required for an upcoming Apple MacBook topcase (HID over SPI) driver: A delay after toggling CS is required to avoid anomalies like an extra junk byte in front of the message. Keeping CS asserted is required to be able to read a status report after writing a command. (The device won't return the status if CS was deasserted.) Sleep is not allowed in the interrupt context where the Apple input driver runs its transactions. Use a flag to tell the SPI driver to avoid mtx_sleep. Reviewed by: manu (ok to SPI part of larger patch) MFC afret: 1 month Differential revision: https://reviews.freebsd.org/D29534
Configuration menu - View commit details
-
Copy full SHA for 257a54b - Browse repository at this point
Copy the full SHA 257a54bView commit details -
intelspi: add PCI attachment (Lynx/Wildcat/Sunrise Point)
Also adds fixups and cleanups: - apply the child's mode/speed - implement suspend/resume support - use RF_SHAREABLE interrupts - use bus_delayed_attach_children since the transfer can use interrupts - add support for newly added spibus features (cs_delay and flags) Operation tested on Broadwell (Wildcat Point) MacBookPro12,1. Attachment also tested on Kaby Lake (Sunrise Point) Pixelbook. Reviewed by: wulf MFC after: 1 month Differential revision: https://reviews.freebsd.org/D29249
Configuration menu - View commit details
-
Copy full SHA for e11f17b - Browse repository at this point
Copy the full SHA e11f17bView commit details -
bcm5974: fix wellspring9 pressure settings to handle force sensitivity
Reviewed by: wulf MFC after: 1 month Differential revision: https://reviews.freebsd.org/D34435
Configuration menu - View commit details
-
Copy full SHA for 7c5a9aa - Browse repository at this point
Copy the full SHA 7c5a9aaView commit details -
hid: fix typo in hid_is_collection
hid_input is equal to 0. It is leftover from NetBSD code. Reviewed by: hselasky, wulf MFC after: 1 month Differential revision: https://reviews.freebsd.org/D28149
Configuration menu - View commit details
-
Copy full SHA for 7ad4486 - Browse repository at this point
Copy the full SHA 7ad4486View commit details -
Remove unneeded masks from the arm64 KASAN shadow
When mapping the arm64 KASAN shadow map we use Ln_TABLE_MASK to align physical addresses, however these should already be aligned either by rounding to a greater alignment, or the VM subsystem is giving us a correctly aligned page. Remove these extra alignment masks. Reviewed by: kevans Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D39752
Configuration menu - View commit details
-
Copy full SHA for 0b55a48 - Browse repository at this point
Copy the full SHA 0b55a48View commit details -
Make arm64 pcb padding explicit
There is padding between some fields. Mark those I have found so they can be reused later if needed. Sponsored by: Arm Ltd
Configuration menu - View commit details
-
Copy full SHA for 2bd04d8 - Browse repository at this point
Copy the full SHA 2bd04d8View commit details -
Allow pci_host_generic attachments to manage registers
To allow for attachments that don't use memory mapped registers add a flag they can set when the base driver shouldn't map them. Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D39227
Configuration menu - View commit details
-
Copy full SHA for d1203c5 - Browse repository at this point
Copy the full SHA d1203c5View commit details -
Add a PCI driver that follows the Arm DEN0115 spec
Add a n attachment to the pci_host_generic driver for the Arm DEN0115 PCI Configuration Space Access Firmware Interface [1]. This can be used when PCI controllers need to implement quirks in the PCI root bus. To handle this the firmware implements a SMCCC interface the driver can use to read and write the configuration register. This has been tested on a Raspberry Pi 4 booting with EDK2. [1] https://developer.arm.com/documentation/den0115/latest Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D39228
Configuration menu - View commit details
-
Copy full SHA for 738fa0e - Browse repository at this point
Copy the full SHA 738fa0eView commit details -
Use a uint64_t to store the arm64 mpidr
Use a single uint64_t to hole the mpidr register as we can break the KBI on 14. Keep the macro so code can still be MFCd to 13. Sponsored by: Arm Ltd
Configuration menu - View commit details
-
Copy full SHA for 0417c27 - Browse repository at this point
Copy the full SHA 0417c27View commit details -
Remove redundant data from pci host generic
The bus tag and handle fields are already stored in the resource. Use this with the bus_read/bus_write helper macros. Sponsored by: Arm Ltd
Configuration menu - View commit details
-
Copy full SHA for e4dbc76 - Browse repository at this point
Copy the full SHA e4dbc76View commit details -
arm64: Clean up smmu fdt xref handling
Use the xref from OF_xref_from_node for the smmu xref. We already have a valid xref ID, there is no need to convert this to a memory address. Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D39181
Configuration menu - View commit details
-
Copy full SHA for 257a705 - Browse repository at this point
Copy the full SHA 257a705View commit details -
Add PCI_ID_OFW_IOMMU to the pci ecam ACPI driver
Teach the pci host generic ACPI attachment about PCI_ID_OFW_IOMMU. This will be used by the arm64 smmu IOMMU driver to read the xref and ID this interface provides in a bus-agnostic way. Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D39182
Configuration menu - View commit details
-
Copy full SHA for d15fe4c - Browse repository at this point
Copy the full SHA d15fe4cView commit details -
Create a common function to get the SMMU sid
Now the PCI drivers have a common interface to read the IOMMU xref and SID create a common function to read it. This fixes an issue where we will call into an ACPI specific function when booting with FDT when both are enabled. Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D39183
Configuration menu - View commit details
-
Copy full SHA for 7fe8453 - Browse repository at this point
Copy the full SHA 7fe8453View commit details -
Move to a SMMU specific struct for the smmu pmap
This is not managed through the VM subsystem so only needs to hold the data the SMMU driver needs. Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D39184
Configuration menu - View commit details
-
Copy full SHA for d5e0781 - Browse repository at this point
Copy the full SHA d5e0781View commit details -
Remove virtual addresses from smmu_pmap_remove_pages
This function needs to unmap all memory in a given SMMU context. Have it iterate over all page table entries to find what has been mapped rather than looking at virtual addresses. While here use SMMU specific macros. Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D39185
Configuration menu - View commit details
-
Copy full SHA for 84aba45 - Browse repository at this point
Copy the full SHA 84aba45View commit details -
Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D39186
Configuration menu - View commit details
-
Copy full SHA for 33e53dc - Browse repository at this point
Copy the full SHA 33e53dcView commit details -
Summary: Trivial changes for LinuxKPI to use IfAPI. The 'bsdifp' looks unused, so removed it instead of converting it to a pointer. Bump __FreeBSD_version for change to struct net_device. Reviewed by: bz, hselasky Sponsored by: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D39491
Configuration menu - View commit details
-
Copy full SHA for 40f88a7 - Browse repository at this point
Copy the full SHA 40f88a7View commit details -
IfAPI: Hide the macros that touch ifnet members
Nothing should be directly touching the ifnet members, which are hidden in <net/if_private.h>, so hide them in the same header to avoid errors from users. Sponsored by: Juniper Networks, Inc.
Configuration menu - View commit details
-
Copy full SHA for f706d73 - Browse repository at this point
Copy the full SHA f706d73View commit details -
Mechanically convert Xen netfront/netback(4) to IfAPI
Reviewed by: zlei Sponsored by: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D37800
Configuration menu - View commit details
-
Copy full SHA for 09ee8d2 - Browse repository at this point
Copy the full SHA 09ee8d2View commit details -
powerpc: syscalls.c is standard
No need to add it here, much less make it optional on ktr. Sponsored by: Netflix
Configuration menu - View commit details
-
Copy full SHA for 71afa29 - Browse repository at this point
Copy the full SHA 71afa29View commit details -
Clean up PCI DEN0115 driver probing
Rather than checking for the SMCCC version check if the PCI_VERSION call returns a valid version. Sponsored by: Arm Ltd
Configuration menu - View commit details
-
Copy full SHA for de88be0 - Browse repository at this point
Copy the full SHA de88be0View commit details -
zlib: Silence -Wstrict-prototype warnings.
Presumably upstream will fix this eventually. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D39724
Configuration menu - View commit details
-
Copy full SHA for 0e0a358 - Browse repository at this point
Copy the full SHA 0e0a358View commit details -
libsmdb: Silence -Wstrict-prototype warnings.
Presumably upstream will fix this eventually. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D39725
Configuration menu - View commit details
-
Copy full SHA for c4fb2e8 - Browse repository at this point
Copy the full SHA c4fb2e8View commit details -
fdisk: Use valid prototypes for function declarations with no arguments.
Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D39726
Configuration menu - View commit details
-
Copy full SHA for b761bef - Browse repository at this point
Copy the full SHA b761befView commit details -
rpc.lockd: Use valid prototypes for function declarations with no arg…
…uments. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D39727
Configuration menu - View commit details
-
Copy full SHA for df03207 - Browse repository at this point
Copy the full SHA df03207View commit details -
rpc.umntall: Use valid prototype for function declaration with no arg…
…uments. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D39728
Configuration menu - View commit details
-
Copy full SHA for 026c027 - Browse repository at this point
Copy the full SHA 026c027View commit details -
ndp: Use valid prototypes for function declarations with no arguments.
Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D39729
Configuration menu - View commit details
-
Copy full SHA for dc98a45 - Browse repository at this point
Copy the full SHA dc98a45View commit details -
ppp: Use valid prototypes for function declarations with no arguments.
Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D39730
Configuration menu - View commit details
-
Copy full SHA for 29dd81d - Browse repository at this point
Copy the full SHA 29dd81dView commit details -
netstat: Use valid prototypes for function declarations with no argum…
…ents. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D39731
Configuration menu - View commit details
-
Copy full SHA for 3b40858 - Browse repository at this point
Copy the full SHA 3b40858View commit details -
powerpc: Use valid prototypes for function declarations with no argum…
…ents. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D39733
Configuration menu - View commit details
-
Copy full SHA for 1532370 - Browse repository at this point
Copy the full SHA 1532370View commit details -
cp: Revert "If copy_file_range(2) fails with EXDEV, use fall-back."
This reverts commit 6433365. The error is not valid per api contract, it showed up as a regression after 15f0b8c 15f0b8c ("zfs: merge openzfs/zfs@9cd71c860 (master)") and was subsequently in d012836 ("zfs: fix up EXDEV handling for clone_range"). Sponsored by: Rubicon Communications, LLC ("Netgate")
Configuration menu - View commit details
-
Copy full SHA for 41051e8 - Browse repository at this point
Copy the full SHA 41051e8View commit details -
Enable building tar for non-FreeBSD host
For DIRDEPS_BUILD we need Makefile.depend.options to force libegacy to be built on older FreeBSD and non-FreeBSD hosts. Add readpassphrase to libegacy to avoid the need for libbsd on Linux src.opts.mk disable TESTS for host if MK_host_egacy is yes Reviewed by: imp Sponsored by: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D39766
Configuration menu - View commit details
-
Copy full SHA for 9c0b3c1 - Browse repository at this point
Copy the full SHA 9c0b3c1View commit details -
share/misc/committers-doc.dot: dru: 2020, not 202
Dru Lavigne's doc commit bit was taken in 2020-05-05 https://cgit.freebsd.org/doc/commit/access?h=refs/internal/admin&id=fb28136a81580786a66ab2494da40b01f4b7a75b Fixes: 52f5764 committers-doc.dot: bring file up to date
Configuration menu - View commit details
-
Copy full SHA for 9860362 - Browse repository at this point
Copy the full SHA 9860362View commit details -
We do not need readpassphrase from openssh
When building tar for linux, just disable HAVE_READPASSPHRASE in config_freebsd.h and libarchive will provide for readpassphrase Otherwise the two conflict.
Configuration menu - View commit details
-
Copy full SHA for cdcba12 - Browse repository at this point
Copy the full SHA cdcba12View commit details -
depend-cleanup.sh: Handle kqueue1() becoming a wrapper around kqueuex().
For a brief period kqueue1() was a system call and stale dependencies cause it to not be re-built.
Configuration menu - View commit details
-
Copy full SHA for b8866a8 - Browse repository at this point
Copy the full SHA b8866a8View commit details -
lookup(): ensure that openat("/", "..", O_RESOLVE_BENEATH) fails
PR: 269780 Reported by: Dan Gohman <[email protected]> Reviewed by: emaste, markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D39773
Configuration menu - View commit details
-
Copy full SHA for d40d6e2 - Browse repository at this point
Copy the full SHA d40d6e2View commit details -
sys/dirent.h: comment update, 'd_off' is offset of next entry
This is the historical (and still current) behavior, as well as that of NetBSD, OpenBSD, illumos and Linux (getdents()/getdents64()). Reviewed by: kib MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for 6ca2e43 - Browse repository at this point
Copy the full SHA 6ca2e43View commit details -
vn_open_vnode(): fix locking around VOP_CLOSE() on advisory lock error
In the case of a FIFO or if trying to open a file for writing, an exclusive lock is necessary. Reviewed by: kib MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for 983ea4f - Browse repository at this point
Copy the full SHA 983ea4fView commit details -
Correct the value of macro TF2_TCP_ACCOUNTING.
Summary: Make sure the values are in order. Reviewers: rscheff, tuexen, #transport! Approved by: rscheff, tuexen, glebius Subscribers: imp, melifaro, glebius Differential Revision: https://reviews.freebsd.org/D39716
Configuration menu - View commit details
-
Copy full SHA for 3951542 - Browse repository at this point
Copy the full SHA 3951542View commit details -
Remove unused fields in siftr_stats. Thus, update the man page as well.
Summary: Remove unused fields in siftr_stats. Thus, update the man page as well. Test Plan: Tested in Emulab testbed. Reviewers: rscheff, tuexen Approved by: rscheff, tuexen Subscribers: imp, melifaro, glebius Differential Revision: https://reviews.freebsd.org/D39776
Configuration menu - View commit details
-
Copy full SHA for aefa408 - Browse repository at this point
Copy the full SHA aefa408View commit details -
Merge commit '51d8a8b4ac1dd7265e891149e470a803906de2a7'
Configuration menu - View commit details
-
Copy full SHA for 5aa95b6 - Browse repository at this point
Copy the full SHA 5aa95b6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4b559a7 - Browse repository at this point
Copy the full SHA 4b559a7View commit details -
bhyve: add helper struct for qemus acpi table loader
The hypervisor is aware of all system properties. For the guest bios it's hard and complex to detect all system properties. For that reason, it would be better if the hypervisor creates acpi tables instead of the guest. Therefore, the hypervisor has to send the acpi tables to the guest. At the moment, bhyve just copies the acpi tables into the guest memory. This approach has some restrictions. You have to keep sure that the guest doesn't overwrite them accidentally. Additionally, the size of acpi tables is limited. Providing a plain copy of all acpi tables by fwcfg isn't possible. Acpi tables have to point to each other. So, if the guest copies the acpi tables into memory by it's own, it has to patch the tables. Due to different layouts for different acpi tables, there's no generic way to do that. For that reason, qemu created a table loader interface. It contains commands for the guest for loading specific blobs into guest memory and patching those blobs. This commit adds a qemu_loader class which handles the creation of qemu loader commands. At the moment, the WRITE_POINTER command isn't implement. It won't be required by bhyve's acpi table generation yet. Reviewed by: markj MFC after: 1 week Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D38438
Configuration menu - View commit details
-
Copy full SHA for 8d6d8b5 - Browse repository at this point
Copy the full SHA 8d6d8b5View commit details -
bhyve: make use of qemus acpi table loader
Add all acpi tables to qemus acpi table loader. This passes the acpi tables by fwcfg to the guest. Reviewed by: markj MFC after: 1 week Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D38439
Configuration menu - View commit details
-
Copy full SHA for c7bd18f - Browse repository at this point
Copy the full SHA c7bd18fView commit details -
Sponsored by: NVidia networking
Configuration menu - View commit details
-
Copy full SHA for 2b985d8 - Browse repository at this point
Copy the full SHA 2b985d8View commit details -
netipsec/key.c: use designated initializers for arrays
Also de-expand nitems() use in related asserts, and fix maxsize array name in the assert message. Sponsored by: NVidia networking
Configuration menu - View commit details
-
Copy full SHA for 5f719d9 - Browse repository at this point
Copy the full SHA 5f719d9View commit details -
If we need to set MK_host_egacy=yes we might need to check it in local.toolchain.mk so set it earlier in local.meta.sys.env.mk Leave the default MK_host_egacy?=no in local.sys.mk so it can be tested in Makefiles without concern for build mode.
Configuration menu - View commit details
-
Copy full SHA for 4c06201 - Browse repository at this point
Copy the full SHA 4c06201View commit details -
fs/msdosfs: Fix potential panic and size calculations
Some combinations of FAT12 file system parameters could cause a kernel panic due to an unmapped access if the size of the FAT was larger than the CPU page size. The reason is that FAT12 uses 3 bytes to store 2 FAT pointers, leading to partial FAT pointers at the end of buffers of a size that is not a multiple of 3. With a typical page size of 4 KB, this caused the FAT entry at byte offsets 4095 and 4096 to cross the page boundary, with only the first page mapped. This was fixed by adjusting the mapping to always cover both bytes of each FAT entry. Testing revealed 2 other inconsistencies that are fixed by this commit: 1) The calculation of the size of the data area did not take into account the fact that the first two data block numbers are reserved and that the data area starts with block 2. This could cause a FAT12 file system created with the maximum supported number of blocks to be incorrectly identified as FAT16. 2) The root directory does not take up space in the data area of a FAT12 or FAT16 file system, since it is placed into a reserved area outside of that data area. This commits makes stat() report the logical size of the root directory, but with 0 blocks allocated from the data area. PR: 270587 Reviewed by: mckusick Differential Revision: https://reviews.freebsd.org/D39386
Configuration menu - View commit details
-
Copy full SHA for 5e4387a - Browse repository at this point
Copy the full SHA 5e4387aView commit details -
sys/fs: do not report blocks allocated for synthetic file systems
The pseudo file systems (devfs, fdescfs, procfs, etc.) report total and available blocks and inodes despite being synthetic with no underlying storage device to which those values could be applied. The current code of these file systems tends to report a fixed number of total blocks but no free blocks, and in the case of procfs, libprocfs, linsysfs also no free inodes. This can be irritating in e.g. the "df" output, since 100% of the resources seem to be in use, but it can also create warnings in monitoring tools used for capacity management. This patch makes these file systems return the same value for the total and free parameters, leading to 0% in use being displayed by "df". Since there is no resource that can be exhausted, this appears to be a sensible result. Reviewed by: mckusick Differential Revision: https://reviews.freebsd.org/D39442
Configuration menu - View commit details
-
Copy full SHA for 854e5c0 - Browse repository at this point
Copy the full SHA 854e5c0View commit details -
bcm5974(4): add Magic Trackpad 2 (USB only) support
The MT2 uses a compact report format, but otherwise is similar in many ways to the internal trackpads, it even uses the same mode switching commands. Reviewed by: wulf MFC after: 1 month Differential revision: https://reviews.freebsd.org/D34437
Configuration menu - View commit details
-
Copy full SHA for e397319 - Browse repository at this point
Copy the full SHA e397319View commit details -
bcm5974(4): Make Magic Trackpad 2 support endian-safe.
While here make touch orientation event matching with Linux MFC after: 1 month
Configuration menu - View commit details
-
Copy full SHA for 1ef1eb1 - Browse repository at this point
Copy the full SHA 1ef1eb1View commit details -
Add padding for future use on arm64
Allow new features to be supported without changing the size of existing structures. Reviewed by: kib Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D39777
Configuration menu - View commit details
-
Copy full SHA for 3e0ae72 - Browse repository at this point
Copy the full SHA 3e0ae72View commit details -
Configuration menu - View commit details
-
Copy full SHA for 53074bb - Browse repository at this point
Copy the full SHA 53074bbView commit details -
elf.5: Fix conjugation of holds
MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for 6fa4566 - Browse repository at this point
Copy the full SHA 6fa4566View commit details -
routing: add rt_tables_get_rnh_safe() that doesn't panic when af/fib is
incorrect. MFC after: 2 weeks
Configuration menu - View commit details
-
Copy full SHA for 1a6b8e4 - Browse repository at this point
Copy the full SHA 1a6b8e4View commit details -
routing: add iterator-based nhop traversal KPI.
MFC after: 2 weeks
Configuration menu - View commit details
-
Copy full SHA for 543b2b9 - Browse repository at this point
Copy the full SHA 543b2b9View commit details -
netlink: add nlattr_get_uint8() function to pack u8 attributes.
MFC after: 2 weeks
Configuration menu - View commit details
-
Copy full SHA for f3871fe - Browse repository at this point
Copy the full SHA f3871feView commit details -
netlink: fix parameters in snl_attr_get_flag()
MFC after: 2 weeks
Configuration menu - View commit details
-
Copy full SHA for e73e762 - Browse repository at this point
Copy the full SHA e73e762View commit details -
lltable: properly set expire time to 0 for static IPv4 entries.
MFC after: 2 weeks
Configuration menu - View commit details
-
Copy full SHA for 68bc097 - Browse repository at this point
Copy the full SHA 68bc097View commit details -
netlink: allow creation of temporary lle entries.
MFC after: 2 weeks
Configuration menu - View commit details
-
Copy full SHA for bca6fad - Browse repository at this point
Copy the full SHA bca6fadView commit details -
netlink: add support for dumping kernel nexthops.
MFC after: 2 weeks
Configuration menu - View commit details
-
Copy full SHA for c50e031 - Browse repository at this point
Copy the full SHA c50e031View commit details -
netlink: add snl(3) support for dumping nexthops and neighbors
MFC after: 2 weeks
Configuration menu - View commit details
-
Copy full SHA for 6bfaeab - Browse repository at this point
Copy the full SHA 6bfaeabView commit details -
ipfw.8: improve description for interface matching
The manual describes "if*" form only while kernel uses fnmatch(3) and allows use for more versatile shell-like patterns. Note that explicitly and provide an example. MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for e2fffd0 - Browse repository at this point
Copy the full SHA e2fffd0View commit details -
netlink: enable extended error reporting in snl(3).
MFC after: 2 weeks
Configuration menu - View commit details
-
Copy full SHA for 7c5742c - Browse repository at this point
Copy the full SHA 7c5742cView commit details -
arp: convert arp(8) to netlink.
The change is intended to be fully transparent to the users. Similarly to route(8) and netstat(8), arp can be build without netlink by defining WITHOUT_NETLINK in make.conf. Differential Revision: https://reviews.freebsd.org/D39720
Configuration menu - View commit details
-
Copy full SHA for 362db7f - Browse repository at this point
Copy the full SHA 362db7fView commit details -
netlink: fix neighbour deleting for IPv6.
MFC after: 2 weeks
Configuration menu - View commit details
-
Copy full SHA for 5cac2e5 - Browse repository at this point
Copy the full SHA 5cac2e5View commit details -
netlink: require proper privileges when adding neighbor.
MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for f47cd4a - Browse repository at this point
Copy the full SHA f47cd4aView commit details -
Configuration menu - View commit details
-
Copy full SHA for cd872d0 - Browse repository at this point
Copy the full SHA cd872d0View commit details -
ndp: convert ndp(8) to netlink.
The change is intended to be fully transparent to the users. Similarly to route(8) and netstat(8), ndp can be build without netlink by defining WITHOUT_NETLINK in make.conf. Differential Revision: https://reviews.freebsd.org/D39720
Configuration menu - View commit details
-
Copy full SHA for 3494ac6 - Browse repository at this point
Copy the full SHA 3494ac6View commit details -
netlink: add netlink interfaces to if_clone
This change adds netlink create/modify/dump interfaces to the `if_clone.c`. The previous attempt with storing the logic inside `netlink/route/iface_drivers.c` did not quite work, as, for example, dumping interface-specific state (like vlan id or vlan parent) required some peeking into the private interfaces. The new interfaces are added in a compatible way - callers don't have to do anything unless they are extended with Netlink. Reviewed by: kp Differential Revision: https://reviews.freebsd.org/D39032 MFC after: 1 month
Configuration menu - View commit details
-
Copy full SHA for 8fb28bc - Browse repository at this point
Copy the full SHA 8fb28bcView commit details -
ipfw: add [fw]mark implementation for ipfw
Packet Mark is an analogue to ipfw tags with O(1) lookup from mbuf while regular tags require a single-linked list traversal. Mark is a 32-bit number that can be looked up in a table [with 'number' table-type], matched or compared with a number with optional mask applied before comparison. Having generic nature, Mark can be used in a variety of needs. For example, it could be used as a security group: mark will hold a security group id and represent a group of packet flows that shares same access control policy. Reviewed By: pauamma_gundo.com Differential Revision: https://reviews.freebsd.org/D39555 MFC after: 1 month
Configuration menu - View commit details
-
Copy full SHA for 4cee076 - Browse repository at this point
Copy the full SHA 4cee076View commit details -
tests: Add ATF_REQUIRE_SYSCTL_BOOL
Modify a capability mode test to use it for kern.trap_enotcap, to avoid false positives. MFC after: 1 week Sponsored by: The FreeBSD Foundation
Configuration menu - View commit details
-
Copy full SHA for 11a71ba - Browse repository at this point
Copy the full SHA 11a71baView commit details -
capsicum: Verify that openat("/", "..") fails with ENOTCAPABLE
Add a regression test for a718431 ("lookup(): ensure that openat("/", "..", O_RESOLVE_BENEATH) fails"). MFC after: 1 week Sponsored by: The FreeBSD Foundation
Configuration menu - View commit details
-
Copy full SHA for 112603a - Browse repository at this point
Copy the full SHA 112603aView commit details -
dtrace: Sync dis_tables.c with illumos
This brings in the following commits: commit 584b574a3b16c6772c8204ec1d1c957c56f22a87 12174 i86pc: variable may be used uninitialized Author: Toomas Soome <[email protected]> Reviewed by: John Levon <[email protected]> Reviewed by: Andrew Stormont <[email protected]> Approved by: Dan McDonald <[email protected]> commit a25e615d76804404e5fc63897a9196d4f92c3f5e 12371 dis x86 EVEX prefix mishandled 12372 dis EVEX encoding SIB mishandled 12373 dis support for EVEX vaes instructions 12374 dis support for EVEX vpclmulqdq instructions 12375 dis support for gfni instructions Author: Robert Mustacchi <[email protected]> Reviewed by: Jerry Jelinek <[email protected]> Approved by: Joshua M. Clulow <[email protected]> commit c1e9bf00765d7ac9cf1986575e4489dd8710d9b1 12369 dis WBNOINVD support Author: Robert Mustacchi <[email protected]> Reviewed by: Hans Rosenfeld <[email protected]> Reviewed by: Jerry Jelinek <[email protected]> Reviewed by: Andy Fiddaman <[email protected]> Reviewed by: Toomas Soome <[email protected]> Approved by: Dan McDonald <[email protected]> commit e4f6ce7088a7dd335b9edf4774325f888692e5fb 10893 Need support for new Cascade Lake Instructions Author: Robert Mustacchi <[email protected]> Reviewed by: Hans Rosenfeld <[email protected]> Reviewed by: Dan McDonald <[email protected]> Reviewed by: Richard Lowe <[email protected]> Approved by: Gordon Ross <[email protected]> commit cff040f3ef42d16ae655969398f5a5e6e700b85e 10226 Need support for new EPYC ISA extensions Author: Robert Mustacchi <[email protected]> Reviewed by: Hans Rosenfeld <[email protected]> Reviewed by: Jason King <[email protected]> Reviewed by: Richard Lowe <[email protected]> Approved by: Dan McDonald <[email protected]> commit d242cdf5288b86d9070d88791c8ee696612becdc 8492 AVX512 dis - legacy logical instructions Author: Jerry Jelinek <[email protected]> Reviewed by: Robert Mustacchi <[email protected]> Reviewed by: Gordon Ross <[email protected]> Approved by: Richard Lowe <[email protected]> commit 81b505b772ab015c588c56bb116239ee549b6eee 8384 AVX512 dis - EVEX prefix support 8385 32-bit avx dis test mishandles EVEX prefix 8386 32-bit bound dis is incorrect Author: Jerry Jelinek <[email protected]> Reviewed by: Robert Mustacchi <[email protected]> Reviewed by: Gordon Ross <[email protected]> Approved by: Richard Lowe <[email protected]> commit 92381362ae635a3bea638d87b7119f1623b6212e 8319 dis support for new xsave instructions Author: Jerry Jelinek <[email protected]> Reviewed by: Robert Mustacchi <[email protected]> Reviewed by: Gordon Ross <[email protected]> Approved by: Richard Lowe <[email protected]> commit a4e73d5d60e566669c550027fae2b1d87b4be2b4 8240 AVX512 dis - opmask instruction support Author: Jerry Jelinek <[email protected]> Reviewed by: Robert Mustacchi <[email protected]> Reviewed by: Toomas Soome <[email protected]> Approved by: Gordon Ross <[email protected]> 959b2dfd39979fe8a9a315a52741d009eb168822 7825 want avx dis tests 7826 PCLMULQDQ psuedo-ops aren't properly described in dis 7827 dis tests for f16c, movbe, cpuid, msr, tsc, fence instrs 7828 sysenter and sysexit dis should be allowed in 64-bit x86 Author: Robert Mustacchi <[email protected]> Reviewed by: Jerry Jelinek <[email protected]> Approved by: Richard Lowe <[email protected]> MFC after: 2 weeks
Configuration menu - View commit details
-
Copy full SHA for 89b21f5 - Browse repository at this point
Copy the full SHA 89b21f5View commit details -
Configuration menu - View commit details
-
Copy full SHA for f7fd871 - Browse repository at this point
Copy the full SHA f7fd871View commit details -
Configuration menu - View commit details
-
Copy full SHA for 78290c8 - Browse repository at this point
Copy the full SHA 78290c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 50696d6 - Browse repository at this point
Copy the full SHA 50696d6View commit details -
zfs: fix up bogus checksums with blake3 in face of cpu migration
This is a temporary measure until a better fix is sorted out. Upstream report: openzfs/zfs#14785 Reported by: Evgeniy Khramtsov Sponsored by: Rubicon Communications, LLC ("Netgate")
Configuration menu - View commit details
-
Copy full SHA for 162e7a7 - Browse repository at this point
Copy the full SHA 162e7a7View commit details -
In the -L mode, the -L flag is not optional. MFC after: 3 days Sponsored by: Klara Inc.
Configuration menu - View commit details
-
Copy full SHA for e8250c5 - Browse repository at this point
Copy the full SHA e8250c5View commit details -
ps: Add libxo to usage message
MFC after: 1 week Sponsored by: Klara Inc.
Configuration menu - View commit details
-
Copy full SHA for 1b30659 - Browse repository at this point
Copy the full SHA 1b30659View commit details -
Add support for zpool user properties
Usage: zpool set org.freebsd:comment="this is my pool" poolname Tests are based on zfs_set's user property tests. Also stop truncating property values at MAXNAMELEN, use ZFS_MAXPROPLEN. Reviewed by: markj Approved by: markj Co-authored-by: Mateusz Piotrowski <[email protected]> Obtained from: OpenZFS 8eae2d2 Add support for zpool user properties Sponsored by: Beckhoff Automation GmbH & Co. KG. Sponsored by: Klara Inc. Differential Revision: https://reviews.freebsd.org/D39657
Configuration menu - View commit details
-
Copy full SHA for 4d19654 - Browse repository at this point
Copy the full SHA 4d19654View commit details -
zfs: Revert "Fix data race between zil_commit() and zil_suspend()"
This reverts commit 4c856fb. To quote a pending upstream PR: This reverts commit 4c856fb to resolve a newly introduced deadlock which in practice is more disruptive that the issue this commit intended to address. Causes deadlocks described in openzfs/zfs#14775 Sponsored by: Rubicon Communications, LLC ("Netgate")
Configuration menu - View commit details
-
Copy full SHA for d86b77e - Browse repository at this point
Copy the full SHA d86b77eView commit details -
Use bool for one-bit wide bit-fields
A signed one-bit wide bit-field can take only the values 0 and -1. Clang 16 introduced a warning that "implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1". Fix the warnings by using C99 bool. Reported by: Clang 16 Reviewed by: emaste, jhb MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D39705
Configuration menu - View commit details
-
Copy full SHA for e38c0c7 - Browse repository at this point
Copy the full SHA e38c0c7View commit details -
vmm: Expose some more AVX512 CPUID bits to guests
This is required to announce support for some accelerated AES operations. AVX512BW indicates support for the AVX512-FP16 extension and AVX512VL indicates support for the use of AVX512 instructions with vector lengths smaller than 512 bits. VAES and VPCLMULQDQ extensions indicate that VEX-prefixed AES-NI and pclmulqdq instructions are supported. All of these bits are needed for OpenSSL to use VAES to accelerate AES-GCM transforms. Reviewed by: corvink, kib, jhb MFC after: 2 weeks Sponsored by: Stormshield Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D39781
Configuration menu - View commit details
-
Copy full SHA for 03e1467 - Browse repository at this point
Copy the full SHA 03e1467View commit details -
zfs: make zfs_vfs_held() definition consistent with declaration
Noticed while attempting to change boolean_t into an actual bool: in include/sys/zfs_ioctl_impl.h, zfs_vfs_held() is declared to return a boolean_t, but in module/os/freebsd/zfs/zfs_ioctl_os.c it is defined to return an int. Make the definition match the declaration. Obtained from: openzfs/zfs@62cc9d4f6 Reviewed by: jhb MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D39753
Configuration menu - View commit details
-
Copy full SHA for fffb81e - Browse repository at this point
Copy the full SHA fffb81eView commit details -
vm: fix a number of functions to match the expected prototypes
Noticed while attempting to make boolean_t unsigned: some vm-related function declarations and defintions were using boolean_t where they should have used int, and vice versa. MFC after: 1 week Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D39753
Configuration menu - View commit details
-
Copy full SHA for 92ef2dc - Browse repository at this point
Copy the full SHA 92ef2dcView commit details -
boolean_t: change to unsigned int to avoid signed bitfield warnings
This is the final part, which actually makes boolean_t unsigned. Note that we do not change its size, nor do we try to change it directly to bool, since that results in a lot of regressions. Converting the remaining instances of boolean_t to plain C99 bool can now be done in a piecemeal fashion, after which boolean_t may hopefully be retired. MFC after: 1 week Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D39753
Configuration menu - View commit details
-
Copy full SHA for 29462d4 - Browse repository at this point
Copy the full SHA 29462d4View commit details -
cd9660.5: Fix the history section
MFC after: 7 days Sponsored by: Klara Inc.
Configuration menu - View commit details
-
Copy full SHA for 0c46db3 - Browse repository at this point
Copy the full SHA 0c46db3View commit details -
al_eth: make function definitions consistent with declarations
The declarations for al_eth_lm_retimer_ds25_signal_detect() and al_eth_lm_retimer_ds25_cdr_lock() say that these functions return 'al_bool', but the definitions actually return 'boolean_t'. Make the definitions match the declarations. Reviewed by: jhb, emaste MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D39759
Configuration menu - View commit details
-
Copy full SHA for 1a2e797 - Browse repository at this point
Copy the full SHA 1a2e797View commit details -
x86: whack pmspcv from GENERIC
The driver is enormous and rarely used. text data bss dec hex filename 23076646 1870505 4415872 29363023 0x1c00b4f kernel.before 20017433 1870305 4416000 26303738 0x1915cfa kernel.after People using the driver will need to add pmspcv_load="YES" to their loader.conf. Reviewed by: jhb Relnotes: yes Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D39816
Configuration menu - View commit details
-
Copy full SHA for 285a97b - Browse repository at this point
Copy the full SHA 285a97bView commit details -
Mostly mechanical changes, with some reworking in irdma_cm for iterating over interfaces and addresses. Further rework by Bartosz Sobczak. Reviewed by: bartosz.sobczak_intel.com Tested by: mateusz.moga_intel.com Sponsored by: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D38960
Configuration menu - View commit details
-
Copy full SHA for c3cd372 - Browse repository at this point
Copy the full SHA c3cd372View commit details -
al_eth: Finish conversion to IfAPI
Reviewed by: zlei Sponsored by: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D38955
Configuration menu - View commit details
-
Copy full SHA for f5c7e4c - Browse repository at this point
Copy the full SHA f5c7e4cView commit details -
tcp: purge the input queue from tcp_discardcb()
The purge was intentionally removed in a540cdc. My assumption was that the stacks that use the input queue always call the tcp_handle_orphaned_packets() in their tfb_tcp_fb_fini method. However, rack will skip doing that if t_fb_ptr is NULL and there are scenarios when it is NULL, e.g. close(2) on a socket (but some special close(2)). Instead of working out all possible scenarios let's put this safebelt back. Reviewed by: rrs Differential Revision: https://reviews.freebsd.org/D39696
Configuration menu - View commit details
-
Copy full SHA for 677e174 - Browse repository at this point
Copy the full SHA 677e174View commit details -
tcp_hpts: move HPTS related fields from inpcb to tcpcb
This makes inpcb lighter and allows future cache line optimizations of tcpcb. The reason why HPTS originally used inpcb is the compressed TIME-WAIT state (see 0d74451), that used to free a tcpcb, while the associated connection is still on the HPTS ring. Reviewed by: rrs Differential Revision: https://reviews.freebsd.org/D39697
Configuration menu - View commit details
-
Copy full SHA for 87a2fb2 - Browse repository at this point
Copy the full SHA 87a2fb2View commit details -
tcp: move HPTS/LRO flags out of inpcb to tcpcb
These flags are TCP specific. While here, make also several LRO internal functions to pass tcpcb pointer instead of inpcb one. Reviewed by: rrs Differential Revision: https://reviews.freebsd.org/D39698
Configuration menu - View commit details
-
Copy full SHA for 3013d10 - Browse repository at this point
Copy the full SHA 3013d10View commit details -
arm64/disassem.c: style and formatting
Reviewed by: mhorne MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D38899
Configuration menu - View commit details
-
Copy full SHA for 2e7aab2 - Browse repository at this point
Copy the full SHA 2e7aab2View commit details -
arm64/disassem.c: Fix typo sxts to sxts and amount for TYPE_02
The current implementation is wrong, since it unconditionally sets the amount equal to the <size> field of the instruction. However, when the <S> bit (scale) is not set, it must be zero. Also fix a typo, sxts to sxtx, according to the Arm64 documentation. Reviewed by: mhorne MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D39334
Configuration menu - View commit details
-
Copy full SHA for 665d983 - Browse repository at this point
Copy the full SHA 665d983View commit details -
arm64/disassem.c: Add support str/strb/strh instructions
Added disassembly support for each type of str/strb/strh instruction encoding. Reviewed by: mhorne MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D39336
Configuration menu - View commit details
-
Copy full SHA for 48457a6 - Browse repository at this point
Copy the full SHA 48457a6View commit details -
printf(9): clarify the description of %b
The bit values are numbers given in octal representation, not decimal, as one might assume from the description. Same goes for the base, although this has an example. Reviewed by: emaste MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D39815
Configuration menu - View commit details
-
Copy full SHA for 4ea4c18 - Browse repository at this point
Copy the full SHA 4ea4c18View commit details -
clang: Enable -Wdeprecated-non-prototype by default.
PR: 270919 (exp-run) Reviewed by: dim, emaste Differential Revision: https://reviews.freebsd.org/D39535
Configuration menu - View commit details
-
Copy full SHA for a5dbd9e - Browse repository at this point
Copy the full SHA a5dbd9eView commit details -
Change the unit of srtt and rto to usec, inspired by these in struct …
…"tcp_info". Therefore, no need hz and tcp_rtt_scale in the headline of the log. Update the man page as well. Summary: Simplify srtt and rto values in siftr log. Test Plan: Tested in Emulab testbed: cc@s1:~ % sudo sysctl net.inet.siftr net.inet.siftr.port_filter: 0 net.inet.siftr.genhashes: 0 net.inet.siftr.ppl: 1 net.inet.siftr.logfile: /var/log/siftr.log net.inet.siftr.enabled: 0 cc@s1:~ % sudo sysctl net.inet.siftr.port_filter=5001 net.inet.siftr.port_filter: 0 -> 5001 cc@s1:~ % sudo sysctl net.inet.siftr.enabled=1 net.inet.siftr.enabled: 0 -> 1 cc@s1:~ % cc@s1:~ % iperf -c r1 -n 1M ------------------------------------------------------------ Client connecting to r1, TCP port 5001 TCP window size: 32.0 KByte (default) ------------------------------------------------------------ [ 1] local 10.1.1.2 port 33817 connected with 10.1.1.3 port 5001 [ ID] Interval Transfer Bandwidth [ 1] 0.00-0.91 sec 1.00 MBytes 9.22 Mbits/sec cc@s1:~ % sudo sysctl net.inet.siftr.enabled=0 net.inet.siftr.enabled: 1 -> 0 cc@s1:~ % ll /var/log/siftr.log -rw-r--r-- 1 root wheel 91K Apr 25 09:38 /var/log/siftr.log cc@s1:~ % cat /var/log/siftr.log enable_time_secs=1682437111 enable_time_usecs=121115 siftrver=1.3.0 sysname=FreeBSD sysver=1400088 ipmode=4 o,0x00000000,1682437125.907343,10.1.1.2,33817,10.1.1.3,5001,1073725440,1073725440,2,0,0,0,0,2,536,0,1,672,1000000,32768,0,65536,0,0,0,0,0 i,0x00000000,1682437126.106759,10.1.1.2,33817,10.1.1.3,5001,1073725440,1073725440,2,0,0,0,0,2,536,0,1,672,1000000,32768,0,65536,0,1,0,0,0 o,0x00000000,1682437126.106767,10.1.1.2,33817,10.1.1.3,5001,1073725440,14480,2,65535,65700,9,9,4,1460,201000,1,16778209,803000,33580,0,65700,0,0,0,0,0 o,0x00000000,1682437126.107141,10.1.1.2,33817,10.1.1.3,5001,1073725440,14480,2,65535,65700,9,9,4,1460,201000,1,16778208,803000,33580,60,65700,0,0,0,0,0 ... i,0x00000000,1682437127.016754,10.1.1.2,33817,10.1.1.3,5001,1073725440,606109,1030,748544,66048,9,9,9,1460,100812,1,1008,303000,475948,0,65700,0,0,0,0,0 o,0x00000000,1682437127.016759,10.1.1.2,33817,10.1.1.3,5001,1073725440,606109,1030,748544,66048,9,9,10,1460,100812,1,1011,303000,475948,0,65700,0,0,0,0,0 disable_time_secs=1682437131 disable_time_usecs=767582 num_inbound_tcp_pkts=371 num_outbound_tcp_pkts=186 total_tcp_pkts=557 num_inbound_skipped_pkts_malloc=0 num_outbound_skipped_pkts_malloc=0 num_inbound_skipped_pkts_tcpcb=0 num_outbound_skipped_pkts_tcpcb=0 num_inbound_skipped_pkts_inpcb=0 num_outbound_skipped_pkts_inpcb=0 total_skipped_tcp_pkts=0 flow_list=10.1.1.2;33817-10.1.1.3;5001, Reviewers: rscheff, tuexen Approved by: rscheff, tuexen Subscribers: imp, melifaro, glebius Differential Revision: https://reviews.freebsd.org/D39803
Configuration menu - View commit details
-
Copy full SHA for 196db49 - Browse repository at this point
Copy the full SHA 196db49View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6d22e52 - Browse repository at this point
Copy the full SHA 6d22e52View commit details -
VOP_CLOSE(): MNTK_EXTENDED_SHARED filesystems do not need excl lock
All in-tree implementations of VOP_CLOSE() for filesystems proclaiming MNTK_EXTENDED_SHARED, are fine with the shared lock for the closed vnode. I checked the following implementations: ffs ext2 ufs null tmpfs devfs fdescfs cd9660 zfs It seems that initial addition of FWRITE check was due to necessity of handling the VV_TEXT vnode vflag. Since VOP_ADD_WRITECOUNT() only requires shared lock, we can relax the locking requirement there. Reviewed by: markj, Olivier Certner <[email protected]> Tested by: Olivier Certner Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D39784
Configuration menu - View commit details
-
Copy full SHA for 6a4aabf - Browse repository at this point
Copy the full SHA 6a4aabfView commit details -
bectl: document the -r flag to bectl
Independent of all of the commands, bectl itself takes an `-r` flag that specifies the BE root to use. This was originally added to facilitate testing, but it was later discovered to be incredibly useful in other scenarios; e.g., trying to recover some boot environments in rescue media. The "BE root" described here is the parent dataset that holds boot environments, but I've no idea if that's an accepted definition for that dataset. Reviewed by: gallatin, imp, Pau Amma MFC after: 1 week Differential Review: https://reviews.freebsd.org/D39710
Configuration menu - View commit details
-
Copy full SHA for 8ed390c - Browse repository at this point
Copy the full SHA 8ed390cView commit details -
gbde: stop rebuilding sha512 bits
In the early days of gbde, it linked against libmd. Shortly after conception, phk replaced ARC4 with SHA-512, but libmd did not have SHA2 at the time thus he built a copy of sha2.c for gbde. Fast forward 3 years, cperciva adds SHA2 to libmd -- this makes gbde's build of sha2.c redundant, but it's (understandably) overlooked. Let's simplify the gbde build now and just assume that libmd includes the most optimal implementation. Reported by: koobs (weird lto errors?) Differential Revision: https://reviews.freebsd.org/D34668
Configuration menu - View commit details
-
Copy full SHA for 16bc053 - Browse repository at this point
Copy the full SHA 16bc053View commit details -
Note that static hints no longer break loader hints
This commentary was carried over from the x86 version of the same code, but has actually been inaccurate for a while now. As of FreeBSD 12.x, all environments are used unless they disable each other. See 39d44f7 ("kern_environment: use any provided environments [...]") for details. Reviewed by: imp Differentiala Revision: https://reviews.freebsd.org/D35695
Configuration menu - View commit details
-
Copy full SHA for d1153c8 - Browse repository at this point
Copy the full SHA d1153c8View commit details -
Add a simple-framebuffer vt driver
This allows us to support this hardware and, in the future, use clocks so they are enabled past the initial kernel boot process. Reviewed by: ray Differential Revision: https://reviews.freebsd.org/D30103
Configuration menu - View commit details
-
Copy full SHA for 2194ae2 - Browse repository at this point
Copy the full SHA 2194ae2View commit details -
bhyve: add basic E820 implementation
There are some use cases where bhyve has to prepare some special memory regions. E.g. GPU passthrough for Intel integrated graphic devices needs to reserve some memory for the graphic device. So, bhyve has to inform the guest about those memory regions. This information can be passed by the qemu fwcfg interface. As qemu creates an E820 table, we can reuse the existing fwcfg item "etc/e820". This commit is the first one of a series. It only adds a basic implementation for the creation of the E820 table. Some subsequent commits will add more items to the E820 table and register it as fwcfg item. Reviewed by: markj MFC after: 1 week Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D39545
Configuration menu - View commit details
-
Copy full SHA for 3069a2c - Browse repository at this point
Copy the full SHA 3069a2cView commit details -
bhyve: add common memory holes to E820 table
The VGA and the ROM memory ranges can't be used as system memory. For that reason, remove them from the E820 table. Reviewed by: markj MFC after: 1 week Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D39546
Configuration menu - View commit details
-
Copy full SHA for 0c995b7 - Browse repository at this point
Copy the full SHA 0c995b7View commit details -
bhyve: add allocation function to E820
This function makes it easy to allocate new E820 entries. It will be used to allocate graphics memory for Intel integrated graphic devices. Reviewed by: markj MFC after: 1 week Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D39547
Configuration menu - View commit details
-
Copy full SHA for 91bac17 - Browse repository at this point
Copy the full SHA 91bac17View commit details -
For debugging purposes it is helpful to dump the E820 table. Reviewed by: markj MFC after: 1 week Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D39549
Configuration menu - View commit details
-
Copy full SHA for ed069d0 - Browse repository at this point
Copy the full SHA ed069d0View commit details -
bhyve: pass E820 table to guest
E820 table will be used to report valid RAM ranges and reserve special memory areas like graphics memory for GPU passthrough. Reviewed by: markj MFC after: 1 week Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D39550
Configuration menu - View commit details
-
Copy full SHA for 90575ef - Browse repository at this point
Copy the full SHA 90575efView commit details -
prometheus_sysctl_exporter: Replace magic numbers with identifiers.
Identifiers make it clearer what is going on and makes it easier to find consumers of sysctl functionality. No functional change. MFC after: 3 days Reviewed by: asomers Differential Revision: https://reviews.freebsd.org/D39797
Configuration menu - View commit details
-
Copy full SHA for f763414 - Browse repository at this point
Copy the full SHA f763414View commit details -
vmm: fix HLT loop while vcpu has requested virtual interrupts
This fixes the detection of pending interrupts when pirval is 0 and the pending bit is set More information how this situation occurs, can be found here: https://github.com/freebsd/freebsd-src/blob/c5b5f2d8086f540fefe4826da013dd31d4e45fe8/sys/amd64/vmm/intel/vmx.c#L4016-L4031 Reviewed by: corvink, markj Fixes: 02cc877 ("Recognize a pending virtual interrupt while emulating the halt instruction.") MFC after: 1 week Sponsored by: vStack Differential Revision: https://reviews.freebsd.org/D39620
Configuration menu - View commit details
-
Copy full SHA for 3fe6ff1 - Browse repository at this point
Copy the full SHA 3fe6ff1View commit details -
pf: introduce ridentifier and labels to ether rules
Make Ethernet rules more similar to the usual layer 3 rules by also allowing ridentifier and labels to be set on them. Reviewed by: kp Sponsored by: Rubicon Communications, LLC ("Netgate")
Configuration menu - View commit details
-
Copy full SHA for a72f4c9 - Browse repository at this point
Copy the full SHA a72f4c9View commit details -
MFC after: 3 weeks Sponsored by: Klara, Inc. Reviewed by: philip Differential Revision: https://reviews.freebsd.org/D39712
Configuration menu - View commit details
-
Copy full SHA for f3161d4 - Browse repository at this point
Copy the full SHA f3161d4View commit details -
tzcode: Clean up the ctime(3) manual page.
MFC after: 3 weeks Sponsored by: Klara, Inc. Reviewed by: pauamma_gundo.com Differential Revision: https://reviews.freebsd.org/D39714
Configuration menu - View commit details
-
Copy full SHA for adfe647 - Browse repository at this point
Copy the full SHA adfe647View commit details -
getconf(1): add DEALLOC_PRESENT
Allow getconf to query _PC_DEALLOC_PRESENT pathconf(2) variable added in 0dc332b. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D39796
Configuration menu - View commit details
-
Copy full SHA for c61dac4 - Browse repository at this point
Copy the full SHA c61dac4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2553d90 - Browse repository at this point
Copy the full SHA 2553d90View commit details -
tzsetup: fix bootstrapping for github CI jobs
Move dump_zonetab() under HAVE_BSDDIALOG as the parsing code it relies on already is.
Configuration menu - View commit details
-
Copy full SHA for fb93424 - Browse repository at this point
Copy the full SHA fb93424View commit details -
Mark simplefb as depending on fdt
This file is for a FDT specific device, mark it as such. Reported by: Zachary Leaf <[email protected]> Sponsored by: Arm Ltd
Configuration menu - View commit details
-
Copy full SHA for b9ebe1b - Browse repository at this point
Copy the full SHA b9ebe1bView commit details -
Add vt_simplefb to the arm64 NOTES file
This will be picked up in the LINT-ACPI and LINT-FDT configs to check it builds with only one option enabled Sponsored by: Arm Ltd
Configuration menu - View commit details
-
Copy full SHA for 82b286e - Browse repository at this point
Copy the full SHA 82b286eView commit details -
Configuration menu - View commit details
-
Copy full SHA for be2beda - Browse repository at this point
Copy the full SHA be2bedaView commit details -
netlink: fix IPv6 proxy ndp deletion.
* Move LLT_ADDEDPROXY handling into lltable_link_entry() to reduct duplication * Use standard lltable_delete_addr() for entry deletion * Add (forgotten) call to llt_post_resolved handler after adding the entry via netlink. MFC after: 2 weeks
Configuration menu - View commit details
-
Copy full SHA for 96dd4bc - Browse repository at this point
Copy the full SHA 96dd4bcView commit details -
SEGDESC_t needs to be PACKED there is no status in t_PXENV_UNDI_MCAST_ADDRESS Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D39799
Configuration menu - View commit details
-
Copy full SHA for f3a083a - Browse repository at this point
Copy the full SHA f3a083aView commit details -
irdma: Silence an unused function warning
Reviewed by: erj Fixes: 3510590 ("irdma(4): Upgrade the driver to 1.1.11-k") Differential Revision: https://reviews.freebsd.org/D39719
Configuration menu - View commit details
-
Copy full SHA for 9a6bc62 - Browse repository at this point
Copy the full SHA 9a6bc62View commit details -
linux(4): Don't relie on process osreldata when testing features
The ELF note identifyies the operating-system ABI that the executable was created for. The note data of the Glibc executable contains the earliest release number of the Linux kernel that supports this ABI. As of a current 2.37 version of Glibc, it is 3.2.0 for x86, 3.7.0 for Aarch64. Glibc does not use this release number and the current kernel's LINUX_VERSION_CODE to detect kernel features, using fallbacks to known previous way in case of ENOSYS or something else instead. A dynamically linked Glibc reads the current kernel's LINUX_VERSION_CODE from the ELF note in the vDSO or fallback to uname syscall if the vDSO can't be located and parse the release field in struct utsname. Glibc uses the current kernel's LINUX_VERSION_CODE for "kernel too old" check. While here use inlined LINUX_KERNVER for tests to improve readability, as suggested by emaste@. MFC after: 1 month
Configuration menu - View commit details
-
Copy full SHA for 137bce8 - Browse repository at this point
Copy the full SHA 137bce8View commit details -
linux(4): Use inlined LINUX_KERNVER for tests to improve readability
MFC after: 1 month
Configuration menu - View commit details
-
Copy full SHA for d668b12 - Browse repository at this point
Copy the full SHA d668b12View commit details -
vmm: Dynamically allocate a couple of per-CPU state save areas
This avoids bloating the BSS when MAXCPU is large. No functional change intended. PR: 269572 Reviewed by: corvink, rew Tested by: rew MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D39805
Configuration menu - View commit details
-
Copy full SHA for bc37fed - Browse repository at this point
Copy the full SHA bc37fedView commit details -
callout: Move per-CPU callout state into the dpcpu region
This eliminates some static bloat in amd64 kernels and reduces the penalty of increasing MAXCPU. The structures now also maintain NUMA affinity. No functional change intended. PR: 269572 Reviewed by: mjg, kib MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D39807
Configuration menu - View commit details
-
Copy full SHA for 219751a - Browse repository at this point
Copy the full SHA 219751aView commit details -
buf: Dynamically allocate per-CPU buffer queues
To reduce static bloat. No functional change intended. PR: 269572 Reviewed by: mjg, kib, emaste MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D39808
Configuration menu - View commit details
-
Copy full SHA for 74170a0 - Browse repository at this point
Copy the full SHA 74170a0View commit details -
pfctl: match expand_label_addr() prototype to definition
Sponsored by: Rubicon Communications, LLC ("Netgate")
Configuration menu - View commit details
-
Copy full SHA for 5e4469c - Browse repository at this point
Copy the full SHA 5e4469cView commit details -
pf: clear PF_TAG_ROUTE_TO for dummynet fast path
Similar to the PF_TAG_DUMMYNET we must also clear the route tag if dummynet didn't keep the packet. In that case we'd continue immediately and there'd be no need for the route tag. Keeping it could lead to unexpected routing of traffic. See also: 27407a6 See also: https://redmine.pfsense.org/issues/14055 Sponsored by: Rubicon Communications, LLC ("Netgate")
Configuration menu - View commit details
-
Copy full SHA for 03c70c2 - Browse repository at this point
Copy the full SHA 03c70c2View commit details -
callout: Remove an unneeded MTX_NEW
Reported by: hselasky Fixes: 78cfa76 ("callout: Move per-CPU callout state into the dpcpu region")
Configuration menu - View commit details
-
Copy full SHA for 195ec05 - Browse repository at this point
Copy the full SHA 195ec05View commit details -
openzfs: arm64: implement kfpu_begin/kfpu_end
This is part one of a fix for booting with ZFS on arm64 using accelerated checksum implementations. Checksum benchmarking will attempt to use the FPU, so we currently panic quickly on boot. BLAKE3 is still broken, as it clobbers x18 and we promptly discover that fact as soon as we attempt to fetch curthread in kfpu_end(). Note that _STANDALONE is special-cased here, but ideally we wouldn't be building the code that uses kfpu_begin()/kfpu_end() at all in the loader environment. Discussed with: imp (a bit) Differential Revision: https://reviews.freebsd.org/D39448
Configuration menu - View commit details
-
Copy full SHA for f3b7e06 - Browse repository at this point
Copy the full SHA f3b7e06View commit details -
ipv6: disable RFC 4620 nodeinfo by default
RFC 4620 is an experimental RFC that can be used to request information about a host, including: - the fully-qualified or single-component name - some set of the Responder's IPv6 unicast addresses - some set of the Responder's IPv4 unicast addresses This is not something that should be made available by default. PR: 257709 Submitted by: [email protected] Reviewed by: melifaro Relnotes: Yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D39778
Configuration menu - View commit details
-
Copy full SHA for e3bbb9d - Browse repository at this point
Copy the full SHA e3bbb9dView commit details -
zfs: Fix positive ABD size assertion in abd_verify().
This cherry-picks upstream: commit bba7cbf Author: Alexander Motin <[email protected]> Date: Wed Apr 26 12:20:43 2023 -0400 Fix positive ABD size assertion in abd_verify(). Gang ABDs without childred are legal, and they do have zero size. For other ABD types zero size doesn't have much sense and likely not working correctly now. Reviewed-by: Igor Kozhukhov <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Alexander Motin <[email protected]> Sponsored by: iXsystems, Inc. Closes #14795 Sponsored by: Rubicon Communications, LLC ("Netgate")
Configuration menu - View commit details
-
Copy full SHA for ecdf57c - Browse repository at this point
Copy the full SHA ecdf57cView commit details -
arm: remove interrupt nesting by ipi_preempt()/ipi_hardclock()
This was needed when intr_ipi_dispatch() was called by hardware-specific IPI interrupt routines which didn't save the trap frame. Now all ARM interrupts pass through INTRNG which will have already saved the trap frame and disabled preemption. Remove the conditional trapframe/argument passing to the handlers. Reviewed by: andrew Differential Revision: https://reviews.freebsd.org/D37938
Configuration menu - View commit details
-
Copy full SHA for 43c6f04 - Browse repository at this point
Copy the full SHA 43c6f04View commit details -
arm: remove passing trapframe to intr_ipi_dispatch()
This was needed before INTRNG was in place and handling the push of curthread->td_intr_frame. Since INTRNG now handles this, there is no longer and need for playing around with the frame inside IPI interrupts.
Configuration menu - View commit details
-
Copy full SHA for f4c38ab - Browse repository at this point
Copy the full SHA f4c38abView commit details -
Configuration menu - View commit details
-
Copy full SHA for eb353d1 - Browse repository at this point
Copy the full SHA eb353d1View commit details -
netmap: pkt-gen: sync with upstream
Keep in sync with the recent upstream changes: Fix compilation on 32-bit architectures Update IP length, UDP length/checksum when size changes Man page fixes Submitted by: [email protected] MFC after: 7 days Differential Revision: https://reviews.freebsd.org/D39760
Configuration menu - View commit details
-
Copy full SHA for ee71511 - Browse repository at this point
Copy the full SHA ee71511View commit details -
siftr: remove barely used hash generation per record
Reviewers: rscheff, tuexen Approved by: rscheff, tuexen Subscribers: imp, melifaro, glebius Differential Revision: https://reviews.freebsd.org/D39835
Configuration menu - View commit details
-
Copy full SHA for d957ac5 - Browse repository at this point
Copy the full SHA d957ac5View commit details -
Fix BLAKE3 aarch64 assembly for FreeBSD and macOS
The x18 register isn't useable within FreeBSD kernel space, so we have to fix the BLAKE3 aarch64 assembly for not using it. The source files are here: https://github.com/mcmilk/BLAKE3-tests Reviewed-by: Kyle Evans <[email protected]> Signed-off-by: Tino Reichardt <[email protected]> Closes #14728
Configuration menu - View commit details
-
Copy full SHA for 14f95e3 - Browse repository at this point
Copy the full SHA 14f95e3View commit details -
openzfs: re-enable FPU usage on aarch64
The BLAKE3 generated assembly files have now been updated to avoid clobbering x18, we can safely re-enable FPU usage on aarch64.
Configuration menu - View commit details
-
Copy full SHA for dc70176 - Browse repository at this point
Copy the full SHA dc70176View commit details -
bhyve: Disable bhyve HDA debug by default.
Adapt hda_print_cmd_ctl_data() to not generate compiler warnings when DEBUG_HDA is off. Reviewed by: corvink Approved by: corvink Differential Revision: https://reviews.freebsd.org/D39826
Configuration menu - View commit details
-
Copy full SHA for 58a5278 - Browse repository at this point
Copy the full SHA 58a5278View commit details -
bhyve: Add DEBUG_HDA_FILE define to specify location of debug output
Reviewed by: corvink Approved by: corvink Differential Revision: https://reviews.freebsd.org/D39826
Configuration menu - View commit details
-
Copy full SHA for 5e8fd21 - Browse repository at this point
Copy the full SHA 5e8fd21View commit details -
cap_net tests: Skip tests if there is no connectivity
When testing cap_connect() and name/addr lookup functions, skip tests if we fail and the error is not ENOTCAPABLE. This makes the tests amenable to running in CI without Internet connectivity. Reviewed by: oshogbo MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D39242
Configuration menu - View commit details
-
Copy full SHA for a572b5d - Browse repository at this point
Copy the full SHA a572b5dView commit details -
logger(1): fix timestamps in case of long run
An example: ( echo test; sleep 2; echo test2 ) | logger -h /var/run/log Before fix, logger assigned same timestamp to both records. Fixes: 65547fb Reported by: Vadim Goncharov MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for c330d0c - Browse repository at this point
Copy the full SHA c330d0cView commit details -
sockbuf: Add KMSAN checks to sbappend*()
Otherwise KMSAN only detects uninitialized memory when the contents of the buffer are copied out to userspace or transmitted to a network interface. At that point the KMSAN violation will be far removed from its origin, so let's try to make debugging such problems a bit easier. Reviewed by: glebius MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D38101
Configuration menu - View commit details
-
Copy full SHA for 8f88cc6 - Browse repository at this point
Copy the full SHA 8f88cc6View commit details -
tzsetup: adopt zone1970.tab changes
- assumption that single-zone countries do not have description is no longer correct; do not try to optimize this case as it's only going to make the code more confusing and we now have menus with a single zone selection because of this - remove the single-country continent short cut, it also only serves to confuse users as we now have such a continent - instead add a single-zone contry short cut (see above), now all single-zone countries fall here - use the #@ continent overrides that zone1970.tab introduces (this is visible at least fixing Iceland being currently listed under Africa) - add Arctic Ocean "continent" coming only from the overrides at the moment - update baseline with the changes Reviewed by: bapt, philip Differential Revision: https://reviews.freebsd.org/D39606
Configuration menu - View commit details
-
Copy full SHA for e7c9efc - Browse repository at this point
Copy the full SHA e7c9efcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 85089a5 - Browse repository at this point
Copy the full SHA 85089a5View commit details -
jobs.mk report JOB_ARGS log and JOB_LOG_START
At the start of a job include info such as JOB_ARGS the log location and anything in JOB_LOG_START (eg TARGET_SPEC=${TARGET_SPEC})
Configuration menu - View commit details
-
Copy full SHA for 81e4263 - Browse repository at this point
Copy the full SHA 81e4263View commit details -
Additions to targets/pseudo/host-tools
More tools needed to be built for Linux. These are the ones that "just work".
Configuration menu - View commit details
-
Copy full SHA for 9359026 - Browse repository at this point
Copy the full SHA 9359026View commit details -
CONTRIBUTING: add intro describing the ways we accept contributions
Reviewed by: imp Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D39854
Configuration menu - View commit details
-
Copy full SHA for 701a646 - Browse repository at this point
Copy the full SHA 701a646View commit details -
vfs: Export get_next_dirent() as vn_dir_next_dirent()
Move internal-to-'vfs_default.c' get_next_dirent() to 'vfs_vnops.c' and export it for use by other parts of the VFS. This is a preparatory change for using it in vfs_emptydir(). No functional change. Reviewed by: kib MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D39755
Configuration menu - View commit details
-
Copy full SHA for 5e2e99d - Browse repository at this point
Copy the full SHA 5e2e99dView commit details -
vfs: vn_dir_next_dirent(): Simplify interface and harden
Simplify the old interface (one less argument, simpler termination test) and add documentation about it. Add more sanity checks (mostly under INVARIANTS, but also in the general case to prevent infinite loops). Drop the explicit test on minimum directory entry size (without INVARIANTS). Deal with the impacts in callers (dirent_exists() and vop_stdvptocnp()). dirent_exists() has been simplified a bit, preserving the exact same semantics but for the return code whose meaning has been reversed (0 now means the entry exists, ENOENT that it doesn't and other values are genuine errors). While here, suppress gratuitous casts of malloc return values. vn_dir_next_dirent() has been tested by a 'make -j4 buildkernel' with a temporary modification to the VFS cache causing vn_vptocnp() to always call VOP_VPTOCNP() and finally vop_stdvptocnp() (observed with temporary debug counters). Export new _GENERIC_MINDIRSIZ and _GENERIC_MAXDIRSIZ on __BSD_VISIBLE, and GENERIC_MINDIRSIZ and GENERIC_MAXDIRSIZ on _KERNEL. Reviewed by: kib MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D39764
Configuration menu - View commit details
-
Copy full SHA for 5c4bc79 - Browse repository at this point
Copy the full SHA 5c4bc79View commit details -
vfs: Fix "emptydir" mount option
Fix vfs_emptydir(). It would consider directories containing directories with name of the form 'X.' (X being any authorized byte) as empty. Also, it would cause VOP_READDIR() to return an error on directories containing enough whiteouts. While here, use a more decently sized buffer as done elsewhere. Remove ad-hoc iteration on the directory's content and instead use the newly exported vn_dir_next_dirent() function (this is what fixes the second problem mentioned above). PR: 270988 Reviewed by: kib MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D39775
Configuration menu - View commit details
-
Copy full SHA for 023dc1f - Browse repository at this point
Copy the full SHA 023dc1fView commit details -
Reviewed by: kib MFC after: 1 week Differential revision: https://reviews.freebsd.org/D36714
Configuration menu - View commit details
-
Copy full SHA for 481feb8 - Browse repository at this point
Copy the full SHA 481feb8View commit details -
Reviewed by: kib MFC after: 1 week Differential revision: https://reviews.freebsd.org/D36714
Configuration menu - View commit details
-
Copy full SHA for 21f0076 - Browse repository at this point
Copy the full SHA 21f0076View commit details -
Sponsored by: The FreeBSD Foundation MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for 936d58b - Browse repository at this point
Copy the full SHA 936d58bView commit details -
bhyve: use directory file descriptor for checkpoint
This is required to enable capsicum for the snapshot code. Reviewed by: corvink Sponsored by: vStack Differential Revision: https://reviews.freebsd.org/D38858
Configuration menu - View commit details
-
Copy full SHA for 19e73dd - Browse repository at this point
Copy the full SHA 19e73ddView commit details -
bhyve: enable capsicum for snapshot code
Reviewed by: corvink Sponsored by: vStack Differential Revision: https://reviews.freebsd.org/D38860
Configuration menu - View commit details
-
Copy full SHA for 63ac42b - Browse repository at this point
Copy the full SHA 63ac42bView commit details -
Configuration menu - View commit details
-
Copy full SHA for c88b52a - Browse repository at this point
Copy the full SHA c88b52aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 089285d - Browse repository at this point
Copy the full SHA 089285dView commit details -
linux(4): Move statx_copyout() close to linux_statx()
Just for future changes of the conditional Linuxulator build. We need a small refactoring of the MI code to help porting Linuxulator to other platforms.
Configuration menu - View commit details
-
Copy full SHA for f2f66e7 - Browse repository at this point
Copy the full SHA f2f66e7View commit details -
Configuration menu - View commit details
-
Copy full SHA for db0f3c2 - Browse repository at this point
Copy the full SHA db0f3c2View commit details -
linux(4): Mark old fstat syscal as unimplemented
It looks like the old fstat system call never been implemented.
Configuration menu - View commit details
-
Copy full SHA for 21d6a43 - Browse repository at this point
Copy the full SHA 21d6a43View commit details -
Configuration menu - View commit details
-
Copy full SHA for 53dfcda - Browse repository at this point
Copy the full SHA 53dfcdaView commit details -
Configuration menu - View commit details
-
Copy full SHA for c5653d3 - Browse repository at this point
Copy the full SHA c5653d3View commit details -
linux(4): Make struct newstat to match actual Linux one
In the struct stat the st_dev, st_rdev are unsigned long.
Configuration menu - View commit details
-
Copy full SHA for f3118ca - Browse repository at this point
Copy the full SHA f3118caView commit details -
linux(4): Move dev_t type declaration under /compat/linux
As of version 2.6.0 of the Linux kernel, dev_t is a 32-bit unsigned integer on all platforms. Move it into the MI linux.h under /compat/linux.
Configuration menu - View commit details
-
Copy full SHA for efd9130 - Browse repository at this point
Copy the full SHA efd9130View commit details -
linux(4): Use Linux dev_t type for mknod syscalls dev argument
As of version 2.6.0 of the Linux kernel, dev_t is a 32-bit unsigned integer on all platforms. Prior the 2.6 kernel dev_t type was an unsigned short. However, since the firs commit of the Linuxulator, mknod syscall get int dev argument. Also, there is some confusion here, while the kernel declares a dev_t type as a 32-bit sized, the user-space dev_t type can be size of 64 bits, e.g., in the Glibc library. To avoid confusion and to help porting of the Linuxulator to other platforms use explicit l_dev_t for dev argument of mknod syscalls.
Configuration menu - View commit details
-
Copy full SHA for 7e1327b - Browse repository at this point
Copy the full SHA 7e1327bView commit details -
Configuration menu - View commit details
-
Copy full SHA for db6e80d - Browse repository at this point
Copy the full SHA db6e80dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ec60b8 - Browse repository at this point
Copy the full SHA 0ec60b8View commit details -
linux(4): Add a dedicated statat() implementation
Get rid of calling Linux stat translation hook and specific to Linux handling of non-vnode dirfd from kern_statat(), Reviewed by: kib, mjg Differential revision: https://reviews.freebsd.org/D35474
Configuration menu - View commit details
-
Copy full SHA for 1e97478 - Browse repository at this point
Copy the full SHA 1e97478View commit details -
linux(4): Add a dedicated fstat() implementation
In between kern_fstat() and translate_fd_major_minor(), another process having the same filedesc could modify or close fd. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D39763
Configuration menu - View commit details
-
Copy full SHA for 0303bc7 - Browse repository at this point
Copy the full SHA 0303bc7View commit details -
linux(4): Uniformly dev_t arguments translation
The two main uses of dev_t are in struct stat and as a parameter of the mknod system calls. As of version 2.6.0 of the Linux kernel, dev_t is a 32-bit quantity with 12 bits set asaid for the major number and 20 for the minor number. The in-kernel dev_t encoded as MMMmmmmm, where M is a hex digit of the major number and m is a hex digit of the minor number. The user-space dev_t encoded as mmmM MMmm, where M and m is the major and minor numbers accordingly. This is downward compatible with legacy systems where dev_t is 16 bits wide, encoded as MMmm. In glibc dev_t is a 64-bit quantity, with 32-bit major and minor numbers, encoded as MMMM Mmmm mmmM MMmm. This is downward compatible with the Linux kernel and with legacy systems where dev_t is 16 bits wide. In the FreeBSD dev_t is a 64-bit quantity. The major and minor numbers are encoded as MMMmmmMm, therefore conversion of the device numbers between Linux user-space and FreeBSD kernel required.
Configuration menu - View commit details
-
Copy full SHA for 4c857d7 - Browse repository at this point
Copy the full SHA 4c857d7View commit details -
ixgbe: Fix typos in source code comments
- s/feilds/fields/ Reviewed by: zlei MFC after: 3 days Pull Request: freebsd/freebsd-src#707
Configuration menu - View commit details
-
Copy full SHA for ac6c03e - Browse repository at this point
Copy the full SHA ac6c03eView commit details -
mps: Fix a typo in a source code comment
- s/feild/field/ MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for ba121b4 - Browse repository at this point
Copy the full SHA ba121b4View commit details -
mrsas: Fix a typo in a source code comment
- s/feild/field/ MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for 0b6bde4 - Browse repository at this point
Copy the full SHA 0b6bde4View commit details -
Split out pmap_map_delete on arm64
This will be used when supporting some extensions, e.g. Branch Target Identification (BTI). Sponsored by: Arm Ltd
Configuration menu - View commit details
-
Copy full SHA for 4528c30 - Browse repository at this point
Copy the full SHA 4528c30View commit details -
libifconfig: fix incorrect carp output
If one interface has a carp address configured on it ifconfig would show this information on all interfaces. That's because the kernel does (as one would expect) not return any carp data for interface without carp configuration. However, this wound up not overwriting the data passed in by the caller, and leaving the (now stale) information in pace. As a result the caller thought carp was configured on the interface. Zero out the input structure before making the call to the kernel, so that we correctly return 0 if there is no carp configuration on the queried interface. Sponsored by: Rubicon Communications, LLC ("Netgate")
Configuration menu - View commit details
-
Copy full SHA for 755ba6e - Browse repository at this point
Copy the full SHA 755ba6eView commit details -
netlink: enable NETLINK_SUPPORT by default on all architectures.
Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D39849
Configuration menu - View commit details
-
Copy full SHA for bf07b1b - Browse repository at this point
Copy the full SHA bf07b1bView commit details -
netlink: fix netlink interface operations when netlink is loaded as a…
… module. This change completes 089104e. MFC after: 2 weeks
Configuration menu - View commit details
-
Copy full SHA for f7fe8cf - Browse repository at this point
Copy the full SHA f7fe8cfView commit details -
route: show originator PID in netlink monitor
Replacing rtsock with netlink also means providing similar tracing facilities, rtsock provides `route -n monitor` interface, where each message can be traced to the originating PID. This diff closes the feature gap between rtsock and netlink in that regard. Netlink works slightly differently from rtsock, as it is a generic message "broker". It calls some kernel KPIs and returns the result to the caller. Other Netlink consumers gets notified on the changed kernel state using the relevant subsystem callbacks. Typically, it is close to impossible to pass some data through these KPIs to enhance the notification. This diff approaches the problem by using osd(9) to assign the relevant socket pointer (`'nlp`) to the per-socket taskqueue execution thread. This change allows to recover the pointer in the aforementioned notification callbacks and extract some additional data. Using `osd(9)` (and adding additional metadata) to the notification receiver comes with some additional cost attached, so this interface needs to be enabled explicitly by using a newly-created `NETLINK_MSG_INFO` `SOL_NETLINK` socket option. The actual medatadata (which includes the originator PID) is provided via control messages. To enable extensibility, the control message data is encoded in the standard netlink(TLV-based) fashion. The list of the currently-provided properties can be found in `nlmsginfo_attrs`. snl(3) is extended to enable decoding of netlink messages with metadata (`snl_read_message_dbg()` stores the parsed structure in the provided buffer). Differential Revision: https://reviews.freebsd.org/D39391
Configuration menu - View commit details
-
Copy full SHA for 757f6c2 - Browse repository at this point
Copy the full SHA 757f6c2View commit details -
netlink: properly zero all fields in the ndmsg header.
MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for 506fa1c - Browse repository at this point
Copy the full SHA 506fa1cView commit details -
Apply clang fix for assertion building emulators/rpcs3
Merge commit a5e1a93ea10f from llvm-project (by Mariya Podchishchaeva): [clang] Fix crash when handling nested immediate invocations Before this patch it was expected that if there was several immediate invocations they all belong to the same expression evaluation context. During parsing of non local variable initializer a new evaluation context is pushed, so code like this ``` namespace scope { struct channel { consteval channel(const char* name) noexcept { } }; consteval const char* make_channel_name(const char* name) { return name;} channel rsx_log(make_channel_name("rsx_log")); } ``` produced a nested immediate invocation whose subexpressions are attached to different expression evaluation contexts. The constructor call belongs to TU context and `make_channel_name` call to context of variable initializer. This patch removes this assumption and adds tracking of previously failed immediate invocations, so it is possible when handling an immediate invocation th check that its subexpressions from possibly another evaluation context contains errors and not produce duplicate diagnostics. Fixes llvm/llvm-project#58207 Reviewed By: aaron.ballman, shafik Differential Revision: https://reviews.llvm.org/D146234 PR: 269489 MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for fa68d30 - Browse repository at this point
Copy the full SHA fa68d30View commit details -
busdma: Update KMSAN shadow maps later in bounce_bus_dmamap_sync()
Otherwise POSTREAD syncs may re-invalidate the shadow of the data buffer when copying from bounce pages, resulting in false-positive KMSAN reports. MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
Configuration menu - View commit details
-
Copy full SHA for 5c19b0d - Browse repository at this point
Copy the full SHA 5c19b0dView commit details -
kinst: do not use DPCPU_ID_GET if we already have the trampoline
No functional change intended. Reviewed by: markj Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D39870
Configuration menu - View commit details
-
Copy full SHA for 2cc4644 - Browse repository at this point
Copy the full SHA 2cc4644View commit details -
Configuration menu - View commit details
-
Copy full SHA for e71155e - Browse repository at this point
Copy the full SHA e71155eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 985e580 - Browse repository at this point
Copy the full SHA 985e580View commit details -
Add the mfi(4) ioctl support to mrsas(4)
The hardware supported by mfi(4) and mrsas(4) use the same dcmd's. mfiutil(8) in theory could run on controlled attached to mrsas(4). It can't since mrsas(4) doesn't have support for the FreeBSD mfi(4) ioctl. Porting the ioctl from mfi(4) to mrsas(4) would be the first step in making mrsasutil(8) which is an additional name for mfiutil(8) but opens /dev/mrsasX instead of /dev/mfiX PR: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265794 Reviewed by: jhb Differential revision: https://reviews.freebsd.org/D36342 Tested by: Dan Mahoney <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 588ff85 - Browse repository at this point
Copy the full SHA 588ff85View commit details -
jedec_dimm(4): Add manufacturing year and week.
DDR3 and DDR4 encode the week and year that the DIMM was manufactured, as a pair of two-digit binary-coded decimal values. Read the values, and report them as (uint8_t)s. Reviewed by: imp, jhb MFC after: 1 week Sponsored by: Panasas Differential Revision: https://reviews.freebsd.org/D39795
Configuration menu - View commit details
-
Copy full SHA for 9a6eb59 - Browse repository at this point
Copy the full SHA 9a6eb59View commit details -
jedec_dimm(4): Refactor offset adjustment and page0 reset
Offsets greater than 255 bytes reside on page1 of the SPD device. Accessing them requires switching to page1, and adjusting the absolute offset to be relative to the start of page1. After the access, the page must be set back to page0. These operations are performed in several places, so break them out into their own functions. Also, replace a pair of default cases, which should be impossible due to earlier checks, with __assert_unreachable(). Reviewed by: imp MFC after: 1 week Sponsored by: Panasas Differential Revision: https://reviews.freebsd.org/D39842
Configuration menu - View commit details
-
Copy full SHA for be64bb6 - Browse repository at this point
Copy the full SHA be64bb6View commit details -
src.conf.5: regen after 4f6a5e1, NETLINK_SUPPORT default change
Sponsored by: The FreeBSD Foundation
Configuration menu - View commit details
-
Copy full SHA for 45cfa27 - Browse repository at this point
Copy the full SHA 45cfa27View commit details -
vfs: vn_dir_next_dirent(): Adapt comments to style(9)
No functional change. Reviewed by: kib MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for a991d34 - Browse repository at this point
Copy the full SHA a991d34View commit details -
vfs: Rename vfs_emptydir() to vn_dir_check_empty()
No functional change. While here, adapt comments to style(9). Reviewed by: kib MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for 67cf342 - Browse repository at this point
Copy the full SHA 67cf342View commit details -
armv7: Fix BeagleBone Black panic on system start
There is now assertion which requires all memory allocations of positive size. Negative and zero-sized allocations lead to panic, so plug them off. Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D39846
Configuration menu - View commit details
-
Copy full SHA for 95a9397 - Browse repository at this point
Copy the full SHA 95a9397View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3d8519a - Browse repository at this point
Copy the full SHA 3d8519aView commit details -
mrsas(4) switch from PTRIN define to include sys/abi_compat.h
Suggested by: dchagin
Configuration menu - View commit details
-
Copy full SHA for 37559fb - Browse repository at this point
Copy the full SHA 37559fbView commit details -
cross-build: Add common compatibility headers after OS-specific ones
The current order is rather counter-intuitive and it appears to work fine if we swap the order. Pull Request: freebsd/freebsd-src#725 Reviewed by: imp
Configuration menu - View commit details
-
Copy full SHA for 633d139 - Browse repository at this point
Copy the full SHA 633d139View commit details
Commits on Jun 22, 2023
-
mrsas: Use mrsas_sge64 instead of iovec for the S/G list for passthru.
The DMA scatter/gather list for mrsas passthrough ioctl commands is stored in a SGL at the end of the DCMD frame. Given the SGL member at the end of the DCMD frame it seems likely this S/G list is formatted as a fixed-width structure such the type mrsas_sge64 and not as a iovec which contains a kernel pointer and length that vary with the native architecture size.
Configuration menu - View commit details
-
Copy full SHA for d371a11 - Browse repository at this point
Copy the full SHA d371a11View commit details -
Configuration menu - View commit details
-
Copy full SHA for 70ecdd0 - Browse repository at this point
Copy the full SHA 70ecdd0View commit details
Commits on Jun 23, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 0913a38 - Browse repository at this point
Copy the full SHA 0913a38View commit details
Commits on Jun 24, 2023
-
Disable fatal linker warnings for more programs using netlink.
These are all due to the empty object used with nla_p_donemsg.
Configuration menu - View commit details
-
Copy full SHA for 3301b01 - Browse repository at this point
Copy the full SHA 3301b01View commit details
Commits on Jun 28, 2023
-
Configuration menu - View commit details
-
Copy full SHA for e8c4b98 - Browse repository at this point
Copy the full SHA e8c4b98View commit details -
Configuration menu - View commit details
-
Copy full SHA for fe6add9 - Browse repository at this point
Copy the full SHA fe6add9View commit details -
Enable common PMAP macros on all platforms.
This fixes the build on i386 and other architectures which didn't have a definition of PHYS_TO_DMAP_PAGE but which do have a stub for PHYS_TO_DMAP. Also, one can't use #if PMAP_HAS_DMAP, PMAP_HAS_DMAP is a runtime-only macro as it maps to a variable (not a constant) on powerpc. Use uintmax_t casts to print PAs while here to pacify the build on 32-bit platforms as well as i386 which has 64-bit PAs.
Configuration menu - View commit details
-
Copy full SHA for b2094a7 - Browse repository at this point
Copy the full SHA b2094a7View commit details -
Configuration menu - View commit details
-
Copy full SHA for a297ba5 - Browse repository at this point
Copy the full SHA a297ba5View commit details -
proc_cheri_cap_page: Use PHYS_TO_DMAP_PAGE.
This was a lost race due to PIOD_WRITE_CHERI_CAP landing before the introduction of PHYS_TO_DMAP_PAGE.
Configuration menu - View commit details
-
Copy full SHA for 624b061 - Browse repository at this point
Copy the full SHA 624b061View commit details -
OFED: Fix a few places that use get_user_pages.
The first argument needs to be a void * now rather than an integer. cheribuild doesn't notice this for amd64 since it disables OFED even for non-cheri platforms.
Configuration menu - View commit details
-
Copy full SHA for d703635 - Browse repository at this point
Copy the full SHA d703635View commit details -
Fix DMAP capability bounds in pmap_zero_page_area.
Always use a capability with full page bounds when zeroing a subpage region.
Configuration menu - View commit details
-
Copy full SHA for 6c21012 - Browse repository at this point
Copy the full SHA 6c21012View commit details
Commits on Jun 29, 2023
-
Makefile.libcompat: Handle MK_FOO varying for native and compat arches
Currently Makefile.libcompat queries a few MK_FOO variables to determine what is being built. However, it is plausible (and indeed, downstream in CheriBSD, this is the case) that these may vary between the native and the compat architecture. In order to correctly determine their values for the compat architecture, we need to defer their evaluation until we are in the compat sub-make where src.opts.mk will give us the right value for the compat MACHINE_ARCH. Reviewed by: brooks, jhb, imp Obtained from: CheriBSD Differential Revision: https://reviews.freebsd.org/D40570 (cherry picked from commit 10afc5e)
Configuration menu - View commit details
-
Copy full SHA for 0ed4599 - Browse repository at this point
Copy the full SHA 0ed4599View commit details -
Generalise libcompat to be a list rather than a single option
Whilst the kernel can support any number of COMPAT_FOO, world can only build a single libfoo. Upstream this isn't such an issue, since the only option is lib32 anyway, but downstreams, such as CheriBSD, may wish to support multiple at the same time. Thus, adjust the top-level Makefiles to turn _LIBCOMPAT into a _LIBCOMPATS list that gets iterated over, and adjust bsd.compat.mk to support this use-case. For the normal NEED_COMPAT/WANT_COMPAT case, LIBCOMPATFOO remain set and refer to the requested compat's, preserving the current interface. For the top-level Makefiles those variables are no longer set (since there is no longer "the" compat) and only the per-compat ones are available. Reviewed by: brooks, jhb, imp Differential Revision: https://reviews.freebsd.org/D40571 (cherry picked from commit 91d7edd)
Configuration menu - View commit details
-
Copy full SHA for cb783c2 - Browse repository at this point
Copy the full SHA cb783c2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a4451b - Browse repository at this point
Copy the full SHA 3a4451bView commit details -
src.opts.mk: Stop marking LIB32 broken on CHERI architectures
Makefile.libcompat now supports building multiple sets of compat libraries so this is no longer needed. It is, however, rather academic for now given CHERI-MIPS was removed (the only CHERI architecture whose base architecture has LIB32 support in FreeBSD), at least until upstream gains LIB32 for arm64.aarch64.
Configuration menu - View commit details
-
Copy full SHA for a1e9a86 - Browse repository at this point
Copy the full SHA a1e9a86View commit details
Commits on Jun 30, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 2a6700f - Browse repository at this point
Copy the full SHA 2a6700fView commit details
Commits on Jul 1, 2023
-
arm64: Include machine/pcb.h in freebsd64_machdep.c
get_arm64_tls pokes at the PCB for TPIDR_EL0 so needs the relevant definitions. Currently we have a downstream diff to sys/systm.h that pulls in machine/pcb.h, but that was only needed for CHERI-MIPS and so should go away, which exposes this missing include.
Configuration menu - View commit details
-
Copy full SHA for aff6332 - Browse repository at this point
Copy the full SHA aff6332View commit details -
sys/sys/systm.h: Drop downstream-only include of machine/pcb.h
Upstream doesn't pull it in here; this diff dates back to CHERI-MIPS, which stored DDC in the PCB and thus __USER_CAP needed its definition. However, neither Morello nor CHERI-RISC-V get it from the PCB and so do not need this include (nor is it a generic thing that's needed), so we should not have this as a downstream diff any more. This fixes building lib32 libprocstat on amd64. Currently it dies building zfs_defs.c, since it transitively includes machine/fpu.h via sys/systm.h and, because it hackily defines _KERNEL, gets kernel prototypes for things like fpu_save_area_free which reference struct savefpu, but x86/fpu.h will give the i386 definition, which is a union not a struct, giving a tag mismatch error. This issue once again highlights how awful this approach is, and how fragile the whole thing is when you start modifying system headers. We should probaby invest efforts in fixing this mess upstream given the continued friction seen around libprocstat/zfs downstream.
Configuration menu - View commit details
-
Copy full SHA for 68cc84d - Browse repository at this point
Copy the full SHA 68cc84dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7181e33 - Browse repository at this point
Copy the full SHA 7181e33View commit details -
Makefile.libcompat: Work around local bsd.compat.mk workaround
The situation for cleandir is a bit of a mess. The top-level build runs cleandir normally and re-runs it per-libcompat under LIBCOMPATWMAKE. This includes all programs, not just libraries, and so we end up in nonsense situations. As a result, bsd.compat.mk is stubbed out for cleandir, which in turn means it won't define libcompats, yet the top level has defined _LIBCOMPATS, and so we end up trying to index it and error out. Thus, skip this code in that instance, since cleandir isn't referencing any of these targets. Note that, prior to multi-libcompat support, we'd just reference the undefined libcompat and it would expand to the empty string (which isn't an error in the contexts it was done, other than the one removed in 86ddc08), but now we have to be more careful. This should all be reworked upstream so cleandir doesn't do stupid things and these hacks can go (including reverting the .warn that otherwise gets hit in bsd.compat.mk back to an .error). Fixes: cb783c2 ("Generalise libcompat to be a list rather than a single option") Fixes: #1729
Configuration menu - View commit details
-
Copy full SHA for 90aacc1 - Browse repository at this point
Copy the full SHA 90aacc1View commit details
Commits on Jul 5, 2023
-
rtld-elf: Fix whitespace regression
Fixes: c5c2d3d ("c18n: Insert trampolines for PLT function calls")
Configuration menu - View commit details
-
Copy full SHA for f4caadd - Browse repository at this point
Copy the full SHA f4caaddView commit details
Commits on Jul 6, 2023
-
Jenkinsfile: Enable building lib32 in CI
These add a bit to the build time, but we want to check that we're not regressing the lib32 build as has happened in the past. We may wish to flip the default in cheribuild (or remove the option entirely) at some point in the future once we don't need to support versions where the build is broken.
Configuration menu - View commit details
-
Copy full SHA for 561829f - Browse repository at this point
Copy the full SHA 561829fView commit details
Commits on Jul 7, 2023
-
Configuration menu - View commit details
-
Copy full SHA for f60bf6b - Browse repository at this point
Copy the full SHA f60bf6bView commit details -
arm64: Don't define Morello-specific register fields for non-CHERI
It's plausible these could mean something else in the Arm architecture outside of the Morello architecture fork, so we shouldn't go defining (and using) them unless we know we're targeting Morello.
Configuration menu - View commit details
-
Copy full SHA for 926917a - Browse repository at this point
Copy the full SHA 926917aView commit details -
arm64: Inherit C64 in child across fork
Because Morello awkwardly puts the encoding mode in SPSR rather than CELR, we need to explicitly copy it over to the child's trapframe otherwise we'll lose the state and end up back in A64. In practice, this currently doesn't matter, since the success path doesn't have any mode-dependent instructions and terminates in a ret, which will get the right mode from c30, and the error path (which does have mode-dependent instructions behind a direct branch to cerror) can never be reached in the child, only the parent. However, this is still wrong, and will matter in the Morello benchmark ABI, where fork will return with an integer ret x30 and thus stay in A64.
Configuration menu - View commit details
-
Copy full SHA for aeec55c - Browse repository at this point
Copy the full SHA aeec55cView commit details -
cheribsdtest: Improve reason if child unexpectedly dies with a signal
Currently we just use "Child exited abnormally" for when the child process doesn't exit cleanly, which is unhelpful when debugging, so print the signal number instead if it was due to a signal. Note that tests which deliberately provoke signals still exit cleanly, since the child's test harness will catch the signal, save various parts of the given siginfo_t and exit. This code is only for more catastrophic situations (e.g. signal delivery itself is broken or the child received a fatal signal before even setting up the handler).
Configuration menu - View commit details
-
Copy full SHA for a81c683 - Browse repository at this point
Copy the full SHA a81c683View commit details -
examples: Add a new /usr/share/examples/cheribsdtest/run-many
This lets you easily run multiple cheribsdtest variants in sequence, filtering out the verbose logging for each test, printing just the summary lines at the end, as a useful tool for local testing. It is only intended for humans and should not be extended for use in automated environments; those should be using cheribuild or another similar tool to do things properly.
Configuration menu - View commit details
-
Copy full SHA for 7fbfc70 - Browse repository at this point
Copy the full SHA 7fbfc70View commit details -
Configuration menu - View commit details
-
Copy full SHA for a776b4c - Browse repository at this point
Copy the full SHA a776b4cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6b7fb2e - Browse repository at this point
Copy the full SHA 6b7fb2eView commit details -
Configuration menu - View commit details
-
Copy full SHA for f430a5b - Browse repository at this point
Copy the full SHA f430a5bView commit details