summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-07-26zap a dot;Jason McIntyre
2018-07-26zap whitespacesRicardo Mestre
2018-07-26reduce pledge(2) to the bare minimum:Ricardo Mestre
after dbopen(3) occurs then all operations are on fds which don't need rpath/wpath and therefore spamdb(8) only needs stdio at all times after the DB was already open(2)ed great input from semarie@ OK deraadt@
2018-07-26syncTheo de Raadt
2018-07-26add pledge(2) to quot(8):Ricardo Mestre
- rpath to traverse the filesystem(s) - getpw to figure out who owns what OK tb@ deraadt@
2018-07-26Add infrastructure to install lld as the default linker. The old GNU linkerMark Kettenis
will be installed as /usr/bin/ld.bfd on supported systems. This allows users to fall back on the old linker by using the -fuse-ld=bfd option on systems where lld is the default linker. Switch armv7 to use lld as the default linker. On arm64 we already use lld as the default linker. Other platforms will keep using the GNU linker for now. ok patrick@, deraadt@, phessler@
2018-07-26Mention some missing libevent macros.rob
ok jmc@, benno@, "yes" deraadt@
2018-07-26Add imxspi(4), a driver for the i.MX SPI controller. This is the firstPatrick Wildt
SPI controller in our tree. Add a basic generic SPI infrastructure as well. ok kettenis@
2018-07-26Implement calculating the SPI controller frequency in imxccm(4).Patrick Wildt
ok kettenis@
2018-07-26Remove CPUID insn_length checkjob
Don't allow unprivileged users to crash things from ring 3 Thanks to William McCall for the patch! OK mlarkin@
2018-07-26tweak previous; ok espieJason McIntyre
2018-07-26don't dump status iocbs twiceJonathan Matthew
2018-07-26remove "bad startup mboxes" printf - it never indicates a real problem,Jonathan Matthew
and it always happens on 25xx controllers.
2018-07-25Implement a MSGBUF control packet mechanism based on the commandPatrick Wildt
request ids. So far we were only able to have one command in flight at a time and race conditions could easily lead to unexpected behaviour. With this rework we send and enqueue a control packet command and wait for replies to happen. Thus we can have multiple control packets in flight and a reply with the correct id will wake us up.
2018-07-25On authentication we don't need to create the node before callingPatrick Wildt
the network stack since the stack will create the node for us if we pass the ibss stack. On assocation request the node already has to exist, so we error out if we don't have a record of the node. Fixes hostap on 5 GHz channels, since now the node's channel is recorded correctly.
2018-07-25Provide a harness that runs test vectors from Project Wycheproof againstJoel Sing
libcrypto. Initially this just covers RSA signatures, but can be extended to cover other cryptographic algorithms. This regress requires the go and wycheproof-testvector packages to be installed, with the regress being skipped otherwise. Discussed with beck@ and tb@
2018-07-25Document the spinning time of the CPU in systat(1) and top(1).Alexander Bluhm
from Marcus MERIGHI; OK deraadt@ jmc@
2018-07-25Don't redefine Makefile choices which come correct from bsd.*.mkTheo de Raadt
ok markus
2018-07-25Implement a generic interface to forward resolver queries to the lkaEric Faurot
process. Use it for the reverse lookups required by smtp and mta. Until now, DNS-related lookups were implemented using ad-hoc IMSGs between the lka and other processes. It turns out to be confusing and difficult to maintain/extend. So we want to replace this with a better set of IMSGs matching the standard resolver interface. ok gilles@
2018-07-25qmail advertizes a size of 0 as "no limit on data", fix SIZE handling inGilles Chehade
mta_session.c spotted by deraadt@ and benno@
2018-07-25Free operand copies after parsing.cheloha
We strdup operands before destructively parsing them to keep w(1) output looking nice and neat, but after parsing we ought to free them. We do need to keep copies for file paths, though, so add additional strdups for operands if and of. While here, use the preferred err(1, NULL) for an allocation failure. Also while here, don't assign `oper' to a copy of itself because it looks strange. "sure." deraadt
2018-07-25fix indent; Clemens GoessnitzerTheo de Raadt
2018-07-25syncTheo de Raadt
2018-07-25Use the caller provided (copied) pwent struct in load_public_identity_filesBob Beck
instead of calling getpwuid() again and discarding the argument. This prevents a client crash where tilde_expand_filename calls getpwuid() again before the pwent pointer is used. Issue noticed and reported by Pierre-Olivier Martel <pom@apple.com> ok djm@ deraadt@
2018-07-25document -eMarc Espie
2018-07-25delivery to a filename should be in mbox format otherwise it will lack theGilles Chehade
^From separator and corrupt files ok eric@
2018-07-25s/resolver/nameserver/ to match parse.y -r1.4Jasper Lievisse Adriaanse
2018-07-25Fix the prefix length of the IP address in the error message which showsYASUOKA Masahiko
failure of assigning requested IP address on IPCP, it was mistakenly "-1" on little endians. Found by IIJ.
2018-07-24Add support for the i2c controller on the Marvell ARMADA 7K/8K SoC as well.Mark Kettenis
ok patrick@
2018-07-24Add clock needed to support the i2c controllers on the Marvell ARMADA 7K/8K.Mark Kettenis
ok patrick@
2018-07-24regenMark Kettenis
2018-07-24Add SanDisk/WD Black NVMe devices.Mark Kettenis
From Bryan Vyhmeister
2018-07-24syncTheo de Raadt
2018-07-24add rad.conf exampleJasper Lievisse Adriaanse
ok florian@
2018-07-24Do the same for i386 as amd64:Bryan Steele
Add "Mitigation G-2" per AMD's Whitepaper "Software Techniques for Managing Speculation on AMD Processors" By setting MSR C001_1029[1]=1, LFENCE becomes a dispatch serializing instruction. ok deraadt@
2018-07-24The I2C controller on the Allwinner hardware is actually a modifiedPatrick Wildt
Marvell controller. The difference is essentially register offsets and a clock divider calculation based on a power of two. Also this particular hardware needs a delay after sending a stop and before reading the status register since apparently the data doesn't propagate fast enough. This makes sxitwi(4) work on the Marvell Armada 38x. ok kettenis@
2018-07-24Add support fotr the BCM4335/4339 SDIO chip to bwfm(4). This one is a bitMark Kettenis
slow booting up, so give it a bit longer to enable the clock. ok patrick@
2018-07-24Fix previous commit: the RSB refill bits change %rcx so it needed to bePhilip Guenther
given an input/output ASM constraint...but I made it output-only, so the compiler deleted the initialization. reported by many, starting with Edd Barrett (edd(at)theunixzoo.co.uk)
2018-07-24Add some debug log messages telling which RIBs and peers get sofreconfiguredClaudio Jeker
during reload. OK henning@
2018-07-24add c++ symbol annotationsBrent Cook
from Cameron Palmer
2018-07-24Use prefix_nexthop() to access the nexthop instead of dereferencing theClaudio Jeker
field in asp directly. This is a step to move the prefix from rde_aspath to struct prefix. OK benno@
2018-07-24Move duplicate code into new helper print_addr_str()kn
This simply puts the wiggle around inet_ntop() from four into one location. OK benno
2018-07-24Simplify getaddrinfo() error handlingkn
`error' is not used so drop it and jump to the end. OK sashan
2018-07-24Fix address calculation for _DYNAMIC. We want to address of _DYNAMIC itself,Mark Kettenis
not the address of its GOT entry. The current code mixed the high bits of the GOT entry address with the low bits of the true address. This only worked by accident for small binaries where _DYNAMIC and its GOT entry happen to reside on the same page. ok guenther@, mortimer@
2018-07-24When a GRE packet goes to "decline", the mbuf pointer was not updatedYASUOKA Masahiko
properly. This had caused an panic when the mbuf pointer is updated. Found by IIJ. ok dlg
2018-07-24Also do RSB refilling when context switching, after vmexits, andPhilip Guenther
when vmlaunch or vmresume fails. Follow the lead of clang and the intel recommendation and do an lfence after the pause in the speculation-stop path for retpoline, RSB refill, and meltover ASM bits. ok kettenis@ deraadt@
2018-07-24Use the same order in NAME, SYNOPSIS, DESCRIPTION, and RETURN VALUES toTheo Buehler
improve readability and ease of maintenance. Positive feedback jmc Detailed suggestion & ok schwarze
2018-07-24Remove defunct prototype leftover from previous code cleanup.rob
ok tb@, claudio@
2018-07-23Add "Mitigation G-2" per AMD's Whitepaper "Software Techniques forBryan Steele
Managing Speculation on AMD Processors" By setting MSR C001_1029[1]=1, LFENCE becomes a dispatch serializing instruction. Tested on AMD FX-4100 "Bulldozer", and Linux guest in SVM vmd(8) ok deraadt@ mlarkin@
2018-07-23Don't cast malloc(3) size to u_int.cheloha
Large buffer sizes on 64-bit platforms cause the sum to wrap, leading read(2) to fail later. We check prior to this point that all buffer sizes are <= SSIZE_MAX. SSIZE_MAX * 2 < SIZE_MAX on all platforms, so the addition here will not overflow and cause a similar issue. Discovered by tobias@ a while back. ok deraadt millert tobias