summaryrefslogtreecommitdiffstats
path: root/lib/libc/regex/regexec.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-03-18The ntpd client code corrects both T1 and T4 with the current offsetbluhm1-5/+6
returned by adjtime(2) from the kernel. T1 is local time when the NTP packet is sent and T4 when the response is received. If between these events a NTP reply from another server is received, it may change the kernel offset with adjtime(2). Then the calulation of the client offset was done with different bases, the result was wrong and the system time started moving around. So instead of correcting T1 and T4 individually at different events, correct their sum once. Error handling was missing if there is no timestamp in the response. As this should not happen in our kernel, fatal() is appropriate. tested by weerd@; OK claudio@
2021-03-18In revision 1.91 of uhidev.c, jcs@ made sure to only detach devicesanton3-22/+3
claiming multiple report ids once. This allows uhidpp to piggy back on the same functionality making uhidev_unset_report_dev() redundant.
2021-03-18regenmvs4-9/+9
2021-03-18Unlock sendsyslog(2). Console output still requires kernel lock to bemvs2-41/+58
held but this path is only followed while `syslogf' socket is not set. New `syslogf_rwlock' used to protect `syslogf' access. ok bluhm@
2021-03-18Fix previous (1.258). It breaks if localX itself is an object reference.yasuoka1-2/+5
found and test by Rafael Avila de Espindola ok kettenis
2021-03-17When devices have claimed multiple report ids, only detach and sendjcs1-17/+34
DVACT_DEACTIVATE to them once when walking sc_subdevs. Fixes a regression reported and tested by Edd Barrett. Input from and previous version ok anton.
2021-03-17Make "ifconfig mpw0 -mplslabel" workkn1-1/+4
Code is there, noone ever used it, I guess. This makes ifconfig(8) documentation actually hold true. OK claudio
2021-03-17Read ahead is now enforced for DTLS - remove workarounds.jsing2-20/+2
ok inoguchi@ tb@
2021-03-17Use consistent s_server_opt_ prefix.jsing1-9/+9
2021-03-17Add DTLSv1.2 support to openssl(1) s_client/s_server.jsing4-34/+129
ok inoguchi@ tb@
2021-03-17fix whitespace nit in previoustb1-2/+2
2021-03-17Update for DTLSv1.2 being enabled.jsing1-4/+4
2021-03-17Enable DTLSv1.2.jsing1-1/+5
This means that the DTLS_method() will now use DTLSv1.2 rather than DTLSv1. Additional DTLSv1.2 related symbols and defines will be made publicly visible in the near future. ok inoguchi@ tb@
2021-03-17Update for DTLSv1.2 version handling.jsing1-6/+90
2021-03-17Add support for DTLSv1.2 version handling.jsing1-45/+117
This teaches the version functions that handle protocol versions about DTLSv1.2 and the SSL_OP_NO_DTLS* options. We effectively convert between TLS and TLS protocol versions where necessary. ok inoguchi@ tb@
2021-03-17List the Qu-c0-hr-b0-48 firmware image in the iwx(4) man page.stsp1-2/+3
2021-03-17Make iwx(4) attach to AX201 devices with PCI ID 0x34f0.stsp1-1/+14
Requires Qu-c0-hr-b0-48 firmware which is available via fw_update(1). Patch by Fredrik Engberg
2021-03-17regenstsp2-2/+7
2021-03-17Add another iwx(4) PCI device ID.stsp1-1/+2
Based on a patch by Fredrik Engberg
2021-03-17Make iwn(4) send block ack request frames with the firmware nodestsp1-2/+5
which represents the AP, rather than the firmware's broadcast node. Fixes a problem where firmware would generate bogus block ack requests with a wrong starting sequence number, shifting the receiver's block ack window out of sync with that of the firmware. Traffic would stall until enough frames were sent to wrap sequence numbers of the block ack window. ok chris@ kmos@
2021-03-17Split off init_ifaces from update_iface. init_ifaces discovers theflorian1-76/+152
state of the machine on startup using ioctl(2) and getifaddrs(3). We can then update this state with information provided by route messages. We still need getifaddrs(3) to check if the layer 2 address has changed. This simplifies error handling (what should we do if ioctl(2) fails?), reduces kernel round trips (no need to ask the kernel again for information RTM_IFINFO provided already) and prevents a theoretical race between RTM_IFINFO and getaddrinfo(3). In a fast link state UP -> DOWN -> UP transition RTM_IFINFO informs us that the link went down but we were not using this information but rather looked at getifaddrs(3) information which might see the link as already up again. We would then do nothing while we should try to get a new lease. By storing all interface information in the frontend process we can skip imsgs to the engine process if we get an RTM_IFINFO without relevant changes for us.
2021-03-17Use correct rdomain when adding/deleting routeskn2-7/+7
mpip(4) always adds and deletes routes in rdomain 0 regardless of the `tunneldomain', i.e. the `sc_rdomain' value. mpw(4) adds routes with the specified rdomain but always deletes them in rdomain 0. mpe(4) consistently uses the softc's rdomain which is tracked consistently across the various ioctls -- no fix needed. Found while reading the code and testing ifconfig(8)'s "tunneldomain" in order to document MPLS ioctls. OK claudio
2021-03-17Fix bit position of ORPHAN in PS_BITS.visa1-2/+2
2021-03-17Add missing memory clobbers to "data" barriers.kettenis3-11/+11
2021-03-17Hide kernel internals from userland by wrapping more bits in _KERNEL blocks.claudio1-1/+6
Especially the includes of net/rtable.h and sys/queue.h are problematic. OK florian@
2021-03-17Netstat wants to access kernel internal structures for the kvm walker ofclaudio1-1/+3
the routing table. Define _KERNEL around the net/route.h include. OK florian@
2021-03-17Always use an allocated buffer for {Read,Write}Blocks() to makeyasuoka2-80/+34
efid_io() simpler. Also fixes the problem on some machines when boot from CD-ROM. It happened because the previous version passed unaligned pointers to the functions even if it is restricted by the IoAlign property of the media. idea from kettenis, work with asou ok kettenis
2021-03-16Add 'grp31' alias for curve25519 as documented in iked.conf(5).tobhe1-1/+2
2021-03-16Node without a "status" property should be considered enabled as well.kettenis1-3/+3
Same change made to arm64 a week ago.
2021-03-16Make sure that switching the console from serial to framebuffer workskettenis2-22/+25
for framebuffer nodes under / and /chosen. Same change made to arm64 last month.
2021-03-16Nuke unused time_t variable.krw1-5/+2
2021-03-16Move setifrtlabel() and *keepalive() prototypes out of SMALLkn1-4/+4
Those commands are not supported under SMALL; unless I overlooked others, this should be the last bit to declare all prototypes correctly wrt. SMALL (the overall unsorted order of both prototypes and commands makes this hard to spot). No object change, with and without SMALL.
2021-03-16sync to unbound 1.13.1; heavy lifting by sthenflorian36-2951/+3596
2021-03-16acpi_intr_disestablish() should free its own cookie.patrick1-1/+2
ok kettenis@
2021-03-16Bump MAXTSIZ to 256MB on i386.kurt1-2/+2
okay deraadt@
2021-03-16On i386 don't attempt to map shared libraries in low memory whenkurt3-5/+21
a large executable's .text section crosses the 512MB exec line. Executables that have MAXTSIZ > 64MB can map above the default 512MB exec line. When this happens, shared libs that attempt to map into low memory will find their .data section can not be mapped. ld.so will attempt to remap the share lib at higher addresses until it can be mapped. For very large executables like chrome this process is very time consuming. This change detects how much of the executable's .text section exceeds 512MB and uses that as the initial hint for shared libs to map into which avoids attempting to map into blocked memory. okay deraadt@
2021-03-16Don't (try to) deconfigure an interface that was never configured.florian1-1/+4
2021-03-16We can't learn anything interesting from RTM_NEWADDR, stop handlingflorian2-11/+3
it.
2021-03-16handle theoretical case of sigfillsz not being pow2-sized on somederaadt1-4/+8
architecture. from miod
2021-03-16Describe what happens when RFC 4638 is not supported.millert1-7/+16
With help from sthen@. OK sthen@ jmc@
2021-03-16Fix some correctness issues in the lowelevel kernel bringup code.kettenis3-5/+20
- Make sure we install a dummy page table in TTBR0_EL1 before we change the size of the VA space in TCR_EL1. - Flush the TLB after updating TCR_EL1. - Flush TLB after installing the real kernel page table in TTBR1_EL1. - Add some barriers around TLB flushes to make it consistent with other places where we do TLB flushes. ok drahn@, patrick@
2021-03-16Add client-detached notification in control mode, from Mohsin Kaleem.nicm4-5/+21
2021-03-16Do not delete control socket upon exitkn1-14/+1
The control socket is not unveiled, therefore accounting would report unveil violations whenever apmd(8) stopped (normally). As discussed and done with other daemons such as relayd which also employ no pledge (due to inherent limitations) but unveil effecting all of /, simply stop removing the socket upon exit and leave it to the next apmd which completely sets up its control socket anew at startup. Violations reported by anton Feedback OK semarie mestre
2021-03-16A socket buffer is not the best size to read from a disk.otto1-6/+9
Use st_blksize to set high water mark; florian@
2021-03-16don't let logging clobber errno before usedjm1-4/+6
2021-03-15Add code to acpiiort(4) to look up named components in the IORT andpatrick3-4/+80
map them. This makes ACPI's call to acpi_iommu_device_map() do work through acpiiort(4). ok kettenis@
2021-03-15Change API of acpiiort(4). It was written as a hook before, taking thepatrick7-33/+23
PCI attach args and replacing the DMA tag inside. Our other IOMMU API though takes a DMA tag and returns the old one or a new one. To have acpiiort(4) integrate better with non-PCI ACPI devices, change the API so that it is more similar to the other API. This also makes the code easier to understand. ok kettenis@
2021-03-15Add acpi_iommu_device_map(), which replaces the DMA tag with one thatpatrick5-5/+27
is blessed with IOMMU magic, if available. This is mainly for arm64, since on amd64 and i386 the IOMMU only captures PCIe devices, as far as I know, which uses the pci_probe_device_hook(). This though is for non-PCI devices attached through ACPI. ok kettenis@
2021-03-15Add the IORT structure for named components. These give us the stream idspatrick1-5/+13
used towards an smmu(4) for non-PCI devices. The references are provided as ASCII printable paths. ok kettenis@
2021-03-15We makes sure that a dh group is required if the local proposaltobhe1-3/+13
contains an explicit group transform. Override requiredh if one of the local options is 'none' so that a proposal with no DH group and on with explicit group 'none' result in a match. ok patrick@