summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-12-30Add singly-linked tail queue macros from FreeBSD.Todd C. Miller
These are essentially equivalent to the simple queue macros from NetBSD but predate them and are more widely available on other systems. OK mpi@ denis@
2020-12-30Fix pppoe_dispatch_disc_pkt definition to be in accordance with style(9)mvs
ok claudio@ kn@
2020-12-30missing word fix; from nam nguyenJason McIntyre
2020-12-30Convert the `off' argument of pppoe_dispatch_disc_pkt function tomvs
local variable. This argument was always passed as 0. ok kn@
2020-12-30regcomp.c uses the "start + count < end" idiom to check that there areTheo Buehler
"count" bytes available in an array of char "start" and "end" both point to. This is fine, unless "start + count" goes beyond the last element of the array. In this case, pedantic interpretation of the C standard makes the comparison of such a pointer against "end" undefined, and optimizers from hell will happily remove as much code as possible because of this. An example of this occurs in regcomp.c's bothcases(), which defines bracket[3], sets "next" to "bracket" and "end" to "bracket + 2". Then it invokes p_bracket(), which starts with "if (p->next + 5 < p->end)"... Because bothcases() and p_bracket() are static functions in regcomp.c, there is a real risk of miscompilation if aggressive inlining happens. The following diff rewrites the "start + count < end" constructs into "end - start > count". Assuming "end" and "start" are always pointing in the array (such as "bracket[3]" above), "end - start" is well-defined and can be compared without trouble. As a bonus, MORE2() implies MORE() therefore SEETWO() can be simplified a bit. from miod, ok millert
2020-12-30Constify the strings in regerror.c and make use of the strlcpy()Theo Buehler
return value to avoid a redundant strlen() call. from miod, ok millert
2020-12-30cclasses[] multis field is always an empty string. Remove it and codeTheo Buehler
dealing with it. This code was incomplete anyway. from miod, ok millert
2020-12-30Constify the strings in cnames[]. No functional change.Theo Buehler
from miod, ok millert
2020-12-30Document meaning of '*' in genrsa outputTheo Buehler
ok inoguchi jmc kn
2020-12-30Add 'bgpctl show sets' to display information about the roa-set, as-sets,Claudio Jeker
and prefix-sets loaded into bgpd. OK benno@
2020-12-30Implement IMSG_CTL_SHOW_SET to get information about roa-set, as-sets andClaudio Jeker
prefix-sets loaded into the RDE. For now only the number of prefixes or asnumbers are shown plus the time since the last change was done to the table. OK benno@
2020-12-30Use correct IMSG type in fatal message. Also reformat some not so long lines.Claudio Jeker
Bad IMSg name noticed by proctor@
2020-12-30RB_REMOVE from the correct tree. Dumb copy paste bug introduced by last commit.Claudio Jeker
Noticed by procter@
2020-12-30Enter power-saving mode on POWER9 (ISA v3)gkoehler
When opal(4) attaches, look in the device tree for a psscr value. In cpu_idle_cycle(), use this psscr value and the stop instruction to wait for the next interrupt. In mp kernels, cpu_unidle() now sends an interrupt. In "sysctl hw.sensors", the power and temperature sensors from opalsens(4) may show lower values. The cpu may exit stop at the system reset vector after losing user registers. If so, restore some registers. For now, ignore deeper stop states that would lose hypervisor registers. Our mp kernel uses only the first hardware thread of each core. Take the extra threads from the firmware and stop them forever; this may switch the core from SMT4 to single-thread mode and increase performance. partly by kettenis@, ok kettenis@
2020-12-29fflush after outputting a set of stats.David Gwynne
this helps when you're trying to pipe stuff into other programs (like awk and ttyplot).
2020-12-29Allocate new buffer space based on requested need.rob
OK martijn@
2020-12-29Remove unnecessary assignment.rob
OK martijn@
2020-12-29getifaddrs() can return entries where ifa_addr is NULL. Check for thisSebastian Benoit
before accessing anything in ifa_addr. ok claudio@
2020-12-29getifaddrs() can return entries where ifa_addr is NULL. Check for thisSebastian Benoit
before accessing anything in ifa_addr. florian@ mentioned this might be a problem in slaacd(8) and rad(8) after claudio@ fixed it in bgpd, so i went looking...
2020-12-29getifaddrs() can return entries where ifa_addr is NULL. Check for thisSebastian Benoit
before accessing anything in ifa_addr. ok claudio@
2020-12-29getifaddrs() can return entries where ifa_addr is NULL. Check for thisSebastian Benoit
before accessing anything in ifa_addr. florian@ mentioned this might be a problem in slaacd(8) and rad(8) after claudio@ fixed it in bgpd, so i went looking... ok claudio@
2020-12-29getifaddrs() can return entries where ifa_addr is NULL. Check for thisSebastian Benoit
before accessing anything in ifa_addr. ok claudio@
2020-12-29Update libexpat to 2.2.10. Relevant are only bug fixes #390 #395Alexander Bluhm
#398 #404 #405 and other changes #354 #355 #412. OK deraadt@
2020-12-29Add another rde_trie_test to the unit tests.Claudio Jeker
2020-12-29If we manage to send all "count" flood pings before receiving allFlorian Obser
answers we would exit after receiving the first answer and claiming a (huge) packet loss. OK benno
2020-12-29Handle pinctrl.Mark Kettenis
2020-12-29Add more PWM pin descriptions.Mark Kettenis
2020-12-29Adjut the roa-set unittest to the new way roas are added into a trie.Claudio Jeker
2020-12-29Adjust the roa-set config test. Overlapping ROAs are no longer merged byClaudio Jeker
the parser so more ROAs are visible in the config printed.
2020-12-29In preparation for RTR support change the representation of the roa-setClaudio Jeker
in the parent to a simple RB tree based on struct roa. With this overlapping ROAs (same prefix & source-as but different maxlen) are now merged in the RDE when the lookup trie is constructed. OK benno@
2020-12-29Fix calloc in GBRjob
OK claudio@
2020-12-29Document kern.video.record.Marcus Glocker
With help/input from jmc@ and kn@. ok jmc@
2020-12-29sync usage() with SYNOPSIS; the -S option remainsJason McIntyre
undocumented, at least for now;
2020-12-29getifaddrs() can return entries where ifa_addr is NULL. Check for thisClaudio Jeker
before accessing anything in ifa_addr. OK florian@
2020-12-29Only skip routes with a loopback gateway for network static and connected.Claudio Jeker
For network rtlabel and priority skip this check since there the operator may actually want to distribute this network explicitly (even though it is probably a reject or blackhole route). Requested by dlg@ OK benno@
2020-12-29Adapt to replacement of sntrup4591761x25519-sha512@tinyssh.org withDamien Miller
sntrup761x25519-sha512@openssh.com. Also test sntrup761x25519-sha512@openssh.com in unittests/kex
2020-12-29Update/replace the experimental post-quantim hybrid key exchangeDamien Miller
method based on Streamlined NTRU Prime (coupled with X25519). The previous sntrup4591761x25519-sha512@tinyssh.org method is replaced with sntrup761x25519-sha512@openssh.com. Per the authors, sntrup4591761 was replaced almost two years ago by sntrup761. The sntrup761 implementaion, like sntrup4591761 before it, is public domain code extracted from the SUPERCOP cryptography benchmark suite (https://bench.cr.yp.to/supercop.html). Thanks for Daniel J Bernstein for guidance on algorithm selection. Patch from Tobias Heider; feedback & ok markus@ and myself (note this both the updated method and the one that it replaced are disabled by default)
2020-12-28Fix an off-by-one error in the marking of the O_CH operator followingTodd C. Miller
an OOR2 operator. Also includes a regress test for the issue. From FreeBSD via miod@
2020-12-28Add back keyword "any" to match any IP address, which actually workstobhe
after recent fixes.
2020-12-28Add support for kern.video.record.Marcus Glocker
ok mpi@
2020-12-28Analog to the the kern.audio.record sysctl parameter for audio(4)Marcus Glocker
devices, introduce kern.video.record for video(4) devices. By default kern.video.record will be set to zero, blanking all data delivered by device drivers which attach to video(4). The idea was initially proposed by Laurence Tratt <laurie AT tratt DOT net>. ok mpi@
2020-12-28Document ruby30 FLAVOR for Ruby portsJeremy Evans
2020-12-28Remove unused start routinekn
enc(4) does not use the ifqueue API at all; IPsec packets are directly transformed in the IP input/output routines. enc_start() is never called (by design) so remove it for clarity. OK mpi
2020-12-28Sync with i386 by asserting that IPL values should be at least IPL_NONE.Martin Pieuchot
2020-12-28Initialize pmap_kernel()'s mutexes.Martin Pieuchot
Poison the IPL value of `pm_mtx' since it isn't supposed to be used and add an assert to make sure splraise() isn't called with a poisoned value. Fix a missing initialization found by WITNESS and reported by gnezdo@. ok millert@
2020-12-28Use per-CPU counters for fault and stats counters reached in uvm_fault().Martin Pieuchot
ok kettenis@, dlg@
2020-12-28Add support for the PCIe controller found on Amlogic G12A/G12B/SM1 SoCs.Mark Kettenis
ok patrick@
2020-12-28regenMark Kettenis
2020-12-28Add Synopsys vendor and their DesignWare PCIe bridge.Mark Kettenis
2020-12-28Do not list user options with show-hooks.Nicholas Marriott