summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-06-22Adjust expected output after the change to show more proper info in Adj-RIB-OutClaudio Jeker
2021-06-22bwfm(4) on PCI isn't really MPSAFE, and I'm not sure how this flagPatrick Wildt
even got there in the first place. I've been wondering why I have seen a bit of mbuf corruption here and there since I put the bwfm(4) M.2 PCIe card into my arm64 machine. Well, duh.
2021-06-22Pp not required before list items;Jason McIntyre
2021-06-22reduce verbosity of usage(), making it match SYNOPSIS;Jason McIntyre
ok kettenis
2021-06-22reduce verbosity of usage(); keep it the same as SYNOPSIS, wrapped at 80w.Jason McIntyre
lowercase for "usage", and add -e, which was missing; ok kettenis
2021-06-22The values for blocks and offset in -b should be treated as 512-byte blockKenneth R Westerback
counts. Tweak man page accordingly. Requested by deraadt@ and kettenis@.
2021-06-21Fix uninitialized variables introduced in rev 1.361Jeremie Courreges-Anglas
Thankfully clang elided the code in an almost harmless way (at least on amd64 GENERIC.MP). Spotted by chance when building kernels with -Wno-error=uninitialized. ok dlg@ sashan@ bluhm@
2021-06-21Change tb_freq to uint64_t. This prevents an overflow in the riscv64Mark Kettenis
implementation of delay(9). ok deraadt@
2021-06-21bye bye -oMarc Espie
2021-06-21Change tb_freq to uint64_t. This prevents an overflow in the riscv64Mark Kettenis
implementation of delay(9). ok deraadt@
2021-06-21code is obvious, comments not requiredTheo de Raadt
2021-06-21delete old debugging codeTheo de Raadt
2021-06-21under some circumstances, we end up with libexecinfo -> BaseSystem beingMarc Espie
recorded as a new dependency. Even though ForwardDependencies normally takes care of that, with tags, this is not enough. (this happens only because libexecinfo was a "tight" dependency, thus resulting in a large UpdateSet, and when some of the objects did require tags in the new package, and when the order of things meant that BaseSystem was considered a bit early). Since there's no handle at this point, a dirty but efficient test vs BaseSystem will do (which is not a valid normal package name anyhow) tested to fix the obnoxious warning landry@ saw, which I was able to reproduce on a box...
2021-06-21correct riscv64 blocksTheo de Raadt
discussion with espie kettenis jsg
2021-06-21Add GnuTLS interoperability test in appstest.shKinichiro Inoguchi
2021-06-21Wrap #define nitems in #ifndef nitems/#endif.Kenneth R Westerback
While here fix a misplaced '(' to make this nitems the same as all its friends. Pointed out by okan@
2021-06-21Fix ieee80211_node leak in iwm(4) and iwx(4).Stefan Sperling
CVS commit mPRyhYmlmonmI11J which added support for Rx aggregation offload contains a node leak in the rx_reorder() function. Node leaks will cause the driver to get stuck when roaming between access points. Add missing calls to ieee80211_release_node() to fix this. ok mpi@
2021-06-21syncTheo de Raadt
2021-06-21vmd(8): support variable length vionet rx descriptor chainsdv
The original implementation of the virtio network device assumed a driver would only provide a 2-descriptor chain for receiving packets. The virtio spec allows for variable length chains and drivers, in practice, construct them when they use a sufficiently large MTU. This change lets the device use variable length chains provided by the driver, thus allowing for drivers to set an MTU up to the underlying host-side tap(4)'s limit of TUNMRU (16384). Size limitations are now enforced on both tx and rx-side dropping anything violating the underlying tap(4) min and max limits. More work is needed to increase the read(2) buffer in use by vmd to prevent packet truncation. OK mlarkin@
2021-06-21Add -A option to "safely" initialize a GPT without removingKenneth R Westerback
special boot partitions needed by some hardware. Make it difficult to add, delete or modify those partitions with 'fdisk -e'. Trim back and correct syntax in usage(). Whack at man page verbiage. Suggestions and ok deraadt@
2021-06-20We need to store the flagged passed to sigsetjmp(3) and use it inMark Kettenis
siglongjmp(3) to decide wehther we need to restore the signal mask. ok deraadt@, drahn@
2021-06-20Adjust snmp regress to recent changesMartijn van Duren
OK sthen@
2021-06-20Adjust snmpd regress to recent changesMartijn van Duren
OK sthen@
2021-06-20Change the authentication protocol (-a) default to SHA-256 and the privacyMartijn van Duren
protocol (-x) default to AES. The old defaults are just not sane anymore. OK sthen@
2021-06-20Change default user auth to hmac-sha256 and enc to aes.Martijn van Duren
The old defaults are just not sane anymore. OK sthen@
2021-06-20Tighten default security for snmpd(8). This is done by doing severalMartijn van Duren
things: - Only allow SNMPv3 by default. SNMPv1 and SNMPv2c can be enabled by setting the new snmpv* flags on the "liston on" statements. - Remove the default community names. They're not secure to use. - Change the default seclevel to enc. Initial idea, help from and OK sthen@
2021-06-20replace the Oo/Oc block of -chs in SYNOPSIS with a simple Op: the blockJason McIntyre
would have been written this way because of the old args limit, but the extensions to -b expose a nasty line wrap when written that way;
2021-06-20few more Ns in the -b option descriptionTheo de Raadt
2021-06-20Make -b available to architectures other than amd64 and i386.Kenneth R Westerback
Extend the syntax to allow the boot partition offset and boot partition type to be specified if needed. ok deraadt@ kettenis@
2021-06-20Mystery bag of cleanups -- mostly removing old debug code, or movingTheo de Raadt
local variables to just before they are needed. ok kettenis
2021-06-20Make sure we program the baud rate divisor register. Without this,Mark Kettenis
opening the tty corresponding to a non-console device will hang the machine. ok deraadt@
2021-06-20Skip disabled cpus (usually service cpus without full functionality).Theo de Raadt
cpumatch will also ignore them, but skipping them here avoids increment of hw.cpusfound ok jsg
2021-06-20use __riscv instead of __riscv64Theo de Raadt
2021-06-20Add a test case for fmt_scaled.c r1.20Theo Buehler
2021-06-20scan_scaled: fix rescaling for negative numbersTheo Buehler
As found by djm by fuzzing ssh, scan_scaled can overflow for negative numbers when rescaling is needed. This is because the rescaled fractional part is added without taking the sign into account. ok ian jca
2021-06-20Reinstate locks around uvm_fault calls from upageflttrap and kpageflttrapStuart Henderson
on i386. This is a backout of revision 1.152. Kernel crash with messages printed concurrently from multiple CPUs occasionally seen during ports build: "WARNING: SPL NOT LOWERED ON TRAP EXIT" and these panics ddb{1}> sh panic cpu1: uvm_fault(0xd470a0a0, 0xcf9b7000, 0, 1) -> e cpu3: kernel diagnostic assertion "!_kernel_lock_held()" failed: file "/usr/src/sys/uvm/uvm_map.c", line 2707
2021-06-20Put (boot) filename, next-server, host-name and domain-name into leaseFlorian Obser
file for the installer.
2021-06-20Don't try to install a default route with route(8) later on if we areFlorian Obser
using inet autoconf, like we do with "dhcp" and "inet6 autoconf". OK kn
2021-06-20Move towards a 7.1 OpenBGPD releaseClaudio Jeker
2021-06-20regenJonathan Gray
2021-06-20add some devices found on the intel nuc10i7fnhJonathan Gray
For the thunderbolt controller, while a public datasheet with product ids and marketing names can't be found we know these ids are for the two channel version of the thunderbolt 3 controller codenamed titan ridge from public patches by Intel employees. There are two channels per port and the only single port titan ridge described on ark.intel.com is the JHL7340. The ids included with lspci refer to these devices as JHL7540 but that is a four channel / two port controller. initial patch from fkr
2021-06-19Assert that fpu_load() only gets called with the FPU "off".Mark Kettenis
ok drahn@
2021-06-19C version of fabs(), for nowTheo de Raadt
turns out same as a diff drahn didn't commit ok kettenis
2021-06-19zap trailing whitespaceTheo Buehler
2021-06-19Correctly handle epoch wrapping in dtls1_get_bitmap().Joel Sing
Due to a type bug that has been present in DTLS since the code was first committed in 2005, dtls1_get_bitmap() fails to handle next epoch correctly when the epoch is currently 0xffff (and wraps to zero). For various reasons unknown, the epoch field in the SSL3_RECORD_INTERNAL (formerly SSL3_RECORD) was added as unsigned long (even though the value is an unsigned 16 bit value on the wire, hence cannot exceed 0xffff), however was added to other code as unsigned short. Due to integer promotion, the r_epoch value is incremented by one to become 0x10000, before being cast to an unsigned long and compared to the value pulled from the DTLS record header (which is zero). Strangely 0x10000 != 0, meaning that we drop the DTLS record, instead of queueing it for the next epoch. Fix this issue by using more appropriate types and pulling up the calculation of the next epoch value for improved readability. ok inoguchi@ tb@
2021-06-19Add DTLS test cases that use non-zero initial epochs.Joel Sing
In particular, test handling of 0xfffe and 0xffff - the latter results in wrapping to zero for the next epoch. One of these tests triggers a known bug in libssl, which will be fixed following this commit.
2021-06-19Provide the ability to set the initial DTLS epoch value.Joel Sing
This allows for regress to test edge cases for epoch handling. ok tb@
2021-06-19Initialise the epoch for the DTLS processed and unprocessed queues.Joel Sing
Currently these only get correctly initialised when dtls1_process_buffered_records() is called - while this works it is more accidental than intentional. ok tb@
2021-06-19Add more complex DTLS tests for delay/reordering.Joel Sing
These tests exercise the various queues and delayed processing that exists in the DTLS code.
2021-06-19Expand comment that details why two DTLS tests currently fail.Joel Sing
Two tests currently fail (and are disabled) due to a flaw in the DTLSv1.0 specification - this flaw was addressed in DTLSv1.2, however our DTLS server code still needs to support the fix. Quoting RFC 6347 section 4.2.4: "This requirement applies to DTLS 1.0 as well, and though not explicit in [DTLS1], it was always required for the state machine to function correctly." In otherwords, both the original DTLS implementation and the DTLSv1.0 specification have a broken state machine, resulting in possible dead lock.