summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-03-02Add missing RCS markerkn1-0/+1
2021-03-02Do not unveil unused unwind socket under SMALLkn1-2/+5
Remove unused STARTUP_WAIT_TIMO (since import), add missing space to error message.
2021-03-02Open both the cachedir and outputdir early and use fchdir(2) toclaudio3-26/+23
switch between the two. OK deraadt@ job@
2021-03-02When building the chain of the intermediate certificates do not include theclaudio1-4/+8
root node (which should be a trust anchor). Trust anchors where added to the X509_store and having them in the chain is kind of wrong and confuse the new libressl X509 validator. OK tb@
2021-03-02remove ts_print() prototype function was removed in rev 1.100jsg1-2/+1
2021-03-02remove uneeded md5.h includejsg3-6/+3
ok florian@
2021-03-02Increase the size of iov in pfkey_sa() to be large enough for alljsg1-2/+2
possible options. ok tobhe@
2021-03-02don't read past the end of an arrayjsg1-2/+2
ok mvs@ mlarkin@
2021-03-02openssh-8.5djm1-2/+2
2021-03-02Do *not* delay while waiting for IOTLB invalidation to complete. A 1mspatrick1-3/+1
delay is awful in a hot path, and the SMMU is actually quite quick on invalidation, so simply removing the delay is worth a thousand roses. Found with mental support from dlg@ (and btrace)
2021-03-02off by one in bounds testjsg1-5/+2
ok sthen@ millert@
2021-03-01sync for perl 5.32.1afresh116-133/+52
2021-03-01Apply pre-built unicore patch, remove excess files - perl-5.32.1afresh1550-124170/+216104
OK sthen@
2021-03-01Apply local patches, remove excess files - perl-5.32.1afresh154-525/+363
OK sthen@
2021-03-01Fix merge issues, remove excess files - match perl-5.32.1 distafresh1981-71740/+84299
OK sthen@
2021-03-01Import perl-5.32.1afresh1752-17266/+45020
OK sthen@
2021-03-01Update the MSI addresses for the Armada 8040. This chunk will only bepatrick1-3/+7
there until we have a proper way of making the MSI pages available.
2021-03-01Instead of sprinkling the device's DMA tag, always return a new DMA tagpatrick3-41/+33
which is based on the IOMMU's. If you think about it, using the IOMMU's DMA tag makes more sense because it is the IOMMU that does the actual DMA. Noticed while debugging, since the SMMU's map function was called twice: once for the PCI device, and once for its ppb(4). As the transaction has the PCI device's Stream ID, not the ppb(4)'s, this would be useless work. Suggested by kettenis@
2021-03-01Transactions on the AXI bus contain a Stream ID. SMMUs filterpatrick1-1/+15
based on Stream IDs. On the Armada 8040 these Stream IDs can be configured in different registers. The PCIe controller has a register which maps root port, bus, dev and func number to the Stream ID. This should be set up by TF-A firmware, but on the 8040 the current images don't do this. For chips with more than one PCIe controller this register must be setup correctly depending on the implementation, but on the 8040 there only is one controller, so we can configure a fixed value to match what is defined in the device tree. This allows the SMMU to properly track the PCIe controller's transactions. ok kettenis@
2021-03-01The ep-gpios property is optional on the Rockchip PCIe controller.patrick1-11/+21
While there, enable the different voltage regulators and set the PHY's assigned clocks. This makes PCIe work on the NanoPi R4S. Tested by kurt@ on Rock Pi N10 and ROCKPro64 ok kurt@ kettenis@
2021-03-01syncderaadt1-0/+1
2021-03-01remove unneccessary Pp;jmc1-3/+2
2021-03-01document log entry W, reminded by naddy@espie1-2/+8
2021-03-01fix Nd and remove trailing whitespace;jmc1-4/+4
2021-03-01escape quotes and remove some unneccessary Pp; ok nicmjmc1-8/+6
2021-03-01Make sure sa_policy is not NULL in sa_configure_iface(). This can happentobhe1-2/+2
if the SA is deleted because of a failed policy lookup.
2021-03-01Log adding and deleting of IP addresses as well as nameservers.florian1-1/+75
deraadt@ pointed out that dhcpleased is too quiet.
2021-03-01We really must handle all possible enumeration values inflorian1-6/+1
state_transition() and iface_timeout(). Let the compiler help us by emitting a warning when we missed one (-Wswitch). Reminded by jsg who pointed out that gcc is quite confused and thinks there is an out of bounds access in if_state_name[] in the default case. There is not, if_state_name[] and enum if_state have to be kept in sync. (Note that -Wswitch is not a silver bullet, it just happens to work here.)
2021-03-01Let send_rdns_withdraw and send_deconfigure_interface clean up afterflorian1-23/+15
themselves. This way the iface object is in a consistent state. For consistency we should also withdraw rdns first, then deconfigure the interface. Lastly make sure we parse the lease file on a down -> up transition if we had a lease before and it had expired while the interface was in down state. Otherwise we'd send a dhcpdiscover requesting any IP address while we really should send a dhcprequest asking for our previous IP back.
2021-03-01Document veb(4) supportkn2-9/+11
Feedback jmc OK dlg
2021-03-01Refactor ip_fragment() and ip6_fragment(). Use a mbuf list tobluhm8-197/+165
simplify the handling of the fragment list. Now the functions ip_fragment() and ip6_fragment() always consume the mbuf. They free the mbuf and mbuf list in case of an error and take care about the counter. Adjust the code a bit to make v4 and v6 look similar. Fixes a potential mbuf leak when pf_route6() called pf_refragment6() and it failed. Now the mbuf is always freed by ip6_fragment(). OK dlg@ mvs@
2021-03-01Put the hardcoded '\n' character which is found throughout mg into alum16-42/+50
buffer specific variable. The diff should not produce any behavourial changes in mg.
2021-03-01There is no need to call del_curterm in the server anymore.nicm1-4/+1
2021-03-01Add some text with examples of ; as a separator, GitHub issues 2522 andnicm1-2/+65
2580.
2021-03-01document pkg_check-versionespie2-3/+58
2021-03-01allocate enough space in start_child() argv for all possible flagsjsg1-2/+2
ok claudio@
2021-03-01If an anon is associated with a page, acquire its lock before any modification.mpi1-3/+34
This change should have been part of the previous anon-locking diff and is necessary to run the top part of uvm_fault() unlocked. ok jmatthew@
2021-03-01Move the top part of uvm_fault_lower(), the lookup, in its own function.mpi1-76/+98
The name and logic come from NetBSD in order to reduce the difference between the two code bases. No functional change intended. ok tb@
2021-03-01off by one in bounds testjsg1-2/+2
ok florian@
2021-03-01off by one in bounds testjsg2-4/+4
ok claudio@
2021-03-01resolvd and dhcpleased should not be enabled yetderaadt1-3/+3
2021-03-01update currency exchange rates;jmc1-38/+38
2021-03-01typo; from Scott Bennettderaadt1-3/+3
2021-03-01syncderaadt1-0/+1
2021-02-28Add %k to list of keywords. From Eero Häkkinenvia bz#3267dtucker1-3/+3
2021-02-28add veb(4) to the list of supported bridges/switches you can configure.dlg2-4/+5
tested by josh rickmar ok kn@
2021-02-28Have acpipci(4) look for a matching SMMU in the IORT.patrick1-1/+69
ok kettenis@
2021-02-28Enable acpiiort(4), add smmu(4) but keep disabled.patrick2-2/+8
ok kettenis@
2021-02-28acpiiort(4) and smmu(4)patrick1-1/+14
2021-02-28Add smmu(4), a driver the ARM System MMU. This IOMMU is basically apatrick5-0/+2008
regular ARM CPU MMU re-used for I/O devices. Implementations can have a mix of stage-2 only and stage-2/stage-2 context blocks (domains). The IOMMU allows different ways of grouping devices into a single domain. This implementation only supports SMMUv2, since there is basically no relevant SMMUv1 hardware. It also only supports AArch64 pagetables, the same as our pmap. Hence lots of code was taken from there. There is no support for 32-bit pagetables, which would have also been needed for SMMUv1 support. I have not yet seen any machines with SMMUv3, which will probably need a new driver. There is some work to be done, but the code works and it's about time it hits the tree. ok kettenis@