summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Add another Type Cover devicejcs2021-03-081-1/+2
| | | | from Fredrik Engberg
* regenjcs2021-03-082-4/+9
|
* Add Surface Pro Type Coverjcs2021-03-081-1/+2
| | | | from Fredrik Engberg
* Allow uhidev child devices to claim selective report idsjcs2021-03-0816-57/+74
| | | | | | | | | | | | | There may be multiple matching devices on a single uhidev device but the first device that responds to UHIDEV_CLAIM_ALLREPORTID will block the others from attaching. Change this to UHIDEV_CLAIM_MULTIPLE_REPORTID and require any devices wanting some/all report ids to fill in the claimed array in uhidev_attach_arg with just the reports it needs. uhidev can then run match routines for other drivers with the available report ids. ok anton
* Add support for sdhc(4) on Raspberry Pi in ACPI mode.kettenis2021-03-081-2/+8
| | | | ok patrick@
* Add RK809 to list of supported chips for this driver.kurt2021-03-081-3/+3
|
* Add support for rk809 as seen on the Rock Pi N10 with the rk3399pro. Addkurt2021-03-081-57/+262
| | | | | | | support for multiple linear ranges for voltage regulators and use for all rkpmic ICs. ok kettenis@
* When introducing prefix_eligible() I botched up one if statement.claudio2021-03-081-3/+6
| | | | | | | For nexthops it is fine if they point to NULL. This is used in local announcements. Only if they point to a real struct the state must be NEXTHOP_REACH. Bug reported by and OK florian@
* Revise the ASID allocation sheme to avoid a hang when running out of freekettenis2021-03-082-31/+120
| | | | | | | | | | | | | ASIDs. This should only happen on systems with 8-bit ASIDs, which are currently unsupported in OpenBSD. The new scheme uses "generations". Whenever we run out of ASIDs we bump the generation and flush the complete TLB. The pmaps of processes that are currently on the CPU are carried over into the new generation. This implementation relies on the scheduler lock to make sure this happens without any (known) races. ok patrick@, mpi@
* Move a KERNEL_ASSERT_LOCKED() from single_thread_clear() to cursig().mpi2021-03-081-6/+3
| | | | | | | | Ze big lock is currently necessary to ensure that two sibling threads are not racing against each other when processing signals. However it is not strickly necessary to unpark sibling threads. ok claudio@
* Kill SINGLE_PTRACE and use SINGLE_SUSPEND which has almost the same semantic.mpi2021-03-083-14/+10
| | | | | | | | single_thread_set() is modified to explicitly indicated when waiting until sibling threads are parked is required. This is obviously not required if a traced thread is switching away from a CPU after handling a STOP signal. ok claudio@
* sndiod: Use chronological order for {dev,port}_listratchov2021-03-083-22/+29
| | | | | | | This simplifies the logic of the initialization code, makes debug printfs nicer and could slightly ease futur development. No behavior change.
* sndiod: Initialize dev->master_enabled earlierratchov2021-03-081-2/+2
| | | | | | | | This is better style as since recently dev->master_enabled is used by the ctlslot_xxx family functions which -- in the future -- could be called with the device closed. No behavior change.
* sndiod: Style tweak: uniformize pattern to access ctlslot_arrayratchov2021-03-081-4/+6
|
* use a journal reference instead of cstr when possiblejsg2021-03-083-10/+23
|
* Remove the workaround which identified Go executables, and permitted themderaadt2021-03-081-7/+2
| | | | | | | | to do syscalls directly. Go executables now use shared libc like all other dynamic binaries. This makes the "where are syscalls done from" checker strict for all binaries, and also opens the door to change the underlying syscall ABI to the kernel in the future very easily (if we find cause). ok jsing
* correct paper titlejsg2021-03-081-3/+3
|
* Add some references, most of these were removed when we stopped buildingjsg2021-03-0822-50/+208
| | | | | | and installing USD/SMM/PSD docs. jmc@ agrees with the direction, ok millert@ on an earlier diff
* Explicitly align kernel text.mortimer2021-03-072-5/+6
| | | | | | | lld11 no longer quietly aligns this when given an address, so we do the alignment explicitly. ok kettenis@
* Fix aml_store() to work properly when the lvalue is a reference ofyasuoka2021-03-071-3/+4
| | | | | | | LocalX. In that case, resolving the reference must be done before resetting the LocalX variable. test daniel ok kettenis
* use the mx hostname for sni on outgoing connection, not the reverseeric2021-03-071-2/+2
| | | | | | | dns for the peer address. spotted by krw@ ok krw@ tb@
* Reduce debug logging by moving protocol level debug logflorian2021-03-073-129/+177
| | | | | | behind -vv or by deleting unneeded output. While here reword some debug output to make it more useful. (There is more to be done here.)
* Fix intercardinal directions in hack help.tb2021-03-071-1/+1
| | | | From Raf Czlonka
* No need to cap the exponential backoff here, iface_timeout() alreadyflorian2021-03-071-9/+7
| | | | | | | handles this for us by doing a state transition if we have been stuck in "rebooting" or "requesting" for too long. Makes the code a bit simpler and we only have one place were we need to special case the timeout cap.
* Log ESN for child SAs if enabled.tobhe2021-03-071-3/+6
|
* v1/v2 find is different to pwb/v5 findjsg2021-03-071-4/+13
|
* Pass standard DMA tag to acpi(4) table drivers.patrick2021-03-071-1/+2
| | | | ok kettenis@
* Withdraw nameservers when the interface goes down.florian2021-03-071-1/+17
| | | | Problem reported by deraadt some time ago.
* Fold get_lladdr into update_iface, now the only caller.florian2021-03-074-109/+59
| | | | | | This allows us to pass the link state over to engine here instead of in update_addr which is not available in small. This gets us more in line dhcpleased.
* No need to pass the link local and hw address around, we have itflorian2021-03-073-9/+4
| | | | already in the interface on the engine side.
* reshuffle to bring more in line with dhcpleasedflorian2021-03-071-17/+22
|
* Introduce engine_update_if().florian2021-03-071-82/+75
| | | | This was too much code in the imsg handler.
* LibreSSL 3.3.2bcook2021-03-071-3/+3
|
* ansijsg2021-03-0717-636/+262
|
* ansijsg2021-03-0710-279/+115
|
* ansijsg2021-03-075-61/+24
|
* ansijsg2021-03-0735-816/+320
|
* use uint64_t ethernet addresses for compares in carp.dlg2021-03-073-17/+16
| | | | | | | | | | pass the uint64_t that ether_input has already converted from a real ethernet address into carp_input so it can use it without having to do its own conversion. tested by hrvoje popovski tested by me on amd64 and sparc64 ok patrick@ jmatthew@
* whitespacetobhe2021-03-061-2/+2
|
* Fix PRINT macro, the suffix param to sshlog() was missing.millert2021-03-061-21/+20
| | | | | | Also remove redundant __func__ prefix from PRINT calls as the macro already adds __FILE__, __func__ and __LINE__. From Christos Zoulas. OK dtucker@
* Since with the current design there's one device per domain, and onepatrick2021-03-061-17/+11
| | | | | | | | | | domain per pagetable, there's no need for a backpointer to the domain in the pagetable entry descriptor. There can't be any other domain. Also since there's no list, no list entry member is needed either. This reduces early allocation to half of the previous size. I think it's possible to reduce it even further and not need a pagetable entry descriptor at all, but I need to think about that a bit more.
* One major issue talked about in research papers is reducing the overheadpatrick2021-03-061-61/+103
| | | | | | | | | | | | | | | | | | | of the IOVA allocation. As far as I can see the current "best solution" is to cache IOVA ranges in percpu magazines. I don't think we have this issue at all thanks to bus_dmamap_create(9). The map is created ahead of time, and we know the maximum size of the DMA transfer. Since with smmu(4) we have IOVA per domain, allocating IOVA 'early' is essentially free. But pagetable mapping also incurs a performance penalty, since we allocate pagetable entry descriptors through pools. Since we have the IOVA early, we can allocate those early as well. This allocation is a bit more expensive though, but can be optimized further. All this means that there is no allocation overhead in hot code paths. The "only" thing remaining is assigning IOVA to the segments, adjusting the pagetable mappings, and flushing the IOTLB on unload. Maybe there's a way to do a combined flush for NICs, because we give a list of mbufs to the network stack and we could do the IOTLB invalidation only once right before we hand over the mbuf list to the upper layers.
* Implement last remaining bits to update from RFC 4941 to RFC 8981.florian2021-03-062-26/+35
| | | | | | | | | | | The desync factor is now tracked per temporary IP and the max value has been increased to about 9 hours. While here fix a bug where the minimum acceptable pltime in a router advertisement should be bigger than PRIV_REGEN_ADVANCE not the desync factor (which didn't make any sense at all). From Fernando Gont, thanks! OK sthen
* Turns out there are dhcp servers that ignore DHCPREQUEST messages whenflorian2021-03-061-16/+24
| | | | | | | | | | | | | | | | | | | | | | they don't like them instead of sending a DHCPNAK. Found the hard way by benno who didn't want to wait 127 seconds. Due to another bug dhcpleased would have exit through a fatal() in the frontend process if he had waited long enough for a Rebooting -> Init transition because we didn't deconfigure our IP address and thus didn't close our UDP socket. Upon configuring a new IP address we would open a new UDP socket send it to the frontend which would then fatal() due to an unexpected fd passed in. Aproporiate timings are rather underspecified in RFC 2131. Instead of doing an exponential backoff up to 64 in the "Rebooting" and "Requesting" state only go up to 2 for a total of 3 packets and total timeout of 3 seconds before going into "Init" state and sending a DHCPDISCOVER. To prevent the fatal() in the frontend process we reshuffle the state transition into the "Init" state and deconfigure the IP when appropriate.
* syncderaadt2021-03-061-1/+0
|
* ansijsg2021-03-067-18/+13
|
* put back Lst_Destroy(paths) where it belongsespie2021-03-061-2/+6
| | | | noticed by jsg@
* Print PFS group for rekeyed Child SAs.tobhe2021-03-052-6/+14
| | | | ok patrick@
* Log transforms of established IKE and Child SAs.tobhe2021-03-051-7/+36
| | | | ok patrick@
* Move policy printing code from parse.y to new print.ctobhe2021-03-054-247/+291
| | | | ok patrick@