-
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 2023-04-21 #1721
Merge FreeBSD 2023-04-21 #1721
Commits on Apr 20, 2023
-
Have more accruate comments. While #if, #else, etc are copied to the header files, lines that don't start with # are not. And #include files are only output to sysinc (which winds up at the front of init_sysent.c which seems a bit odd). This is all radically undocumented, and likely has drifted somewhat from 4.4BSD and what other systems do (they've drifted too, fwiw). Sponsored by: Netflix
Configuration menu - View commit details
-
Copy full SHA for 559b94a - Browse repository at this point
Copy the full SHA 559b94aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 058aa79 - Browse repository at this point
Copy the full SHA 058aa79View commit details
Commits on Apr 21, 2023
-
Update meta.sys.mk and related local*mk
Move the setting of TARGET_SPEC_VARS to local.sys.env.mk so meta.sys.mk can do the processing, and include local.meta.sys.mk later. Move the setting of GENDIRDEPS_FILTER*_VARS from local.gendirdeps.mk to local.meta.sys.mk so we can automatically set DEP_* at level 1+ to avoid syntax errors when DEP_* variables are used in conditionals in Makefile.depend files. Update gendirdeps.mk just to get the documentation about the above. No functional change. local.dirdeps.mk be more careful about adding to DIRDEPS to avoid unnecessary overhead, and introducing cycles in the graph. Also set DEP_MACHINE_CPUARCH. Reviewed by: stevek Sponsored by: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D39737
Configuration menu - View commit details
-
Copy full SHA for f957a32 - Browse repository at this point
Copy the full SHA f957a32View commit details -
cxgbe(4): Update firmwares to version 1.27.3.0
These are the changes since the last update (copy-pasted from the release notes for Chelsio Unified Wire v3.18.0.0): ==================== Version : 1.27.3.0 Date : 04/07/2023 Fixes ----- BASE: - Fixed a hang if module eeprom reads gives invalid data. - KR backlplane no-fec link problem fixed. OFLD: - iscsi ddp errors fixed. - iwarp connection abort in rare cases causing NIC traffic hang fixed. ENHANCEMENTS ------------ BASE: - Cisco GLC-TE 1G modules support added. ==================== Version : 1.27.1.0 Date : 12/02/2022 Fixes ----- BASE: - memwrite dsgl cannot be used for T5. OFLD: - Enabled FCoE in SO adapters. - TOE-TLS crash fixed. - iscsi hang fixed. MFC after: 2 weeks Sponsored by: Chelsio Communications
Configuration menu - View commit details
-
Copy full SHA for ca5391b - Browse repository at this point
Copy the full SHA ca5391bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 552815b - Browse repository at this point
Copy the full SHA 552815bView commit details -
bsdinstall avoid subdir depending on parent
When not doing tree walks, it is bad for sub-dirs to depend on parents. Move the generation of opt_osname.h to distextract and have others that need that depend on it. In usr.sbin/bsdinstall use SUBDIR_DEPEND_ so tree walking still works. Reviewed by: obrien Differential Revision: https://reviews.freebsd.org/D39742
Configuration menu - View commit details
-
Copy full SHA for 0c3627f - Browse repository at this point
Copy the full SHA 0c3627fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8fc68c1 - Browse repository at this point
Copy the full SHA 8fc68c1View commit details -
syscall.master: Remove stray 4.2
Back in 4.3BSD, the system call table wasn't generated, and there was an entry: "4.2 sigreturn", /* 139 = old 4.2 sigreturn */ This got converted to 139 OBSOL 0 4.2 sigreturn in 4.3 RENO. Since it was obsolete, nothing bad happened. In fact, there was code in makeyscalls.sh to cope: { comment = $4 for (i = 5; i <= NF; i++) comment = comment " " $i if (NF < 5) $5 = $4 } so the generated comment in syscalls.c was almost correct: "obs_4.2", /* 139 = obsolete 4.2 sigreturn */ a bug that we have to this very day, despite makesyscalls.sh being rewritten in lua. However, this historical wart is the only place in our current syscalls.master file where we have an extra field for the 'not generated' class of system calls. Remove the historical wart so that the re-write of makesyscalls.lua can be simpler (so, I hope, qemu's bsd-user can large swathes of code automatically generated too). This should help make things more understandable (changes to simplify makesyscalls.lue aren't quite debugged, so have to wait for another day). There's 3 different obsolete sigreturns (but only 1 that was ever in FreeBSD 2.x and newer). Sponsored by: Netflix
Configuration menu - View commit details
-
Copy full SHA for 602b575 - Browse repository at this point
Copy the full SHA 602b575View commit details -
The 4.2 sigreturn was a bit of a enima so the 4.2 was remove. Regenerate to cope the very minor changes in comments and one string. Sponsored by: Netflix
Configuration menu - View commit details
-
Copy full SHA for 9abba78 - Browse repository at this point
Copy the full SHA 9abba78View commit details -
linuxkpi: Fix __sg_alloc_table_from_pages loop
Commit 3e0856b updated __sg_alloc_table_from_pages to use the same API as linux, but modified the loop condition when going over the pages in a sg list. Part of the change included moving the sg_next call out of the for loop and into the body, which causes an off by one error when traversing the list. Since sg_next is called before the loop body it will skip the first element and read one past the last element. This caused panics when running PRIME with nvidia-drm as the off-by-one issue causes a NULL dereference. Reviewed by: bz, hselasky Differential Revision: https://reviews.freebsd.org/D39628 Fixes: 3e0856b ("linuxkpi: Fix `sg_alloc_table_from_pages()` to have the same API as Linux")
Configuration menu - View commit details
-
Copy full SHA for 3f68653 - Browse repository at this point
Copy the full SHA 3f68653View commit details -
mpr: fix copying of event_mask
Before the commit 6cc44223cb6717795afdac4348bbe7e2a968a07d the field event_mask was fully copied to the EventMasks field. After this commit the event_mask (uint8_t) is 4 times casted to EventMask (uint32_t). Because of that 24 bits of each event_mask array is lost. This commits brings back simple copying of field, and after words converting 32 bits field to the requested endian. I don't think we need more sophisticated method, as the array is of size 4 (for 32 bits version). Reviewed by: imp MFC after: 1 week Sponsored by: Klara Inc. Differential Revision: https://reviews.freebsd.org/D39562
Configuration menu - View commit details
-
Copy full SHA for ea6597c - Browse repository at this point
Copy the full SHA ea6597cView commit details -
mpr: don't use hardcoded value in debug branch
Pointed out by: imp Sponsored by: Klara Inc.
Configuration menu - View commit details
-
Copy full SHA for 444c661 - Browse repository at this point
Copy the full SHA 444c661View commit details -
* Align 'on <interface>' parameter with the BNF, so use 'on <ifspec>' * Clarify etherprotospec BNF, to make it clearer that only numbers are supported. Suggested by: Christian McDonald Sponsored by: Rubicon Communications, LLC ("Netgate")
Configuration menu - View commit details
-
Copy full SHA for 4bfffd8 - Browse repository at this point
Copy the full SHA 4bfffd8View commit details -
tcp: hpts needs to still call output even after input.
The other stacks it turns out actually expect the output to be called and can become stuck if it is not. This is because they run there timer code from there and the input routine does not always assure a timer is running. The real longterm fix here might be to go into the other stacks (rack and bbr) and make sure that a timer is running after input if you don't do output.. as well as call the timer functions. This would cut down on calls from hpts. But I think its too dramatic of a change for the immediate time. Reviewed by: tuexen, glebius Sponsored by: Netflix Inc Differential Revision:https://reviews.freebsd.org/D39738
Randall Stewart authored and Randall Stewart committedApr 21, 2023 Configuration menu - View commit details
-
Copy full SHA for 0121626 - Browse repository at this point
Copy the full SHA 0121626View commit details -
riscv: Compile instr_size.c into the kernel when DTrace is configured
Reported by: Jenkins Fixes: 080e56a ("dtrace: expose dtrace_instr_size() to userland and implement it for riscv")
Configuration menu - View commit details
-
Copy full SHA for 92fa22c - Browse repository at this point
Copy the full SHA 92fa22cView commit details -
There's no need to quote the # here. Inside of regexp, it's not treated like a comment from an awk perspective. And inside if '' it's not treated as special by the shell. gawk also warns. Sponsored by: Netflix
Configuration menu - View commit details
-
Copy full SHA for 2c19bee - Browse repository at this point
Copy the full SHA 2c19beeView commit details -
If it doesn't exist, we don't need it in the table... Sponsored by: Netflix
Configuration menu - View commit details
-
Copy full SHA for e63690e - Browse repository at this point
Copy the full SHA e63690eView commit details -
Need to regen freebsd32 as well when sys/kern/syscalls.master is updated. Sponsored by: Netflix
Configuration menu - View commit details
-
Copy full SHA for 7b42f33 - Browse repository at this point
Copy the full SHA 7b42f33View commit details -
llvm: fix some llvm-* tool links when WITH_LLVM_BINUTILS is set
A few Makefiles overrode LINKS and MLINKS when WITH_LLVM_BINUTILS was set, which caused some llvm- prefixed tools to disappear. One such case was llvm-ranlib, which some ports invoke explicitly. Use += when adding to LINKS and MLINKS under WITH_LLVM_BINUTILS. PR: 270955, 270956, 270959 Submitted by: jbeich Reviewed by: arichardson Fixes: 021385a ("Add WITH_LLVM_BINUTILS to install LLVM binuti...") Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D39747
Configuration menu - View commit details
-
Copy full SHA for 41df1d6 - Browse repository at this point
Copy the full SHA 41df1d6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5d3e716 - Browse repository at this point
Copy the full SHA 5d3e716View commit details -
llvm-strings: Install as strings when WITH_LLVM_BINUTILS=YES
Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D32065
Configuration menu - View commit details
-
Copy full SHA for 81fa5c4 - Browse repository at this point
Copy the full SHA 81fa5c4View commit details
Commits on Jun 20, 2023
-
tmpfs: unbreak module build outside of kernel build environment
MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for 8a7ee97 - Browse repository at this point
Copy the full SHA 8a7ee97View commit details -
KASAN: add bus_space*read*_8 for aarch64
Add the remaining bus_space*read*_8 functions conditionally for only arm64 in order to not break KASAN builds with new code using one of them. Suggested by: markj Reviewed by: markj MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D39581
Configuration menu - View commit details
-
Copy full SHA for 2bab57e - Browse repository at this point
Copy the full SHA 2bab57eView commit details -
zfs: don't use zfs_freebsd_copy_file_range
There is one data corruption problem reported and fixed upstream, not cherry-picked here yet. On top of it the following fires under load: VERIFY(zil_replaying(zfsvfs->z_log, tx)); The patch which introduced the entire machinery is a revert candidate, but as the machinery came with a dedicated feature flag, doing so would render affected pools read-only at best. To be figured out. As a temporary bandaid at least stop the active usage. Note this patch does not make the feature disappear from zpool upgrade. Sponsored by: Rubicon Communications, LLC ("Netgate")
Configuration menu - View commit details
-
Copy full SHA for f6062b7 - Browse repository at this point
Copy the full SHA f6062b7View commit details -
zfs: Revert "ZFS_IOC_COUNT_FILLED does unnecessary txg_wait_synced()"
This reverts commit 5198511. It results in data corruption, see: openzfs/zfs#14753 Sponsored by: Rubicon Communications, LLC ("Netgate")
Configuration menu - View commit details
-
Copy full SHA for 22495b1 - Browse repository at this point
Copy the full SHA 22495b1View commit details -
cam: Properly mask out the status bits to get completion code
ccb_h.status has two parts: the actual status and some addition bits to indicate additional information. It must be masked before comparing against completion codes. Add new inline function cam_ccb_success to simplify this to test whether or not the request succeeded. Most of the code already does this, but a few places don't (the rest likely should be converted to use cam_ccb_status and/or cam_ccb_success, but that's for another day). This caused at least one bug in recognizing devices behind a SATA port multiplexer, though some of these checks were fine with the special knowledge of the code paths involved. PR: 270459 Sponsored by: Netflix MFC After: 1 week (and maybe a EN requst) Reviewed by: ken, mav Differential Revision: https://reviews.freebsd.org/D39572
Configuration menu - View commit details
-
Copy full SHA for f2157d4 - Browse repository at this point
Copy the full SHA f2157d4View commit details -
cam: fix up world compilation after previous
Sponsored by: Rubicon Communications, LLC ("Netgate")
Configuration menu - View commit details
-
Copy full SHA for 29f9c4d - Browse repository at this point
Copy the full SHA 29f9c4dView commit details -
cam: Include stdbool.h for userland
Sponsored by: Netflix
Configuration menu - View commit details
-
Copy full SHA for e99d385 - Browse repository at this point
Copy the full SHA e99d385View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5de082a - Browse repository at this point
Copy the full SHA 5de082aView commit details -
loader: lua: unload the kernel when changing BEs
Usually the kernel is loaded later, but there are circumstances where it could have been loaded earlier than changing BEs. Unload anything that is already there so that we know we're using artifacts from the proper environment. PR: 265471 Reviewed by: kevans MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for 45d8c1e - Browse repository at this point
Copy the full SHA 45d8c1eView commit details -
loader: lua: disable autoboot timer after password entry
In the lua loader, if one sets a password in loader.conf, the autoboot_delay timer will start before the menu is displayed. One can interrupt the autoboot and bring up the menu by entering a keyboard character before the timer expires. If this is done a prompt for the password is displayed. Entering the password will bring up the menu, but the timer will again start and another keyboard character must be entered or autoboot will abort the menu and boot the system. PR: 265472 Reviewed by: kevans MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for 560933c - Browse repository at this point
Copy the full SHA 560933cView commit details -
Quiet compiler warnings for fget_noref and fdget_noref
Summary: Typecasting both parts of the comparison to u_int quiets compiler warnings about signed/unsigned comparison and takes care of positive and negative numbers for the file descriptor in a single comparison. Obtained from: Juniper Netwowrks, Inc. Reviewers: mjg Subscribers: imp Differential Revision: https://reviews.freebsd.org/D39593
Configuration menu - View commit details
-
Copy full SHA for cc0aed2 - Browse repository at this point
Copy the full SHA cc0aed2View commit details -
grdc.6: Add an ENVIRONMENT section
- Add an ENVIRONMENT section Obtained from: OpenBSD MFC after: 5 days
Configuration menu - View commit details
-
Copy full SHA for 2fc55d0 - Browse repository at this point
Copy the full SHA 2fc55d0View commit details -
morse.6: Mention to standards in the SEE ALSO section
Mention ITU-T Recommendation F.1 and ITU-R M.1677-1 in the SEE ALSO section. Obtained from: OpenBSD MFC after: 5 days
Configuration menu - View commit details
-
Copy full SHA for f86f854 - Browse repository at this point
Copy the full SHA f86f854View commit details -
procctl: add state flags to PROC_REAP_GETPIDS reports
For a process supervisor using the reaper API to track process subtrees, it is very useful to know the state of the processes on the list. Sponsored by: https://www.patreon.com/valpackett Reviewed by: kib MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D39585
Configuration menu - View commit details
-
Copy full SHA for 7a72d4a - Browse repository at this point
Copy the full SHA 7a72d4aView commit details -
makefs: remove unused cd9660 options
Makefs defined "follow-symlinks" and "help" options, but they did nothing. Remove them. Obtained from: OpenBSD a8f1645688c2 Sponsored by: The FreeBSD Foundation
Configuration menu - View commit details
-
Copy full SHA for e4039fd - Browse repository at this point
Copy the full SHA e4039fdView commit details -
Add new privilege PRIV_KDB_SET_BACKEND
Summary: Check for PRIV_KDB_SET_BACKEND before allowing a thread to change the KDB backend. Obtained from: Juniper Networks, Inc. Reviewers: sjg, emaste Subscribers: imp Differential Revision: https://reviews.freebsd.org/D39538
Configuration menu - View commit details
-
Copy full SHA for 45de116 - Browse repository at this point
Copy the full SHA 45de116View commit details -
Configuration menu - View commit details
-
Copy full SHA for d4f0d00 - Browse repository at this point
Copy the full SHA d4f0d00View commit details -
makefs: call brelse from bread
This matches NetBSD and rationalizes makefs with the kernel API. This reverts commit 370e009. Reviewed by: mckusick Sponsored by: The FreeBSD Foundation Obtained from: NetBSD 0a62dad69f62, 0c4125e1a19f, cb6a5a3575fd Differential Revision: https://reviews.freebsd.org/D39070
Configuration menu - View commit details
-
Copy full SHA for fd26e2f - Browse repository at this point
Copy the full SHA fd26e2fView commit details -
mac_veriexec: add mac_priv_grant check for NODEV
Allow other MAC modules to override some veriexec checks. We need two new privileges: PRIV_VERIEXEC_DIRECT process wants to override 'indirect' flag on interpreter PRIV_VERIEXEC_NOVERIFY typically associated with PRIV_VERIEXEC_DIRECT allow override of O_VERIFY We also need to check for PRIV_VERIEXEC_NOVERIFY override for FINGERPRINT_NODEV and FINGERPRINT_NOENTRY. This will only happen if parent had PRIV_VERIEXEC_DIRECT override. This allows for MAC modules to selectively allow some applications to run without verification. Needless to say, this is extremely dangerous and should only be used sparingly and carefully. Obtained from: Juniper Networks, Inc. Reviewers: sjg Subscribers: imp, dab Differential Revision: https://reviews.freebsd.org/D39537
Configuration menu - View commit details
-
Copy full SHA for c776dd8 - Browse repository at this point
Copy the full SHA c776dd8View commit details -
sys/modules/Makefile: add MAC/veriexec modules into the build
Build the MAC/veriexec module and the SHA2, SHA256, SHA384, and SHA512 fingerprint modules. Obtained from: Juniper Networks, Inc.
Configuration menu - View commit details
-
Copy full SHA for c2ff89f - Browse repository at this point
Copy the full SHA c2ff89fView commit details -
veriexec: allow sha512 fingerprint in manifest parser
MAC/veriexec already supports SHA512 fingerprints, therefore the veriexec program should also. Reviewed by: sjg
Configuration menu - View commit details
-
Copy full SHA for 14b8c7a - Browse repository at this point
Copy the full SHA 14b8c7aView commit details -
sys/modules/Makefile: conditionally add MAC/veriexec modules
Only build MAC/veriexec modules when MK_VERIEXEC is yes or we are building all modules. Add VERIEXEC knob to kernel __DEFAULT_NO_OPTIONS Reviewed by: sjg Obtained from: Juniper Networks, Inc.
Configuration menu - View commit details
-
Copy full SHA for 90e043b - Browse repository at this point
Copy the full SHA 90e043bView commit details -
getopt(3) returns int type not char. Using char triggers the -Wtautological-constant-out-of-range-compare warning with clang. Change the type of the variable used for holding the return value of getopt(3) to int to match the prototype and eliminate the warning. MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for be40bec - Browse repository at this point
Copy the full SHA be40becView commit details -
Fix handling of local.dirdeps-missing.mk we need to reset DEP_RELDIR and DIRDEPS just as if including a Makefile.depend* Also fix a typo in DIRDEP_LOADAVG_REPORT and improve debug output. Reviewed by: stevek
Configuration menu - View commit details
-
Copy full SHA for 30b9782 - Browse repository at this point
Copy the full SHA 30b9782View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2177efb - Browse repository at this point
Copy the full SHA 2177efbView commit details -
meta2deps - add checks to detect truncated/corrupted filemon data (only known to happen on Linux hosts), to ensure we do not auto update dependencies based on incomplete data. meta.stage.mk adds STAGE_SHLIB_LINKS_FILTER and STAGE_LINK_AS_* We also allow for hosts where egrep is deprecated for grep -E Reviewed by: stevek
Configuration menu - View commit details
-
Copy full SHA for 648ff6f - Browse repository at this point
Copy the full SHA 648ff6fView commit details -
zfs: cherry-pick openzfs/zfs@c71fe7164
Fix data corruption when cloning embedded blocks Don't overwrite blk_phys_birth, as for embedded blocks it is part of the payload. Reviewed-by: Richard Yao <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Pawel Jakub Dawidek <[email protected]> Issue #13392 Closes #14739 Approved by: oshogbo, mm
Configuration menu - View commit details
-
Copy full SHA for 02faf6a - Browse repository at this point
Copy the full SHA 02faf6aView commit details -
The zfs_log_clone_range() function is never called from the zfs_clone_range_replay() function, so I assumed it is safe to assert that zil_replaying() is never TRUE here. It turns out zil_replaying() also returns TRUE when the sync property is set to disabled. Fix the problem by just returning if zil_replaying() returns TRUE. Reported by: Florian Smeets Signed-off-by: Pawel Jakub Dawidek [email protected] Approved by: oshogbo, mm
Configuration menu - View commit details
-
Copy full SHA for 64c3a7c - Browse repository at this point
Copy the full SHA 64c3a7cView commit details -
vnet: Fix a typo in a source code comment
- s/form/from/ MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for 43dff7c - Browse repository at this point
Copy the full SHA 43dff7cView commit details -
lagg(4): Correctly define some sysctl variables
939a050 virtualized lagg(4), but the corresponding sysctl of some virtualized global variables are not marked with CTLFLAG_VNET. A try to operate on those variables via sysctl will effectively go to the 'master' copies and the virtualized ones are not read or set accordingly. As a side effect, on updating the 'master' copy, the virtualized global variables of newly created vnets will have correct values. PR: 270705 Reviewed by: kp Fixes: 939a050 Virtualize lagg(4) cloner MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D39467
Configuration menu - View commit details
-
Copy full SHA for d519e7f - Browse repository at this point
Copy the full SHA d519e7fView commit details -
zfs: Add vfs.zfs.bclone_enabled sysctl.
Keep block cloning disabled by default for now, but allow to enable and use it after setting vfs.zfs.bclone_enabled to 1, so people can easily try it. Approved by: oshogbo Reviewed by: mm, oshogbo Differential Revision: https://reviews.freebsd.org/D39613
Configuration menu - View commit details
-
Copy full SHA for bf13ed1 - Browse repository at this point
Copy the full SHA bf13ed1View commit details -
tests: add ktest modules to build
MFC after: 2 weeks
Configuration menu - View commit details
-
Copy full SHA for 66cd93d - Browse repository at this point
Copy the full SHA 66cd93dView commit details -
netlink: fix operations with link-local routes/gateways.
MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for 02966ce - Browse repository at this point
Copy the full SHA 02966ceView commit details -
makefs: use unsigned and %u for rock_ridge_move_count
For diff reduction against NetBSD's makefs. Based on NetBSD git mirror commit 00991aee8248. With this change our makefs cd9660 support should be in sync up to NetBSD commit bdae6c9dc792 ("makefs(8): Nix trailing whitespace."). Sponsored by: The FreeBSD Foundation
Configuration menu - View commit details
-
Copy full SHA for f6ea4b0 - Browse repository at this point
Copy the full SHA f6ea4b0View commit details -
makefs: remove unused variable
Reported by: Clang Sponsored by: The FreeBSD Foundation
Configuration menu - View commit details
-
Copy full SHA for 2ee71b7 - Browse repository at this point
Copy the full SHA 2ee71b7View commit details -
tests: make ktest build on ppc.
MFC after: 2 weeks
Configuration menu - View commit details
-
Copy full SHA for c5e81da - Browse repository at this point
Copy the full SHA c5e81daView commit details -
riscv: save the thread pointer in both modes
The contents of frame->tf_tp are uninitialized if accessed by DTrace (in probe context), resulting in a panic when trying to access the memory pointed to by tp. This saves the thread pointer to the trap frame when handling both userland and kernel exceptions. Reviewed by: markj, mhorne MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D39582
Configuration menu - View commit details
-
Copy full SHA for 3ee393a - Browse repository at this point
Copy the full SHA 3ee393aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 702c339 - Browse repository at this point
Copy the full SHA 702c339View commit details -
veriexec: Additional functionality for MAC/veriexec
Ensure veriexec opens the file before doing any read operations. When the MAC_VERIEXEC_CHECK_PATH_SYSCALL syscall is requested, veriexec needs to open the file before calling mac_veriexec_check_vp. This is to ensure any set up is done by the file system. Most file systems do not explicitly need an open, but some (e.g. virtfs) require initialization of access tokens (file identifiers, etc.) before doing any read or write operations. The evaluate_fingerprint() function needs to ensure it has an open file for reading in order to evaluate the fingerprint. The ideal solution is to have a hook after the VOP_OPEN call in vn_open. For now, we open the file for reading, envaluate the fingerprint, and close the file. While this leaves a potential hole that could possibly be taken advantage of by a dedicated aversary, this code path is not typically visited often in our use cases, as we primarily encounter verified mounts and not individual files. This should be considered a temporary workaround until discussions about the post-open hook have concluded and the hook becomes available. Add MAC_VERIEXEC_GET_PARAMS_PATH_SYSCALL and MAC_VERIEXEC_GET_PARAMS_PID_SYSCALL to mac_veriexec_syscall so we can fetch and check label contents in an unconstrained manner. Add a check for PRIV_VERIEXEC_CONTROL to do ioctl on /dev/veriexec Make it clear that trusted process cannot be debugged. Attempts to debug a trusted process already fail, but the failure path is very obscure. Add an explicit check for VERIEXEC_TRUSTED in mac_veriexec_proc_check_debug. We need mac_veriexec_priv_check to not block PRIV_KMEM_WRITE if mac_priv_gant() says it is ok. Reviewed by: sjg Obtained from: Juniper Networks, Inc.
Configuration menu - View commit details
-
Copy full SHA for ecc3717 - Browse repository at this point
Copy the full SHA ecc3717View commit details -
veriexec: mac_veriexec_syscall compat32 support
Some 32bit apps may need to be able to use MAC_VERIEXEC_GET_PARAMS_PID_SYSCALL MAC_VERIEXEC_GET_PARAMS_PATH_SYSCALL Therefore compat32 support is required. Obtained from: Juniper Networks, Inc.
Configuration menu - View commit details
-
Copy full SHA for d7296dc - Browse repository at this point
Copy the full SHA d7296dcView commit details -
veriexec: Add option MAC_VERIEXEC_DEBUG
Obtained from: Juniper Networks, Inc.
Configuration menu - View commit details
-
Copy full SHA for f84f0ef - Browse repository at this point
Copy the full SHA f84f0efView commit details -
veriexec: Rename old VERIEXEC_SIGNED_LOAD as VERIEXEC_SIGNED_LOAD32
We need to handle old ioctl from old binary. Add some missing ioctls. Obtained from: Juniper Networks, Inc.
Configuration menu - View commit details
-
Copy full SHA for f195d44 - Browse repository at this point
Copy the full SHA f195d44View commit details -
libveriexec: add function to check a label based on a path
veriexec_check_path_label() can be used to check if a specified path has a label associated with it that contains the what we want. Obtained from: Juniper Networks, Inc.
Configuration menu - View commit details
-
Copy full SHA for eabd498 - Browse repository at this point
Copy the full SHA eabd498View commit details -
veriexec: Add function to get label associated with a file
Add mac_veriexec_metadata_get_file_label to avoid the need to expose internals to other MAC modules. Obtained from: Juniper Networks, Inc.
Configuration menu - View commit details
-
Copy full SHA for 143c032 - Browse repository at this point
Copy the full SHA 143c032View commit details -
sqlite3: Vendor import of sqlite3 3.41.2
Release notes at https://www.sqlite.org/releaselog/3_41_2.html. Obtained from: https://www.sqlite.org/2023/sqlite-autoconf-3410200.tar.gz MFC after: 2 weeks Merge commit '853a43f7c79218855a6e45a25a00b942972e3fa1'
Configuration menu - View commit details
-
Copy full SHA for ceab57f - Browse repository at this point
Copy the full SHA ceab57fView commit details -
tcp_hpts: use queue(9) STAILQ for the input queue
Reviewed by: rrs Differential Revision: https://reviews.freebsd.org/D39574
Configuration menu - View commit details
-
Copy full SHA for 599d156 - Browse repository at this point
Copy the full SHA 599d156View commit details -
net: replace IFF_KNOWSEPOCH with IFF_NEEDSEPOCH
Expect that drivers call into the network stack with the net epoch entered. This has already been the fact since early 2020. The net interrupts, that are marked with INTR_TYPE_NET, were entering epoch since 511d1af. For the taskqueues there is NET_TASK_INIT() and all drivers that were known back in 2020 we marked with it in 6c3e93c. However in e87c494 we took conservative approach and preferred to opt-in rather than opt-out for the epoch. This change not only reverts e87c494 but adds a safety belt to avoid panicing with INVARIANTS if there is a missed driver. With INVARIANTS we will run in_epoch() check, print a warning and enter the net epoch. A driver that prints can be quickly fixed with the IFF_NEEDSEPOCH flag, but better be augmented to properly enter the epoch itself. Note on TCP LRO: it is a backdoor to enter the TCP stack bypassing some layers of net stack, ignoring either old IFF_KNOWSEPOCH or the new IFF_NEEDSEPOCH. But the tcp_lro_flush_all() asserts the presence of network epoch. Indeed, all NIC drivers that support LRO already provide the epoch, either with help of INTR_TYPE_NET or just running NET_EPOCH_ENTER() in their code. Reviewed by: zlei, gallatin, erj Differential Revision: https://reviews.freebsd.org/D39510
Configuration menu - View commit details
-
Copy full SHA for af4cb17 - Browse repository at this point
Copy the full SHA af4cb17View commit details -
Suppress lld 16 errors about undefined symbols in version maps
lld >= 16 turned on --no-undefined-version by default, which results in errors whenever symbols are mentioned in version maps, but are not actually defined in the binary. Since we have quite a few instances of symbols that are defined or not, depending on various compile-time settings, suppress this lld check for the time being. MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for b7558b0 - Browse repository at this point
Copy the full SHA b7558b0View commit details -
bsnmp: make single bit bitfields unsigned to avoid clang 16 warning
Clang 16 introduced a warning about single bit bitfields in structs, which is triggered by a declaration in bsnmp's snmpd.h: contrib/bsnmp/snmpd/trans_lsock.c:271:21: error: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Werror,-Wsingle-bit-bitfield-constant-conversion] peer->input.stream = 1; ^ ~ Signed one-bit bitfields can only have values -1 and 0, but the intent here is to use the field as a boolean, so make it unsigned. MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for 022f020 - Browse repository at this point
Copy the full SHA 022f020View commit details -
libsa: make single bit bitfields unsigned to avoid clang 16 warning
Clang 16 introduced a warning about single bit bitfields in structs, which is triggered by a declaration in libsa's tftp.c: stand/libsa/tftp.c:382:20: error: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Werror,-Wsingle-bit-bitfield-constant-conversion] h->islastblock = 1; /* very short file */ ^ ~ stand/libsa/tftp.c:432:18: error: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Werror,-Wsingle-bit-bitfield-constant-conversion] h->islastblock = 1; /* EOF */ ^ ~ Signed one-bit bitfields can only have values -1 and 0, but the intent here is to use the field as a boolean, so make it unsigned. MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for 781e696 - Browse repository at this point
Copy the full SHA 781e696View commit details -
libarchive: make single bit bitfields unsigned to avoid clang 16 warning
Clang 16 introduced a warning about single bit bitfields in structs, which is triggered by various declarations in libarchive: contrib/libarchive/libarchive/archive_write_set_format_7zip.c:1541:13: error: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Werror,-Wsingle-bit-bitfield-constant-conversion] file->dir = 1; ^ ~ contrib/libarchive/libarchive/archive_write_set_format_iso9660.c:5127:15: error: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Werror,-Wsingle-bit-bitfield-constant-conversion] isoent->dir = 1; ^ ~ contrib/libarchive/libarchive/archive_write_set_format_iso9660.c:5213:14: error: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Werror,-Wsingle-bit-bitfield-constant-conversion] isoent->dir = 1; ^ ~ contrib/libarchive/libarchive/archive_write_set_format_iso9660.c:5214:18: error: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Werror,-Wsingle-bit-bitfield-constant-conversion] isoent->virtual = 1; ^ ~ contrib/libarchive/libarchive/archive_write_set_format_iso9660.c:7149:18: error: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Werror,-Wsingle-bit-bitfield-constant-conversion] isoent->virtual = 1; ^ ~ contrib/libarchive/libarchive/archive_write_set_format_iso9660.c:7435:32: error: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Werror,-Wsingle-bit-bitfield-constant-conversion] iso9660->zisofs.detect_magic = 1; ^ ~ contrib/libarchive/libarchive/archive_write_set_format_iso9660.c:7495:25: error: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Werror,-Wsingle-bit-bitfield-constant-conversion] iso9660->zisofs.making = 1; ^ ~ contrib/libarchive/libarchive/archive_write_set_format_iso9660.c:7496:26: error: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Werror,-Wsingle-bit-bitfield-constant-conversion] iso9660->zisofs.allzero = 1; ^ ~ contrib/libarchive/libarchive/archive_write_set_format_iso9660.c:7702:28: error: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Werror,-Wsingle-bit-bitfield-constant-conversion] iso9660->zisofs.allzero = 1; ^ ~ contrib/libarchive/libarchive/archive_write_set_format_iso9660.c:7871:25: error: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Werror,-Wsingle-bit-bitfield-constant-conversion] zisofs->header_passed = 1; ^ ~ contrib/libarchive/libarchive/archive_write_set_format_iso9660.c:7894:24: error: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Werror,-Wsingle-bit-bitfield-constant-conversion] zisofs->initialized = 1; ^ ~ Signed one-bit bitfields can only have values -1 and 0, but the intent here is to use the fields as booleans, so make them unsigned. This has also been sent upstream. MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for e3f2068 - Browse repository at this point
Copy the full SHA e3f2068View commit details -
Suppress lld 16 errors about multiply defined symbols in rescue
lld >= 16 became more strict about multiply defined symbols. Since there are many of those in crunchgen'd programs, turn off the check when linking the rescue binary. MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for 7a6df3b - Browse repository at this point
Copy the full SHA 7a6df3bView commit details -
Configuration menu - View commit details
-
Copy full SHA for a8dd54e - Browse repository at this point
Copy the full SHA a8dd54eView commit details -
Move include of site.src.opts.mk to allow more control
Sometimes a site may have different policy needs, include site.src.opts.mk just before bsd.mkopt.mk to allow more control. Reviewed by: imp
Configuration menu - View commit details
-
Copy full SHA for d99dc48 - Browse repository at this point
Copy the full SHA d99dc48View commit details -
Include bsd.linker.mk to get LINKER_TYPE and VERSION in rescue
To be able to use these make variables, you also have to include bsd.linker.mk, apparently. Fixes: 458f472 MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for 393f2c3 - Browse repository at this point
Copy the full SHA 393f2c3View commit details -
geom: use bool for one-bit wide bit-field
A one-bit wide bit-field can take only the values 0 and -1. Clang 16 introduced a warning that "implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1". Fix by using c99 bool. Reported by: Clang, via dim Reviewed by: dim Sponsored by: The FreeBSD Foundation
Configuration menu - View commit details
-
Copy full SHA for 314fc11 - Browse repository at this point
Copy the full SHA 314fc11View commit details -
renice: Avoid segfault if -n flag is given without argument.
Fixes: 65ee0a8 MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D39623
Configuration menu - View commit details
-
Copy full SHA for bf5375e - Browse repository at this point
Copy the full SHA bf5375eView commit details -
xargs: improve foundeof check for -E
4aeb638 got it almost correct (we can't use strcmp() here as current argument isn't guaranteed to be NUL-terminated), but we also need to check that current argument length is equal to that of eofstr. PR: 270867 Reviewed by: bapt Differential Revision: https://reviews.freebsd.org/D39583
Configuration menu - View commit details
-
Copy full SHA for 8a317ff - Browse repository at this point
Copy the full SHA 8a317ffView commit details -
unionfs: remove LK_UPGRADE if falling back to the standard lock
The LK_UPGRADE operation may have temporarily dropped the upper or lower vnode's lock. If the unionfs vnode was reclaimed during that window, its lock field will be reset to no longer point at the upper/lower vnode lock, so the lock operation will use the standard lock stored in v_lock. Remove LK_UPGRADE from the flags in this case to avoid a lockmgr assertion, as this lock has not been previously owned by the calling thread. Reported by: pho Tested by: pho Reviewed by: kib, markj Differential Revision: https://reviews.freebsd.org/D39272
Configuration menu - View commit details
-
Copy full SHA for 4d11bee - Browse repository at this point
Copy the full SHA 4d11beeView commit details -
Remove an impossible condition from unionfs_lock()
We hold the vnode interlock, so vnode private data cannot suddenly become NULL. Tested by: pho Reviewed by: kib, markj Differential Revision: https://reviews.freebsd.org/D39272
Configuration menu - View commit details
-
Copy full SHA for dc6700f - Browse repository at this point
Copy the full SHA dc6700fView commit details -
The implementation is racy; if the unionfs vnode is not in fact locked, vnode private data may be concurrently altered or freed. Instead, simply rely upon the standard implementation to query the v_vnlock field, which is type-stable and will reflect the correct lower/upper vnode configuration for the unionfs node. Tested by: pho Reviewed by: kib, markj Differential Revision: https://reviews.freebsd.org/D39272
Configuration menu - View commit details
-
Copy full SHA for 6a02dc7 - Browse repository at this point
Copy the full SHA 6a02dc7View commit details -
unionfs_mkdir(): handle dvp reclamation
The underlying VOP_MKDIR() implementation may temporarily drop the parent directory vnode's lock. If the vnode is reclaimed during that window, the unionfs vnode will effectively become unlocked because the its v_vnlock field will be reset. To uphold the locking requirements of VOP_MKDIR() and to avoid triggering various VFS assertions, explicitly re-lock the unionfs vnode before returning in this case. Note that there are almost certainly other cases in which we'll similarly need to handle vnode relocking by the underlying FS; this is the only one that's caused problems in stress testing so far. A more general solution, such as that employed for nullfs in null_bypass(), will likely need to be implemented. Tested by: pho Reviewed by: kib, markj Differential Revision: https://reviews.freebsd.org/D39272
Configuration menu - View commit details
-
Copy full SHA for 6b1f537 - Browse repository at this point
Copy the full SHA 6b1f537View commit details -
vfs_lookup(): re-check v_mountedhere on lock upgrade
The VV_CROSSLOCK handling logic may need to upgrade the covered vnode lock depending upon the requirements of the filesystem into which vfs_lookup() is walking. This may involve transiently dropping the lock, which can allow the target mount to be unmounted. Tested by: pho Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D39272
Configuration menu - View commit details
-
Copy full SHA for 65a8727 - Browse repository at this point
Copy the full SHA 65a8727View commit details -
libsa: Update comments about SMBIOS specification
Summary: Include details from the SMBIOS 3 specification and some additional details for SMBIOS 2.1. Obtained from: Juniper Networks, Inc. Reviewers: jmg, manu Subscribers: imp, dab Differential Revision: https://reviews.freebsd.org/D39635
Configuration menu - View commit details
-
Copy full SHA for 4f622ba - Browse repository at this point
Copy the full SHA 4f622baView commit details -
flash: Add "n25q64" to mx25l driver
This is for 64Mb Micron N25Q serial NOR flash memory Obtained from: Juniper Networks, Inc.
Configuration menu - View commit details
-
Copy full SHA for 67341b2 - Browse repository at this point
Copy the full SHA 67341b2View commit details -
meta: Allow TARGET_SPEC_VARS to be overridden
Reviewed by: sjg Obtained from: Juniper Networks, Inc.
Configuration menu - View commit details
-
Copy full SHA for 770ad1b - Browse repository at this point
Copy the full SHA 770ad1bView commit details -
stand: Remove double words in source code comments
- s/to to/to/ - s/value value/value/ MFC after: 5 days
Configuration menu - View commit details
-
Copy full SHA for 871856c - Browse repository at this point
Copy the full SHA 871856cView commit details -
net80211: Remove double words in source code comments
- s/we we/we/ MFC after: 5 days
Configuration menu - View commit details
-
Copy full SHA for afecd25 - Browse repository at this point
Copy the full SHA afecd25View commit details -
last(1): Remove double words in source code comments
- s/on on/on/ - s/we we/we/ MFC after: 5 days
Configuration menu - View commit details
-
Copy full SHA for ffcf113 - Browse repository at this point
Copy the full SHA ffcf113View commit details -
kern_sysctl: Remove double words in source code comments
- s/on on/on/ MFC after: 5 days
Configuration menu - View commit details
-
Copy full SHA for be87f12 - Browse repository at this point
Copy the full SHA be87f12View commit details -
meta: print some additional variables on build errors.
Add CPUTYPE and MACHINE_CPUARCH to the list of variables printed when there are build errors. Protect local.sys.mk from multiple inclusion. Reviewed by: sjg Obtained from: Juniper Networks, Inc.
Configuration menu - View commit details
-
Copy full SHA for 1aef8a0 - Browse repository at this point
Copy the full SHA 1aef8a0View commit details -
MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D39629
Configuration menu - View commit details
-
Copy full SHA for fbcae3e - Browse repository at this point
Copy the full SHA fbcae3eView commit details -
Revert "stand: Remove double words in source code comments"
The sentence, "The base address that we the boot0 code to to run it." is correct. Reported by: jrtc27 This reverts commit b12ccd0.
Configuration menu - View commit details
-
Copy full SHA for 36c5fda - Browse repository at this point
Copy the full SHA 36c5fdaView commit details -
mount_nfs.8: Fix a mandoc warning
- sections out of conventional order: Sh IMPLEMENTATION NOTES MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for 817a763 - Browse repository at this point
Copy the full SHA 817a763View commit details -
tcpdump: add missing pf reasons and actions
Reviewed by: kp Sponsored by: InnoGames GmbH Differential Revision: https://reviews.freebsd.org/D39586
Configuration menu - View commit details
-
Copy full SHA for 52224bd - Browse repository at this point
Copy the full SHA 52224bdView commit details -
netlink: sync interface IFLA attributes
MFC after: 2 weeks
Configuration menu - View commit details
-
Copy full SHA for 940ed9b - Browse repository at this point
Copy the full SHA 940ed9bView commit details -
tcp: Blackbox logging and tcp accounting together can cause a crash.
If you currently turn BB logging on and in combination have TCP Accounting on we can get a crash where we have no NULL check and we run out of memory. Also lets make sure we don't do a divide by 0 in calculating any BB ratios. Reviewed by: tuexen Sponsored by: Netflix Inc Differential Revision:https://reviews.freebsd.org/D39622
Configuration menu - View commit details
-
Copy full SHA for 2ecf6d4 - Browse repository at this point
Copy the full SHA 2ecf6d4View commit details -
mlx5: Make MLX5_COMP_EQ_SIZE tunable.
When using hardware pacing, this value can be increased, because more SQ's means more EQ events aswell. Make it tunable, hw.mlx5.comp_eq_size . MFC after: 1 week Sponsored by: NVIDIA Networking
Configuration menu - View commit details
-
Copy full SHA for 1d67477 - Browse repository at this point
Copy the full SHA 1d67477View commit details -
mlx5: Make mlx5_del_flow_rule() NULL safe.
This change factors out repeated NULL checks. No functional change intended. MFC after: 1 week Sponsored by: NVIDIA Networking
Configuration menu - View commit details
-
Copy full SHA for 4a82e6f - Browse repository at this point
Copy the full SHA 4a82e6fView commit details -
mlx5: Fix duplicate free of default flow rule in error case.
MFC after: 1 week Sponsored by: NVIDIA Networking
Configuration menu - View commit details
-
Copy full SHA for e3cf186 - Browse repository at this point
Copy the full SHA e3cf186View commit details -
mlx5: Implement mlx5_core_modify_cq_by_mask().
Implement one CQ modify function supporting all firmware versions, instead of having more variants of CQ modify. MFC after: 1 week Sponsored by: NVIDIA Networking
Configuration menu - View commit details
-
Copy full SHA for 83f768e - Browse repository at this point
Copy the full SHA 83f768eView commit details -
mlx5: Don't give zero number of pages to the firmware.
Can happen when using virtual mlx5_core<N> functions, VFs. MFC after: 1 week Sponsored by: NVIDIA Networking
Configuration menu - View commit details
-
Copy full SHA for 8c4fa1f - Browse repository at this point
Copy the full SHA 8c4fa1fView commit details -
mlx5: Implement diagostic counters as sysctl(8) nodes.
MFC after: 1 week Sponsored by: NVIDIA Networking
Configuration menu - View commit details
-
Copy full SHA for 07dc4ef - Browse repository at this point
Copy the full SHA 07dc4efView commit details -
mlx5: Remove unused debugfs node pointers.
No functional change intended. MFC after: 1 week Sponsored by: NVIDIA Networking
Configuration menu - View commit details
-
Copy full SHA for d8f4c36 - Browse repository at this point
Copy the full SHA d8f4c36View commit details -
mlx5en(4): Explain why CQE zipping is off.
MFC after: 1 week Sponsored by: NVIDIA Networking
Configuration menu - View commit details
-
Copy full SHA for c90600d - Browse repository at this point
Copy the full SHA c90600dView commit details -
mlx5en(4): Don't wait for receive queue to fill up with mbufs during …
…open channels. Failure to get mbufs may be transient. Don't permanently fail to open the channels due to lack of mbufs. This also makes modifying channel parameters faster. MFC after: 1 week Sponsored by: NVIDIA Networking
Configuration menu - View commit details
-
Copy full SHA for 1c7fd55 - Browse repository at this point
Copy the full SHA 1c7fd55View commit details -
split: Update synopsis and usage; fix examples
- Mark -d as an optional flag - Add a prompt to one of the examples for consistency - Add -d to the usage message Sponsored by: Klara Inc.
Configuration menu - View commit details
-
Copy full SHA for b18f762 - Browse repository at this point
Copy the full SHA b18f762View commit details -
PF_TABLE_STATS_ASSERT() should be checking pf_table_stats_lock not pf_rules_lock. Fortunately the define is not yet used anywhere so this was harmless. Fix it anyway, in case it does get used. Sponsored by: Rubicon Communications, LLC ("Netgate")
Configuration menu - View commit details
-
Copy full SHA for d7295c5 - Browse repository at this point
Copy the full SHA d7295c5View commit details -
tests: fix netlink type parsing.
Netlink attribute type field is 2 bytes, not one. MFC after: 2 weeks
Configuration menu - View commit details
-
Copy full SHA for 3d53d7d - Browse repository at this point
Copy the full SHA 3d53d7dView commit details -
arm64: Use FULLKERNEL instead of .ALLSRC in .bin target
Using .ALLSRC may get additional arguments that we may not want and could cause the objcopy to fail. Reviewed by: emaste Obtained from: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D39639
Configuration menu - View commit details
-
Copy full SHA for a521def - Browse repository at this point
Copy the full SHA a521defView commit details -
tcp: Inconsistent use of hpts_calling flag
Gleb has noticed there were some inconsistency's in the way the inp_hpts_calls flag was being used. One such inconsistency results in a bug when we can't allocate enough sendmap entries to entertain a call to rack_output().. basically a timer won't get started like it should. Also in cleaning this up I find that the "no_output" side of input needs to be adjusted to make sure we don't try to re-pace too quickly outside the hpts assurance of 250useconds. Another thing here is we end up with duplicate calls to tcp_output() which we should not. If packets go from hpts for processing the input side of tcp will call the output side of tcp on the last packet if it is needed. This means that when that occurs a second call to tcp_output would be made that is not needed and if pacing is going on may be harmful. Lets fix all this and explicitly state the contract that hpts is making with transports that care about the flag. Reviewed by: tuexen, glebius Sponsored by: Netflix Inc Differential Revision:https://reviews.freebsd.org/D39653
Configuration menu - View commit details
-
Copy full SHA for 2dd0793 - Browse repository at this point
Copy the full SHA 2dd0793View commit details -
renice: Factor out common code in tests.
Furthermore, prefer test -eq (which ignores whitespace) over a strict string equality test when comparing numerical values. MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: thj Differential Revision: https://reviews.freebsd.org/D39650
Configuration menu - View commit details
-
Copy full SHA for 7cd5421 - Browse repository at this point
Copy the full SHA 7cd5421View commit details -
mmc(4): Don't call bridge driver for timings not requiring tuning
The original idea behind calling into the bridge driver was to have the logic deciding whether tuning is actually required for a particular bus timing in a given slot as well as doing the sanity checking only on the controller layer which also generally is better suited for these due to say SDHCI_SDR50_NEEDS_TUNING. On another thought, not every such driver should need to check whether tuning is required at all, though, and not everything is SDHCI in the first place. Adjust sdhci{,_fsl_fdt}(4) accordingly, but keep sdhci_generic_tune() a bit cautious still.
Configuration menu - View commit details
-
Copy full SHA for d1e10fb - Browse repository at this point
Copy the full SHA d1e10fbView commit details -
gem(4): Remove onboard-only Sun ERI and remnants of SBus support
Configuration menu - View commit details
-
Copy full SHA for acf9268 - Browse repository at this point
Copy the full SHA acf9268View commit details -
cas.4: Remove remaining sparc64-specific bit
This was missed in 7025477.
Configuration menu - View commit details
-
Copy full SHA for 3dc3cc8 - Browse repository at this point
Copy the full SHA 3dc3cc8View commit details -
Handle errors if WARNS is not defined.
One conditional outside of ifdef WARNS did not protect against an unset WARNS. Default WARNS to 0 in conditional if not defined. Obtained from: Juniper Networks, Inc.
Configuration menu - View commit details
-
Copy full SHA for 6364b9e - Browse repository at this point
Copy the full SHA 6364b9eView commit details -
boot0: Expand the description of BOOT_BOOT0_ORG.
This really shouldn't even be an option given it is hardcoded as a constant named ORIGIN in the assembly. mbr.S also uses 0x600 and hardcodes it in both the assembly and the Makefile.
Configuration menu - View commit details
-
Copy full SHA for 2995005 - Browse repository at this point
Copy the full SHA 2995005View commit details -
tmpfs: add missing vop_fplookup ops to tmpfs_fifoop_entries
Reported by: gbe PR: 270917
Configuration menu - View commit details
-
Copy full SHA for bf62f11 - Browse repository at this point
Copy the full SHA bf62f11View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0fadf8f - Browse repository at this point
Copy the full SHA 0fadf8fView commit details -
sendmail: Silence -Wdeprecated-non-prototype warnings.
These will hopefully be fixed upstream eventually, but silence the warnings until then. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D39518
Configuration menu - View commit details
-
Copy full SHA for ff53575 - Browse repository at this point
Copy the full SHA ff53575View commit details -
smbfs: Use C89 function definition for cf_getopt.
Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D39519
Configuration menu - View commit details
-
Copy full SHA for 5b09f79 - Browse repository at this point
Copy the full SHA 5b09f79View commit details -
bootpd: Use C89 function definitions.
Trim a few duplicate (but incomplete) function prototypes as well. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D39520
Configuration menu - View commit details
-
Copy full SHA for e5b3af9 - Browse repository at this point
Copy the full SHA e5b3af9View commit details -
rpc.rstatd/rwalld: Use more accurate function pointer types.
Reviewed by: zlei, rmacklem Differential Revision: https://reviews.freebsd.org/D39521
Configuration menu - View commit details
-
Copy full SHA for a0cf34f - Browse repository at this point
Copy the full SHA a0cf34fView commit details -
rbootd: Remove an unnecessary (and incomplete) function prototype.
Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D39522
Configuration menu - View commit details
-
Copy full SHA for ffb1c47 - Browse repository at this point
Copy the full SHA ffb1c47View commit details -
ipf: Use C89 function definitions.
Reviewed by: zlei Differential Revision: https://reviews.freebsd.org/D39523
Configuration menu - View commit details
-
Copy full SHA for 002d656 - Browse repository at this point
Copy the full SHA 002d656View commit details -
less: Silence -Wdeprecated-non-prototype warnings.
This has an active upstream so will presumably be fixed upstream at some point. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D39525
Configuration menu - View commit details
-
Copy full SHA for 5a7ee10 - Browse repository at this point
Copy the full SHA 5a7ee10View commit details -
locate: Use C89 function definitions.
Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D39526
Configuration menu - View commit details
-
Copy full SHA for 2a4d151 - Browse repository at this point
Copy the full SHA 2a4d151View commit details -
mail: Use a C89 function pointer type for command functions.
The command function is defined to always take a void *. Functions which accept a pointer to an array of pointers use a local temporary 'argv' assigned from the void *arg. Reviewed by: zlei Differential Revision: https://reviews.freebsd.org/D39527
Configuration menu - View commit details
-
Copy full SHA for 699ac93 - Browse repository at this point
Copy the full SHA 699ac93View commit details -
telnet: Use C89 function definitions for two stragglers.
Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D39528
Configuration menu - View commit details
-
Copy full SHA for 04234e5 - Browse repository at this point
Copy the full SHA 04234e5View commit details -
cron: Use C89 function definitions.
Reviewed by: zlei Differential Revision: https://reviews.freebsd.org/D39529
Configuration menu - View commit details
-
Copy full SHA for 6fa0ab2 - Browse repository at this point
Copy the full SHA 6fa0ab2View commit details -
rpc.lockd: Use C89 function definitions.
Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D39530
Configuration menu - View commit details
-
Copy full SHA for f823f3e - Browse repository at this point
Copy the full SHA f823f3eView commit details -
traceroute: Use C89 function definition for one straggler.
Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D39531
Configuration menu - View commit details
-
Copy full SHA for 23db007 - Browse repository at this point
Copy the full SHA 23db007View commit details -
yp: Use more accurate function pointer types.
Trim a few duplicate (but incomplete) function prototypes as well. Reviewed by: zlei, imp Differential Revision: https://reviews.freebsd.org/D39532
Configuration menu - View commit details
-
Copy full SHA for 5a8bcf3 - Browse repository at this point
Copy the full SHA 5a8bcf3View commit details -
keyserv: Use C89 function definitions.
Also use more accurate function pointer types, and trim some duplicate (but incomplete) function prototypes. Reviewed by: zlei Differential Revision: https://reviews.freebsd.org/D39533
Configuration menu - View commit details
-
Copy full SHA for 4c5af39 - Browse repository at this point
Copy the full SHA 4c5af39View commit details -
pnpinfo: Use C89 function definitions.
Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D39534
Configuration menu - View commit details
-
Copy full SHA for 86b6b87 - Browse repository at this point
Copy the full SHA 86b6b87View commit details -
loader.efi: Fix some arm64 PE metadata
- Mark the file as an executable in the COFF header. - Provide separate .text and .data sections. - Provide sane file and section alignment values. These values are the defaults defined in the PE specification. - Set appropriate characteristics for each of .text and .data. This is required for the MS devkit to load our UEFI image. Obtained from: OpenBSD via allanjude MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D37765
Configuration menu - View commit details
-
Copy full SHA for 9ea79f3 - Browse repository at this point
Copy the full SHA 9ea79f3View commit details -
mac: Honor order when registering MAC modules.
Ensure MAC modules are inserted in order that they are registered. Reviewed by: markj Obtained from: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D39589
Configuration menu - View commit details
-
Copy full SHA for eb02de8 - Browse repository at this point
Copy the full SHA eb02de8View commit details -
ee: Drop P_() macro used for pre-C89 compatibility.
Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D39669
Configuration menu - View commit details
-
Copy full SHA for 11797b3 - Browse repository at this point
Copy the full SHA 11797b3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7f3e90e - Browse repository at this point
Copy the full SHA 7f3e90eView commit details -
ee: Use C89 function definitions.
Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D39670
Configuration menu - View commit details
-
Copy full SHA for 2f1e624 - Browse repository at this point
Copy the full SHA 2f1e624View commit details -
ee: Remove two set but unused variables.
Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D39671
Configuration menu - View commit details
-
Copy full SHA for 94c4750 - Browse repository at this point
Copy the full SHA 94c4750View commit details -
Configuration menu - View commit details
-
Copy full SHA for d9132e2 - Browse repository at this point
Copy the full SHA d9132e2View commit details -
Add `chdb' command to fsdb(8) to set direct block numbers.
Add the ability to set direct blocks numbers in inodes so that manual corrections can be made. No checking of the values is attempted so accidental or deliberate bad values can be set. Submitted by: Chuck Silvers MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for 316d3f9 - Browse repository at this point
Copy the full SHA 316d3f9View commit details -
Increment a reference count when returning a zero'ed out buffer after a failed read. Zero out a structure before using it. Only dirty a buffer that has been modified. Submitted by: Chuck Silvers Sponsored by: Netflix MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for 4f3969e - Browse repository at this point
Copy the full SHA 4f3969eView commit details -
Skip Pass 5 in fsck_ffs(8) when corrupt cylinder groups remain unfixed.
Pass 1 of fsck_ffs checks the integrity of all the cylinder groups. If any are found to have been corrupted it offers to rebuild them. Pass 5 then makes a second pass over the cylinder groups to validate their block and inode maps. Pass 5 assumes that the cylinder groups are not corrupted and can segment fault if they are corrupted. Rather than rerunning the corruption checks a second time in pass 5, this fix keeps track whether any corrupt cylinder groups were found but not fixed in pass 1 either due to running with the -n flag or by explicitly answering `no' when asked whether to fix a corrupted cylinder group. If any corrupted cylinder groups remain after pass 1, fsck_ffs will decline to run pass 5. Instead it marks the filesystem as unclean so that fsck_ffs will need to be run again before the filesystem can be mounted. This patch cleans up and documents the return value from check_cgmagic(). It also renames the variable / parameter "rebuildcg" to "rebuiltcg". This parameter describes whether the cylinder group has been rebuilt rather than whether it should be rebuilt. Reported by: Chuck Silvers Reviewed by: Chuck Silvers MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for 8d65d24 - Browse repository at this point
Copy the full SHA 8d65d24View commit details -
sync_vnode(): add assert to check vn_start_write() correctness
Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for c15f739 - Browse repository at this point
Copy the full SHA c15f739View commit details -
syncer vnode: add VOP_GETWRITEMOUNT() definition explicitly
Since syncer vnode vector does not provide a fallback to the default one, its VOP_GETWRITEMOUNT() implementation implicitly returned EOPNOTSUPP, which means that syncer ignored suspension. Reported and tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week
Configuration menu - View commit details
-
Copy full SHA for 72c568a - Browse repository at this point
Copy the full SHA 72c568aView commit details -
umtx: allow to configure minimal timeout (in nanoseconds)
PR: 270785 Reviewed by: markj, mav Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D39584
Configuration menu - View commit details
-
Copy full SHA for af5db81 - Browse repository at this point
Copy the full SHA af5db81View commit details -
x86: initialize use_xsave once
The explanation from https://reviews.freebsd.org/D39637 by stevek: The "use_xsave" variable is a global and that is only supposed to be initialized early before scheduling gets started. However, with the way the ifuncs for "fpusave" and "fpurestore" are implemented, the value could be changed at runtime when scheduling is active if "use_xsave" was set to 0 by the tunable. This leaves a window of opportunity where "use_xsave" gets re-initialized to 1 and a context switch could occur with a thread that was not set up to be able to use xsave functionality. This can lead to an "privileged instruction fault". The fix is to protect "use_xsave" from being initialized more than once. Reported and reviewed by: stevek Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D39660
Configuration menu - View commit details
-
Copy full SHA for 98b68ac - Browse repository at this point
Copy the full SHA 98b68acView commit details -
Configuration menu - View commit details
-
Copy full SHA for 03ccb08 - Browse repository at this point
Copy the full SHA 03ccb08View commit details -
dirdeps.mk guard against inclusion from Makefile.depend.options
A typo in Makefile.depend.options including dirdeps.mk rather than dirdeps-options.mk can result in infinite recursion - don't let that happen. Reviewed by: stevek
Configuration menu - View commit details
-
Copy full SHA for 0a315eb - Browse repository at this point
Copy the full SHA 0a315ebView commit details -
Configuration menu - View commit details
-
Copy full SHA for d985a2e - Browse repository at this point
Copy the full SHA d985a2eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7966f1a - Browse repository at this point
Copy the full SHA 7966f1aView commit details -
Handle libs that create linker scripts as libs
Eg ncurses creates libncursesw.ald This is the only example so far, but if we are staging handle it. Reviewed by: stevek
Configuration menu - View commit details
-
Copy full SHA for 57f9f1f - Browse repository at this point
Copy the full SHA 57f9f1fView commit details -
Avoid staging conflict for examples/pf
If we are staging, let examples/pf stage its bits.
Configuration menu - View commit details
-
Copy full SHA for 17db971 - Browse repository at this point
Copy the full SHA 17db971View commit details -
Avoid breaking crunchgen with meta stats
When using DIRDEPS_BUILD we normally get stats as each dir finishes. This upsets crunchen, so keep quiet when _RECURSING_CRUNCH is defined
Configuration menu - View commit details
-
Copy full SHA for 287ab0c - Browse repository at this point
Copy the full SHA 287ab0cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9eded1c - Browse repository at this point
Copy the full SHA 9eded1cView commit details -
pf: change pf_rules_lock and pf_ioctl_lock to per-vnet locks
Both pf_rules_lock and pf_ioctl_lock only ever affect one vnet, so there's no point in having these locks affect other vnets. (In fact, the only lock in pf that can affect multiple vnets is pf_end_lock.) That's especially important for the rules lock, because taking the write lock suspends all network traffic until it's released. This will reduce the impact a vnet running pf can have on other vnets, and improve concurrency on machines running multiple pf-enabled vnets. Reviewed by: zlei Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D39658
Configuration menu - View commit details
-
Copy full SHA for b5ef7e7 - Browse repository at this point
Copy the full SHA b5ef7e7View commit details -
netstat: document that PCB information can't be read from corefiles
Reviewed by: glebius, cc Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D39610
Configuration menu - View commit details
-
Copy full SHA for b24ad80 - Browse repository at this point
Copy the full SHA b24ad80View commit details -
tcp: bbr.c is non-capable of doing ECN and sets an INP flag to fend o…
…ff ECN however our syncache is not aware of that flag. We need to make the syncache aware of the flag and not do ECN if its set. Note that this is not 100% full proof but the best we can do (i.e. its still possible that you can get in a situation where the peer try's to do ecn). Reviewed by: tuexen, glebius, rscheff Sponsored by: Netflix Inc Differential Revision:https://reviews.freebsd.org/D39672
Configuration menu - View commit details
-
Copy full SHA for 5149eb0 - Browse repository at this point
Copy the full SHA 5149eb0View commit details -
tzsetup(8): update paths to zone tab and tzdata source
tzsetup now uses zone1970.tab and zoneinfo source is located in contrib/tzdata, update the man page accordingly. While here, drop obsolete Tn macros and insert vertical breaks (mostly before Dl in examples) to improve readability. Reviewed by: pauamma_gundo.com (manpages) Differential Revision: https://reviews.freebsd.org/D39643
Configuration menu - View commit details
-
Copy full SHA for 84b26fd - Browse repository at this point
Copy the full SHA 84b26fdView commit details -
libc: Implement bsort(3) a bitonic type of sorting algorithm.
The bsort(3) algorithm works by swapping objects, similarly to qsort(3), and does not require any significant amount of additional memory. The bsort(3) algorithm doesn't suffer from the processing time issues known the plague the qsort(3) family of algorithms, and is bounded by a complexity of O(log2(N) * log2(N) * N), where N is the number of elements in the sorting array. The additional complexity compared to mergesort(3) is a fair tradeoff in situations where no memory may be allocated. The bsort(3) APIs are identical to those of qsort(3), allowing for easy drop-in and testing. The design of the bsort(3) algorithm allows for future parallell CPU execution when sorting arrays. The current version of the bsort(3) algorithm is single threaded. This is possible because fixed areas of the sorting data is compared at a time, and can easily be divided among different CPU's to sort large arrays faster. Reviewed by: gbe@, delphij@, pauamma_gundo.com (manpages) Sponsored by: NVIDIA Networking Differential Revision: https://reviews.freebsd.org/D36493
Configuration menu - View commit details
-
Copy full SHA for 20fe8c9 - Browse repository at this point
Copy the full SHA 20fe8c9View commit details -
iwlwifi: rtw88: rtw89: fix gcc warnings
Fix -Wno-format and unused variables warnings with gcc by adopting (to|the) FreeBSD-specific code. Reported by: jhb Sponsored by: The FreeBSD Foundation MFC after: 3 days Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D39673
Configuration menu - View commit details
-
Copy full SHA for c2db667 - Browse repository at this point
Copy the full SHA c2db667View commit details -
bsort.3: Fix warnings as reported by mandoc -W warning
Reported by: Yuri <[email protected]> MFC after: 1 week Sponsored by: NVIDIA Networking
Configuration menu - View commit details
-
Copy full SHA for d494e66 - Browse repository at this point
Copy the full SHA d494e66View commit details -
libc: Add missing object size check to qsort_s(3)
When sorting, both the C11 standard (ISO/IEC 9899:2011, K.3.6.3.2) and the ISO/IEC JTC1 SC22 WG14 N1172 standard, does not define objects of zero size as undefined behaviour. However Microsoft's cpp-docs does. Add proper checks for this. Found while working on bsort(3). Reviewed by: kib@ and emaste@ MFC after: 1 week Sponsored by: NVIDIA Networking Differential Revision: https://reviews.freebsd.org/D39687
Configuration menu - View commit details
-
Copy full SHA for 457e600 - Browse repository at this point
Copy the full SHA 457e600View commit details -
Cirrus update to new freebsd instance version
MFC after: 2 weeks Pull Request: freebsd/freebsd-src#718
Configuration menu - View commit details
-
Copy full SHA for 34a95e6 - Browse repository at this point
Copy the full SHA 34a95e6View commit details -
unionfs.5: Use '.An -nosplit' in the AUTHORS section
Use '.An -nosplit' in the AUTHORS section to prevent line breaks. MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for 48e9158 - Browse repository at this point
Copy the full SHA 48e9158View commit details -
libc: Sorting is not needed when there are less than two elements
If there are less than two elements avoid executing the first sorting loop. No functional change intended. Reviewed by: kib@ MFC after: 1 week Sponsored by: NVIDIA Networking Differential Revision: https://reviews.freebsd.org/D39691
Configuration menu - View commit details
-
Copy full SHA for 47feb85 - Browse repository at this point
Copy the full SHA 47feb85View commit details -
dpaa2: Avoid dpaa2_cmd race conditions
struct dpaa2_cmd is no longer malloc'ed, but can be allocated on stack and initialized with DPAA2_CMD_INIT() on demand. Drivers stopped caching their DPAA2 command objects (and associated tokens) in the software contexts in order to avoid using them concurrently. Reviewed by: bz Approved by: bz (mentor) MFC after: 3 weeks Differential Revision: https://reviews.freebsd.org/D39509
Configuration menu - View commit details
-
Copy full SHA for 93fa7be - Browse repository at this point
Copy the full SHA 93fa7beView commit details -
Configuration menu - View commit details
-
Copy full SHA for bd39ffe - Browse repository at this point
Copy the full SHA bd39ffeView commit details -
ofed: Fix a logic inversion from IfAPI conversion
Reported by: bartosz.sobczak_intel.com Fixes: 3e142e0 ("ofed: Mechanically convert to IfAPI") Sponsored by: Juniper Networks, Inc.
Configuration menu - View commit details
-
Copy full SHA for d20423b - Browse repository at this point
Copy the full SHA d20423bView commit details -
include: add a check-ldirs target
This target ensures all LDIRS, LSUBDIRS, and LSUBSUBDIRS actually exist. Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D39006
Configuration menu - View commit details
-
Copy full SHA for 68068a3 - Browse repository at this point
Copy the full SHA 68068a3View commit details -
Cirrus-CI: Add blank lines between scripts
Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D39679
Configuration menu - View commit details
-
Copy full SHA for e7a0521 - Browse repository at this point
Copy the full SHA e7a0521View commit details -
Cirrus-CI: Check that make sysent was run
Run the `make sysent` target and verify that the repo isn't modified afterwards. This ensures that a pushed branch contains all the required bits after a change to syscall.master. Reviewed by: emaste Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D39680
Configuration menu - View commit details
-
Copy full SHA for f1e48cc - Browse repository at this point
Copy the full SHA f1e48ccView commit details -
Cirrus-CI: Run check-ldirs in include/
Check that LDIRS defined in include/Makefile actually exist. Reviewed by: emaste Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D39681
Configuration menu - View commit details
-
Copy full SHA for 2cbb707 - Browse repository at this point
Copy the full SHA 2cbb707View commit details -
cxgbe/iw_cxgbe: debug routines to dump STAG (steering tag) entries.
t4_dump_stag to dump hw state for a known STAG. t4_dump_all_stag to dump hw state for all valid STAGs. This routine walks the entire STAG region looking for valid entries and this can take a while for some configurations. MFC after: 1 week Sponsored by: Chelsio Communications
Configuration menu - View commit details
-
Copy full SHA for 336374b - Browse repository at this point
Copy the full SHA 336374bView commit details -
We have a TCP_LOG_CONNEND log that should come out at the very last l…
…og of every connection. This holds some nice stats about why/how the connection ended. Though with the current code it does not come out without accounting due to the placement of the ifdefs. Also we need to make sure the stacks fini has ran before calling in from tcp_subr so we get all logs the stack may make at its ending. Reviewed by: rscheff Sponsored by: Netflix Inc Differential Revision:https://reviews.freebsd.org/D39693
Configuration menu - View commit details
-
Copy full SHA for d1eb204 - Browse repository at this point
Copy the full SHA d1eb204View commit details -
tcp: Rack can crash with the new non-TSO fix..
Turns out the location of the check to see if we can do output is in the wrong place. We need to jump off to the compressed acks before handling that case since th is NULL in the compressed ack case which is handled differently anyway. Reviewed by: tuexen Sponsored by: Netflix Inc Differential Revision:https://reviews.freebsd.org/D39690
Configuration menu - View commit details
-
Copy full SHA for 6d7eff7 - Browse repository at this point
Copy the full SHA 6d7eff7View commit details -
libmilter: Silence -Wdeprecated-non-prototype warnings.
Missed this one when tagging other sendmail libraries. Fixes: 525438e sendmail: Silence -Wdeprecated-non-prototype warnings.
Configuration menu - View commit details
-
Copy full SHA for e4e72c5 - Browse repository at this point
Copy the full SHA e4e72c5View commit details -
libz: Move NO_WDEPRECATED_NON_PROTOTYPE below include of bsd.lib.mk.
Also add it to CWARNFLAGS rather than CFLAGS.
Configuration menu - View commit details
-
Copy full SHA for 6a7099f - Browse repository at this point
Copy the full SHA 6a7099fView commit details -
loader: Change version calculation to be more consistent.
Use 1000 * major + minor when calculating the version number that gets set in the Ficl environment or lua loader property. This allows for more room if the minor number needs to go above 9. Add loader.version property to lua loader. Reviewed by: imp Obtained from: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D39631
Configuration menu - View commit details
-
Copy full SHA for 7c82e59 - Browse repository at this point
Copy the full SHA 7c82e59View commit details -
tcp: rack the request level logging is a bit too noisy when doing poi…
…nt logging. When doing request level BB logging the hybrid_bw_log() does not have proper screening to minimize logging when point level logging is in use. Lets fix it properly so you have to have the proper knobs set to get the more noisy logging. Reviewed by: tuexen Sponsored by: Netflix Inc Differential Revision:https://reviews.freebsd.org/D39699
Configuration menu - View commit details
-
Copy full SHA for a18b5f7 - Browse repository at this point
Copy the full SHA a18b5f7View commit details -
vfs cache: fix vfs.cache.stats.* name typos
Two vfs.cache.stats names are fixed: - s/.dotdothis/.dotdothits/ - s/.posszaps/.poszaps/ Signed-off-by: Igor Ostapenko <[email protected]> [mjg: massaged the header a little bit]
Configuration menu - View commit details
-
Copy full SHA for ef0841b - Browse repository at this point
Copy the full SHA ef0841bView commit details -
libc: bsort_s() requires both __BSD_VISIBLE and __EXT1_VISIBLE
Fixes build of Python: /usr/include/stdlib.h:409:1: error: unknown type name 'errno_t' errno_t bsort_s(void *, rsize_t, rsize_t, Reported by: vishwin@ MFC after: 1 week Sponsored by: NVIDIA Networking Differential Revision: https://reviews.freebsd.org/D36493
Configuration menu - View commit details
-
Copy full SHA for 1996ac2 - Browse repository at this point
Copy the full SHA 1996ac2View commit details -
ichiic: use bool for one-bit wide bit-fields
A one-bit wide bit-field can take only the values 0 and -1. Clang 16 introduced a warning that "implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1". Fix by using c99 bool. Reported by: Clang Reviewed by: emaste, wulf MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D39665
Configuration menu - View commit details
-
Copy full SHA for cf69eda - Browse repository at this point
Copy the full SHA cf69edaView commit details -
LinuxKPI: skbuff.h: fix -Warray-bounds warnings
Harmonize sk_buff_head and sk_buff further and fix -Warray-bounds warnings reports by gcc. At the same time simplify some code by re-using other functions or factoring some code out. Sponsored by: The FreeBSD Foundation MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for 03cd863 - Browse repository at this point
Copy the full SHA 03cd863View commit details -
LinuxKPI: 802.11: fix a -Wenum-compare warning
We are asserting that two values from different enums are the same. gcc warns about these. Cast the values to (int) to avoid the warning. Sponsored by: The FreeBSD Foundation MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for 7761f11 - Browse repository at this point
Copy the full SHA 7761f11View commit details -
openssh: restore PrintLastLog option
Upstream's autoconf sets DISABLE_LASTLOG if lastlog.ll_line does not exist, but PrintLastLog also works with utmpx and other mechanisms. Reported upstream at https://lists.mindrot.org/pipermail/openssh-unix-dev/2022-May/040242.html PR: 209441 Sponsored by: The FreeBSD Foundation
Configuration menu - View commit details
-
Copy full SHA for 559eced - Browse repository at this point
Copy the full SHA 559ecedView commit details -
meta: remove LDFLAGS setting when cross building
The setting was left over from older clang version and is not necessary any more (and also causes link issues.) Reviewed by: sjg
Configuration menu - View commit details
-
Copy full SHA for fd054eb - Browse repository at this point
Copy the full SHA fd054ebView commit details -
Makefile.xtras: fix show-valid-targets
Use ALL_MACHINE_LIST and leverage .MAKE.DEPENDFILE_PREFERENCE
Configuration menu - View commit details
-
Copy full SHA for 0c44a69 - Browse repository at this point
Copy the full SHA 0c44a69View commit details -
zfs: add missing vn state transition for .zfs
Reported by: des
Configuration menu - View commit details
-
Copy full SHA for 9e6b4c0 - Browse repository at this point
Copy the full SHA 9e6b4c0View commit details -
Configuration menu - View commit details
-
Copy full SHA for b0e743e - Browse repository at this point
Copy the full SHA b0e743eView commit details -
stand: Remove a double word in a source code comment
- s/value value/value/ MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for f61f0bb - Browse repository at this point
Copy the full SHA f61f0bbView commit details -
ifnet: factor out interface renaming into a separate function.
This change is required to support interface renaming via Netlink. No functional changes intended. Reviewed by: zlei Differential Revision: https://reviews.freebsd.org/D39692 MFC after: 2 weeks
Configuration menu - View commit details
-
Copy full SHA for 348e88b - Browse repository at this point
Copy the full SHA 348e88bView commit details -
LinuxKPI: fix READ_ONCE() -Wcast-equal warnings
Rather than using ACCESS_ONCE() in READ_ONCE() add a missing cast to const in order to satisfy -Wcast-equal by gcc. Sadly we cannot do the same to WRITE_ONCE() which still is very noisy. Sponsored by: The FreeBSD Foundation MFC after: 3 days Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D39706
Configuration menu - View commit details
-
Copy full SHA for c8089ba - Browse repository at this point
Copy the full SHA c8089baView commit details -
vmrun.sh: Fix a typo in usage()
MFC after: 3 days Sponsored by: Klara Inc.
Configuration menu - View commit details
-
Copy full SHA for a100ec3 - Browse repository at this point
Copy the full SHA a100ec3View commit details -
network.subr: adjust regex for wlans_xxxxx rc.conf entries
Drivers like ath1[012]k will not match the current wlans_*-regex as they have digits followed by letters. Adjust the regex to allow this combination in order to be able to configure interfaces with names like wlans_ath11k0="..." MFC after: 3 days Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D39674
Configuration menu - View commit details
-
Copy full SHA for 77a6e49 - Browse repository at this point
Copy the full SHA 77a6e49View commit details -
iwlwifi: quieten more compiler warnings
Quieten some more (valid) gcc warnings and disable dead code. There are more warnings, some probably a compiler problem, the other related to firmware structs which I do not want to adjust just locally. Leave a comment to revisit after a next driver update. Sponsored by: The FreeBSD Foundation MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for d6ec824 - Browse repository at this point
Copy the full SHA d6ec824View commit details -
LinuxKPI: 802.11: improve assertion and tkip code
Move a KASSERT out of a function and make it a CTASSERT with appropriate comments. Skeleton implement two tkip functions, still left TODO, initializing variables with dummy values to quiten compiler warnings. It is unclear to me if we should still ever properly implement TKIP compat code at this point. If so the current code gives a good idea what needs to be done in addition to allocating references to real state along with keyconf. Sponsored by: The FreeBSD Foundation MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for c1d0275 - Browse repository at this point
Copy the full SHA c1d0275View commit details -
Currently we use a single hash table per PCB database for connected and bound PCBs. Since we started using net_epoch to synchronize hash table lookups, there's been a bug, noted in a comment above in_pcbrehash(): connecting a socket can cause an inpcb to move between hash chains, and this can cause a concurrent lookup to follow the wrong linkage pointers. I believe this could cause rare, spurious ECONNREFUSED errors in the worse case. Address the problem by introducing a second hash table and adding more linkage pointers to struct inpcb. Now the database has one table each for connected and unconnected sockets. When inserting an inpcb into the hash table, in_pcbinhash() now looks at the foreign address of the inpcb to figure out which table to use. This ensures that queue linkage pointers are stable until the socket is disconnected, so the problem described above goes away. There is also a small benefit in that in_pcblookup_*() can now search just one of the two possible hash buckets. I also made the "rehash" parameter of in(6)_pcbconnect() unused. This parameter seems confusing and it is simpler to let the inpcb code figure out what to do using the existing INP_INHASHLIST flag. UDP sockets pose a special problem since they can be connected and disconnected multiple times during their lifecycle. To handle this, the patch plugs a hole in the inpcb structure and uses it to store an SMR sequence number. When an inpcb is disconnected - an operation which requires the global PCB database hash lock - the write sequence number is advanced, and in order to reconnect, the connecting thread must wait for readers to drain before reusing the inpcb's hash chain linkage pointers. raw_ip (ab)uses the hash table without using the corresponding accessors. Since there are now two hash tables, it arbitrarily uses the "connected" table for all of its PCBs. This will be addressed in some way in the future. inp interators which specify a hash bucket will only visit connected PCBs. This is not really correct, but nothing in the tree uses that functionality except raw_ip, which as mentioned above places all of its PCBs in the "connected" table and so is unaffected. Discussed with: glebius Tested by: glebius Sponsored by: Klara, Inc. Sponsored by: Modirum MDPay Differential Revision: https://reviews.freebsd.org/D38569
Configuration menu - View commit details
-
Copy full SHA for 1692f1c - Browse repository at this point
Copy the full SHA 1692f1cView commit details -
inpcb: Move inpcb matching logic into separate functions
These functions will get some additional callers in future revisions. No functional change intended. Discussed with: glebius Tested by: glebius Sponsored by: Modirum MDPay Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D38571
Configuration menu - View commit details
-
Copy full SHA for f0fad88 - Browse repository at this point
Copy the full SHA f0fad88View commit details -
inpcb: Avoid inp_cred dereferences in SMR-protected lookup
The SMR-protected inpcb lookup algorithm currently has to check whether a matching inpcb belongs to a jail, in order to prioritize jailed bound sockets. To do this it has to maintain a ucred reference, and for this to be safe, the reference can't be released until the UMA destructor is called, and this will not happen within any bounded time period. Changing SMR to periodically recycle garbage is not trivial. Instead, let's implement SMR-synchronized lookup without needing to dereference inp_cred. This will allow the inpcb code to free the inp_cred reference immediately when a PCB is freed, ensuring that ucred (and thus jail) references are released promptly. Commit 220d892 ("inpcb: immediately return matching pcb on lookup") gets us part of the way there. This patch goes further to handle lookups of unconnected sockets. Here, the strategy is to maintain a well-defined order of items within a hash chain so that a wild lookup can simply return the first match and preserve existing semantics. This makes insertion of listening sockets more complicated in order to make lookup simpler, which seems like the right tradeoff anyway given that bind() is already a fairly expensive operation and lookups are more common. In particular, when inserting an unconnected socket, in_pcbinhash() now keeps the following ordering: - jailed sockets before non-jailed sockets, - specified local addresses before unspecified local addresses. Most of the change adds a separate SMR-based lookup path for inpcb hash lookups. When a match is found, we try to lock the inpcb and re-validate its connection info. In the common case, this works well and we can simply return the inpcb. If this fails, typically because something is concurrently modifying the inpcb, we go to the slow path, which performs a serialized lookup. Note, I did not touch lbgroup lookup, since there the credential reference is formally synchronized by net_epoch, not SMR. In particular, lbgroups are rarely allocated or freed. I think it is possible to simplify in_pcblookup_hash_wild_locked() now, but I didn't do it in this patch. Discussed with: glebius Tested by: glebius Sponsored by: Klara, Inc. Sponsored by: Modirum MDPay Differential Revision: https://reviews.freebsd.org/D38572
Configuration menu - View commit details
-
Copy full SHA for 20946d0 - Browse repository at this point
Copy the full SHA 20946d0View commit details -
inpcb: Release the inpcb cred reference before freeing the structure
Now that the inp_cred pointer is accessed only while the inpcb lock is held, we can avoid deferring a crfree() call when freeing an inpcb. This fixes a problem introduced when inpcb hash tables started being synchronized with SMR: the credential reference previously could not be released until all lockless readers have drained, and there is no mechanism to explicitly purge cached, freed UMA items. Thus, ucred references could linger indefinitely, and since ucreds hold a jail reference, the jail would linger indefinitely as well. This manifests as jails getting stuck in the DYING state. Discussed with: glebius Tested by: glebius Sponsored by: Klara, Inc. Sponsored by: Modirum MDPay Differential Revision: https://reviews.freebsd.org/D38573
Configuration menu - View commit details
-
Copy full SHA for df4838d - Browse repository at this point
Copy the full SHA df4838dView commit details -
makefs: set cd9660 Rock Ridge timestamps for . and ..
DOT and DOTDOT entries have special handling, and previously only Rock Ridge PX (POSIX attributes) entries were attached. Add TF (timestamp) entries as well. PR: 203531 Reported by: Thomas Schmitt <[email protected]> Reviewed by: markj Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D39662
Configuration menu - View commit details
-
Copy full SHA for b60eacb - Browse repository at this point
Copy the full SHA b60eacbView commit details -
Add jobs.mk to allow for target-jobs
jobs.mk automates -j$JOB_MAX and capturing build log based on target. Compute a default for JOB_MAX in local.sys.mk Reviewed by: stevek, imp Differential Revision: https://reviews.freebsd.org/D39683
Configuration menu - View commit details
-
Copy full SHA for 114a06c - Browse repository at this point
Copy the full SHA 114a06cView commit details -
x86: Move i386 ppireg.h to x86
Differential Revision: https://reviews.freebsd.org/D39655 MFC after: 1 month
Configuration menu - View commit details
-
Copy full SHA for 22413ca - Browse repository at this point
Copy the full SHA 22413caView commit details -
x86: Move i386 timerreg.h to x86
Reviewed by: emaste, jhb Differential Revision: https://reviews.freebsd.org/D39656 MFC after: 1 month
Configuration menu - View commit details
-
Copy full SHA for e775ae3 - Browse repository at this point
Copy the full SHA e775ae3View commit details -
Fix building host tools for host
Several makefile depend on tools built for host. At least when using DIRDEPS_BUILD we can build these for the pseudo machine "host" to facilitate building on older host versions. Ideally we would build these tools in their own directories to avoid building more than needed. For now, setting an appropriate default for BTOOLSPATH will suffice Reviewed by: stevek Sponsored by: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D39708
Configuration menu - View commit details
-
Copy full SHA for 5e6aa10 - Browse repository at this point
Copy the full SHA 5e6aa10View commit details -
Revert "libc: Implement bsort(3) a bitonic type of sorting algorithm."
Some points for the future: - libc is not the right place for sorting algorithms. Probably libutil is better suited for this purpose or a dedicated libsort. Should move all sorting algorithms away from libc eventually. - CheriBSD uses capabilities for memory access, and could benefit from a standard memswap() function. - Do something about qsort() in FreeBSD's libc like: - Mark it deprecated on FreeBSD, as a first step, due to missing limits on CPU time. - Audit the use of qsort() in the FreeBSD base system and consider swapping to other existing sorting algorithms. Discussed with: brooks@ Differential Revision: https://reviews.freebsd.org/D36493 This reverts commit a7469c9. This reverts commit 7d65a45. This reverts commit 8dcf3a8.
Configuration menu - View commit details
-
Copy full SHA for a54d4c2 - Browse repository at this point
Copy the full SHA a54d4c2View commit details -
dtrace: get rid of uchar_t types
Callers are specifying uint8_t anyway and this slightly reduces dependencies on compatibility typedefs. No functional change intended. Reviewed by: markj, mhorne MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D39490
Configuration menu - View commit details
-
Copy full SHA for 1d79fde - Browse repository at this point
Copy the full SHA 1d79fdeView commit details -
dtrace: expose dtrace_instr_size() to userland and implement it for r…
…iscv dtrace_instr_size() is needed by the forthcoming RISC-V port of kinst, as well as by libdtrace in D38825 for both amd64 and RISC-V. Reviewed by: markj, mhorne MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D39489
Configuration menu - View commit details
-
Copy full SHA for 0bfba32 - Browse repository at this point
Copy the full SHA 0bfba32View commit details -
dtrace: use dtrace_instr_size() in the riscv dtrace_subr.c
No functional change intended. Reviewed by: mhorne, markj MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D39652
Configuration menu - View commit details
-
Copy full SHA for 51774f0 - Browse repository at this point
Copy the full SHA 51774f0View commit details -
dtrace: add register bindings for RISC-V
Reviewed by: mhorne, markj MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D39611
Configuration menu - View commit details
-
Copy full SHA for d520bd8 - Browse repository at this point
Copy the full SHA d520bd8View commit details
Commits on Jun 21, 2023
-
Remove a few more references to riscv64sf.
Fixes: 1ca12bd Remove the riscv64sf architecture.
Configuration menu - View commit details
-
Copy full SHA for 2d34617 - Browse repository at this point
Copy the full SHA 2d34617View commit details -
Configuration menu - View commit details
-
Copy full SHA for 50d85e7 - Browse repository at this point
Copy the full SHA 50d85e7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 36176c9 - Browse repository at this point
Copy the full SHA 36176c9View commit details -
dpaa2: add console support for FDT based systems
Add DPAA2 console support for MC and AIOP (latter untested) for FDT systems. ACPI systems are prepared but need some proper bus function in order to get the address from MC (and likely a file splitup then). This will come at a later stage once other ACPI/FDT bus parts are cleared up. The work was originally done in July 2022 and finally switched to bus_space[1] lately to be ready for main. Suggested by: andrew [1] Reviewed by: dsl MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D38592
Configuration menu - View commit details
-
Copy full SHA for 839e87f - Browse repository at this point
Copy the full SHA 839e87fView commit details -
kern.mk: clang >= 16 already infers ELFv2 for powerpc64
There is no need to pass -mabi=elfv2 explicitly anymore, and with clang 16 in fact results in a "unused argument" warning. MFC after: 3 days
Configuration menu - View commit details
-
Copy full SHA for 92f796a - Browse repository at this point
Copy the full SHA 92f796aView commit details -
netstat: fix printing of TCP pcbs with -A
This change touches both kernel and netstat(1), but either of the changes will fix printing pcb addresses with -A. The thing is that historically netstat(1) treated TCP differently, and printed tcpcb address instead of inpcb address. This is not documented anywhere! With e68b379 these two addresses became the same. It is highly likely they will be the same for a long time, but it might be they will start to differ again in a far future. My proposal is to stop treating TCP differently with netstat(1) and right now is a good opportunity to do that, since there will be no behavior change at all. The kernel change to tcp_inptoxtp() will go into stable/14 to make it compatible with netstat(1) binary from stable/13. We can drop it later, probably together with in_ppcb pointer from inpcb. The in_ppcb in xinpcb will stay for size compatibility. Reviewed by: tuexen, rrs Differential Revision: https://reviews.freebsd.org/D39736
Configuration menu - View commit details
-
Copy full SHA for 7221138 - Browse repository at this point
Copy the full SHA 7221138View commit details -
cxgbe(4): Dump the firmware log before falling back to a minimal config.
It might have errors that explain why the attempted configuration failed. MFC after: 1 week Sponsored by: Chelsio Communications
Configuration menu - View commit details
-
Copy full SHA for c9d0f18 - Browse repository at this point
Copy the full SHA c9d0f18View commit details -
Add WITH_NETLINK_SUPPORT description
Reviewed by: melifaro Differential Revision: https://reviews.freebsd.org/D39676
Configuration menu - View commit details
-
Copy full SHA for e277d73 - Browse repository at this point
Copy the full SHA e277d73View commit details -
src.conf.5: regen with WITH_NETLINK_SUPPORT desc
Reviewed by: melifaro Differential Revision: https://reviews.freebsd.org/D39677
Configuration menu - View commit details
-
Copy full SHA for 7c0c0f4 - Browse repository at this point
Copy the full SHA 7c0c0f4View commit details -
Remove unused NETLINK build option
NETLINK was added along side NETLINK_SUPPORT to control building netlink specific programs, but it has no consumers so remove it for now. Reviewed by: melifaro Differential Revision: https://reviews.freebsd.org/D39678
Configuration menu - View commit details
-
Copy full SHA for d8d153f - Browse repository at this point
Copy the full SHA d8d153fView commit details -
Run makeman and verify that src.conf.5 has been updated if required and that there are no missing definition files. Reviewed by: emaste Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D39682
Configuration menu - View commit details
-
Copy full SHA for a66e5f7 - Browse repository at this point
Copy the full SHA a66e5f7View commit details -
protopr does not support reading from a core anymore. So don't state that it can. Reviewed by: glebius, rscheff, rrs MFC after: 1 week Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D39688
Configuration menu - View commit details
-
Copy full SHA for 8b23312 - Browse repository at this point
Copy the full SHA 8b23312View commit details -
openssh: Update configure for DISABLE_LASTLOG
PR: 209441 Sponsored by: The FreeBSD Foundation
Configuration menu - View commit details
-
Copy full SHA for b1d1fff - Browse repository at this point
Copy the full SHA b1d1fffView commit details -
makesyscalls.lua: Make more luaish
x["y"] can be written as x.y, which looks better and is a more typical lua idiom. Sponsored by: Netflix Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D39709
Configuration menu - View commit details
-
Copy full SHA for 07be3fb - Browse repository at this point
Copy the full SHA 07be3fbView commit details -
makesyscalls.lua: Use "sysxxx" consistently
Find the few places where we use 'sysxxx' and use "sysxxx" instead to be more consistent. Sponsored by: Netflix
Configuration menu - View commit details
-
Copy full SHA for 4488755 - Browse repository at this point
Copy the full SHA 4488755View commit details -
makesyscalls.lua: Minor fluff removal
luacheck pointed out two minor issues: line isn't declared as a global, so declare it local. Also remove an unused parameter. Suggested by: kevans Sponsored by: Netflix
Configuration menu - View commit details
-
Copy full SHA for a8cbccd - Browse repository at this point
Copy the full SHA a8cbccdView commit details -
Have more accruate comments. While #if, #else, etc are copied to the header files, lines that don't start with # are not. And #include files are only output to sysinc (which winds up at the front of init_sysent.c which seems a bit odd). This is all radically undocumented, and likely has drifted somewhat from 4.4BSD and what other systems do (they've drifted too, fwiw). Sponsored by: Netflix
Configuration menu - View commit details
-
Copy full SHA for 7fd32f8 - Browse repository at this point
Copy the full SHA 7fd32f8View commit details -
Update meta.sys.mk and related local*mk
Move the setting of TARGET_SPEC_VARS to local.sys.env.mk so meta.sys.mk can do the processing, and include local.meta.sys.mk later. Move the setting of GENDIRDEPS_FILTER*_VARS from local.gendirdeps.mk to local.meta.sys.mk so we can automatically set DEP_* at level 1+ to avoid syntax errors when DEP_* variables are used in conditionals in Makefile.depend files. Update gendirdeps.mk just to get the documentation about the above. No functional change. local.dirdeps.mk be more careful about adding to DIRDEPS to avoid unnecessary overhead, and introducing cycles in the graph. Also set DEP_MACHINE_CPUARCH. Reviewed by: stevek Sponsored by: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D39737
Configuration menu - View commit details
-
Copy full SHA for 03ecfc1 - Browse repository at this point
Copy the full SHA 03ecfc1View commit details -
cxgbe(4): Update firmwares to version 1.27.3.0
These are the changes since the last update (copy-pasted from the release notes for Chelsio Unified Wire v3.18.0.0): ==================== Version : 1.27.3.0 Date : 04/07/2023 Fixes ----- BASE: - Fixed a hang if module eeprom reads gives invalid data. - KR backlplane no-fec link problem fixed. OFLD: - iscsi ddp errors fixed. - iwarp connection abort in rare cases causing NIC traffic hang fixed. ENHANCEMENTS ------------ BASE: - Cisco GLC-TE 1G modules support added. ==================== Version : 1.27.1.0 Date : 12/02/2022 Fixes ----- BASE: - memwrite dsgl cannot be used for T5. OFLD: - Enabled FCoE in SO adapters. - TOE-TLS crash fixed. - iscsi hang fixed. MFC after: 2 weeks Sponsored by: Chelsio Communications
Configuration menu - View commit details
-
Copy full SHA for e43096f - Browse repository at this point
Copy the full SHA e43096fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c116fc - Browse repository at this point
Copy the full SHA 4c116fcView commit details -
bsdinstall avoid subdir depending on parent
When not doing tree walks, it is bad for sub-dirs to depend on parents. Move the generation of opt_osname.h to distextract and have others that need that depend on it. In usr.sbin/bsdinstall use SUBDIR_DEPEND_ so tree walking still works. Reviewed by: obrien Differential Revision: https://reviews.freebsd.org/D39742
Configuration menu - View commit details
-
Copy full SHA for f61bf27 - Browse repository at this point
Copy the full SHA f61bf27View commit details -
Configuration menu - View commit details
-
Copy full SHA for 595d741 - Browse repository at this point
Copy the full SHA 595d741View commit details -
syscall.master: Remove stray 4.2
Back in 4.3BSD, the system call table wasn't generated, and there was an entry: "4.2 sigreturn", /* 139 = old 4.2 sigreturn */ This got converted to 139 OBSOL 0 4.2 sigreturn in 4.3 RENO. Since it was obsolete, nothing bad happened. In fact, there was code in makeyscalls.sh to cope: { comment = $4 for (i = 5; i <= NF; i++) comment = comment " " $i if (NF < 5) $5 = $4 } so the generated comment in syscalls.c was almost correct: "obs_4.2", /* 139 = obsolete 4.2 sigreturn */ a bug that we have to this very day, despite makesyscalls.sh being rewritten in lua. However, this historical wart is the only place in our current syscalls.master file where we have an extra field for the 'not generated' class of system calls. Remove the historical wart so that the re-write of makesyscalls.lua can be simpler (so, I hope, qemu's bsd-user can large swathes of code automatically generated too). This should help make things more understandable (changes to simplify makesyscalls.lue aren't quite debugged, so have to wait for another day). There's 3 different obsolete sigreturns (but only 1 that was ever in FreeBSD 2.x and newer). Sponsored by: Netflix
Configuration menu - View commit details
-
Copy full SHA for d4564dc - Browse repository at this point
Copy the full SHA d4564dcView commit details -
The 4.2 sigreturn was a bit of a enima so the 4.2 was remove. Regenerate to cope the very minor changes in comments and one string. Sponsored by: Netflix
Configuration menu - View commit details
-
Copy full SHA for 2aeebeb - Browse repository at this point
Copy the full SHA 2aeebebView commit details -
linuxkpi: Fix __sg_alloc_table_from_pages loop
Commit 3e0856b updated __sg_alloc_table_from_pages to use the same API as linux, but modified the loop condition when going over the pages in a sg list. Part of the change included moving the sg_next call out of the for loop and into the body, which causes an off by one error when traversing the list. Since sg_next is called before the loop body it will skip the first element and read one past the last element. This caused panics when running PRIME with nvidia-drm as the off-by-one issue causes a NULL dereference. Reviewed by: bz, hselasky Differential Revision: https://reviews.freebsd.org/D39628 Fixes: 3e0856b ("linuxkpi: Fix `sg_alloc_table_from_pages()` to have the same API as Linux")
Configuration menu - View commit details
-
Copy full SHA for 258758a - Browse repository at this point
Copy the full SHA 258758aView commit details -
mpr: fix copying of event_mask
Before the commit 6cc44223cb6717795afdac4348bbe7e2a968a07d the field event_mask was fully copied to the EventMasks field. After this commit the event_mask (uint8_t) is 4 times casted to EventMask (uint32_t). Because of that 24 bits of each event_mask array is lost. This commits brings back simple copying of field, and after words converting 32 bits field to the requested endian. I don't think we need more sophisticated method, as the array is of size 4 (for 32 bits version). Reviewed by: imp MFC after: 1 week Sponsored by: Klara Inc. Differential Revision: https://reviews.freebsd.org/D39562
Configuration menu - View commit details
-
Copy full SHA for af7c06a - Browse repository at this point
Copy the full SHA af7c06aView commit details -
mpr: don't use hardcoded value in debug branch
Pointed out by: imp Sponsored by: Klara Inc.
Configuration menu - View commit details
-
Copy full SHA for 7315225 - Browse repository at this point
Copy the full SHA 7315225View commit details -
* Align 'on <interface>' parameter with the BNF, so use 'on <ifspec>' * Clarify etherprotospec BNF, to make it clearer that only numbers are supported. Suggested by: Christian McDonald Sponsored by: Rubicon Communications, LLC ("Netgate")
Configuration menu - View commit details
-
Copy full SHA for a6eb4b0 - Browse repository at this point
Copy the full SHA a6eb4b0View commit details -
tcp: hpts needs to still call output even after input.
The other stacks it turns out actually expect the output to be called and can become stuck if it is not. This is because they run there timer code from there and the input routine does not always assure a timer is running. The real longterm fix here might be to go into the other stacks (rack and bbr) and make sure that a timer is running after input if you don't do output.. as well as call the timer functions. This would cut down on calls from hpts. But I think its too dramatic of a change for the immediate time. Reviewed by: tuexen, glebius Sponsored by: Netflix Inc Differential Revision:https://reviews.freebsd.org/D39738
Configuration menu - View commit details
-
Copy full SHA for 7d347b4 - Browse repository at this point
Copy the full SHA 7d347b4View commit details -
riscv: Compile instr_size.c into the kernel when DTrace is configured
Reported by: Jenkins Fixes: 080e56a ("dtrace: expose dtrace_instr_size() to userland and implement it for riscv")
Configuration menu - View commit details
-
Copy full SHA for b125867 - Browse repository at this point
Copy the full SHA b125867View commit details -
There's no need to quote the # here. Inside of regexp, it's not treated like a comment from an awk perspective. And inside if '' it's not treated as special by the shell. gawk also warns. Sponsored by: Netflix
Configuration menu - View commit details
-
Copy full SHA for c878f0c - Browse repository at this point
Copy the full SHA c878f0cView commit details -
If it doesn't exist, we don't need it in the table... Sponsored by: Netflix
Configuration menu - View commit details
-
Copy full SHA for b8bc8b5 - Browse repository at this point
Copy the full SHA b8bc8b5View commit details -
Need to regen freebsd32 as well when sys/kern/syscalls.master is updated. Sponsored by: Netflix
Configuration menu - View commit details
-
Copy full SHA for ab47361 - Browse repository at this point
Copy the full SHA ab47361View commit details -
llvm: fix some llvm-* tool links when WITH_LLVM_BINUTILS is set
A few Makefiles overrode LINKS and MLINKS when WITH_LLVM_BINUTILS was set, which caused some llvm- prefixed tools to disappear. One such case was llvm-ranlib, which some ports invoke explicitly. Use += when adding to LINKS and MLINKS under WITH_LLVM_BINUTILS. PR: 270955, 270956, 270959 Submitted by: jbeich Reviewed by: arichardson Fixes: 021385a ("Add WITH_LLVM_BINUTILS to install LLVM binuti...") Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D39747
Configuration menu - View commit details
-
Copy full SHA for 0bf9858 - Browse repository at this point
Copy the full SHA 0bf9858View commit details -
Sponsored by: The FreeBSD Foundation
Configuration menu - View commit details
-
Copy full SHA for bfe9549 - Browse repository at this point
Copy the full SHA bfe9549View commit details -
llvm-strings: Install as strings when WITH_LLVM_BINUTILS=YES
Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D32065
Configuration menu - View commit details
-
Copy full SHA for 9ff0037 - Browse repository at this point
Copy the full SHA 9ff0037View commit details