summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-11-29Teach lld to link the macppc kernelgkoehler
Add R_PPC_ADDR24 to lld. We need R_PPC_ADDR24 for absolute branches "ba" and "bla" in locore.S in the kernel. In Makefile.macppc, add a gapdummy (like in Makefile.powerpc64) to avoid an lld error. Also adapt a part of Makefile.i386, so my powerpc64 can use clang and lld to build and link the macppc kernel. (I didn't boot that kernel.) My macppc can now build, link, and boot kernels with either ld.bfd or ld.lld. Beware that kernels linked with ld.lld have at least one problem (wrong &etext) not yet fixed. ok kettenis@
2020-11-29Add support for 1000base-x and 2500base-x connections.Mark Kettenis
ok patrick@
2020-08-03Import LLVM 10.0.0 release including clang, lld and lldb.Patrick Wildt
ok hackroom tested by plenty
2020-11-29Give armv7 a <machine/cpufunc.h> header and use it to add a prototypeMark Kettenis
for smc_call(). ok patrick@
2020-11-29Fix previous; we need to set the icmp6ev in the interface to NULLFlorian Obser
otherwise we are referencing the wrong one when the rdomain changes. Sorry for not spotting it earlier.
2020-11-29Clarify what sio_start() does exactlyAlexandre Ratchov
Suggested by Erico Nogueira <ericonr@disroot.org>, help from and ok jmc@, schwarze@
2020-11-29Un-const pci_attach_args var.Kevin Lo
"yes guess so" deraadt@
2020-11-28improve legibility of the newly introduced unref_icmp6ev() before thisChristian Weisgerber
code gets copied around; ok florian@
2020-11-28Add support for multiple address pools. The parser already allowstobhe
specifying multiple pools, make ikev2_cp_setaddr() iterate over the pools to find a matching address. ok patrick@
2020-11-28make it possible to attach other devices (for example switches) to mvmdio(4).Mark Kettenis
ok patrick@
2020-11-28Add retguard to macppc kernel locore.S, ofwreal.S, setjmp.Sgkoehler
This changes RETGUARD_SETUP(ffs) to RETGUARD_SETUP(ffs, %r11, %r12) and RETGUARD_CHECK(ffs) to RETGUARD_CHECK(ffs, %r11, %r12) to show that r11 and r12 are in use between setup and check, and to pick registers other than r11 and r12 in some kernel functions. ok mortimer@ deraadt@
2020-11-28Since our IPI broadcast functions exclude the CPU doing the broadcast, weMark Kettenis
need to explicitly call wbinvd() in wbinvd_on_all_cpus(). ok jsg@, deraadt@
2020-11-28ICC_DIR, used to deactive interrupts, is only needed when running inPatrick Wildt
EOImode == 1, which we don't do. Hence there's no need to touch the register at all. This allows OpenBSD to progress on ESXi-Arm. This bug in ESXi-Arm will be fixed there as well. Noticed by Jared McNeill ok kettenis@
2020-11-28Rather than skipping %[sizearg]n in the kernel, panic when it is encountered.Theo de Raadt
printf(9) already lacked documentation and needs no change.
2020-11-28Prepare for libX11 1.7.0Matthieu Herrb
2020-11-28Include cipher.h for declaration of cipher_by_name.Darren Tucker
2020-11-28An interface might have disappeared or switched rdomains while weFlorian Obser
waited for a FD. It's not a fatal condition if it arrives late. OK tb
2020-11-28Reduce code duplication by introducing unref_icmp6ev().Florian Obser
OK tb
2020-11-28Handle the case of an autoconf interface changing its rdomain.Florian Obser
To avoide code duplication have get_icmp6ev_by_rdomain() either return an existing icmp6ev in the correct rdomain or allocate one. OK tb
2020-11-28Use IN_MULTICAST correctly, so it checks the IP address rather than theJonathan Matthew
pointer to it. ok florian@
2020-11-28check result of strchr() against NULL rather than searched-forDamien Miller
characters; from zhongjubin@huawei.com
2020-11-27Remove redundant state change. ikev2_ikesa_delete() sets the correct state.tobhe
2020-11-27Unleash curlen check from DIAGNOSTIC block, and change the related printf'sMarcus Glocker
to DPRINTF's. From Mikolaj Kucharski <mikolaj AT kucharski DOT name>
2020-11-27tweak previous as suggested by jmcStuart Henderson
2020-11-27Shuffle code relating to initializing the physical interface and theKenneth R Westerback
internal structure reflecting the interface into a function that in turn calls simple helper functions to do the different actions involved. Simplifies the overly lengthy main(), correctly starts the state machine with the state of the interface link as DOWN when IFF_UP is 0, tests more initialization actions when '-n' is used.
2020-11-27wg(4): show an actual command to retrieve wgpubkey to go with the text whichStuart Henderson
says "shown in the status output of the interface"; this makes it clear that 1) ifconfig is used, 2) the interface must be specified (either that or -A; it is not shown in the default output with no parameters), and 3) hints that it must be run as root. ok jmc@
2020-11-27As in urtwn(4), don't bring link up (getting dhclient(8) excited) untilKenneth R Westerback
all the keys are negotiated and installed. ok stsp@
2020-11-27wg(4): add comments for the shell script in EXAMPLES, feedback jmc@Stuart Henderson
2020-11-27Set the correct IPL for `pageqlock' now that it is grabbed from interrupt.Martin Pieuchot
Reported by AIsha Tammy. ok kettenis@
2020-11-27Check if the interface has an IPv6 link-local address before using it.Florian Obser
Problem noted by & OK tb
2020-11-27Document ssh-keygen -Z, sanity check its argument earlier and provideDarren Tucker
a better error message if it's not correct. Prompted by bz#2879, ok djm@ jmc@
2020-11-27Set the specified TOS/DSCP for interactive use prior to TCP connect.Damien Miller
The connection phase of the SSH session is time-sensitive (due to server side login grace periods) and is frequently interactive (e.g. entering passwords). The ultimate interactive/bulk TOS/DSCP will be set after authentication completes. ok dtucker@
2020-11-27clean up passing of struct passwd from monitor to preauth privsepDamien Miller
process. No longer copy entire struct w/ pointer addresses, but pass remaining scalar fields explicitly, Prompted by Yuichiro NAITO, feedback Thorsten Glaser; ok dtucker@
2020-11-27Add initialization of sc_sff_lock rwlock.Kevin Lo
ok semarie@
2020-11-26Fix config_add_transform and config_free_proposal.tobhe
2020-11-26Use a counter instead of random IV for AES-GCM. Security depends ontobhe
choosing a unique IV for every encryption operation, using a counter as IV eliminates the risk of random collisions. ok markus@ patrick@
2020-11-26fix typo in log message: inteface -> interfaceTheo Buehler
ok florian
2020-11-26Fix check for vertical centre.Nicholas Marriott
2020-11-26Add -N flag to display-panes to ignore keys, GitHub issue 2473.Nicholas Marriott
2020-11-25Fix proposal error handling. If a proposal contains an unknown transformtobhe
type or id, ignore the proposal instead of failing the exchange. ok patrick@
2020-11-25Teach route(8) about the names of the IEEE80211_F_* flags.Kenneth R Westerback
2020-11-25Avoid undefined behavior due to memcpy(NULL, NULL, 0)Theo Buehler
This happens if name->der_len == 0. Since we already have a length check, we can malloc and memcpy inside the conditional. This also makes the code easier to read. agreement from millert ok jsing
2020-11-25Change kqueue_scan() to keep track of collected events in the given context.Martin Pieuchot
It is now possible to call the function multiple times to collect events. For that, the end marker has to be preserved between calls because otherwise the scan might collect an event more than once. If a collected event gets reactivated during scanning, it will be added at the tail of the queue, out of reach because of the end marker. This is required to implement select(2) and poll(2) on top of kqueue_scan(). Done & originally committed by visa@ in r1.143, in snap for more than 2 weeks. ok visa@, anton@
2020-11-25When processing proposed static routes (inc. default route) ignoreKenneth R Westerback
routes that are already present, neither deleting nor re-adding them.
2020-11-24Fix duplicate sa->sa_cp assignment.tobhe
2020-11-24Kill connection if rsync server stallsjob
OK deraadt@
2020-11-24Simple implementation of --timeout to exit after specified seconds of I/OClaudio Jeker
inactivity. By default rsync will wait forever but this results in stuck processes if the remote side does not answer properly as seen in rpki-client. OK job@ benno@
2020-11-24use non-reserved ports in the wg(4) example, the previous 111 was quiteStuart Henderson
a bad choice as it conflicts with portmap. ok deraadt
2020-11-24Pid files? Where we're going, we don't need pid files.Florian Obser
OK sthen
2020-11-24fter ixgbe_stop() there will be no more link-state-changeGerhard Roth
interrupts. Hence, update the link state manually. Tested and ok bluhm@