summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-10-26Kill deprecated IPv6 ioctl(2)s.Martin Pieuchot
ok florian@, sthen@, jsg@
2017-10-26Move common code to add/remove multicast filters to ieee80211_ioctl(9).Martin Pieuchot
ok jsg@, stsp@
2017-10-26adjust Makefile.armv7 for clangJonathan Gray
ok kettenis@
2017-10-26Fix crash exiting command prompt (from Alex Maese in GitHub issue 1139)Nicholas Marriott
and a man page tweak from jmc.
2017-10-26mark up the rdomain keyword;Jason McIntyre
2017-10-26Use .arch_extension sec and virt to use smc and hvc instructions whenJonathan Gray
using the clang 5.0.0 integrated assembler with -march=armv7a. ok visa@ initial diff from and ok kettenis@
2017-10-26Revert 2006-4-29Z23:09:45 commit that switched from rwlocks to mutexes.Philip Guenther
Use of mutexes there is a WITNESS violation. ok visa@ mpi@
2017-10-25Initialize processor extended state in fpu_kernel_enterMike Belopuhov
Tested by a few; OK visa, sthen
2017-10-25The page footer line (psmarg) is created in ps_begin(), and theIngo Schwarze
last call writing to it is always ps_endline(), which ends with ps_pclose(), which prints "ET" (end text). Consequently, do not print another instance of "ET" in ps_closepage() after the footer line and before the "endstream" for the page. Fixing a PDF syntax error found while investigating the bug report from Jan Stary that also resulted in the previous commit.
2017-10-25Use printenv to test whether an SSH_USER_AUTH is set instead ofTodd C. Miller
using $SSH_USER_AUTH. The latter won't work with csh which treats unknown variables as an error when expanding them. OK markus@
2017-10-25Properly close out the top-level Font object, the end-of-pageIngo Schwarze
Resource objects, and the Catalog object, fixing three PDF syntax errors that were present in every PDF file generated with mandoc since the initial checkin of the formatter in July 2010. Bug reported by Jan Stary <hans at stare dot cz> on misc@.
2017-10-25Open a bunch of fds with O_CLOEXECJeremie Courreges-Anglas
Not needed in theory, but could prevent accidental leaks. ok millert@
2017-10-25Note that notifications are also hooks.Nicholas Marriott
2017-10-25Storing the address of a stack variable in a global variable is a bad idea.Mark Kettenis
Rework the code to store the relevant information in the softc. As a bonus, this reduces the stack space that is used such that this file compiles with clang. ok ians@
2017-10-25Default allow-rename to off because it is ridiculous that applicationsNicholas Marriott
are even able to do this and confusing when they do.
2017-10-25Remove the TCP_FACK option and associated #if{,n}def code.job
TCP_FACK was disabled by provos@ in June 1999. TCP_FACK is an algorithm that decides that when something is lost, all not SACKed packets until the most forward SACK are lost. It may be a correct estimate, if network does not reorder packets. OK visa@ mpi@ mikeb@
2017-10-25h/l keys for expand and collapse.Nicholas Marriott
2017-10-25Remove dead code, found by jsg@.Martin Pieuchot
ok jsg@, florian@
2017-10-25Add P key to paste tagged in buffer mode, and trim some code that shouldNicholas Marriott
no longer be necessary.
2017-10-25Partially revert rev 1.457 of /etc/rc. The pipe introduced inAlexander Bluhm
sysctl_conf() spawns a subshell. This prevents that the new process limits affect the daemons started during boot. OK rpe@ halex@
2017-10-25Check for NULL before dereferencing untrusted pointers.Martin Pieuchot
from Helg Bredow.
2017-10-25Remove Multicast and Broadcast flags from the encapsulated packet inMartin Pieuchot
vxlan(4) like it is done by other tunnelling pseudo-interfaces. While here sync the comment between multiple interfaces. Bug report and original diff from Pierre LALET.
2017-10-25tweak the uri text, specifically removing some markup to make it aJason McIntyre
bit more readable; issue reported by - and diff ok - millert
2017-10-25simplify macros in previous, and some minor tweaks;Jason McIntyre
2017-10-25uninitialised variable in PermitTunnel printing codeDamien Miller
2017-10-25transfer ownership of stdout to the session channel by dup2'ingDamien Miller
/dev/null to fd 1. This allows propagation of remote stdout close to the local side; reported by David Newall, ok markus@
2017-10-25add a "rdomain" criteria for the sshd_config Match keyword to allowDamien Miller
conditional configuration that depends on which rdomain(4) a connection was recevied on. ok markus@
2017-10-25add sshd_config RDomain keyword to place sshd and the subsequentDamien Miller
user session (including the shell and any TCP/IP forwardings) into the specified rdomain(4) ok markus@
2017-10-25Add optional rdomain qualifier to sshd_config's ListenAddress optionDamien Miller
to allow listening on a different rdomain(4), e.g. ListenAddress 0.0.0.0 rdomain 4
2017-10-24R_AARCH64_NONE should be zero, not 256. The latter was a deprecatedPhilip Guenther
assignment and isn't used by clang/lld. ok jsg@
2017-10-24In ld scripts, an output section with no input sections is always markedPhilip Guenther
writable, so the stub gap.o has .rodata flagged as RW. Instead of letting that propagate to the final :rodata PT_LOAD section, force the flags on the section to 4 (==PF_R) in the PHDRS block. problem noted by mortimer@ ok deraadt@ kettenis@
2017-10-24Kill dead store and some spaces vs. tabs indent in parse_user_host_path().Todd C. Miller
Noticed by markus@
2017-10-24Add tests for URI parsing. OK markus@Todd C. Miller
2017-10-24Use a smaller buffer size too peek the receive data. The contentAlexander Bluhm
is discarded anyway, the plen variable is a leftover from the -j jumbo option. reported by Nan Xiao; OK deraadt@
2017-10-24Use "static inline" instead of "extern inline" for compatibility withMark Kettenis
proper C99 compilers. ok deraadt@, visa@, mpi@
2017-10-24Attach syscon(4) early. Also attach psci(4) early such that cpuresetfnMark Kettenis
and powerdowfn are initialized in the same way as before. ok patrick@, jsg@
2017-10-24Refactor handling of partial TCP acknowledgementsMike Belopuhov
With input from Klemens Nanni, OK visa, mpi, bluhm
2017-10-24When dd(1) fails because it receives an INT signal,Ingo Schwarze
exit with a non-zero EXIT STATUS, as required by POSIX, consistent with what other operating systems do, consistent with how other OpenBSD programs behave, and making wait(2) consistent with what happens when dd(1) dies from other signals. Patch from <ScottCheloha at gmail dot com>. OK florian@ tb@.
2017-10-24remove defines for ioctls the kernel doesn't recogniseJonathan Gray
ok mpi@
2017-10-24Remove some more tests checking for a non-NULL `ifp->if_ioctl'.Martin Pieuchot
if_attach() enforces it is properly defined.
2017-10-24Add more sanity checks to prevent a segfault and a NULL-dereferenceMartin Pieuchot
when manipulating callers probided pointers. From Helg Bredow.
2017-10-24Remove support for never used ioctls originating from KAME.Martin Pieuchot
ok florian@, claudio@, bluhm@
2017-10-24Use membar_enter_after_atomic(9) amd membar_exit_before_atomic(9).Martin Pieuchot
Micro-optimization useful to x86 archs where the cmpxchg{q,l} instruction used by rw_enter(9) and rw_exit(9) already include an implicit memory barrier. From Mateusz Guzik, ok visa@, mikeb@, kettenis@
2017-10-24Remove terminate_vm/vm_remove logic from vmm_dispatch_parent. ThisMike Larkin
logic is present in vmm_sighdlr when a VM process has signaled SIGCHLD for proper cleanup. From: Carlos Cardenas, thanks!
2017-10-24The VMD parent process didn't handle the case of a VM exitingMike Larkin
with a non 0 return properly (i.e. EIO). From: Carlos Cardenas, thanks!
2017-10-24tweak previous; ok djmJason McIntyre
2017-10-24kbind(2) for the win: we can always put .got.plt in RELROPhilip Guenther
ok kettenis@ deraadt@
2017-10-24syncTheo de Raadt
2017-01-14Import LLVM 3.9.1 including clang and lld.Patrick Wildt
2017-10-23Avoid clang format warning.Mark Kettenis
ok deraadt@