-
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
Merge FreeBSD 2024-03-08 #2176
Merge FreeBSD 2024-03-08 #2176
Commits on Feb 15, 2024
-
Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Rob Norris <[email protected]> Sponsored-by: Klara, Inc. Sponsored-by: iXsystems, Inc. Closes #15887
Configuration menu - View commit details
-
Copy full SHA for d3bafe4 - Browse repository at this point
Copy the full SHA d3bafe4View commit details -
ddt: move entry compression into ddt_zap
I think I can say with some confidence that anyone making a new storage type in 2023 is doing their own thing with compression, not this. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Rob Norris <[email protected]> Sponsored-by: Klara, Inc. Sponsored-by: iXsystems, Inc. Closes #15887
Configuration menu - View commit details
-
Copy full SHA for 86e91c0 - Browse repository at this point
Copy the full SHA 86e91c0View commit details -
ddt_zap: standardise temp buffer allocations
Always do them on the heap, and when we know how much we need, only that much. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Rob Norris <[email protected]> Sponsored-by: Klara, Inc. Sponsored-by: iXsystems, Inc. Closes #15887
Configuration menu - View commit details
-
Copy full SHA for 5c4cc21 - Browse repository at this point
Copy the full SHA 5c4cc21View commit details -
ddt: compare keys, not entries
We're about to have different kinds of things that we'll compare on key, so generalise this function to support that. (It actually worked fine because of the way the casts work out, but it requires the key to be at the start of the object so the cast through ddt_entry_t works, and even then it reads strangely for anything that's not a ddt_entry_t). Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Rob Norris <[email protected]> Sponsored-by: Klara, Inc. Sponsored-by: iXsystems, Inc. Closes #15887
Configuration menu - View commit details
-
Copy full SHA for 0cb1ef6 - Browse repository at this point
Copy the full SHA 0cb1ef6View commit details -
ddt: lift dedup stats out to separate file
We want to add other kinds of dedup-related objects and keep stats for them. This makes those functions easier to use from outside ddt.c. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Rob Norris <[email protected]> Sponsored-by: Klara, Inc. Sponsored-by: iXsystems, Inc. Closes #15887
Configuration menu - View commit details
-
Copy full SHA for 5973854 - Browse repository at this point
Copy the full SHA 5973854View commit details -
ddt: remove DDE_GET_NDVAS macro
It was a weird and confusing name, because it wasn't actually returning the number of DVAs in the entry (as in, in the value/phys part) but the maximum number of possible DVAs in a BP generated from the entry, based on the encrypt bit in the key. This is unlike the similarly named BP_GET_NDVAS, which really does return the number of DVAs. Since its only used in this one place, and for a specific purpose, it seemed more sensible to just write it in-place and remove the name. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Rob Norris <[email protected]> Sponsored-by: Klara, Inc. Sponsored-by: iXsystems, Inc. Closes #15887
Configuration menu - View commit details
-
Copy full SHA for 9090060 - Browse repository at this point
Copy the full SHA 9090060View commit details -
ddt: split internal DDT API into separate header
Just to make it easier to know which bits to pay attention to. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Rob Norris <[email protected]> Sponsored-by: Klara, Inc. Sponsored-by: iXsystems, Inc. Closes #15887
Configuration menu - View commit details
-
Copy full SHA for 8e414fc - Browse repository at this point
Copy the full SHA 8e414fcView commit details -
ddt: typedef ddt_type and ddt_class
Mostly for consistency, so the reader is less likely to wonder why these things look different. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Rob Norris <[email protected]> Sponsored-by: Klara, Inc. Sponsored-by: iXsystems, Inc. Closes #15887
Configuration menu - View commit details
-
Copy full SHA for c8f694f - Browse repository at this point
Copy the full SHA c8f694fView commit details -
ddt: remove struct names and forward declarations
Things get confused when there's more than one name for a thing. Note that we don't do this for ddt_object_t, ddt_histogram_t and ddt_stat_t because they're part of the public ZFS interface. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Rob Norris <[email protected]> Sponsored-by: Klara, Inc. Sponsored-by: iXsystems, Inc. Closes #15887
Configuration menu - View commit details
-
Copy full SHA for 3bad700 - Browse repository at this point
Copy the full SHA 3bad700View commit details -
ddt: ensure ddt objects exist before trying to get stats from them
ddt_get_dedup_histogram() was actually checking it, just in an extremely cursed way. ddt_get_dedup_object_stats() wasn't, but wasn't being called from a dangerous place so no one noticed. These checks are necessary, because spa_ddt[] is not populated until spa_load(), but the spa can exist before that, while being created, and as vdevs and metaslabs are initialised the space accounting functions will be called to update pool space counts. Probably the whole create path doesn't need to go asking for space accounting from metadata subsystems until after the pool is created. This will at least catch misuse. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Rob Norris <[email protected]> Sponsored-by: Klara, Inc. Sponsored-by: iXsystems, Inc. Closes #15887
Configuration menu - View commit details
-
Copy full SHA for 5ee0f9c - Browse repository at this point
Copy the full SHA 5ee0f9cView commit details -
ddt: rework ops interface in terms of keys and values
Store objects store keys and values, so have them take those types and nothing more. This way, they don't need to be concerned about the "kind" of entry being operated on; the dispatch layer can take care of the appropriate conversions. This adds a "contains" op to see if a particular entry exists without loading it, which makes a couple of things easier to do; in particular, it allows us to avoid an allocation in ddt_class_contains(). Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Rob Norris <[email protected]> Sponsored-by: Klara, Inc. Sponsored-by: iXsystems, Inc. Closes #15887
Configuration menu - View commit details
-
Copy full SHA for 9029278 - Browse repository at this point
Copy the full SHA 9029278View commit details -
Nothing uses it. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Rob Norris <[email protected]> Sponsored-by: Klara, Inc. Sponsored-by: iXsystems, Inc. Closes #15887
Configuration menu - View commit details
-
Copy full SHA for 2cffddd - Browse repository at this point
Copy the full SHA 2cffdddView commit details -
ddt: simplify entry load and flags
Only a single bit is needed to track entry state, and definitely not two whole bytes. Some light refactoring in ddt_lookup() is needed to support this, but it reads a lot better now. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Rob Norris <[email protected]> Sponsored-by: Klara, Inc. Sponsored-by: iXsystems, Inc. Closes #15887
Configuration menu - View commit details
-
Copy full SHA for 406562c - Browse repository at this point
Copy the full SHA 406562cView commit details -
ddt: only create tables for dedup-capable checksums
Most values in zio_checksum can never be used for dedup, partly because the dedup= property only offers a limited list, but also some values (eg ZIO_CHECKSUM_OFF) aren't real and will never be seen. A true flag would be better than a hardcoded list, but thats more cleanup elsewhere than I want to do right now. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Rob Norris <[email protected]> Sponsored-by: Klara, Inc. Sponsored-by: iXsystems, Inc. Closes #15887
Configuration menu - View commit details
-
Copy full SHA for d961954 - Browse repository at this point
Copy the full SHA d961954View commit details -
ddt: document the theory and the key data structures
Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Rob Norris <[email protected]> Sponsored-by: Klara, Inc. Sponsored-by: iXsystems, Inc. Closes #15887
Configuration menu - View commit details
-
Copy full SHA for 5720b00 - Browse repository at this point
Copy the full SHA 5720b00View commit details
Commits on Feb 16, 2024
-
ZTS: Skip cross-fs bclone tests if FreeBSD < 14.0
Skip cross filesystem block cloning tests on FreeBSD if running less than version 14.0. Cross filesystem copy_file_range() was added in FreeBSD 14. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Tony Hutter <[email protected]> Closes #15901
Configuration menu - View commit details
-
Copy full SHA for d6a3d3f - Browse repository at this point
Copy the full SHA d6a3d3fView commit details -
Check for minimum partition size
On Linux block devices used for vdevs will by partitioned. The block device must be large enough for an 64M partition starting at offset of 2048 sectors (part1), and a second 64M reserved partition at the end of the device (part9). This commit adds a capacity check when creating the GPT label to immediately detect a device which is too small. With the existing code this would be caught slightly latter when attempting to use the partition. Catching it sooner let's us print a more useful error. Reviewed-by: Tony Hutter <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #15898
Configuration menu - View commit details
-
Copy full SHA for af4da5c - Browse repository at this point
Copy the full SHA af4da5cView commit details
Commits on Feb 26, 2024
-
Fixed parameter passing error when calling zfs_acl_chmod
Follow up to 99495ba which accidentally introduce this regression. Reviewed by: Brian Behlendorf <[email protected]> Signed-off-by: Quartz <[email protected]> Closes #15907
Configuration menu - View commit details
-
Copy full SHA for 5600dff - Browse repository at this point
Copy the full SHA 5600dffView commit details -
config: use -Wno-format-truncation globally
-Wformat-truncation looks for places where the return code of snprintf() is unchecked and the provided buffer might be too short. This is based on a heuristic that can change between compiler versions. It has been seen to get this wrong in ddt_object_name(), leading to DDT_NAMELEN being increased somewhat arbitrarily. There's no good reason to have this warning enabled, so here we disable it everywhere. Truncation may be undesirable, but snprintf() is guaranteed to emit a trailing null, so at worst we get a short string, not a buffer overrun. Reviewed by: Brian Behlendorf <[email protected]> Signed-off-by: Rob Norris <[email protected]> Sponsored-by: https://despairlabs.com/sponsor/ Closes #15908
Configuration menu - View commit details
-
Copy full SHA for c00c085 - Browse repository at this point
Copy the full SHA c00c085View commit details -
This is the buffer size passed to ddt_object_name(), to expand the DMU_POOL_DDT format. That format inserts the table checksum, class and type names, which as I write this are max 6, 9 and 3, respectively. Reviewed by: Brian Behlendorf <[email protected]> Signed-off-by: Rob Norris <[email protected]> Sponsored-by: https://despairlabs.com/sponsor/ Closes #15908
Configuration menu - View commit details
-
Copy full SHA for 8f2f6cd - Browse repository at this point
Copy the full SHA 8f2f6cdView commit details
Commits on Mar 2, 2024
-
getblkx(9): be more tolerant but also strict with the buffer size checks
It is possible that on-disk filesystem format causes allocation of buffers of size larger than maxbcachebuf. Currently, getblkx() and indirectly bufkva_alloc() panic in that situation. It is more useful to return an error instead, allowing the system to continue running. PR: 277414 Reported by: Robert Morris <[email protected]> MFC after: 1 week Sponsored by: The FreeBSD Foundation
Configuration menu - View commit details
-
Copy full SHA for 7e4ac11 - Browse repository at this point
Copy the full SHA 7e4ac11View commit details -
gpioevents: Fix build with newer Clang
PR: 277422
Configuration menu - View commit details
-
Copy full SHA for 42b117a - Browse repository at this point
Copy the full SHA 42b117aView commit details
Commits on Mar 3, 2024
-
sys/mount.h: align values of MNTK_XXX flags
Sponsored by: The FreeBSD Foundation MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for 2496fb7 - Browse repository at this point
Copy the full SHA 2496fb7View commit details -
linux: require vnet(9) context in ifname_bsd_to_linux_name()
This function is used by netlink(9) only. The netlink(9) taskqueue thread runs in the vnet of the socket whose request the thread is processing right now. This is a correct vnet and resetting it to vnet0 is incorrect. If the function is to be used by any other caller in addition to netlink(9), it would be caller's responsiblity to provide correct vnet(9). Reviewed by: melifaro, dchagin Differential Revision: https://reviews.freebsd.org/D44191 PR: 277286
Configuration menu - View commit details
-
Copy full SHA for 2f5a315 - Browse repository at this point
Copy the full SHA 2f5a315View commit details
Commits on Mar 4, 2024
-
posix_spawnattr_setflags(3): validate argument
Reviewed by: emaste, kevans Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D44195
Configuration menu - View commit details
-
Copy full SHA for 80ac36c - Browse repository at this point
Copy the full SHA 80ac36cView commit details -
posix_spawn(3): add POSIX_SPAWN_DISABLE_ASLR_NP
similar to Apple _POSIX_SPAWN_DISABLE_ASLR Reviewed by: emaste, kevans Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D44195
Configuration menu - View commit details
-
Copy full SHA for 822042f - Browse repository at this point
Copy the full SHA 822042fView commit details -
posix_spawn(3): document POSIX_SPAWN_DISABLE_ASLR_NP
Sponsored by: The FreeBSD Foundation MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for a725a7a - Browse repository at this point
Copy the full SHA a725a7aView commit details -
LinuxKPI: Queue skbuffs at tail in __skb_queue_tail
Correct skb_queue_tail to queue the buffer at the tail of the skbuff. The skbuff is a circular doubly-linked list, and we call with a pointer to the head of the list. Thus queueing before the head gives us a queueing at the tail. As a motivating factor, the current behaviour (queueing at the head) was causing frequent kernel panics from my RTL8822BE wireless card, which uses the rtw88 driver. Interrupts can cause buffers to be added to the rtwdev c2h_queue while the queue is being drained in rtw_c2h_work. Queueing at the head would leave the nascent entry in the linked list pointing to the old, now freed, memory for the buffer being processed. When rtw_c2h_work is next called, we try reading this and so panic. Reviewed by: emaste, bz MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D44192
Configuration menu - View commit details
-
Copy full SHA for d3befb5 - Browse repository at this point
Copy the full SHA d3befb5View commit details -
hostapd: Work around lack of MLME support
hostap MLME uses Linux data structures and definitions not available in FreeBSD. The ability for hostapd to select the frequency (channel) depends Linux MLME, though strictly it's not required. Work around the Linux MLME requirement to configure device frequency. The detailed description is: hostapd will only set the channel (frequency) when Linux MLME is configured. Enabling NEED_AP_MLME will result in numerous build errors due do Linux data structures and definitions not available under FreeBSD. The code to set the frequency from the selected channel is only within the NEED_AP_MLME code path because without MLME, hostapd_get_hw_features() is an inline that always returns -1 whereas with MLME hostapd_get_hw_features() will obtain hardware features from the kernel. Until such time we simply set the frequency as configured. PR: 276375 MFC after: 1 month
Configuration menu - View commit details
-
Copy full SHA for 84ed863 - Browse repository at this point
Copy the full SHA 84ed863View commit details -
riscv: catch up with EARLY_PRINTF changes
On this platform early console access is possible via SBI. Follow recent changes to EARLY_PRINTF option and give it a named constant. Update the commented option in GENERIC so that it compiles. Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D44100
Configuration menu - View commit details
-
Copy full SHA for da48ddb - Browse repository at this point
Copy the full SHA da48ddbView commit details -
Add a missing space in a warning.
Hartmut Brandt authored and Hartmut Brandt committedMar 4, 2024 Configuration menu - View commit details
-
Copy full SHA for 83550d0 - Browse repository at this point
Copy the full SHA 83550d0View commit details -
imgact_elf: Add const to the header_supported callback arguments
This callback shouldn't be modifying any of the arguments. Reviewed by: imp, kib, emaste, jhb Obtained from: CheriBSD Differential Revision: https://reviews.freebsd.org/D44193
Configuration menu - View commit details
-
Copy full SHA for 327ada0 - Browse repository at this point
Copy the full SHA 327ada0View commit details -
Merge commit f800c1f3b207 from llvm-project (by Arthur Eubanks):
[PEI] Don't zero out noreg operands A tail call may have $noreg operands. Fixes a crash. Reviewed By: xgupta Differential Revision: https://reviews.llvm.org/D156485 This should fix an assertion failure building qemu, specifically those parts using -fzero-call-used-regs. Reported by: Daniel Berrangé <[email protected]> PR: 277474 MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for a39b3aa - Browse repository at this point
Copy the full SHA a39b3aaView commit details
Commits on Mar 5, 2024
-
libc/locale: don't expose nonexistant __collate_load_error
The private symbol __collate_load_error was removed in 2015 in commit 2a6abee. While it had previously been accidently removed in 2011 (commit 3c87aa1d3dc1a) and restored in 2012 (commit bb4317b) I think it's time to write it off after four major releases without it. Fixes: 2a6abee The collate functions within libc have... Reviewed by: bapt Differential Revision: https://reviews.freebsd.org/D44182
Configuration menu - View commit details
-
Copy full SHA for ec911a4 - Browse repository at this point
Copy the full SHA ec911a4View commit details -
libc: actually build bsearch_b
Fixes: 46cdc14 Add support for some block functions ... Reviewed by: theraven Differential Revision: https://reviews.freebsd.org/D44189
Configuration menu - View commit details
-
Copy full SHA for 7e8e73f - Browse repository at this point
Copy the full SHA 7e8e73fView commit details -
tcp_rack.4: Remove a mentioned paper
The paper "T-RACKs: A Faster Recovery Mechanism for TCP in Data Center Networks" has nothing to do with our TCP RACK implementation, so remove it. Reported by: tuexen MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for 7701b99 - Browse repository at this point
Copy the full SHA 7701b99View commit details -
imgact_elf: Add const to a few struct image_params pointers
This makes it more obvious which functions modify fields in this struct. Reviewed by: imp, kib Obtained from: CheriBSD Differential Revision: https://reviews.freebsd.org/D44214
Configuration menu - View commit details
-
Copy full SHA for 169641f - Browse repository at this point
Copy the full SHA 169641fView commit details -
imgact_elf: Add const to the checknote parameter to __elfN(parse_notes)
Reviewed by: imp, kib Sponsored by: University of Cambridge, Google, Inc. Differential Revision: https://reviews.freebsd.org/D44215
Configuration menu - View commit details
-
Copy full SHA for 364d1b2 - Browse repository at this point
Copy the full SHA 364d1b2View commit details -
pci_host_generic: Pass a valid end address in generic_pcie_translate_…
…resource The generic_pcie_containing_range helper added in commit d79b6b8 assumed that the passed in (start, end) range used to locate the containing mapping range was a valid address range (with end >= start). The previous version of generic_pcie_translate_resource_common only used the start address to locate a mapping range, so the end address of 0 did not matter, but an end of 0 now causes the first range to match and an incorrect translation for resources using a later range. PR: 277211 Reported by: dch, tuexen Reviewed by: tuexen Fixes: d79b6b8 pci_host_generic: Don't rewrite resource start address for translation Differential Revision: https://reviews.freebsd.org/D44205
Configuration menu - View commit details
-
Copy full SHA for 332dbd3 - Browse repository at this point
Copy the full SHA 332dbd3View commit details -
pci_host_generic: Simplify generic_pcie_translate_resource
Inline generic_pcie_translate_resource_common into its sole caller. No functional change. Reviewed by: tuexen Differential Revision: https://reviews.freebsd.org/D44206
Configuration menu - View commit details
-
Copy full SHA for 291079d - Browse repository at this point
Copy the full SHA 291079dView commit details -
kern: poll: tap out the pollfd array on successful return
We do this in kern_poll() to include freebsd32 but exclude the linux compat layer. The ABI should be the same, but the POLL constants are probably different or should be assumed so. Reviewed by: bapt, jhb Differential Revision: https://reviews.freebsd.org/D44158
Configuration menu - View commit details
-
Copy full SHA for b5d2165 - Browse repository at this point
Copy the full SHA b5d2165View commit details -
libsysdecode: add a decoder for pollfd events
We'll use this in another change to read pollfd arrays coming from a successful poll(2) operation. Reviewed by: bapt, jhb Differential Revision: https://reviews.freebsd.org/D44159
Configuration menu - View commit details
-
Copy full SHA for bd23e71 - Browse repository at this point
Copy the full SHA bd23e71View commit details -
kdump: decode pollfd struct arrays coming from poll(2)
We'll handle these just as we do kevents, one per line with subsequent lines indented sufficiently to distinguish them from the upcoming return value. Sample, with indentation stripped and revents changed to '...' in the first one to keep the line length down: CALL poll(0x820610560,0x3,0) STRU struct pollfd[] = { { fd=0, events=0x1<POLLIN>, revents=0x11<...> { fd=1, events=0x4<POLLOUT>, revents=0x4<POLLOUT>} { fd=-1, events=0x4<POLLOUT>, revents=0} } RET poll 2 Reviewed by: bapt, jhb Differential Revision: https://reviews.freebsd.org/D44160
Configuration menu - View commit details
-
Copy full SHA for 02c57f7 - Browse repository at this point
Copy the full SHA 02c57f7View commit details -
ktrace: log genio events on failed write
Visibility into the contents of the buffer when a write(2) has failed can be immensely useful in debugging IPC issues -- pushing this to discuss the idea, or maybe an alternative where we can set a flag like KTRFAC_ERRIO to enable it. When a genio event is potentially raised after an error, currently we'll just free the uio and return. However, such data can be useful when debugging communication between processes to, e.g., understand what the remote side should have grabbed before closing a pipe. Tap out the entire buffer on failure rather than simply discarding it. Reviewed by: kib, markj Differential Revision: https://reviews.freebsd.org/D43799
Configuration menu - View commit details
-
Copy full SHA for 47ad4f2 - Browse repository at this point
Copy the full SHA 47ad4f2View commit details -
.github: Switch to v4 of actions/checkout
GitHub is emitting a warning that v3 is deprecated due to using Node.js 16.
Configuration menu - View commit details
-
Copy full SHA for e6dccf0 - Browse repository at this point
Copy the full SHA e6dccf0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 885590b - Browse repository at this point
Copy the full SHA 885590bView commit details -
diskinfo(8): introduce new option -l
In modes -p or -s, add an option -l to start each line with a device name separated with a tab. Update the manual page. Add an example to list names with corresponding serial numbers: diskinfo -ls /dev/da? MFC after: 2 weeks
Eugene Grosbein authored and Eugene Grosbein committedMar 5, 2024 Configuration menu - View commit details
-
Copy full SHA for e333110 - Browse repository at this point
Copy the full SHA e333110View commit details -
zfsd: Use vdev prop values for fault/degrade thresholds
ZED uses vdev props for setting disk fault/degrade thresholds, this patch enables zfsd to use the same vdev props for these same tasks. OpenZFS on Linux is using vdev props for ZED disk fault/degrade thresholds. Originally the thresholds supported were for io and checksum events and recently this was updated to process slow io events as well, see openzfs/zfs@cbe8822 This patch enables us to use the same vdev props in zfsd as ZED uses. After this patch is merged both OSs will use the same vdev props to set retirement thresholds. It's probably important to note that the threshold defaults are different between OS. I've kept the existing defaults inside zfsd and DID NOT match them to what ZED does. Differential Revision: https://reviews.freebsd.org/D44043 MFC after: 2 weeks Relnotes: yes Reviewed by: asomers, allanjude Sponsored by: Axcient Submitted by: Alek Pinchuk <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 89f4f91 - Browse repository at this point
Copy the full SHA 89f4f91View commit details
Commits on Mar 6, 2024
-
posix_spawn.c: fix typo in comment
Sponsored by: The FreeBSD Foundation MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for ebaf907 - Browse repository at this point
Copy the full SHA ebaf907View commit details -
libthr: remove explicit sys/cdefs.h includes
Sponsored by: The FreeBSD Foundation MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for f8bbbce - Browse repository at this point
Copy the full SHA f8bbbceView commit details -
libc posix_spawn(): explain why rtld can be used after fork
Sponsored by: The FreeBSD Foundation MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for 2ce23b1 - Browse repository at this point
Copy the full SHA 2ce23b1View commit details -
Configuration menu - View commit details
-
Copy full SHA for a446582 - Browse repository at this point
Copy the full SHA a446582View commit details -
if_bnxt: Correcting the firmware package version parsing logic
The firmware package version currently appears as "Unknown" through the sysctl interface. The parsing logic for extracting the firmware package version from the package log has been modified to ensure compatibility with all controllers. Reviewed by: imp Approved by: imp Differential revision: https://reviews.freebsd.org/D42950
Sumit Saxena authored and Sumit Saxena committedMar 6, 2024 Configuration menu - View commit details
-
Copy full SHA for e436cb7 - Browse repository at this point
Copy the full SHA e436cb7View commit details -
vmm.4: Add verbiage about need to load module from loader.conf
PR: 277530 MFC after: 1 week Co-authored-by: Mateusz Piotrowski <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d0168b3 - Browse repository at this point
Copy the full SHA d0168b3View commit details -
tarfs: Fix two input validation issues.
* Reject hard or soft links with an empty target path. Currently, a debugging kernel will hit an assertion in tarfs_lookup_path() while a non-debugging kernel will happily create a link to the mount root. * Use a temporary variable to store the result of the link target path, and copy it to tnp->other only once we have found it to be valid. Otherwise we error out after creating a reference to the target but before incrementing the target's reference count, which results in a use-after-free situation in the cleanup code. * Correctly return ENOENT from tarfs_lookup_path() if the requested path was not found and create_dirs is false. Luckily, existing callers did not rely solely on the return value. MFC after: 3 days PR: 277360 Sponsored by: Juniper Networks, Inc. Sponsored by: Klara, Inc. Reviewed by: sjg Differential Revision: https://reviews.freebsd.org/D44161
Configuration menu - View commit details
-
Copy full SHA for 38b3683 - Browse repository at this point
Copy the full SHA 38b3683View commit details -
tarfs: Improve validation of numeric fields.
MFC after: 3 days Sponsored by: Juniper Networks, Inc. Sponsored by: Klara, Inc. Reviewed by: sjg, allanjude Differential Revision: https://reviews.freebsd.org/D44166
Configuration menu - View commit details
-
Copy full SHA for 8427d94 - Browse repository at this point
Copy the full SHA 8427d94View commit details -
tarfs: Avoid overflow in exthdr calculation.
MFC after: 3 days PR: 277420 Sponsored by: Juniper Networks, Inc. Sponsored by: Klara, Inc. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D44202
Configuration menu - View commit details
-
Copy full SHA for c291b79 - Browse repository at this point
Copy the full SHA c291b79View commit details -
tarfs: Remove unnecessary hack and obsolete comment.
MFC after: 3 days Sponsored by: Juniper Networks, Inc. Sponsored by: Klara, Inc. Reviewed by: allanjude Differential Revision: https://reviews.freebsd.org/D44203
Configuration menu - View commit details
-
Copy full SHA for e212f0c - Browse repository at this point
Copy the full SHA e212f0cView commit details -
tarfs: Fix checksum calculation.
The checksum code assumed that struct ustar_header filled an entire block and calculcated the checksum based on the size of the structure. The header is in fact only 500 bytes long while the checksum covers the entire block (“logical record” in POSIX terms). Add padding and an assertion, and clean up the checksum code. MFC after: 3 days Sponsored by: Juniper Networks, Inc. Sponsored by: Klara, Inc. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D44226
Configuration menu - View commit details
-
Copy full SHA for 0118b0c - Browse repository at this point
Copy the full SHA 0118b0cView commit details -
tarfs: Factor out common test code.
MFC after: 3 days Sponsored by: Juniper Networks, Inc. Sponsored by: Klara, Inc. Reviewed by: allanjude Differential Revision: https://reviews.freebsd.org/D44227
Configuration menu - View commit details
-
Copy full SHA for 32b8aac - Browse repository at this point
Copy the full SHA 32b8aacView commit details -
timerfd_create: accept CLOCK_UPTIME/CLOCK_BOOTTIME
This is a common use case when using timerfd_create to actually use it with CLOCK_BOOTTIME on linux which is CLOCK_UPTIME for us. Note that currently on freebsd CLOCK_BOOTTIME is CLOCK_UPTIME, but the semantic is supposed to be different, this has to be fixed later. Tested with the fnott notification software Reviewed by: des, imp Differential Revision: https://reviews.freebsd.org/D44253
Configuration menu - View commit details
-
Copy full SHA for cf742fa - Browse repository at this point
Copy the full SHA cf742faView commit details -
timerfd_create: fix after cf742fa
Remove the include that crept in by accident Clang complains about CLOCK_BOOTTIME being the same for now as CLOCK_UPTIME, so remove CLOCK_BOOTTIME and leave a comment for what to do when CLOCK_BOOTTIME will be different for real.
Configuration menu - View commit details
-
Copy full SHA for 0ecf0b2 - Browse repository at this point
Copy the full SHA 0ecf0b2View commit details -
bsearch_b: fix compilation with gcc
Reported by: rscheff Differential Revision: https://reviews.freebsd.org/D44256
Configuration menu - View commit details
-
Copy full SHA for 8c94ed9 - Browse repository at this point
Copy the full SHA 8c94ed9View commit details
Commits on Mar 7, 2024
-
liblzma: don't export lzma_lz_decoder_uncompressed
It was removed in the 5.4.0 import. Reviewed by: delphij Differential Revision: https://reviews.freebsd.org/D44247
Configuration menu - View commit details
-
Copy full SHA for 023fa55 - Browse repository at this point
Copy the full SHA 023fa55View commit details -
heimdal: don't export nonexistant _wind_ucs2read
This symbol table entry came in with the 1.5 import (commit 7c450da), but the only other mention is a commented out entry in lib/wind/libwind-exports.def. Reviewed by: cy Differential Revision: https://reviews.freebsd.org/D44245
Configuration menu - View commit details
-
Copy full SHA for de4386d - Browse repository at this point
Copy the full SHA de4386dView commit details -
heimdal: don't try to expose nonexistant symbols
For one reason or another these symbols aren't present so don't try to make them available for linkage. In the case of libroken these seem to be compatability bits we don't need a thus don't compile. For others it seems to rot upstream, but I've not investigated deeply. Reviewed by: cy Differential Revision: https://reviews.freebsd.org/D44246
Configuration menu - View commit details
-
Copy full SHA for cec2adb - Browse repository at this point
Copy the full SHA cec2adbView commit details -
libsys/aarch64: end syscall stubs with newlines
Technically speaking, POSIX text files must end with a newline. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D44231
Configuration menu - View commit details
-
Copy full SHA for 269593d - Browse repository at this point
Copy the full SHA 269593dView commit details -
libsys/riscv: Remove pointless MD syscall(2)
This file is functionally identical to the stub generated by Makefile.sys once the MD version is removed. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D44232
Configuration menu - View commit details
-
Copy full SHA for e6ffc76 - Browse repository at this point
Copy the full SHA e6ffc76View commit details -
libsys/arm: Remove pointless MD syscall(2)
This file is functionally identical to the stub generated by Makefile.sys once the MD version is removed. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D44233
Configuration menu - View commit details
-
Copy full SHA for 0ee0ae2 - Browse repository at this point
Copy the full SHA 0ee0ae2View commit details -
libsys/aarch: Remove pointless MD syscall(2)
This file is functionally identical to the stub generated by Makefile.sys once the MD version is removed. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D44234
Configuration menu - View commit details
-
Copy full SHA for 7b3836c - Browse repository at this point
Copy the full SHA 7b3836cView commit details -
syscall(2): make i386 less of an outlier
Unlike other architectures, i386 only defined syscall() and not _syscall() or __sys_syscall(). The syscall() function then invoked the desired system call directly rather than invoking syscall(2). Keep the latter as it's marginally more efficent, but also create the conventional _syscall() and __sys_syscall() stubs. This avoids the need to special case syscall(2) in the symbol list generation in libsys. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D44235
Configuration menu - View commit details
-
Copy full SHA for 39a15d7 - Browse repository at this point
Copy the full SHA 39a15d7View commit details -
libsys: don't try to expose yield
The undocumented yield system call has never been implemented via libc or libsys (except accidentally for <15 minutes in 1998 between commits abd529c and 0db2fac). Avoid trying to export it now to avoid failures when linking with --no-undefined-version. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D44236
Configuration menu - View commit details
-
Copy full SHA for cc4ffc9 - Browse repository at this point
Copy the full SHA cc4ffc9View commit details -
libsys: don't expose __init_elf_aux_vector
__init_elf_aux_vector is now complied statically so don't try to export it from the dynamic library. Fixes: 8271d9b libsys: remove usage of pthread_once and _once_stub Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D44237
Configuration menu - View commit details
-
Copy full SHA for 83392af - Browse repository at this point
Copy the full SHA 83392afView commit details -
nvme: split devctl out to its own function
Split the devctl aspect of things out to its own function in nvme_ctrlr_devctl_log. In preparing to document this, and based on actual use, we want something different for the SMART errors, so this will facilitate that. Sponsored by: Netflix Reviewed by: chuck, mav Differential Revision: https://reviews.freebsd.org/D44209
Configuration menu - View commit details
-
Copy full SHA for fc3afe9 - Browse repository at this point
Copy the full SHA fc3afe9View commit details -
nvme: Change devctl events for the controller
Change the devctl events slightly for the controller. SMART errors will log the changed bits in the NVME SMART Critical Warning State as its event. Reset will now emit 'event=start'. Soon more. Sponsored by: Netflix Reviewed by: mav Differential Revision: https://reviews.freebsd.org/D44210
Configuration menu - View commit details
-
Copy full SHA for 4f817fc - Browse repository at this point
Copy the full SHA 4f817fcView commit details -
nvme: Log reset success or failure to devd
We're logging when we start a reset, but not when we complete it, nor the result. Create now log a success or timed_out event for the reset. Currently, the only detectable error we have from reset is 'failure to become ready in time,' though the code looks like it might be more generic. Log this and if we ever have other failure modes, change the logging to devd when that happens. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D44211
Configuration menu - View commit details
-
Copy full SHA for 5cdedf6 - Browse repository at this point
Copy the full SHA 5cdedf6View commit details -
nvme: Add SMART WARNING for persistent memory region
NVME 2.0 added persistent memory regions, and this bit reports critical warnings / errors with those regions. Sponsored by: Netflix Reviewed by: mav Differential Revision: https://reviews.freebsd.org/D44213
Configuration menu - View commit details
-
Copy full SHA for 2a2682e - Browse repository at this point
Copy the full SHA 2a2682eView commit details -
devd: Document the nvme devd events
Nvme informs devd of smart and reset controller events. Document them. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D44212
Configuration menu - View commit details
-
Copy full SHA for 6a3877a - Browse repository at this point
Copy the full SHA 6a3877aView commit details -
devd: Add directory information
Devd searches /etc/devd and /usr/local/etc/devd by default (given the default devd.conf file). Document that here. Sponsored by: Netflix
Configuration menu - View commit details
-
Copy full SHA for 7c6af20 - Browse repository at this point
Copy the full SHA 7c6af20View commit details -
bhyve/gdb: Avoid rebuilding target.xml for install targets
Otherwise it's impossible to install from a read-only objdir. Fixes: f81cdf2 ("bhyve: Add support for XML register definitions") Reported by: olivier
Configuration menu - View commit details
-
Copy full SHA for 8a802df - Browse repository at this point
Copy the full SHA 8a802dfView commit details -
tarfs: Fix checksum on 32-bit platforms.
MFC after: 3 days Fixes: b56872332e47786afc09515a4daaf1388da4d73c Sponsored by: Juniper Networks, Inc. Sponsored by: Klara, Inc. Reviewed by: bapt Differential Revision: https://reviews.freebsd.org/D44261
Configuration menu - View commit details
-
Copy full SHA for cbddb2f - Browse repository at this point
Copy the full SHA cbddb2fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4fefe1b - Browse repository at this point
Copy the full SHA 4fefe1bView commit details -
nullfs: Add the vfs.nullfs.cache_nodes sysctl to control nocache default
Differential revision: https://reviews.freebsd.org/D44217 MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for c849eb8 - Browse repository at this point
Copy the full SHA c849eb8View commit details -
if_bnxt: Fix media speed update issue in "ifconfig -m" during PHY hot…
… plug Currently, if a media type (e.g., DAC) is hot-plugged out and another type (e.g., optical cable) is hot-plugged in, the new speed is not reflected in ifconfig. This occurs when the driver fails to update speeds with unchanged tx and rx flow control. To fix, a phy_type check ensures update of phy speeds upon detecting the new phy. Reviewed by: imp Approved by: imp Differential revision: https://reviews.freebsd.org/D42951
Configuration menu - View commit details
-
Copy full SHA for 7cbffbf - Browse repository at this point
Copy the full SHA 7cbffbfView commit details -
nvme_sim: Add comment about the is_failed test
We only see a request with a failed controller while we're in the process of failing the controller. Add a comment to that effect. Sponsored by: Netflix
Configuration menu - View commit details
-
Copy full SHA for fe52c33 - Browse repository at this point
Copy the full SHA fe52c33View commit details -
if_bnxt: Incorrect Labeling of Supported Medium in `ifconfig -m <inf>…
…` Command The 1G speed on DAC medium is incorrectly labeled as 1000baseT, it should be 1000baseCX. Updated the label accordingly. Reviewed by: imp Approved by: imp Differential revision: https://reviews.freebsd.org/D42952
Configuration menu - View commit details
-
Copy full SHA for c5108e3 - Browse repository at this point
Copy the full SHA c5108e3View commit details -
if_bnxt: Enabled support for 1G SX, CX, and LX forced speed settings
Enabled User Configuration of 1G Speed on Wh+ SFP28 Port with AOC cable. Reviewed by: imp Approved by: imp Differential revision: https://reviews.freebsd.org/D42953
Configuration menu - View commit details
-
Copy full SHA for 0f8d1a9 - Browse repository at this point
Copy the full SHA 0f8d1a9View commit details -
if_bnxt: Update Maximum Configurable MTU from 9000 to 9600
Increasing the maximum configurable MTU from 9000 to 9600 to align with the firmware's capability of handling an MTU up to 9600. Reviewed by: imp Approved by: imp Differential revision: https://reviews.freebsd.org/D42954
Configuration menu - View commit details
-
Copy full SHA for 8a3aab5 - Browse repository at this point
Copy the full SHA 8a3aab5View commit details -
if_bnxt: Update Firmware Header to Latest Version 1.10.2.136
Update Firmware Header to Latest Version 1.10.2.136. Reviewed by: imp Approved by: imp Differential revision: https://reviews.freebsd.org/D42955
Configuration menu - View commit details
-
Copy full SHA for 25f38d0 - Browse repository at this point
Copy the full SHA 25f38d0View commit details -
if_bnxt: Integrate AOC Cable Support into Current 40G PHY Speed
Reviewed by: imp Approved by: imp Differential revision: https://reviews.freebsd.org/D429506
Configuration menu - View commit details
-
Copy full SHA for 816abba - Browse repository at this point
Copy the full SHA 816abbaView commit details -
if_bnxt: Implementation of Extended Port Hardware Stats Support for T…
…HOR Controller The newly added port extended hardware statistics are now accessible to users through the sysctl interface. Also, Few obsolete stats are removed and few stats are renamed. Reviewed by: imp Approved by: imp Differential revision: https://reviews.freebsd.org/D42957
Configuration menu - View commit details
-
Copy full SHA for d36b366 - Browse repository at this point
Copy the full SHA d36b366View commit details -
if_bnxt: Pluggable Module Display Support
This update enables the display of pluggable module information to users via the ifconfig utility. Reviewed by: imp Approved by: imp Differential revision: https://reviews.freebsd.org/D42958
Sumit Saxena authored and Sumit Saxena committedMar 7, 2024 Configuration menu - View commit details
-
Copy full SHA for 3320f0f - Browse repository at this point
Copy the full SHA 3320f0fView commit details -
if_bnxt: 50G, 100G and 200G PAM4 support
Add support for 50G, 100G and 200G PAM4 support Reviewed by: imp Approved by: imp Differential revision: https://reviews.freebsd.org/D42959
Configuration menu - View commit details
-
Copy full SHA for c63d67e - Browse repository at this point
Copy the full SHA c63d67eView commit details -
if_bnxt: Set 1G/10G baseT force speed as auto speeds
The firmware lacks support for manually setting 1G and 10G baseT speeds. However, the driver can enable auto speed masks to achieve automatic configuration at these speeds. Reviewed by: imp Approved by: imp Differential revision: https://reviews.freebsd.org/D42960
Configuration menu - View commit details
-
Copy full SHA for 770e7ba - Browse repository at this point
Copy the full SHA 770e7baView commit details -
amend! if_bnxt: Integrate AOC Cable Support into Current 40G PHY Speed
if_bnxt: Integrate AOC Cable Support into Current 40G PHY Speed Reviewed by: imp Approved by: imp Differential revision: https://reviews.freebsd.org/D42956
Sumit Saxena authored and Sumit Saxena committedMar 7, 2024 Configuration menu - View commit details
-
Copy full SHA for 72ecb16 - Browse repository at this point
Copy the full SHA 72ecb16View commit details -
libc/iconv: don't export nonexistant symbols
It's unclear to me that any of these symbols ever existed. The ones I've spot checked are only mentioned in the initial Citrus iconv import (commit ad30f8e) and this code hasn't changed much over time. Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D44183
Configuration menu - View commit details
-
Copy full SHA for 8c8882c - Browse repository at this point
Copy the full SHA 8c8882cView commit details -
libc/quad: narrow list of symbols exposed on i386
These symbols aren't present on i386 so don't try to expose them. Given the structure of quad/Makefile.inc, it might make more sense to have per-arch symbol maps here, but this is sufficent to build with WITHOUT_UNDEFINED_VERSION on i386. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D44243
Configuration menu - View commit details
-
Copy full SHA for 6e6cd03 - Browse repository at this point
Copy the full SHA 6e6cd03View commit details -
libc/i386: don't attempt to export alloca
The assembly implementation was removed in 2006 (commit 3c03c70). Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D44242
Configuration menu - View commit details
-
Copy full SHA for 32c7350 - Browse repository at this point
Copy the full SHA 32c7350View commit details
Commits on Mar 8, 2024
-
I'd forgotten that we have to adjust the stderr tests from upstream. Remove the OK files. Also remove system-status.*. These restore the fixes I made in 517e52b which were lost when I imported the last version of awk. Also, force LANG to be C.UTF-8 when testing to ensure that stray lang settings don't fail tests. Sponsored by: Netflix
Configuration menu - View commit details
-
Copy full SHA for ba7b7f9 - Browse repository at this point
Copy the full SHA ba7b7f9View commit details -
ObsoleteFiles.inc: add the awk tests I just remvoed
These files were bogusly added when I imported awk 2nd edition. Sponsored by: Netflix
Configuration menu - View commit details
-
Copy full SHA for 4f9fbde - Browse repository at this point
Copy the full SHA 4f9fbdeView commit details -
TCP LRO: disable mbuf queuing when packet filter hooks are in place
When doing mbuf queueing, the packet filter hooks in ether_demux(), ip_input(), and ip6_input() are by-passed. This means that the packet filters don't process incoming packets, which might result in connection failures. For example bypassing the TCP sequence number validation will result in dropping valid packets. Please note that this patch is only disabling mbuf queueing, not LRO. Reported by: Herbert J. Skuhra Reviewed by: glebius, rrs, rscheff MFC after: 1 week Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D43769
Configuration menu - View commit details
-
Copy full SHA for d1ce012 - Browse repository at this point
Copy the full SHA d1ce012View commit details -
TCP LRO: add dtrace probe points
Add the IP, UDP, and TCP receive static probes to the code path, which avoids if_input. Reviewed by: rrs, markj MFC after: 1 week` Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D43727
Configuration menu - View commit details
-
Copy full SHA for 96ad640 - Browse repository at this point
Copy the full SHA 96ad640View commit details -
Hyper-V: vPCI: fix cpu id mis-mapping in vmbus_pcib_map_msi()
The msi address contains apic id. The code in vmbus_pcib_map_msi() treats it as cpu id, which could cause mis-configuration of msix IRQs, leading to missing interrupts for SRIOV devices. This happens when apic id is not the same as cpu id on certain large VM sizes with multiple numa domains in Azure. Fix this issue by correctly mapping apic ids to cpu ids. On vPCI version before 1.4, it only supports up to 64 vcpus for msi/msix interrupt. This change also adds a check and returns error if the vcpu_id is greater than 63. Reported by: NetApp Tested by: whu MFC after: 1 week
Wei Hu authored and Wei Hu committedMar 8, 2024 Configuration menu - View commit details
-
Copy full SHA for 999174b - Browse repository at this point
Copy the full SHA 999174bView commit details -
clk_fixed: call clkdom_dump() for verbose boot
This is standard practice for clock drivers that register clocks dynamically. Nothing else uses the CLK_DEBUG macro. The result is that the name and frequency of the fixed clock is printed for a verbose boot, which may aid in debugging. Reviewed by: manu MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D44265
Configuration menu - View commit details
-
Copy full SHA for 6e66bb9 - Browse repository at this point
Copy the full SHA 6e66bb9View commit details -
We may attach several of these devices, but there is no meaningful information added to dmesg. For example: ofwbus0: <Open Firmware Device Tree> clk_fixed0: <Fixed clock> on ofwbus0 clk_fixed1: <Fixed clock> on ofwbus0 clk_fixed2: <Fixed clock> on ofwbus0 clk_fixed3: <Fixed clock> on ofwbus0 clk_fixed4: <Fixed clock> on ofwbus0 clk_fixed5: <Fixed clock> on ofwbus0 clk_fixed6: <Fixed clock> on ofwbus0 clk_fixed7: <Fixed clock> on ofwbus0 clk_fixed8: <Fixed clock> on ofwbus0 clk_fixed9: <Fixed clock> on ofwbus0 clk_fixed10: <Fixed clock> on ofwbus0 clk_fixed11: <Fixed clock> on ofwbus0 To reduce this noise, quiet the devices for by default. For verbose boot, the message will be emitted. Reviewed by: manu MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D44266
Configuration menu - View commit details
-
Copy full SHA for 1cb9f6f - Browse repository at this point
Copy the full SHA 1cb9f6fView commit details -
clkdom_dump(): improve output text
If the call to clknode_get_freq() returns an error (unlikely), report this, rather than printing the error code as the clock frequency. If the clock has no parent (e.g. a fixed reference clock), print "none" rather than "(NULL)(-1)". This is a more human-legible presentation of the same information. Reviewed by: manu MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D44267
Configuration menu - View commit details
-
Copy full SHA for 08635c5 - Browse repository at this point
Copy the full SHA 08635c5View commit details -
simple_mfd: don't attach children twice
Trying to probe+attach the child device at the point it is added comes before the syscon handle is set up (if relevant). It will therefore be unavailable to the attach method which is expecting it, and the first attempt to attach the device will fail. Just rely on the call to bus_generic_attach() at the end of the function to perform probe+attach of dev's children. Reviewed by: manu MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D44268
Configuration menu - View commit details
-
Copy full SHA for accda78 - Browse repository at this point
Copy the full SHA accda78View commit details -
nullfs_mount(): remove unneeded cast
Sponsored by: The FreeBSD Foundation MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for 0724293 - Browse repository at this point
Copy the full SHA 0724293View commit details -
to allow overwrite global default if needed. Sponsored by: The FreeBSD Foundation MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for 8921216 - Browse repository at this point
Copy the full SHA 8921216View commit details -
mount_nullfs(8): document -o cache and vfs.nullfs.cache_vnodes
Sponsored by: The FreeBSD Foundation MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for 4a2a69c - Browse repository at this point
Copy the full SHA 4a2a69cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4e8d264 - Browse repository at this point
Copy the full SHA 4e8d264View commit details -
lib{c,sys}: fix incremental builds
I removed lib/libsys/{aarch64,arm,riscv}/syscall.S in favor of an idential generated version. We need to clean out the .ddepend files to ensure the generated version is actually generated. The guard here is technically too strict, but should be fine in practice and I've verified both the breakage and fix on an armv7 build. Reported by: imp Fixes: e6ffc76 Remove pointless MD syscall(2) Fixes: 0ee0ae2 Remove pointless MD syscall(2) Fixes: 7b3836c Remove pointless MD syscall(2)
Configuration menu - View commit details
-
Copy full SHA for a650ec0 - Browse repository at this point
Copy the full SHA a650ec0View commit details
Commits on Mar 9, 2024
-
crunchgen: slap a dependency on the generated makefile for .lo
crunchgen generates a foo.lo for each binary it will end up crunching into the final product. While they have a dependency on the libs that are used to link them, nothing will force relinking if the set of libs needed to link them is changed. Because of this, incremental builds may not be possible if one builds a version of, e.g., rescue/ with a broken set of libs specified for a project -- a subsequent fix won't be rolled in cleanly, it will require purging the rescue/ objdir. This is a bit crude, but the foo.mk we generate doesn't actually get regenerated all that often in practice, so a spurious relink for the vast majority of crunched objects won't actually happen all that often. Reviewed by: bapt, emaste, imp Differential Revision: https://reviews.freebsd.org/D43869
Configuration menu - View commit details
-
Copy full SHA for 6e2cfb2 - Browse repository at this point
Copy the full SHA 6e2cfb2View commit details
Commits on Aug 3, 2024
-
getblkx(9): be more tolerant but also strict with the buffer size checks
It is possible that on-disk filesystem format causes allocation of buffers of size larger than maxbcachebuf. Currently, getblkx() and indirectly bufkva_alloc() panic in that situation. It is more useful to return an error instead, allowing the system to continue running. PR: 277414 Reported by: Robert Morris <[email protected]> MFC after: 1 week Sponsored by: The FreeBSD Foundation
Configuration menu - View commit details
-
Copy full SHA for 1b9c3d2 - Browse repository at this point
Copy the full SHA 1b9c3d2View commit details -
gpioevents: Fix build with newer Clang
PR: 277422
Configuration menu - View commit details
-
Copy full SHA for a8a6720 - Browse repository at this point
Copy the full SHA a8a6720View commit details -
sys/mount.h: align values of MNTK_XXX flags
Sponsored by: The FreeBSD Foundation MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for e6729d8 - Browse repository at this point
Copy the full SHA e6729d8View commit details -
linux: require vnet(9) context in ifname_bsd_to_linux_name()
This function is used by netlink(9) only. The netlink(9) taskqueue thread runs in the vnet of the socket whose request the thread is processing right now. This is a correct vnet and resetting it to vnet0 is incorrect. If the function is to be used by any other caller in addition to netlink(9), it would be caller's responsiblity to provide correct vnet(9). Reviewed by: melifaro, dchagin Differential Revision: https://reviews.freebsd.org/D44191 PR: 277286
Configuration menu - View commit details
-
Copy full SHA for ac89a72 - Browse repository at this point
Copy the full SHA ac89a72View commit details -
posix_spawnattr_setflags(3): validate argument
Reviewed by: emaste, kevans Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D44195
Configuration menu - View commit details
-
Copy full SHA for 1e95068 - Browse repository at this point
Copy the full SHA 1e95068View commit details -
posix_spawn(3): add POSIX_SPAWN_DISABLE_ASLR_NP
similar to Apple _POSIX_SPAWN_DISABLE_ASLR Reviewed by: emaste, kevans Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D44195
Configuration menu - View commit details
-
Copy full SHA for 86d527f - Browse repository at this point
Copy the full SHA 86d527fView commit details -
posix_spawn(3): document POSIX_SPAWN_DISABLE_ASLR_NP
Sponsored by: The FreeBSD Foundation MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for e73a03c - Browse repository at this point
Copy the full SHA e73a03cView commit details -
LinuxKPI: Queue skbuffs at tail in __skb_queue_tail
Correct skb_queue_tail to queue the buffer at the tail of the skbuff. The skbuff is a circular doubly-linked list, and we call with a pointer to the head of the list. Thus queueing before the head gives us a queueing at the tail. As a motivating factor, the current behaviour (queueing at the head) was causing frequent kernel panics from my RTL8822BE wireless card, which uses the rtw88 driver. Interrupts can cause buffers to be added to the rtwdev c2h_queue while the queue is being drained in rtw_c2h_work. Queueing at the head would leave the nascent entry in the linked list pointing to the old, now freed, memory for the buffer being processed. When rtw_c2h_work is next called, we try reading this and so panic. Reviewed by: emaste, bz MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D44192
Configuration menu - View commit details
-
Copy full SHA for 07f5ce4 - Browse repository at this point
Copy the full SHA 07f5ce4View commit details -
hostapd: Work around lack of MLME support
hostap MLME uses Linux data structures and definitions not available in FreeBSD. The ability for hostapd to select the frequency (channel) depends Linux MLME, though strictly it's not required. Work around the Linux MLME requirement to configure device frequency. The detailed description is: hostapd will only set the channel (frequency) when Linux MLME is configured. Enabling NEED_AP_MLME will result in numerous build errors due do Linux data structures and definitions not available under FreeBSD. The code to set the frequency from the selected channel is only within the NEED_AP_MLME code path because without MLME, hostapd_get_hw_features() is an inline that always returns -1 whereas with MLME hostapd_get_hw_features() will obtain hardware features from the kernel. Until such time we simply set the frequency as configured. PR: 276375 MFC after: 1 month
Configuration menu - View commit details
-
Copy full SHA for c53b971 - Browse repository at this point
Copy the full SHA c53b971View commit details -
riscv: catch up with EARLY_PRINTF changes
On this platform early console access is possible via SBI. Follow recent changes to EARLY_PRINTF option and give it a named constant. Update the commented option in GENERIC so that it compiles. Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D44100
Configuration menu - View commit details
-
Copy full SHA for 6cfc066 - Browse repository at this point
Copy the full SHA 6cfc066View commit details -
Configuration menu - View commit details
-
Copy full SHA for ebb704f - Browse repository at this point
Copy the full SHA ebb704fView commit details -
imgact_elf: Add const to the header_supported callback arguments
This callback shouldn't be modifying any of the arguments. Reviewed by: imp, kib, emaste, jhb Obtained from: CheriBSD Differential Revision: https://reviews.freebsd.org/D44193
Configuration menu - View commit details
-
Copy full SHA for d26464a - Browse repository at this point
Copy the full SHA d26464aView commit details -
Merge commit f800c1f3b207 from llvm-project (by Arthur Eubanks):
[PEI] Don't zero out noreg operands A tail call may have $noreg operands. Fixes a crash. Reviewed By: xgupta Differential Revision: https://reviews.llvm.org/D156485 This should fix an assertion failure building qemu, specifically those parts using -fzero-call-used-regs. Reported by: Daniel Berrangé <[email protected]> PR: 277474 MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for 45c417c - Browse repository at this point
Copy the full SHA 45c417cView commit details -
libc/locale: don't expose nonexistant __collate_load_error
The private symbol __collate_load_error was removed in 2015 in commit 2a6abee. While it had previously been accidently removed in 2011 (commit 3c87aa1d3dc1a) and restored in 2012 (commit bb4317b) I think it's time to write it off after four major releases without it. Fixes: 2a6abee The collate functions within libc have... Reviewed by: bapt Differential Revision: https://reviews.freebsd.org/D44182
Configuration menu - View commit details
-
Copy full SHA for da75980 - Browse repository at this point
Copy the full SHA da75980View commit details -
libc: actually build bsearch_b
Fixes: 46cdc14 Add support for some block functions ... Reviewed by: theraven Differential Revision: https://reviews.freebsd.org/D44189
Configuration menu - View commit details
-
Copy full SHA for 2d1a892 - Browse repository at this point
Copy the full SHA 2d1a892View commit details -
tcp_rack.4: Remove a mentioned paper
The paper "T-RACKs: A Faster Recovery Mechanism for TCP in Data Center Networks" has nothing to do with our TCP RACK implementation, so remove it. Reported by: tuexen MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for f5316e8 - Browse repository at this point
Copy the full SHA f5316e8View commit details -
imgact_elf: Add const to a few struct image_params pointers
This makes it more obvious which functions modify fields in this struct. Reviewed by: imp, kib Obtained from: CheriBSD Differential Revision: https://reviews.freebsd.org/D44214
Configuration menu - View commit details
-
Copy full SHA for c2902cc - Browse repository at this point
Copy the full SHA c2902ccView commit details -
imgact_elf: Add const to the checknote parameter to __elfN(parse_notes)
Reviewed by: imp, kib Sponsored by: University of Cambridge, Google, Inc. Differential Revision: https://reviews.freebsd.org/D44215
Configuration menu - View commit details
-
Copy full SHA for b4554fb - Browse repository at this point
Copy the full SHA b4554fbView commit details -
pci_host_generic: Pass a valid end address in generic_pcie_translate_…
…resource The generic_pcie_containing_range helper added in commit d79b6b8 assumed that the passed in (start, end) range used to locate the containing mapping range was a valid address range (with end >= start). The previous version of generic_pcie_translate_resource_common only used the start address to locate a mapping range, so the end address of 0 did not matter, but an end of 0 now causes the first range to match and an incorrect translation for resources using a later range. PR: 277211 Reported by: dch, tuexen Reviewed by: tuexen Fixes: d79b6b8 pci_host_generic: Don't rewrite resource start address for translation Differential Revision: https://reviews.freebsd.org/D44205
Configuration menu - View commit details
-
Copy full SHA for 83a7a07 - Browse repository at this point
Copy the full SHA 83a7a07View commit details -
pci_host_generic: Simplify generic_pcie_translate_resource
Inline generic_pcie_translate_resource_common into its sole caller. No functional change. Reviewed by: tuexen Differential Revision: https://reviews.freebsd.org/D44206
Configuration menu - View commit details
-
Copy full SHA for d61d760 - Browse repository at this point
Copy the full SHA d61d760View commit details -
kern: poll: tap out the pollfd array on successful return
We do this in kern_poll() to include freebsd32 but exclude the linux compat layer. The ABI should be the same, but the POLL constants are probably different or should be assumed so. Reviewed by: bapt, jhb Differential Revision: https://reviews.freebsd.org/D44158
Configuration menu - View commit details
-
Copy full SHA for bdb0bcd - Browse repository at this point
Copy the full SHA bdb0bcdView commit details -
libsysdecode: add a decoder for pollfd events
We'll use this in another change to read pollfd arrays coming from a successful poll(2) operation. Reviewed by: bapt, jhb Differential Revision: https://reviews.freebsd.org/D44159
Configuration menu - View commit details
-
Copy full SHA for 887c683 - Browse repository at this point
Copy the full SHA 887c683View commit details -
kdump: decode pollfd struct arrays coming from poll(2)
We'll handle these just as we do kevents, one per line with subsequent lines indented sufficiently to distinguish them from the upcoming return value. Sample, with indentation stripped and revents changed to '...' in the first one to keep the line length down: CALL poll(0x820610560,0x3,0) STRU struct pollfd[] = { { fd=0, events=0x1<POLLIN>, revents=0x11<...> { fd=1, events=0x4<POLLOUT>, revents=0x4<POLLOUT>} { fd=-1, events=0x4<POLLOUT>, revents=0} } RET poll 2 Reviewed by: bapt, jhb Differential Revision: https://reviews.freebsd.org/D44160
Configuration menu - View commit details
-
Copy full SHA for a797482 - Browse repository at this point
Copy the full SHA a797482View commit details -
ktrace: log genio events on failed write
Visibility into the contents of the buffer when a write(2) has failed can be immensely useful in debugging IPC issues -- pushing this to discuss the idea, or maybe an alternative where we can set a flag like KTRFAC_ERRIO to enable it. When a genio event is potentially raised after an error, currently we'll just free the uio and return. However, such data can be useful when debugging communication between processes to, e.g., understand what the remote side should have grabbed before closing a pipe. Tap out the entire buffer on failure rather than simply discarding it. Reviewed by: kib, markj Differential Revision: https://reviews.freebsd.org/D43799
Configuration menu - View commit details
-
Copy full SHA for e23e73e - Browse repository at this point
Copy the full SHA e23e73eView commit details -
.github: Switch to v4 of actions/checkout
GitHub is emitting a warning that v3 is deprecated due to using Node.js 16.
Configuration menu - View commit details
-
Copy full SHA for db46fad - Browse repository at this point
Copy the full SHA db46fadView commit details -
bsd-family-tree: add FreeBSD 13.3
MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for beffe18 - Browse repository at this point
Copy the full SHA beffe18View commit details -
diskinfo(8): introduce new option -l
In modes -p or -s, add an option -l to start each line with a device name separated with a tab. Update the manual page. Add an example to list names with corresponding serial numbers: diskinfo -ls /dev/da? MFC after: 2 weeks
Configuration menu - View commit details
-
Copy full SHA for 81a0963 - Browse repository at this point
Copy the full SHA 81a0963View commit details -
zfsd: Use vdev prop values for fault/degrade thresholds
ZED uses vdev props for setting disk fault/degrade thresholds, this patch enables zfsd to use the same vdev props for these same tasks. OpenZFS on Linux is using vdev props for ZED disk fault/degrade thresholds. Originally the thresholds supported were for io and checksum events and recently this was updated to process slow io events as well, see openzfs/zfs@cbe8822 This patch enables us to use the same vdev props in zfsd as ZED uses. After this patch is merged both OSs will use the same vdev props to set retirement thresholds. It's probably important to note that the threshold defaults are different between OS. I've kept the existing defaults inside zfsd and DID NOT match them to what ZED does. Differential Revision: https://reviews.freebsd.org/D44043 MFC after: 2 weeks Relnotes: yes Reviewed by: asomers, allanjude Sponsored by: Axcient Submitted by: Alek Pinchuk <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 625f919 - Browse repository at this point
Copy the full SHA 625f919View commit details -
posix_spawn.c: fix typo in comment
Sponsored by: The FreeBSD Foundation MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for 8b41c9d - Browse repository at this point
Copy the full SHA 8b41c9dView commit details -
libthr: remove explicit sys/cdefs.h includes
Sponsored by: The FreeBSD Foundation MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for 185d42e - Browse repository at this point
Copy the full SHA 185d42eView commit details -
libc posix_spawn(): explain why rtld can be used after fork
Sponsored by: The FreeBSD Foundation MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for 0f5d498 - Browse repository at this point
Copy the full SHA 0f5d498View commit details -
Revert "md5.1: Fix an example"
This reverts commit 865baea.
Configuration menu - View commit details
-
Copy full SHA for ca3f096 - Browse repository at this point
Copy the full SHA ca3f096View commit details -
if_bnxt: Correcting the firmware package version parsing logic
The firmware package version currently appears as "Unknown" through the sysctl interface. The parsing logic for extracting the firmware package version from the package log has been modified to ensure compatibility with all controllers. Reviewed by: imp Approved by: imp Differential revision: https://reviews.freebsd.org/D42950
Configuration menu - View commit details
-
Copy full SHA for f8eb29e - Browse repository at this point
Copy the full SHA f8eb29eView commit details -
vmm.4: Add verbiage about need to load module from loader.conf
PR: 277530 MFC after: 1 week Co-authored-by: Mateusz Piotrowski <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 11a7664 - Browse repository at this point
Copy the full SHA 11a7664View commit details -
tarfs: Fix two input validation issues.
* Reject hard or soft links with an empty target path. Currently, a debugging kernel will hit an assertion in tarfs_lookup_path() while a non-debugging kernel will happily create a link to the mount root. * Use a temporary variable to store the result of the link target path, and copy it to tnp->other only once we have found it to be valid. Otherwise we error out after creating a reference to the target but before incrementing the target's reference count, which results in a use-after-free situation in the cleanup code. * Correctly return ENOENT from tarfs_lookup_path() if the requested path was not found and create_dirs is false. Luckily, existing callers did not rely solely on the return value. MFC after: 3 days PR: 277360 Sponsored by: Juniper Networks, Inc. Sponsored by: Klara, Inc. Reviewed by: sjg Differential Revision: https://reviews.freebsd.org/D44161
Configuration menu - View commit details
-
Copy full SHA for 4347703 - Browse repository at this point
Copy the full SHA 4347703View commit details -
tarfs: Improve validation of numeric fields.
MFC after: 3 days Sponsored by: Juniper Networks, Inc. Sponsored by: Klara, Inc. Reviewed by: sjg, allanjude Differential Revision: https://reviews.freebsd.org/D44166
Configuration menu - View commit details
-
Copy full SHA for 0a7d28c - Browse repository at this point
Copy the full SHA 0a7d28cView commit details -
tarfs: Avoid overflow in exthdr calculation.
MFC after: 3 days PR: 277420 Sponsored by: Juniper Networks, Inc. Sponsored by: Klara, Inc. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D44202
Configuration menu - View commit details
-
Copy full SHA for c4c3724 - Browse repository at this point
Copy the full SHA c4c3724View commit details -
tarfs: Remove unnecessary hack and obsolete comment.
MFC after: 3 days Sponsored by: Juniper Networks, Inc. Sponsored by: Klara, Inc. Reviewed by: allanjude Differential Revision: https://reviews.freebsd.org/D44203
Configuration menu - View commit details
-
Copy full SHA for 87ccfeb - Browse repository at this point
Copy the full SHA 87ccfebView commit details -
tarfs: Fix checksum calculation.
The checksum code assumed that struct ustar_header filled an entire block and calculcated the checksum based on the size of the structure. The header is in fact only 500 bytes long while the checksum covers the entire block (“logical record” in POSIX terms). Add padding and an assertion, and clean up the checksum code. MFC after: 3 days Sponsored by: Juniper Networks, Inc. Sponsored by: Klara, Inc. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D44226
Configuration menu - View commit details
-
Copy full SHA for 88e6c75 - Browse repository at this point
Copy the full SHA 88e6c75View commit details -
tarfs: Factor out common test code.
MFC after: 3 days Sponsored by: Juniper Networks, Inc. Sponsored by: Klara, Inc. Reviewed by: allanjude Differential Revision: https://reviews.freebsd.org/D44227
Configuration menu - View commit details
-
Copy full SHA for 5d31a58 - Browse repository at this point
Copy the full SHA 5d31a58View commit details -
timerfd_create: accept CLOCK_UPTIME/CLOCK_BOOTTIME
This is a common use case when using timerfd_create to actually use it with CLOCK_BOOTTIME on linux which is CLOCK_UPTIME for us. Note that currently on freebsd CLOCK_BOOTTIME is CLOCK_UPTIME, but the semantic is supposed to be different, this has to be fixed later. Tested with the fnott notification software Reviewed by: des, imp Differential Revision: https://reviews.freebsd.org/D44253
Configuration menu - View commit details
-
Copy full SHA for bd48884 - Browse repository at this point
Copy the full SHA bd48884View commit details -
timerfd_create: fix after cf742fa
Remove the include that crept in by accident Clang complains about CLOCK_BOOTTIME being the same for now as CLOCK_UPTIME, so remove CLOCK_BOOTTIME and leave a comment for what to do when CLOCK_BOOTTIME will be different for real.
Configuration menu - View commit details
-
Copy full SHA for da328dd - Browse repository at this point
Copy the full SHA da328ddView commit details -
bsearch_b: fix compilation with gcc
Reported by: rscheff Differential Revision: https://reviews.freebsd.org/D44256
Configuration menu - View commit details
-
Copy full SHA for c36cbb2 - Browse repository at this point
Copy the full SHA c36cbb2View commit details -
liblzma: don't export lzma_lz_decoder_uncompressed
It was removed in the 5.4.0 import. Reviewed by: delphij Differential Revision: https://reviews.freebsd.org/D44247
Configuration menu - View commit details
-
Copy full SHA for 0fbaa40 - Browse repository at this point
Copy the full SHA 0fbaa40View commit details -
heimdal: don't export nonexistant _wind_ucs2read
This symbol table entry came in with the 1.5 import (commit 7c450da), but the only other mention is a commented out entry in lib/wind/libwind-exports.def. Reviewed by: cy Differential Revision: https://reviews.freebsd.org/D44245
Configuration menu - View commit details
-
Copy full SHA for d97fe15 - Browse repository at this point
Copy the full SHA d97fe15View commit details -
heimdal: don't try to expose nonexistant symbols
For one reason or another these symbols aren't present so don't try to make them available for linkage. In the case of libroken these seem to be compatability bits we don't need a thus don't compile. For others it seems to rot upstream, but I've not investigated deeply. Reviewed by: cy Differential Revision: https://reviews.freebsd.org/D44246
Configuration menu - View commit details
-
Copy full SHA for fde8238 - Browse repository at this point
Copy the full SHA fde8238View commit details -
libsys/aarch64: end syscall stubs with newlines
Technically speaking, POSIX text files must end with a newline. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D44231
Configuration menu - View commit details
-
Copy full SHA for 2d7c029 - Browse repository at this point
Copy the full SHA 2d7c029View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5bc1046 - Browse repository at this point
Copy the full SHA 5bc1046View commit details -
Configuration menu - View commit details
-
Copy full SHA for dc83bde - Browse repository at this point
Copy the full SHA dc83bdeView commit details -
Configuration menu - View commit details
-
Copy full SHA for dba7ed2 - Browse repository at this point
Copy the full SHA dba7ed2View commit details -
syscall(2): make i386 less of an outlier
Unlike other architectures, i386 only defined syscall() and not _syscall() or __sys_syscall(). The syscall() function then invoked the desired system call directly rather than invoking syscall(2). Keep the latter as it's marginally more efficent, but also create the conventional _syscall() and __sys_syscall() stubs. This avoids the need to special case syscall(2) in the symbol list generation in libsys. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D44235
Configuration menu - View commit details
-
Copy full SHA for 8c6ae12 - Browse repository at this point
Copy the full SHA 8c6ae12View commit details -
libsys: don't try to expose yield
The undocumented yield system call has never been implemented via libc or libsys (except accidentally for <15 minutes in 1998 between commits abd529c and 0db2fac). Avoid trying to export it now to avoid failures when linking with --no-undefined-version. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D44236
Configuration menu - View commit details
-
Copy full SHA for 1653a13 - Browse repository at this point
Copy the full SHA 1653a13View commit details -
libsys: don't expose __init_elf_aux_vector
__init_elf_aux_vector is now complied statically so don't try to export it from the dynamic library. Fixes: 8271d9b libsys: remove usage of pthread_once and _once_stub Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D44237
Configuration menu - View commit details
-
Copy full SHA for f6e3c43 - Browse repository at this point
Copy the full SHA f6e3c43View commit details -
nvme: split devctl out to its own function
Split the devctl aspect of things out to its own function in nvme_ctrlr_devctl_log. In preparing to document this, and based on actual use, we want something different for the SMART errors, so this will facilitate that. Sponsored by: Netflix Reviewed by: chuck, mav Differential Revision: https://reviews.freebsd.org/D44209
Configuration menu - View commit details
-
Copy full SHA for afa4908 - Browse repository at this point
Copy the full SHA afa4908View commit details -
nvme: Change devctl events for the controller
Change the devctl events slightly for the controller. SMART errors will log the changed bits in the NVME SMART Critical Warning State as its event. Reset will now emit 'event=start'. Soon more. Sponsored by: Netflix Reviewed by: mav Differential Revision: https://reviews.freebsd.org/D44210
Configuration menu - View commit details
-
Copy full SHA for fd42d01 - Browse repository at this point
Copy the full SHA fd42d01View commit details -
nvme: Log reset success or failure to devd
We're logging when we start a reset, but not when we complete it, nor the result. Create now log a success or timed_out event for the reset. Currently, the only detectable error we have from reset is 'failure to become ready in time,' though the code looks like it might be more generic. Log this and if we ever have other failure modes, change the logging to devd when that happens. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D44211
Configuration menu - View commit details
-
Copy full SHA for 65cb85f - Browse repository at this point
Copy the full SHA 65cb85fView commit details -
nvme: Add SMART WARNING for persistent memory region
NVME 2.0 added persistent memory regions, and this bit reports critical warnings / errors with those regions. Sponsored by: Netflix Reviewed by: mav Differential Revision: https://reviews.freebsd.org/D44213
Configuration menu - View commit details
-
Copy full SHA for 57cd0a6 - Browse repository at this point
Copy the full SHA 57cd0a6View commit details -
devd: Document the nvme devd events
Nvme informs devd of smart and reset controller events. Document them. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D44212
Configuration menu - View commit details
-
Copy full SHA for 265c130 - Browse repository at this point
Copy the full SHA 265c130View commit details -
devd: Add directory information
Devd searches /etc/devd and /usr/local/etc/devd by default (given the default devd.conf file). Document that here. Sponsored by: Netflix
Configuration menu - View commit details
-
Copy full SHA for 59df7aa - Browse repository at this point
Copy the full SHA 59df7aaView commit details -
bhyve/gdb: Avoid rebuilding target.xml for install targets
Otherwise it's impossible to install from a read-only objdir. Fixes: f81cdf2 ("bhyve: Add support for XML register definitions") Reported by: olivier
Configuration menu - View commit details
-
Copy full SHA for 28215cc - Browse repository at this point
Copy the full SHA 28215ccView commit details -
tarfs: Fix checksum on 32-bit platforms.
MFC after: 3 days Fixes: b56872332e47786afc09515a4daaf1388da4d73c Sponsored by: Juniper Networks, Inc. Sponsored by: Klara, Inc. Reviewed by: bapt Differential Revision: https://reviews.freebsd.org/D44261
Configuration menu - View commit details
-
Copy full SHA for 593aab3 - Browse repository at this point
Copy the full SHA 593aab3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 13c9839 - Browse repository at this point
Copy the full SHA 13c9839View commit details -
git subrepo pull --force sys/contrib/subrepo-openzfs
subrepo: subdir: "sys/contrib/subrepo-openzfs" merged: "85b23b348793" upstream: origin: "https://github.com/CTSRD-CHERI/zfs.git" branch: "cheri-hybrid" commit: "85b23b348793" git-subrepo: version: "0.4.6" origin: "???" commit: "???"
Configuration menu - View commit details
-
Copy full SHA for fdf7f5f - Browse repository at this point
Copy the full SHA fdf7f5fView commit details -
nullfs: Add the vfs.nullfs.cache_nodes sysctl to control nocache default
Differential revision: https://reviews.freebsd.org/D44217 MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for b319a49 - Browse repository at this point
Copy the full SHA b319a49View commit details -
if_bnxt: Fix media speed update issue in "ifconfig -m" during PHY hot…
… plug Currently, if a media type (e.g., DAC) is hot-plugged out and another type (e.g., optical cable) is hot-plugged in, the new speed is not reflected in ifconfig. This occurs when the driver fails to update speeds with unchanged tx and rx flow control. To fix, a phy_type check ensures update of phy speeds upon detecting the new phy. Reviewed by: imp Approved by: imp Differential revision: https://reviews.freebsd.org/D42951
Configuration menu - View commit details
-
Copy full SHA for 800add8 - Browse repository at this point
Copy the full SHA 800add8View commit details -
nvme_sim: Add comment about the is_failed test
We only see a request with a failed controller while we're in the process of failing the controller. Add a comment to that effect. Sponsored by: Netflix
Configuration menu - View commit details
-
Copy full SHA for b65bb91 - Browse repository at this point
Copy the full SHA b65bb91View commit details -
if_bnxt: Incorrect Labeling of Supported Medium in `ifconfig -m <inf>…
…` Command The 1G speed on DAC medium is incorrectly labeled as 1000baseT, it should be 1000baseCX. Updated the label accordingly. Reviewed by: imp Approved by: imp Differential revision: https://reviews.freebsd.org/D42952
Configuration menu - View commit details
-
Copy full SHA for 94c2d34 - Browse repository at this point
Copy the full SHA 94c2d34View commit details -
if_bnxt: Enabled support for 1G SX, CX, and LX forced speed settings
Enabled User Configuration of 1G Speed on Wh+ SFP28 Port with AOC cable. Reviewed by: imp Approved by: imp Differential revision: https://reviews.freebsd.org/D42953
Configuration menu - View commit details
-
Copy full SHA for a0f11c1 - Browse repository at this point
Copy the full SHA a0f11c1View commit details -
if_bnxt: Update Maximum Configurable MTU from 9000 to 9600
Increasing the maximum configurable MTU from 9000 to 9600 to align with the firmware's capability of handling an MTU up to 9600. Reviewed by: imp Approved by: imp Differential revision: https://reviews.freebsd.org/D42954
Configuration menu - View commit details
-
Copy full SHA for b1b39ad - Browse repository at this point
Copy the full SHA b1b39adView commit details -
if_bnxt: Update Firmware Header to Latest Version 1.10.2.136
Update Firmware Header to Latest Version 1.10.2.136. Reviewed by: imp Approved by: imp Differential revision: https://reviews.freebsd.org/D42955
Configuration menu - View commit details
-
Copy full SHA for 64dbeab - Browse repository at this point
Copy the full SHA 64dbeabView commit details -
if_bnxt: Integrate AOC Cable Support into Current 40G PHY Speed
Reviewed by: imp Approved by: imp Differential revision: https://reviews.freebsd.org/D429506
Configuration menu - View commit details
-
Copy full SHA for 0c63799 - Browse repository at this point
Copy the full SHA 0c63799View commit details -
if_bnxt: Implementation of Extended Port Hardware Stats Support for T…
…HOR Controller The newly added port extended hardware statistics are now accessible to users through the sysctl interface. Also, Few obsolete stats are removed and few stats are renamed. Reviewed by: imp Approved by: imp Differential revision: https://reviews.freebsd.org/D42957
Configuration menu - View commit details
-
Copy full SHA for 433a3c9 - Browse repository at this point
Copy the full SHA 433a3c9View commit details -
if_bnxt: Pluggable Module Display Support
This update enables the display of pluggable module information to users via the ifconfig utility. Reviewed by: imp Approved by: imp Differential revision: https://reviews.freebsd.org/D42958
Configuration menu - View commit details
-
Copy full SHA for 867811e - Browse repository at this point
Copy the full SHA 867811eView commit details -
if_bnxt: 50G, 100G and 200G PAM4 support
Add support for 50G, 100G and 200G PAM4 support Reviewed by: imp Approved by: imp Differential revision: https://reviews.freebsd.org/D42959
Configuration menu - View commit details
-
Copy full SHA for a3ebf82 - Browse repository at this point
Copy the full SHA a3ebf82View commit details -
if_bnxt: Set 1G/10G baseT force speed as auto speeds
The firmware lacks support for manually setting 1G and 10G baseT speeds. However, the driver can enable auto speed masks to achieve automatic configuration at these speeds. Reviewed by: imp Approved by: imp Differential revision: https://reviews.freebsd.org/D42960
Configuration menu - View commit details
-
Copy full SHA for 6c5c9f5 - Browse repository at this point
Copy the full SHA 6c5c9f5View commit details -
amend! if_bnxt: Integrate AOC Cable Support into Current 40G PHY Speed
if_bnxt: Integrate AOC Cable Support into Current 40G PHY Speed Reviewed by: imp Approved by: imp Differential revision: https://reviews.freebsd.org/D42956
Configuration menu - View commit details
-
Copy full SHA for 8769ce4 - Browse repository at this point
Copy the full SHA 8769ce4View commit details -
libc/iconv: don't export nonexistant symbols
It's unclear to me that any of these symbols ever existed. The ones I've spot checked are only mentioned in the initial Citrus iconv import (commit ad30f8e) and this code hasn't changed much over time. Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D44183
Configuration menu - View commit details
-
Copy full SHA for c052920 - Browse repository at this point
Copy the full SHA c052920View commit details -
libc/quad: narrow list of symbols exposed on i386
These symbols aren't present on i386 so don't try to expose them. Given the structure of quad/Makefile.inc, it might make more sense to have per-arch symbol maps here, but this is sufficent to build with WITHOUT_UNDEFINED_VERSION on i386. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D44243
Configuration menu - View commit details
-
Copy full SHA for 5502aec - Browse repository at this point
Copy the full SHA 5502aecView commit details -
libc/i386: don't attempt to export alloca
The assembly implementation was removed in 2006 (commit 3c03c70). Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D44242
Configuration menu - View commit details
-
Copy full SHA for 84ad08d - Browse repository at this point
Copy the full SHA 84ad08dView commit details -
I'd forgotten that we have to adjust the stderr tests from upstream. Remove the OK files. Also remove system-status.*. These restore the fixes I made in 517e52b which were lost when I imported the last version of awk. Also, force LANG to be C.UTF-8 when testing to ensure that stray lang settings don't fail tests. Sponsored by: Netflix
Configuration menu - View commit details
-
Copy full SHA for 0698c2b - Browse repository at this point
Copy the full SHA 0698c2bView commit details -
ObsoleteFiles.inc: add the awk tests I just remvoed
These files were bogusly added when I imported awk 2nd edition. Sponsored by: Netflix
Configuration menu - View commit details
-
Copy full SHA for fea8958 - Browse repository at this point
Copy the full SHA fea8958View commit details -
TCP LRO: disable mbuf queuing when packet filter hooks are in place
When doing mbuf queueing, the packet filter hooks in ether_demux(), ip_input(), and ip6_input() are by-passed. This means that the packet filters don't process incoming packets, which might result in connection failures. For example bypassing the TCP sequence number validation will result in dropping valid packets. Please note that this patch is only disabling mbuf queueing, not LRO. Reported by: Herbert J. Skuhra Reviewed by: glebius, rrs, rscheff MFC after: 1 week Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D43769
Configuration menu - View commit details
-
Copy full SHA for fe62536 - Browse repository at this point
Copy the full SHA fe62536View commit details -
TCP LRO: add dtrace probe points
Add the IP, UDP, and TCP receive static probes to the code path, which avoids if_input. Reviewed by: rrs, markj MFC after: 1 week` Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D43727
Configuration menu - View commit details
-
Copy full SHA for 1decd43 - Browse repository at this point
Copy the full SHA 1decd43View commit details -
Hyper-V: vPCI: fix cpu id mis-mapping in vmbus_pcib_map_msi()
The msi address contains apic id. The code in vmbus_pcib_map_msi() treats it as cpu id, which could cause mis-configuration of msix IRQs, leading to missing interrupts for SRIOV devices. This happens when apic id is not the same as cpu id on certain large VM sizes with multiple numa domains in Azure. Fix this issue by correctly mapping apic ids to cpu ids. On vPCI version before 1.4, it only supports up to 64 vcpus for msi/msix interrupt. This change also adds a check and returns error if the vcpu_id is greater than 63. Reported by: NetApp Tested by: whu MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for a4a454f - Browse repository at this point
Copy the full SHA a4a454fView commit details -
clk_fixed: call clkdom_dump() for verbose boot
This is standard practice for clock drivers that register clocks dynamically. Nothing else uses the CLK_DEBUG macro. The result is that the name and frequency of the fixed clock is printed for a verbose boot, which may aid in debugging. Reviewed by: manu MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D44265
Configuration menu - View commit details
-
Copy full SHA for 0e78d04 - Browse repository at this point
Copy the full SHA 0e78d04View commit details -
We may attach several of these devices, but there is no meaningful information added to dmesg. For example: ofwbus0: <Open Firmware Device Tree> clk_fixed0: <Fixed clock> on ofwbus0 clk_fixed1: <Fixed clock> on ofwbus0 clk_fixed2: <Fixed clock> on ofwbus0 clk_fixed3: <Fixed clock> on ofwbus0 clk_fixed4: <Fixed clock> on ofwbus0 clk_fixed5: <Fixed clock> on ofwbus0 clk_fixed6: <Fixed clock> on ofwbus0 clk_fixed7: <Fixed clock> on ofwbus0 clk_fixed8: <Fixed clock> on ofwbus0 clk_fixed9: <Fixed clock> on ofwbus0 clk_fixed10: <Fixed clock> on ofwbus0 clk_fixed11: <Fixed clock> on ofwbus0 To reduce this noise, quiet the devices for by default. For verbose boot, the message will be emitted. Reviewed by: manu MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D44266
Configuration menu - View commit details
-
Copy full SHA for c98a292 - Browse repository at this point
Copy the full SHA c98a292View commit details -
clkdom_dump(): improve output text
If the call to clknode_get_freq() returns an error (unlikely), report this, rather than printing the error code as the clock frequency. If the clock has no parent (e.g. a fixed reference clock), print "none" rather than "(NULL)(-1)". This is a more human-legible presentation of the same information. Reviewed by: manu MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D44267
Configuration menu - View commit details
-
Copy full SHA for 7d751fc - Browse repository at this point
Copy the full SHA 7d751fcView commit details -
simple_mfd: don't attach children twice
Trying to probe+attach the child device at the point it is added comes before the syscon handle is set up (if relevant). It will therefore be unavailable to the attach method which is expecting it, and the first attempt to attach the device will fail. Just rely on the call to bus_generic_attach() at the end of the function to perform probe+attach of dev's children. Reviewed by: manu MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D44268
Configuration menu - View commit details
-
Copy full SHA for 2959879 - Browse repository at this point
Copy the full SHA 2959879View commit details -
nullfs_mount(): remove unneeded cast
Sponsored by: The FreeBSD Foundation MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for 44a7e9a - Browse repository at this point
Copy the full SHA 44a7e9aView commit details -
to allow overwrite global default if needed. Sponsored by: The FreeBSD Foundation MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for d8e148b - Browse repository at this point
Copy the full SHA d8e148bView commit details -
mount_nullfs(8): document -o cache and vfs.nullfs.cache_vnodes
Sponsored by: The FreeBSD Foundation MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for 845e754 - Browse repository at this point
Copy the full SHA 845e754View commit details -
Configuration menu - View commit details
-
Copy full SHA for 06ae737 - Browse repository at this point
Copy the full SHA 06ae737View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3089cda - Browse repository at this point
Copy the full SHA 3089cdaView commit details -
crunchgen: slap a dependency on the generated makefile for .lo
crunchgen generates a foo.lo for each binary it will end up crunching into the final product. While they have a dependency on the libs that are used to link them, nothing will force relinking if the set of libs needed to link them is changed. Because of this, incremental builds may not be possible if one builds a version of, e.g., rescue/ with a broken set of libs specified for a project -- a subsequent fix won't be rolled in cleanly, it will require purging the rescue/ objdir. This is a bit crude, but the foo.mk we generate doesn't actually get regenerated all that often in practice, so a spurious relink for the vast majority of crunched objects won't actually happen all that often. Reviewed by: bapt, emaste, imp Differential Revision: https://reviews.freebsd.org/D43869
Configuration menu - View commit details
-
Copy full SHA for cfb1786 - Browse repository at this point
Copy the full SHA cfb1786View commit details