summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-04-24Add cduart(4), a driver for the Cadence UART found on Xilinx Zynq SoCs.Visa Hankala
Tested on Xilinx Zynq-7000. Input and OK kettenis@
2021-04-24reduce diff to other archsJonathan Gray
ok deraadt@ mlarkin@
2021-04-24add gfrtc(4)Jonathan Gray
2021-04-24Add gfrtc a driver for the real-time clock interface of Google'sJonathan Gray
Goldfish Android virtual hardware platform. Used for the RTC on qemu-system-riscv64 -M virt. feedback and ok kettenis@
2021-04-24Remove "-4" option treatment and use it always on s_server test in appstest.shKinichiro Inoguchi
2021-04-23Setting variable arpinit_done is not MP save if we want to executeAlexander Bluhm
arp_rtrequest() in parallel. Move initialization to arpinit() function. OK kettenis@ mvs@
2021-04-23The variable la_hold_total contains the number of packets currentlyAlexander Bluhm
in the arp queue. So the sysctl net.inet.ip.arpqueued must be read only. In if_ether.c include the header with the declaration of la_hold_total to ensure that the definition matches. OK mvs@
2021-04-23Enable test-renegotiation-changed-clienthello.py but skipTheo Buehler
"drop extended_master_secret in renegotiation" since we don't support this extension.
2021-04-23whitespaceTheo Buehler
2021-04-23Add MID_RISCV64 and EM_RISCV to enable riscv64Dale Rahn
ok deraadt@
2021-04-23File was accidentally duplicated on inital checkin, remove dup.Dale Rahn
2021-04-23enable viornd(4) on riscv64Jonathan Gray
2021-04-23enable syscon(4) on riscv64Jonathan Gray
makes reboot and poweroff work with qemu ok kettenis@
2021-04-23Adjust support for "syscon-reboot" and "syscon-poweroff" for the updatedMark Kettenis
bindings in mainline Linux. Necessary to support the QEMY RISCV target. ok jsg@
2021-04-23build with -WerrorJonathan Gray
ok mlarkin@
2021-04-23cast TCB_GET() to void * to avoid -Wpointer-integer-compare warningJonathan Gray
when building kern_sig.c ok mlarkin@
2021-04-23reuse arm64 openprom(4) on riscv64Jonathan Gray
ok kettenis@
2021-04-23Remove the sysctl kern.allowdt code from kernel if dt(4) is notAlexander Bluhm
configured. This will result in a "value is not available" error from sysctl when trying to enable dt on a kernel without support. The variable allowdt should be in the device, not in sysctl source. We don't need #ifdef for extern and prototypes. OK mpi@
2021-04-23When we have a single tx/rx queue, the cp ring is also used for asyncJonathan Matthew
events, so it can't be allocated when the interface is brought up and freed when it's taken down. ok dlg@
2021-04-23spellingJonathan Gray
2021-04-23Create separate structures for rx and tx queues to allow creating multiplesJonathan Matthew
of each of them, and prepare for having multiple completion rings. ok dlg@
2021-04-23Include sys/systm.h in riscv64 db files,Dale Rahn
matches other archs, fixes -Werror failues, ok jsg@
2021-04-23add missing breakJonathan Gray
ok drahn@
2021-04-23call klist_invalidate from bpfsdetach to tell kq listeners what happened.David Gwynne
without this, something using a kevent to monitor a bpf fd on an idle interface never has the event fire, which means it never realises the interface goes away. with this, the read event goes off and the next read fails with EIO, like pretty much every other driver when the underlying device is removed. ok claudio@ visa@ jmatthew@
2021-04-23only skip pf once for packets that are injected by a divert-packet socket.David Gwynne
when a divert socket gets a packet from userland to send back through the kernel, it marks it as diverted so pf knows not to divert it back to userland again. this marking stuck to the packet though, so if it went through pf again (eg, on the way out of the network stack) pf would skip it again. this is undesirable if you want pf to do things to the packet on this outgoing hope, such as nat. this has pf clear the mark once it's been used, which allows the next run of a packet through pf to have stuff work on it. found by some people at parta networks. ok sashan@ lteo@ bluhm@ bluhm@ also suggested keeping my diff in the same style as the rest of pf.c
2021-04-23We're only going to use the first CoS queue, so only store the ID of thatJonathan Matthew
one. Some of this would have got in the way of setting up multiple tx/rx rings. ok dlg@
2021-04-23Initial import of OpenBSD/riscv64Dale Rahn
This work is based on the effort: https://www.openbsd.org/papers/Porting_OpenBSD_to_RISCV_FinalReport.pdf "Porting OpenBSD to RISC-V ISA" by Brian Bamsch <bbamsch@google.com> Wenyan He <wenyan.he@sjsu.edu> Mars Li <mengshi.li.mars@gmail.com> Shivam Waghela <shivamwaghela@gmail.com> With additional work by Dale Rahn <drahn@openbsd.org>
2021-04-22Use the long version of the bwfm(4) firmware path, which includes thePatrick Wildt
board's compatible string, when printing an error about not being able to load the firmware. Since most NVRAM files are board- or package- specific, having the compatible makes it easier for us to find the correct files, so that we can add them to the bwfm-firmware port. ok kurt@
2021-04-22Add a non-interactive version of query-replace-regexp function calledMark Lumsden
replace-regexp. Unfortunately query-replace-regexp can't be used in a startup file.
2021-04-22vmd(8): guard against bad virtio driversdv
Add protections against guests with bad virtio-{blk,net,scsi} drivers, specifically avoiding invalid descriptor chains and invalid vionet packet sizes. This helps prevent possible lockup of the host vm process due to a spinning device event loop thread. Also fix an unneeded cast in the vioblk handling in case of invalid buffer lengths. OK mlarkin@
2021-04-22Only hash known CH extensionsTheo Buehler
RFC 4.1.2 specifies the ways in which the extensions in the first and the second ClientHello may differ. It basically says that extensions not known to a server must not change. This in turn makes it impossible to introduce new extensions that do change. It makes little sense to enforce that extensions we don't know and care about aren't modified, so make the hashing more lenient and restrict it to the extensions we do care about. Arguably, enforcing no change in an unknown extension is incompatible with the requirement that it be ignored. ok bcook jsing
2021-04-22kqueue: Make timer re-addition reset existing timerVisa Hankala
When an existing EVFILT_TIMER filter is re-added, cancel the existing timer and any pending event, and restart the timer using the new timeout period. This makes the new timeout period take effect immediately and matches the behaviour of FreeBSD. Previously, the new setting was applied only after the existing timer expired. The timer rescheduling is done by using an f_modify callback. The reading of timer events is moved from f_event to f_process. f_event of timer_filtops becomes redundant. Unlike most other event sources, timers activate knotes directly without using a klist and knote(9). OK mpi@
2021-04-22Mark umb(4) as network device instead of a generic one. This also makesPatrick Wildt
it show up with the proper category in hotplug scripts. From Tilo Stritzky ok groth@ sthen@
2021-04-22Keep under #ifdef TMPFS functions to grow/shrink uaobj.Martin Pieuchot
ok patrick@
2021-04-22Indent and simplify the grammar.Martin Pieuchot
2021-04-22Eliminate S/R conflicts and simplify filter grammar.Martin Pieuchot
2021-04-22Remove trailing whitespace in comment blocks.dv
2021-04-22reenable POOL_DEBUGChristian Weisgerber
2021-04-22Simplify token declaration.Martin Pieuchot
2021-04-22Simplify now that TID and PID are now only being parsed as builtin.Martin Pieuchot
2021-04-22Remove support for in-kernel filters.Martin Pieuchot
This might be added back in a future if copying events to userland becomes a performance issue. However note that it is not always possible to filter in-kernel if, for example. a variable has to be evaluated when a rule fires.
2021-04-21Add a test that roundtrips a bunch of points on all builtin curvesTheo Buehler
via point2oct and oct2point and that checks the corner case in hybrid encoding that was fixed in ec2_oct.c r1.13.
2021-04-21Clean up TLSv1.2 certificate request handshake data.Joel Sing
Currently cert_req is used by clients and cert_request is used by servers. Replace this by a single cert_request used by either client or server. Remove the certificate types as they are currently unused. This also fixes a bug whereby if the number of certificate types exceeds SSL3_CT_NUMBER the number of bytes read in is insufficient, which will break decoding. ok inoguchi@ tb@
2021-04-21Fix packet size checks and remove bad casts.dv
Because dhcpsz was an uninitialized ssize_t, it was possible that a garbage "packet" would be queued on the receiving end of the virtio network device. Change the type to size_t and add proper checks based on it being greater than zero. Remove the cast of ssize_t to uint64_t that also caused garbage sizes when dhcpsz was unintialized and set at runtime to something < 0.
2021-04-21Turn panic for unknown event type into a printf and return.Mark Kettenis
ok patrick@
2021-04-21Use the plenteous BUFSIZE found in mg in lieu of 128.Mark Lumsden
2021-04-21remove -p from usage;Jason McIntyre
2021-04-21Extend filters to support any conditionnal test including global variables.Martin Pieuchot
Stop using in-kernel filtering for the moment except for not tracing the tracer. Keep track of the number of filtered events.
2021-04-21Always initialized min value for an histogram.Martin Pieuchot
2021-04-21Test local variables, boolean and print() of variables other than maps.Martin Pieuchot