summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-05-23Prevent km_alloc() from returning garbage if pagelist is empty.jan
ok bluhm@, visa@
2020-05-23Add RB_GOODRANDOM passed from bootloader to kernel in boothowto. IndicatesTheo de Raadt
confidence 'a great seed' was loaded, otherwise the kernel should assume at best a 'ok seed' or 'weak seed'. This mechanism is being kept vague and simple intentionally. Existing bootloaders won't set it, of course. discussed with kettenis
2020-05-22Revert previouskn
Total vcpu and memory are read from the PRI so constraint checks must not be done before that, noted by kettenis. The fact that "total_cpus" as a global variable (initialized with zero) is always smaller than the total number of configured vcpus and the fact that I only tested a negative example without a positive one made me jump the trigger, sorry.
2020-05-22Improve emulation of bridge config space.Mark Kettenis
ok patrick@
2020-05-22Make "init-system -n" check vcpu and memory constraintskn
kmos noted that "-n" wouldn't bark at overallocation, only running without it would do so. Hoit setup code and delay the noaction bailout just after constraint checks such that they're always done. OK kmos
2020-05-22Improve resetting PCIe devices by making use of the reset-gpios property,Patrick Wildt
which is supposed to be PERST. Before issuing PERST, we must disable link training. This makes my PCIe device come up reliably after warm reboots. Promped by, with feedback from and ok kettenis@
2020-05-22Enable link training just before triggering the actual training.Mark Kettenis
Inspired by a proposed fix for Linux mainline.
2020-05-22Fill complete trap frame.Mark Kettenis
2020-05-22sockaddr should be sockaddr_storage, otherwise "openssl s_client -6 -dtls1"Theo de Raadt
(gurn) copies getsockname() retrieves a truncated result and 14 bytes of stack garbage get copied onwards. ok tb
2020-05-22FocusIn keys can also update the latest client, like normal keys.Nicholas Marriott
2020-05-22Panic on unhandled traps (which for now is all of them).Mark Kettenis
2020-05-22Reboot (unconditionally for now).Mark Kettenis
2020-05-22regenPatrick Wildt
2020-05-22Add Atheros QCA986x/988x PCI ID.Patrick Wildt
2020-05-22xterm* can have focus too.Nicholas Marriott
2020-05-22Add some very simple trap handling.Mark Kettenis
2020-05-22Revert the following commit as it breaks hostname.if(5) lines with akn
backslash at the end for line continuation Breaking long lines into multiple ones must still be possible and does require to treat the backslash as an escape character. Breakage reported by Mark Patruck <mark at wrapped dot cx >, thanks! --- distrib/miniroot/install.sub revision 1.1151 etc/netstart revision 1.203 date: 2020/05/21 11:54:41; author: kn; state: Exp; lines: +2 -2; Do not treat backslashe as an escape character in hostname.if(5) lines ifstart() should always pass such lines unaltered, especially if they contain "nwid" or "description" lines with arbitrary strings. <bsdlisten at gmail dot com> reported SSIDs such as "Mike's" during installation end as broken; this was because the installer escaped the single quote using backslashes which ended up being treated as escape characters much later during hostname.if parsing in netstart(8). Ok deraadt
2020-05-22Enable option FFS2 on RAMDISK; ok aoyama@ deraadt@Otto Moerbeek
2020-05-22Move client offset stuff into control.c since only control clients willNicholas Marriott
need it.
2020-05-22Add support for the Marvell Xenon SDHC. This is used on the ArmadaPatrick Wildt
3700 and 8040 SoCs and allows me to use an SD card as storage on the Turris Mox. It also should make eMMC/SD show up on the MACCHIATObin. ok kettenis@
2020-05-22Add pre/post hooks for bus clock changes to sdhc(4). These will bePatrick Wildt
used by sdhc(4) attachment drivers to do additional MD initialization. ok kettenis@
2020-05-22Use the parsed address and interrupt information fromMark Kettenis
struct acpi_attach_args. tpm(4) tested by kn@ ok jmatthew@
2020-05-22Attach mvpinctrl(4) to the Armada 3700's NB as well. As a consequencePatrick Wildt
mvclock(4) cannot attach to the NB's xtal clock anymore. Instead, have mvpinctrl(4) attach the xtal clock. With this we can use the SD card detect pins on the Turris Mox. ok kettenis@
2020-05-22Always defer attaching the mvneta(4) interfaces. Otherwise thisPatrick Wildt
leads to unsorted interface lists in ifconfig and the installer, depending on hardware configuration. ok kettenis@
2020-05-22And add the node to the struct. Sometimes I maybe shouldn't try splitingPatrick Wildt
up diffs before committing.
2020-05-22Actually store the node in the softc. Missed chunk from the previousPatrick Wildt
commit.
2020-05-22Some sdhc(4) on FDT use a card-detect GPIO or have a non-removable flag.Patrick Wildt
If those properties exist, use those to detect a card. ok kettenis@
2020-05-22extract the identical code that creates temp files into its own functionMarc Espie
okay millert@
2020-05-22Enable bwfm(4).Patrick Wildt
2020-05-22Enable mvkpcie(4).Patrick Wildt
2020-05-22Add mvkpcie(4), a driver for the Aardvark PCIe controller found onPatrick Wildt
the Armada 3700 SoC. So far only MSI is supported, since it was easier to implement. Both MSI and INTx share a single interrupt pin, so there's nothing to gain anyway, apart from legacy device support. With this I can push traffic through a bwfm(4) in my Turris Mox. ok kettenis@
2020-05-22Add test covering revision 1.64 of c_sh, fix exit code of compound listsanton
while using option e.
2020-05-22Fix the exit code when eval()uating a || compound list, it wouldSebastian Benoit
terminate the shell when running under -e. See also https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=269067 and Bug reported including fix by Leah Neukirchen, Thanks! ok millert@
2020-05-22Use the simpler HTML5 idiom to declare charset in autogenerated pages.Anthony J. Bentley
This came from a suggestion by Andras Farkas to replace use of XHTML self-closing tags. ok cwen@ danj@ florian@
2020-05-22better wordingDavid Gwynne
2020-05-22white space fixes. no functional change.David Gwynne
2020-05-22mention if_attach_queues().David Gwynne
2020-05-22speeling in comment fix. no functional change.David Gwynne
2020-05-22Ensure we only attach an ocsp staple to a leaf certificate, becauseBob Beck
for the moment that is all we support. fixes an issue where gnuTLS cares that mistmatching staples come back on the certs in the chain. This should be fixed correctly later by associating the staple to the individual certs rather than the ssl, so this is temporary. running on www@. ok tb@, "got that's oopy but an interim ok" jsing@
2020-05-22delete uneducated commentaryTheo de Raadt
2020-05-22Copy db_disasm.c from powerpc to powerpc64.gkoehler
This includes my last change to decode the %{ds}(%{A}) operand of ld, std instructions. ok drahn@
2020-05-22Decode the %{ds}(%{A}) operand of ld, std instructions.gkoehler
I don't expect to see these 64-bit instructions in 32-bit kernels, but I'm going to copy this code to powerpc64. ok drahn@
2020-05-21regenPatrick Wildt
2020-05-21ASMedia ASM1182e PCIe switch.Patrick Wildt
2020-05-21Claim the memory region reserved for the interrupt vectors.Mark Kettenis
2020-05-21Simplify: transform a dangling else into an early return andTheo Buehler
unindent a bunch of code. Suggested by jsing
2020-05-21Make ssl_set_cert_masks() more consistent and closer to readable.Joel Sing
Prompted by tb@ ok tb@
2020-05-21Avoid a shadowing issue by renaming cbs and cbb to cbb_hs and cbb_hs,Theo Buehler
respectively. Discussed with jsing
2020-05-21A failure of tls13_handshake_msg_new() could lead to a NULL derefTheo Buehler
in the following tls13_handshake_msg_start() call. Add a check. Stop clobbering the ctx's hs_msg variable, use a local variable instead. ok beck jsing
2020-05-21beck fixed most of the keyupdate tests. update annotationTheo Buehler