summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-06-13Remove references to obsolete alerts.Joel Sing
The "no_certificate" alert only existed in SSLv3, while the "decryption_failed" and "export_restriction" alerts were removed in TLSv1.1. ok tb@
2021-06-13Tweak gsetpid() to restore partition info in case of an error,Kenneth R Westerback
and mark the partition dirty only if something changed. More aligned with gedit() and safer when invoked directly from Xsetpid().
2021-06-13UUID_STR_LEN+1 is less mysterious than '37'.Kenneth R Westerback
2021-06-13Don't ignore a GPT that claims the last usable LBA is locatedKenneth R Westerback
past the address where alternate partition entries would be written. Just adjust the GPT header value (gh_lba_end) to the highest safe value and carry on. Issue encountered in the wild by mlarkin@ while accessing some disk images. ok deraadt@
2021-06-13Fix lba_start >= lba_end debug message.Kenneth R Westerback
2021-06-13Back off a couple of the more paranoid checks while spoofing GPTKenneth R Westerback
partitions into the disklabel. First, since the alt header is never accessed there is no need to worry about it being inaccessible. Second, the GPT header claiming to cover more sectors than the device has is no reason to ignore all the partitions. The partition actually present could still be useful. Issues encountered in the wild by mlarkin@ while accessing some disk images. ok deraadt@
2021-06-13regenJonathan Gray
2021-06-13add hifive unmatched idsJonathan Gray
ok deraadt@ kettenis@
2021-06-13Clean this up a bit. Use register names that match the documentation, andMark Kettenis
fix some register number. Drop reading the Interrupt Pending register in the interrupt handler as this was actually reading the Interrupt Enable register and the bits that were checked were always true. Fix bogus code in sfuartcnputc() and simplyfy sfuartcngetc(). Throw in some style fixes for good measure.
2021-06-13refer to the correct domain for sdhc specJonathan Gray
from fkr
2021-06-13add arch to Dt line;Jason McIntyre
2021-06-13add SiFive FU740-C000 to SoC listJonathan Gray
2021-06-13Match sifive,fu740-c000-gem so that device is detected on Unmatched.Dale Rahn
pointed out by jsg@
2021-06-13add sfuart(4)Jonathan Gray
2021-06-13cad(4) appears to be working on Unmatched.Dale Rahn
2021-06-12Serial driver for SiFive Unmatched (U74) based on dev/fdt/amluart.cDale Rahn
console input and output working, userland input and output at least partially working. 'commit that driver, further improvements can happen in-tree' deraadt@
2021-06-12add dwpcie(4) to riscv64 sectionJonathan Gray
2021-06-12Ooops. Managed to typo 'gh' instead of 'gp' when copyingKenneth R Westerback
code from GPT_init() into init_gh().
2021-06-12Recognize "HiFive! FSBL" and "HiFive! BBL" GPT partitions.Kenneth R Westerback
Seen on SiFive Unmatched stock image provided by mlarkin@.
2021-06-12Abstract init_gh() and init_gp() from GPT_init().Kenneth R Westerback
Restore original gh/gp if initialization fails. No other functional change.
2021-06-12GPT_get_header() and GPT_get_partition_table() are only usedKenneth R Westerback
in gpt.c. Move declarations and rename to get_header() and get_partition_table(). No functional change.
2021-06-12space between macro args and punctuation;Jason McIntyre
2021-06-12space between macro args and punctuation;Jason McIntyre
2021-06-12remove incorrect CAVEATS section;Jason McIntyre
from miod; ok millert while here, knock out an instance of ".Tn"
2021-06-12Enable dwpcie(4) and add support for the PCIe host bridge found on theMark Kettenis
SiFive FU740 SoC. ok drahn@
2021-06-12When initializing a GPT always create an EFI SYS partition if theKenneth R Westerback
'-b' option is specified. GPT is no longer a __i386__/__amd64__ thing. ok kettenis@
2021-06-12Create add_partition() and use in GPT_init() to initialize GPTKenneth R Westerback
with EFI SYS and OpenBSD partitions. Replaces some barbarian direct whacking of GPT. ok kettenis@
2021-06-12Exercise resetting of expired and unexpired timers.Visa Hankala
2021-06-12Restrict MSI override to i386 and amd64. On other architectures we canMark Kettenis
trust the flag set by the PCI host bridge driver and there are cases where it isn't set because MSIs aren't implemented (for example on riscv64). ok patrick@, sf@
2021-06-12RFC 4507bis can refer to various RFCs but this instance is aboutTheo Buehler
RFC 5077. Note that session resumption via session tickets is only for TLSv1.2 and earlier. prompted by a question by/ok jmc
2021-06-12Enable code to read MAC address from the device tree on FDT platforms.Mark Kettenis
ok deraadt@, gkoehler@
2021-06-12space between rfc and number;Jason McIntyre
2021-06-12Use a new variable 'gpbytes' rather than 'sizeof(gp)' to controlKenneth R Westerback
the number of bytes of partition entries to write to disk. Set gpbytes to 'sizeof(gp)' so no functional change for now.
2021-06-11Oops. Restore error message when no free space found.Kenneth R Westerback
2021-06-11vmd(8): deduplicate vioblk command logicdv
No need for each case in the switch block to have the same logic for updating the used ring and writing the state back to the guest. Move it outside the switch. No functional change. ok mlarkin@
2021-06-11Add local function lba_free() to find the bounds of the largestKenneth R Westerback
chunk of free space in a GPT. Steal logic from GPT_get_lba_start(). No intentional functional change.
2021-06-11space between RFC and number;Jason McIntyre
2021-06-11space between RFC and number;Jason McIntyre
2021-06-11remove netbsd specific LIBRARY section; ok jcaJason McIntyre
2021-06-11Only use SSL_AD_* internally.Joel Sing
Due to hysterical raisins there are three different types of defines for alerts. SSL3_AD_* are from SSLv3, TLS1_AD_* are from TLSv1.0 onwards and SSL_AD_* currently map to either an SSL3_AD_* or TLS1_AD_* define. Currently, all three of these are used in various places - switch to using just SSL_AD_* values internally, as a first step in cleaning this up. ok tb@
2021-06-11setitimer(2): don't round up it_valuecheloha
We can reduce latency for the first expiration of a timer if we don't round it_value up to the minimum interval (1 tick). While we're at it, we may as well consolidate all input validation and adjustment into a single itimerfix() call. There are no other callers in the kernel (nor should there be), so remove the prototype from sys/time.h. Discussion: https://marc.info/?l=openbsd-tech&m=162084338005502&w=2 Tested by weerd@ and claudio@. probably ok claudio@
2021-06-11Add local functions edit() and setpid().Kenneth R Westerback
Reduce Xedit()/Xsetpid() to parsing the partition number and invoking [g]edit()/[g]setpid() appropriately. No intentional functional change.
2021-06-11recognise ALC897Jonathan Gray
2021-06-11enable snooping on Z590 HDAJonathan Gray
from Ashton Fagg
2021-06-11regenJonathan Gray
2021-06-11add a HDA device found in a Z590 machineJonathan Gray
from Ashton Fagg
2021-06-11add AES-GCM constants from RFC 7714 for SRTPLandry Breuil
SRTP_AEAD_AES_128_GCM/SRTP_AEAD_AES_256_GCM can be used as DTLS-SRTP protection profiles - seen with an update of telephony/baresip i'm working on. adapted from openssl commit 43e5faa2539ae8aae6ef55be2239b9b1a77fea45 ok tb@ jsing@
2021-06-11Take a bit more obvious care in gedit() to restore originalKenneth R Westerback
partition information when one of the modification steps (e.g. setting the partition type via gsetpid()) fails.
2021-06-11Revert previous change in ikev2_cp_fixaddr().tobhe
Fixes a regression found by landry@. ok patrick@
2021-06-11Drop received packets unless IFF_RUNNING is set. When hvn(4) attachesPatrick Wildt
it sends commands and waits for replies to come back in. The receive pipe seems to contain both command completions and data packets. When waiting for command completion during hvn(4) attach, it's possible for packets to show up as well. We shouldn't call if_input() if hvn(4) is not set up, so drop them when we're not running. ok mikeb@