summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-04-27pthread_join() must not return EINTRPhilip Guenther
Simplify sem_trywait() ok pirofti@ mpi@
2018-04-27Restore mode on symlinksPhilip Guenther
ok deraadt@
2018-04-27The i.MX8M has the same quirk as the i.MX6SX, where the CAP1 registerPatrick Wildt
spills into the CAP register.
2018-04-27vmd(8): allow unlatch PIT readsMike Larkin
ok ccardenas
2018-04-27Newer fec(4), like implemented on i.MX8M, have multiple interrupt linesPatrick Wildt
to the ethernet controller for different types of events. On the i.MX8M interrupts only seem to happen on the last interrupt, while the i.MX6 that we support very well only has a single interrupt line. Simply establish all three lines (if available) in a non-MPSAFE fashion to make ethernet work on the i.MX8M SoC. ok kettenis@
2018-04-27implement test for running in a hypervisor on amd64/i386Jonathan Gray
2018-04-26- fix some macro abuseJason McIntyre
- *an* smtp - format the list nicer ok eric
2018-04-26fix build for smtp(1) after log.h updateEric Faurot
2018-04-26sync log.h with other daemonsEric Faurot
ok gilles@
2018-04-26add some Xr, and shorten all "See blah(4) for details." to just "See blah(4)."Jason McIntyre
from il ka
2018-04-26ioctlname() prototype is already in ../kdump/kdump.hPhilip Guenther
2018-04-26vmd(8): fix some bugs in PIT mode settingMike Larkin
PIT modes are now properly handled, including INTTC mode. This fixes some bootloader timeouts. ok brynet
2018-04-26tests for clearing out flagsBob Beck
2018-04-26Cast a multiplicand to ino_t to avoid overflow in 32*32=64 calculationsPhilip Guenther
ok pirofti@ krw@
2018-04-26vmd(8): some more long lines that got missed last timeMike Larkin
2018-04-26vmm(4): passthrough port 0x61 to vmd(8)Mike Larkin
ok guenther
2018-04-26vmd(8): handle PIT channel 2 status readback via port 0x61Mike Larkin
Allow PIT channel 2 status (fired/counting) readback via port 0x61 bit 5. ok guenther@
2018-04-26Add error handling to unconfuse myself when playing with pledgepath().Florian Obser
2018-04-26The frontend tells the main process when the startup is finished soFlorian Obser
that we can drop the sendfd pledge.
2018-04-26Hoist initialisations up; while here tighten not yet working pledge.Florian Obser
2018-04-26vmd(8): wrap some long linesMike Larkin
2018-04-26Convert a format string variable to a static const char[] to reduce warningsPhilip Guenther
ok tb@ millert@ krw@
2018-04-26Oups, we only need vmmci(4) for the ramdisk, not the whole vmm(4).Peter Hessler
noticed by deraadt@ and mlarkin@
2018-04-26vmd(8): bump virtio network max queue size to 256 (to match qemu)Mike Larkin
2018-04-26vmd(8): use #defines for queue indices and cleanup some codeMike Larkin
ok phessler
2018-04-26Prefer <fcntl.h> over <sys/fcntl.h> in userlandPhilip Guenther
While here, delete some extra #includes and apply style(9) sort rules. ok deraadt@ krw@ mpi@
2018-04-26No need for two copies of tricky user input gathering code. Just useKenneth R Westerback
getstring() to get the string and then parse that in getuint64(). Fix a mis-use of %lld and some whitespace while passing. ok otto@
2018-04-26enable vmmci(4) on the ramdisks, so bsd.rd plays nicer when it powers offPeter Hessler
OK mlarkin@
2018-04-26Since the previous commit, ssh regress test sftp-chroot was failing.Alexander Bluhm
The sftp program terminated with the wrong exit code as sftp called fatal() instad of exit(0). So when the sigchld handler waits for the child, remember that it was found. Then don't expect that main() can wait again. OK dtucker@
2018-04-26fix OpenBSD releaseEric Faurot
2018-04-26Add some range checks to make sure we don't attempt to store valuesKenneth R Westerback
too large for the receiving fields. Change a couple of do{}while() to for(;;) for consistancy. Tweaks & ok otto@
2018-04-26vmm(4): Rearrange some interrupt window exiting codeMike Larkin
Simplify some code and reduce the number of places we are handling VINTR exits. ok brynet
2018-04-26vmd(8): fix broken networking on newer linux guest kernelsMike Larkin
Linux kernels after about 4.11.x or so exhibited problems with vmd(8)'s virtio implementation. This commit fixes two bugs - an descriptor index problem for the receive queue and a problem where the packet data was being copied into the secondary descriptor buffer (should now be the first descriptor's buffer, since that has enough size now for a non-jumbo frame). Verified on ubuntu 17.10 (linux 4.13.x) and regression tested on a variety of older linux guests and non-linux guests. ok ccardenas, phessler
2018-04-26Plug leak in error case of the common 'varset' implementations.Kenneth R Westerback
ok benno@
2018-04-26Prefer leaq+%rip-relative over movabsqPhilip Guenther
xrstor_resume must not have profile prologue, so use NENTRY Don't use _C_LABEL() with some pure-ASM labels
2018-04-26Adjust regress for new rwxc flags instead of O_FLAGSBob Beck
2018-04-26add a simple SMTP clientEric Faurot
ok gilles@
2018-04-26Globally remember the passwd entry for _syslogd. The user id isAlexander Bluhm
used for opening the pipe process. Move the getpwnam() lookup out of the privsep parent loop, so it does not need "getpw" pledge anymore. OK deraadt@
2018-04-26Minimal macro cleanup.Ingo Schwarze
The way the content is presented is still atrocious, but i'm not cleaning that up right now.
2018-04-26adjust to removed support for /etc/networksIngo Schwarze
2018-04-26Fix previous. Adding "offset" to "maxval" was required.YASUOKA Masahiko
ok otto krw
2018-04-26Delete support for the networks.by{name,addr} YP maps.Ingo Schwarze
This is part of the project to delete /etc/networks support. OK deraadt@
2018-04-26Don't hide stderr; starting with 6.4 there will always be an SHA256.sig.Antoine Jacoutot
2018-04-26net80211: stub SIOCS80211SCAN, make ifconfig scan instant.Paul Irofti
The following removes the functionality of the SIOCS80211SCAN ioctl. After long discussions with stps@, mpi@, and deraadt@ we decided that this was the correct way of fixing ifconfig scan from blocking the network stack. The kernel will continue scanning in the background and filling the nodes array, but ifconfig scan commands will now basically do just a SIOCG80211ALLNODES and pretty print the array. So the output stays the same but is instant. In fact, when the interface is freshly brought up, if you type fast enough, you can see the array being filled by running multiple ifconfig scans in sequence. The SIOCS80211SCAN ioctl stays for now as wi(4), pgt(4) and malo(4) still need it around. But not for long... Another change that this introduces is the fact that ifconfig scan no longer plays with UP and DOWN. If the interface is down it complains and exits. This is needed in order to maintain the nodes list. Works on iwm(4), iwn(4), urtwn(4), run(4) and athn(4). Tested by mpi@, landry@, florian@, thanks! OK mpi@.
2018-04-26Do not call getnetbyname(3) when parsing securenet(5) and ypserv.acl(5).Ingo Schwarze
If anybody still uses these files, specify networks with numbers in there. This is part of the project to delete /etc/networks support. OK deraadt@
2018-04-26Reorder trapframe/intrframe to put %rbp next to %rip and make itPhilip Guenther
behave like a real call frame, thus vastly simplifying the ddb back trace logic. based on whinging from deraadt@ ok jasper@ mpi@ phessler@
2018-04-26Use <fcntl.h> instead of <sys/file.h> for open() and friends.Philip Guenther
Delete a bunch of unnecessary #includes and sort to match style(9) while doing the above cleanup. ok deraadt@ krw@
2018-04-26Do not try getnetbyname(3) if gethostbyname(3) returns no result.Ingo Schwarze
This is part of the project to delete /etc/networks support. OK deraadt@
2018-04-26Make ed's 'l' command end lines with a '$' and make sure that literalMartijn van Duren
'$' characters are escaped, so that we are POSIX compliant. The omission of trailing '$' was originally hidden behind a BACKWARDS flag. This flag was most likely introduced to be compatible with 4.4BSD. Thanks to naddy@ for pointing me to the 4.4BSD ed implementation. I tried to trace the origin and enabling of the BACKWARDS flag, since both FreeBSD and NetBSD have the flag, but only FreeBSD doesn't have it enabled. Both projects had an alm@ working on ed during 1993-1995 during which he added this flag to both projects and only enabled it on NetBSD, but I wasn't able to reach him on any known address. Thanks to Ed Schouten (ed@freebsd), and Michael W. Lucas of the ed Mastery book for helping me trying to locate Andrew Moore. Problem originally prodded by garzon.lucero@gmail.com and later independently re-requested by n.reusse@hxgn.net. OK tb@, guenther@, and mwl@mwl.io
2018-04-26reorg error handling so it's always passed to class methods that canMarc Espie
be overridden. Useful for nextgen update-plist