- 14 Apr, 2021 2 commits
-
-
Shawn Webb authored
Too tired. Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org> issue: #37 MFC-to: 13-STABLE MFC-to: 12-STABLE
-
Shawn Webb authored
Create a new function for checking sanity after the config has been parsed. That way, we check sanity both before and after loading the config. Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org> issue: #37 MFC-to: 13-STABLE MFC-to: 12-STABLE
-
- 13 Apr, 2021 12 commits
-
-
Shawn Webb authored
By default, hbsd-update uses whatever network is available to look up the version and download artifacts. There are cases where forcing IPv4 or IPv6 would be useful. This commit adds that support. Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org> issue: #37 MFC-to: 13-STABLE MFC-to: 12-STABLE
-
Shawn Webb authored
Signed-off-by:
Shawn Webb <shawn.webb@hardenedbsd.org>
-
Shawn Webb authored
Conflicts: sys/amd64/linux32/linux32_sysvec.c (unresolved)
-
Alexander Motin authored
During device destruction it is possible that open() succeed, but fdevname() return NULL, that can't be assigned to string variable. Fix that by adding explicit NULL check. Also while there switch from fdevname() to fdevname_r(). Sponsored by: iXsystems, Inc. MFC after: 2 weeks
-
Konstantin Belousov authored
Since 7763814f nfsrpc_setclient() uses mem_alloc() that is macro around malloc(M_RPC). M_RPC is provided by xdr.ko. Reviewed by: rmacklem Sponsored by: Mellanox Technologies/NVidia Networking MFC after: 1 week
-
Edward Tomasz Napierala authored
This should be a no-op; the purpose of this is to reduce a spurious difference between Linuxulator and Linux, to make debugging core dumps slightly easier. Note that AT_HWCAP2 we pass to Linux binaries is always 0, instead of being equal to 'cpu_feature2'. This matches what I've observed under Ubuntu Focal VM. Reviewed By: chuck, dchagin Sponsored By: EPSRC Differential Revision: https://reviews.freebsd.org/D29609
-
Alex Richardson authored
The `history.immutable` setting prevents arcanist from updating the commit messages with the Differential URL and therefore makes updating patches awkward with a rebase workflow. In case this new behaviour is not wanted the old one can be restored by running `arc set-config --local history.immutable true`. Test Plan: `arc diff --create HEAD^` adds the metadata now. Reviewed By: #phabric-admin, imp, lwhsu Differential Revision: https://reviews.freebsd.org/D27971
-
HardenedBSD Sync Service authored
* freebsd/current/main: config(8): Correct the mentioned paper in the SEE ALSO section route(8): Add an example how to print the routing tables
-
Kurosawa Takahiro authored
MAP-E (RFC 7597) requires special care for selecting source ports in NAT operation on the Customer Edge because a part of bits of the port numbers are used by the Border Relay to distinguish another side of the IPv4-over-IPv6 tunnel. PR: 254577 Reviewed by: kp Differential Revision: https://reviews.freebsd.org/D29468
-
Gordon Bergling authored
FreeBSD's version of the config(8) utility is based on 4.3BSD not 4.4BSD. So correct the mentioned paper in the SEE ALSO section. Reported by: imp Reviewed by: imp X-MFC-with: 2b59392c Differential Revision: https://reviews.freebsd.org/D29701
-
Gordon Bergling authored
The manual page currently doesn't show an example how to print the routing table, so add one and .Xr netstat while here. PR: 231579 Reported by: Pekka Järvinen <pekka dot jarvinen at gmail dot com> Reviewed by: debdrup MFC after: 5 days Differential Revision: https://reviews.freebsd.org/D29702
-
HardenedBSD Sync Service authored
* freebsd/current/main: Spellcheck.
-
- 12 Apr, 2021 26 commits
-
-
John Baldwin authored
Reported by: 0mp
-
HardenedBSD Sync Service authored
* freebsd/current/main: cxgbe: Ignore doomed virtual interfaces when updating the clip table. RELNOTES: Document removal of asym crypto from OCF. OCF: Remove support for asymmetric cryptographic operations. iscsi: Kick threads out of iscsi_ioctl() during unload. cxgbe: Add counters for iSCSI PDUs transmitted via TOE. hptrr: Move to using .o files hptmv: use .o files directly hpt27xx: store the .o files directly in the tree hptnr: Store the .o files directly in the repo bhyve: Move the gdb_active check to gdb_cpu_suspend(). pfctl, libpfctl: introduce pfctl_pool
-
John Baldwin authored
A doomed VI does not have a valid ifnet. Reported by: Jithesh Arakkan @ Chelsio Reviewed by: np MFC after: 1 week Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D29662
-
John Baldwin authored
Sponsored by: Chelsio Communications
-
John Baldwin authored
There haven't been any non-obscure drivers that supported this functionality and it has been impossible to test to ensure that it still works. The only known consumer of this interface was the engine in OpenSSL < 1.1. Modern OpenSSL versions do not include support for this interface as it was not well-documented. Reviewed by: cem Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D29736
-
John Baldwin authored
iscsid can be sleeping in iscsi_ioctl() causing the destroy_dev() to sleep forever if iscsi.ko is unloaded while iscsid is running. Reported by: Jithesh Arakkan @ Chelsio Reviewed by: mav MFC after: 1 week Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D29688
-
John Baldwin authored
Reviewed by: np MFC after: 1 week Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D29297
-
Warner Losh authored
Use .o files directly. Replace the .o.uu files that we uudecode with .o files. Adjust the kernel and module build to cope. Suggestions by: markj@, emaste@ Sposnored by: Netflix, Inc Differential Revision: https://reviews.freebsd.org/D29636
-
Warner Losh authored
uudecode the .o.uu files and commit directly to the tree. Adjust the build infrastructure to cope with the new location, both for the kernel and modules. Sposnored by: Netflix, Inc Differential Revision: https://reviews.freebsd.org/D29635
-
Warner Losh authored
Store the .o files directly in the tree. We no longer need to play uuencode games like we did in the CVS days. Adjust the build infrastructure to match. Reviewed by: markj@ Sposnored by: Netflix, Inc Differential Revision: https://reviews.freebsd.org/D29634
-
Warner Losh authored
We no longer need to use uuencode to uuencode files in our tree. Store the .o file directly instead. Adjust the build to cope with the new arrangement. Suggestions by: emaste, bz, donner Reviewed by: markm Sposnored by: Netflix, Inc Differential Revision: https://reviews.freebsd.org/D29632
-
John Baldwin authored
The check needs to be in the public routine (gdb_cpu_suspend()), not in the internal routine called from various places (_gdb_cpu_suspend()). All the other callers of _gdb_cpu_suspend() already check gdb_active, and this breaks the use of snapshots when the debug server is not enabled since gdb_cpu_suspend() tries to lock an uninitialized mutex. Reported by: Darius Mihai, Elena Mihailescu Reviewed by: elenamihailescu22_gmail.com Fixes: 621b5090 Differential Revision: https://reviews.freebsd.org/D29538
-
Kurosawa Takahiro authored
Introduce pfctl_pool to be able to extend the pool part of the pf rule without breaking the ABI. Reviewed by: kp MFC after: 4 weeks Differential Revision: https://reviews.freebsd.org/D29721
-
HardenedBSD Sync Service authored
* freebsd/current/main: syncache: simplify syncache_add() KPI to return struct socket pointer directly, not overwriting the listen socket pointer argument. Not a functional change. Update capsicum-test to ea66424d921bb393539b298c108a46edee5c3051 tcp_input/syncache: acquire only read lock on PCB for SYN,!ACK packets bhyve: add SMBIOS Baseboard Information rmlock(9): add an RM_DUPOK flag rc: replace NETWORK with NETWORKING rc: remove the 'archdep' script Fix build of stand/usb . Rename struct device to struct _device linuxkpi: Fix pcie_set_readrq() qlnxr: Properly initialize the Linux device structure cxgb: Use device_t in preference to struct device * al_eth: Use device_t in preference to struct device * genet: Use device_t in preference to struct device *
-
Mark Johnston authored
-
Gleb Smirnoff authored
directly, not overwriting the listen socket pointer argument. Not a functional change.
-
Mark Johnston authored
This adds regression tests for a recent FreeBSD commit to restrict certain socket operations in capability mode.
-
Gleb Smirnoff authored
When packet is a SYN packet, we don't need to modify any existing PCB. Normally SYN arrives on a listening socket, we either create a syncache entry or generate syncookie, but we don't modify anything with the listening socket or associated PCB. Thus create a new PCB lookup mode - rlock if listening. This removes the primary contention point under SYN flood - the listening socket PCB. Sidenote: when SYN arrives on a synchronized connection, we still don't need write access to PCB to send a challenge ACK or just to drop. There is only one exclusion - tcptw recycling. However, existing entanglement of tcp_input + stacks doesn't allow to make this change small. Consider this patch as first approach to the problem. Reviewed by: rrs Differential revision: https://reviews.freebsd.org/D29576
-
Chuck Tuffli authored
Add the System Management BIOS Baseboard (or Module) Information a.k.a. Type 2 structure to the SMBIOS emulation. Reviewed by: rgrimes, bcran, grehan MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D29657
-
Mitchell Horne authored
Allows for duplicate locks to be acquired without witness complaining. Similar flags exists already for rwlock(9) and sx(9). Reviewed by: markj MFC after: 3 days Sponsored by: NetApp, Inc. Sponsored by: Klara, Inc. NetApp PR: 52 Differential Revision: https://reviews.freebsd.org/D29683n
-
Edward Tomasz Napierala authored
This improves consistency; the NETWORKING script provides both, so there should be no functional change. Differential Revision: https://reviews.freebsd.org/D29587
-
Edward Tomasz Napierala authored
It was unused since 405c3050, which removed iBCS support. This also moves the 'linux' rc script slightly earlier, which might help in some setups. The original version of this patch moved it even more, before 'mountcritlocal', which would fixe mount(8) errors due to missing /dev/shm in setups with entries for /path/to/chroot/dev/shm without the "late" flag; however, in the end 'kldxref' turned out to depend on 'mountcritlocal' anyway. Reported By: pstef Reviewed By: dchagin Sponsored By: EPSRC Differential Revision: https://reviews.freebsd.org/D29590
-
Hans Petter Selasky authored
MFC after: 1 week Sponsored by: Mellanox Technologies // NVIDIA Networking
-
Mark Johnston authored
types.h defines device_t as a typedef of struct device *. struct device is defined in subr_bus.c and almost all of the kernel uses device_t. The LinuxKPI also defines a struct device, so type confusion can occur. This causes bugs and ambiguity for debugging tools. Rename the FreeBSD struct device to struct _device. Reviewed by: gbe (man pages) Reviewed by: rpokala, imp, jhb MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D29676
-
Mark Johnston authored
We were passing a LinuxKPI struct device * to a pci(4) function that expects a device_t. Reviewed by: manu, hselasky, bz MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D29675
-
Mark Johnston authored
The driver needs to provide a LinuxKPI device structure to register itself with the IB subsystem. It was erroneously using a copy of its FreeBSD device structure for this purpose. Use linux_pci_attach_device() instead, following the example of the Chelsio iwarp driver. Also ensure that we don't leak the faked device during detach. Reviewed by: hselasky MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D29595
-