openbsd
7 years agoCall xbf_intr for polled transfers that can't sleep
mikeb [Tue, 6 Jun 2017 20:33:28 +0000 (20:33 +0000)]
Call xbf_intr for polled transfers that can't sleep

7 years agoAdd support for tap gestures.
bru [Tue, 6 Jun 2017 19:47:22 +0000 (19:47 +0000)]
Add support for tap gestures.

7 years agoProvide sufficient info in error messages to identify
krw [Tue, 6 Jun 2017 19:01:27 +0000 (19:01 +0000)]
Provide sufficient info in error messages to identify
softraid volume and backing disk when i/o errors occur.

Original issue reported by Paul de Weerd.

Suggestions from jsing@.

ok deraadt@ mikeb@

7 years agoContinue and pass keys through if they are repeated keys, so that the
nicm [Tue, 6 Jun 2017 15:49:35 +0000 (15:49 +0000)]
Continue and pass keys through if they are repeated keys, so that the
first key after a repeated key doesn't get lost.

7 years agoDo not pass a state into commands when fired on individual items in tree
nicm [Tue, 6 Jun 2017 15:07:35 +0000 (15:07 +0000)]
Do not pass a state into commands when fired on individual items in tree
mode, rely on the %% target substitution in the command for the chosen
pane and leave the default target as the current pane (where the mode
is). Otherwise, joinp and similar end up with -t and -s the
same. Reported by Jacob Niehus in GitHub issue 960.

7 years agoMinimal implementation of the roff(7) .ce request (center a number
schwarze [Tue, 6 Jun 2017 15:00:56 +0000 (15:00 +0000)]
Minimal implementation of the roff(7) .ce request (center a number
of input lines without filling).
Contrary to groff, high-level macros abort .ce mode for now.

7 years agoDelete input event when evbuffer_read() fails to avoid just spinning
nicm [Tue, 6 Jun 2017 14:53:28 +0000 (14:53 +0000)]
Delete input event when evbuffer_read() fails to avoid just spinning
around a dead file descriptor. Seems to fix a problem reported by Greg
Hurrell in GitHub issue 941.

7 years agoRemove code that is not needed right now.
visa [Tue, 6 Jun 2017 14:39:48 +0000 (14:39 +0000)]
Remove code that is not needed right now.

7 years agoImplement startup smashing in C. The code should be moved
visa [Tue, 6 Jun 2017 14:35:53 +0000 (14:35 +0000)]
Implement startup smashing in C. The code should be moved
under arch/mips64 once loongson and sgi have gap.o.

Discussed with deraadt@

7 years agostart slaacd as early as possible, right after pf and sysctl.conf are
florian [Tue, 6 Jun 2017 13:59:37 +0000 (13:59 +0000)]
start slaacd as early as possible, right after pf and sysctl.conf are
setup.
Input & OK deraadt@

7 years agoWe are going to start slaacd(8) much earlier, before /var is even
florian [Tue, 6 Jun 2017 13:57:23 +0000 (13:57 +0000)]
We are going to start slaacd(8) much earlier, before /var is even
mounted. Move control socket to /dev for now.
Input & OK deraadt@

7 years agoUpdate stubs to work with radix tree.
mpi [Tue, 6 Jun 2017 13:19:29 +0000 (13:19 +0000)]
Update stubs to work with radix tree.

7 years agoUpdate panic strings, pipex no longer use rn_inithead0().
mpi [Tue, 6 Jun 2017 13:07:22 +0000 (13:07 +0000)]
Update panic strings, pipex no longer use rn_inithead0().

7 years agoDo not rely on <net/rtable.h> beeing included by other headers.
mpi [Tue, 6 Jun 2017 11:51:13 +0000 (11:51 +0000)]
Do not rely on <net/rtable.h> beeing included by other headers.

Fix build without PF, PIPEX nor IPSEC.

7 years agoFix build without PF.
mpi [Tue, 6 Jun 2017 11:39:55 +0000 (11:39 +0000)]
Fix build without PF.

7 years agomention -fwrapv being on by default
jsg [Tue, 6 Jun 2017 09:42:09 +0000 (09:42 +0000)]
mention -fwrapv being on by default

7 years agoEnable -fwrapv by default with clang to treat signed integer overflows
jsg [Tue, 6 Jun 2017 09:40:24 +0000 (09:40 +0000)]
Enable -fwrapv by default with clang to treat signed integer overflows
as defined.  This is done to prevent dangerous optimisations which could
remove security critical overflow checks.

Base gcc has -fno-strict-overflow by default, with clang this is
identical to -fwrapv.

Prompted by naddy@ discovering a hang with a clang compiled i386 kernel
that was resolved with -fwrapv.

ok kettenis@ pascal@

7 years agoFix compression output stats broken in rev 1.201. Patch originally by
dtucker [Tue, 6 Jun 2017 09:12:17 +0000 (09:12 +0000)]
Fix compression output stats broken in rev 1.201.  Patch originally by
Russell Coker via Debian bug #797964 and Christoph Biedl.  ok djm@

7 years agoregen
tb [Tue, 6 Jun 2017 08:12:01 +0000 (08:12 +0000)]
regen

7 years agoMention that the special files are created in the current working
tb [Tue, 6 Jun 2017 08:11:23 +0000 (08:11 +0000)]
Mention that the special files are created in the current working
directory. Suggested by Scott Cheloha.

discussed with jmc

7 years agoTest insertion of unmatched meta sequence.
anton [Tue, 6 Jun 2017 08:05:01 +0000 (08:05 +0000)]
Test insertion of unmatched meta sequence.

7 years agomake vnetid and parent commands available in SMALL ifconfigs.
dlg [Tue, 6 Jun 2017 04:52:40 +0000 (04:52 +0000)]
make vnetid and parent commands available in SMALL ifconfigs.

the code behind the commands has been built on SMALL forever, this just
moves it available in the cmd table. the binary doesnt change size.

7 years agocorrect the depend list of a target introduced in rev 1.9
jsg [Tue, 6 Jun 2017 02:35:40 +0000 (02:35 +0000)]
correct the depend list of a target introduced in rev 1.9
from deraadt@

7 years agoRegen.
kevlo [Tue, 6 Jun 2017 01:02:18 +0000 (01:02 +0000)]
Regen.

7 years agoSort DLINK section and add USB device ID of D-Link DWA-131 rev E1.
kevlo [Tue, 6 Jun 2017 00:52:02 +0000 (00:52 +0000)]
Sort DLINK section and add USB device ID of D-Link DWA-131 rev E1.

ok stsp@

7 years agoShow usage of sysmerge and MAKEDEV instead of just mentioning them.
tb [Mon, 5 Jun 2017 22:27:58 +0000 (22:27 +0000)]
Show usage of sysmerge and MAKEDEV instead of just mentioning them.
From Scott Cheloha, thanks.

ok jmc and positive feedback from several

7 years ago- let's add PF_LOCK()
sashan [Mon, 5 Jun 2017 22:18:28 +0000 (22:18 +0000)]
- let's add PF_LOCK()
  to enable PF_LOCK(), you must add 'option WITH_PF_LOCK' to your kernel
  configuration. The code does not do much currently it's just the very
  small step towards MP.

O.K. henning@, mikeb@, mpi@

7 years agoinitial docs for COMPILER_WRAPPER and COMPILER_LINKS
sthen [Mon, 5 Jun 2017 21:54:07 +0000 (21:54 +0000)]
initial docs for COMPILER_WRAPPER and COMPILER_LINKS

7 years agoSplit early startup code out of locore.S into locore0.S. Adjust link
deraadt [Mon, 5 Jun 2017 18:59:06 +0000 (18:59 +0000)]
Split early startup code out of locore.S into locore0.S.  Adjust link
run so that this locore0.o is always at the start of the executable.
But randomize the link order of all other .o files in the kernel, so
that their exec/rodata/data/bss segments land all over the place.

The bootstrap code will need smashing because it is mapped by BLTB,
but this is a bit involved so not done yet.

As a result, the internal layout of every newly build bsd kernel is
different from past kernels.  Internal relative offsets are not known
to an outside attacker.  The only known offsets are in the startup code
(which will be gone when it is smashed).

Ramdisk kernels cannot be compiled like this, because they are gzip'd.
When the internal pointer references change, the compression dictionary
bloats and results in poorer compression.

7 years agoIncrease kernel size, by pushing rodata 1MB forward, from 5MB to 6MB.
deraadt [Mon, 5 Jun 2017 18:56:30 +0000 (18:56 +0000)]
Increase kernel size, by pushing rodata 1MB forward, from 5MB to 6MB.
This seems to satisfy the BTLB granularity.  Good enough for now.
ok kettenis

7 years agoTemporarily disable the second call to rc_check until I figure out what
ajacoutot [Mon, 5 Jun 2017 18:31:23 +0000 (18:31 +0000)]
Temporarily disable the second call to rc_check until I figure out what
is going on. Should fix another case of false negative reported by sthen
(redis).

7 years agoSplit early startup code out of locore.S into locore0.S. Adjust link
deraadt [Mon, 5 Jun 2017 17:49:05 +0000 (17:49 +0000)]
Split early startup code out of locore.S into locore0.S.  Adjust link
run so that this locore0.o is always at the start of the executable.
But randomize the link order of all other .o files in the kernel, so
that their exec/rodata/data/bss segments land all over the place.

Late during kernel boot, smash the startup code with traps so that
it does not point to the other randomly placed code.  It has be smashed,
because alpha (insecurely in my view) runs in the KSEG0 space.

As a result, the internal layout of every newly build bsd kernel is
different from past kernels.  Internal relative offsets are not known
to an outside attacker.  The only known offsets are in the startup code,
which is gone.

Ramdisk kernels cannot be compiled like this, because they are gzip'd.
When the internal pointer references change, the compression dictionary
bloats and results in poorer compression.

7 years agoinclude machine/param.h before machine.asm.h because uhm alpha.
deraadt [Mon, 5 Jun 2017 17:47:33 +0000 (17:47 +0000)]
include machine/param.h before machine.asm.h because uhm alpha.

7 years agoTest insertion of non-ASCII characters, in particular making sure
schwarze [Mon, 5 Jun 2017 17:34:09 +0000 (17:34 +0000)]
Test insertion of non-ASCII characters, in particular making sure
that valid input does not cause writing invalid intermediate states
to the terminal, and that invalid input is not delayed waiting for
more input, but written through right away.

Currently failing, but expected to be fixed shortly.

7 years agotrack permissions of original file
deraadt [Mon, 5 Jun 2017 15:58:33 +0000 (15:58 +0000)]
track permissions of original file

7 years agouse same idiom as other Makefiles
deraadt [Mon, 5 Jun 2017 15:58:14 +0000 (15:58 +0000)]
use same idiom as other Makefiles

7 years agoFix logic in _rc_wait to properly cope with setproctitle(3) daemons. It was a
ajacoutot [Mon, 5 Jun 2017 15:24:57 +0000 (15:24 +0000)]
Fix logic in _rc_wait to properly cope with setproctitle(3) daemons. It was a
regression from my recent rc.subr changes.

reported by deraadt@ and naddy@ : pflogd was marked as failed during boot while
it was properly running

7 years agoRandomize the link order of .o files in the kernel on octeon.
visa [Mon, 5 Jun 2017 15:23:11 +0000 (15:23 +0000)]
Randomize the link order of .o files in the kernel on octeon.
Unlike on some other architectures, it is not possible to unmap
the early boot code. Instead, the code is smashed during boot.

Input from deraadt@

7 years agoexplicitly pass -w since clang -M doesn't imply it.
espie [Mon, 5 Jun 2017 14:33:42 +0000 (14:33 +0000)]
explicitly pass -w since clang -M doesn't imply it.

okay millert@

7 years agoAdd new edit regress files.
anton [Mon, 5 Jun 2017 14:10:11 +0000 (14:10 +0000)]
Add new edit regress files.

Absent from my previous commit.

7 years agoRewrite ksh edit mode regression tests.
anton [Mon, 5 Jun 2017 13:54:39 +0000 (13:54 +0000)]
Rewrite ksh edit mode regression tests.

Instead of calling x_vi() directly, run ksh in a pseudo tty.
This makes the process of adding tests for emacs mode simpler since the code can
be shared.

With feedback and help from millert@ and schwarze@

7 years agoAvoid use of _C_LABEL, since it is not portable to all our architectures.
deraadt [Mon, 5 Jun 2017 13:52:32 +0000 (13:52 +0000)]
Avoid use of _C_LABEL, since it is not portable to all our architectures.
And anyways, everything is ELF now.

7 years agoThe arm* architectures edit the ld.script, creating a copy in the compile
deraadt [Mon, 5 Jun 2017 12:43:57 +0000 (12:43 +0000)]
The arm* architectures edit the ld.script, creating a copy in the compile
directories.  Copy it in the same way on other architectures, for the same
effect.  Something upcoming will want that file there anyways.

7 years agoexclude more objects from the readelf output when building syspatches (needed on...
robert [Mon, 5 Jun 2017 09:51:27 +0000 (09:51 +0000)]
exclude more objects from the readelf output when building syspatches (needed on i386)

7 years agoa kernel errata requires a full build as well in case some headers
robert [Mon, 5 Jun 2017 09:47:54 +0000 (09:47 +0000)]
a kernel errata requires a full build as well in case some headers
change so let's do a full build all the time

7 years agoset BUILDUSER to build by default, this can be overwritten from the environment
robert [Mon, 5 Jun 2017 09:46:25 +0000 (09:46 +0000)]
set BUILDUSER to build by default, this can be overwritten from the environment

7 years agodo not add ./ to the path of the files in the tarball
robert [Mon, 5 Jun 2017 09:44:56 +0000 (09:44 +0000)]
do not add ./ to the path of the files in the tarball

7 years agodo not remove used files from the fakeroot
robert [Mon, 5 Jun 2017 09:42:45 +0000 (09:42 +0000)]
do not remove used files from the fakeroot

7 years agoremove vlan(4) specific output handling
dlg [Mon, 5 Jun 2017 05:10:23 +0000 (05:10 +0000)]
remove vlan(4) specific output handling

vlan(4) now understands the generic vnetid and ifparent ioctls, so
this is redundant.

ok henning@

7 years agouse byte swapping loads and stores.
dlg [Mon, 5 Jun 2017 04:57:37 +0000 (04:57 +0000)]
use byte swapping loads and stores.

shrinks the code a bit on sparc64.

ok jmatthew@

7 years agoSet the group on cron's Unix domain socket _before_ making it
millert [Mon, 5 Jun 2017 01:42:45 +0000 (01:42 +0000)]
Set the group on cron's Unix domain socket _before_ making it
group-writable, not after.  Pointed out by Solar Designer.

7 years agoCatch up with changes made on amd64 (kettenis@):
naddy [Sun, 4 Jun 2017 23:03:19 +0000 (23:03 +0000)]
Catch up with changes made on amd64 (kettenis@):

Generating mixed 16-bit/32-bit/64-bit code with clang's integrated
assembler is a bit tricky.  It supports the .code16, .code32 and
.code64 directives.  But it doesn't know about the data16/data32 and
addr16/addr32 instruction prefixes.  Instead it tries to determine
those from the instruction opcode.  It mostly succeeds, but there are
a couple of corner cases where clang will generate the "addr32" form
where gas generates the "addr16" form in .code16 segments.  That
should be no problem (and just waste a couple of bytes), but it makes
comparing the generated code a bit difficult.

Allow the trampoline code to be compiled with both.  For clang #define
away the addr32 prefix and avoid using the data32 prefix by using a
mnemonic that explicitly encodes the size of the operand.  Add a few
addr32 prefixes in .code16 blocks to reduce the differences between
code generated by clang and gas.

ok deraadt@

7 years agoImplement the roff(7) .mc (right margin character) request.
schwarze [Sun, 4 Jun 2017 22:43:50 +0000 (22:43 +0000)]
Implement the roff(7) .mc (right margin character) request.
The Tcl/Tk manual pages use this extensively.
Delete the TERM_MAXMARGIN hack, it breaks .mc inside .nf;
instead, implement a proper TERMP_BRNEVER flag.

7 years agofix a bungled logical/bitwise expression pointed out by clang; ok deraadt@
naddy [Sun, 4 Jun 2017 20:28:05 +0000 (20:28 +0000)]
fix a bungled logical/bitwise expression pointed out by clang; ok deraadt@

7 years agoReplace ((2 << 31) - 1) with 0xffffffff, which is equivalent but doesn't
naddy [Sun, 4 Jun 2017 20:26:18 +0000 (20:26 +0000)]
Replace ((2 << 31) - 1) with 0xffffffff, which is equivalent but doesn't
cause a shift overflow on a 32-bit arch (i386).  ok kettenis@

7 years agoUpdate to perl File::Path 2.13 for security fixes
afresh1 [Sun, 4 Jun 2017 19:26:18 +0000 (19:26 +0000)]
Update to perl File::Path 2.13 for security fixes

Reccomended by upstream - jkeenan AT pobox.com

OK sthen@

7 years agoRemove unused function, as pointed out by clang. ok deraadt@ kettenis@
naddy [Sun, 4 Jun 2017 19:23:20 +0000 (19:23 +0000)]
Remove unused function, as pointed out by clang.  ok deraadt@ kettenis@

7 years agoMake term_flushln() simpler and more robust:
schwarze [Sun, 4 Jun 2017 18:48:09 +0000 (18:48 +0000)]
Make term_flushln() simpler and more robust:
Eliminate the "overstep" state variable.
The information is already contained in "viscol".
Minus 60 lines of code, no functional change intended.

7 years agoCreate gap.* with umask 007 instead of 077 to make kernel builds after
tb [Sun, 4 Jun 2017 17:03:39 +0000 (17:03 +0000)]
Create gap.* with umask 007 instead of 077 to make kernel builds after
make release work without prior cleanup.

discussed with deraadt

7 years agoDo not leak command, from David CARLIER.
nicm [Sun, 4 Jun 2017 15:36:33 +0000 (15:36 +0000)]
Do not leak command, from David CARLIER.

7 years agoSwitch the radeondrm(4) driver over to TTM using the new DRM VMA manager.
kettenis [Sun, 4 Jun 2017 15:06:22 +0000 (15:06 +0000)]
Switch the radeondrm(4) driver over to TTM using the new DRM VMA manager.

ok jsg@

7 years agoRemove the sigprocmask stub that has long been made unused since
patrick [Sun, 4 Jun 2017 14:26:27 +0000 (14:26 +0000)]
Remove the sigprocmask stub that has long been made unused since
the use of kbind.  The code was #if 0'd anyway.

Reminded by miod@

7 years agoRemove comment that no longer is true. esym is not written by our
patrick [Sun, 4 Jun 2017 14:21:49 +0000 (14:21 +0000)]
Remove comment that no longer is true.  esym is not written by our
bootloader anymore, so it doesn't matter where it is stored.  While
there do some whitespace cleanup.

7 years agoFor the memory operand, clang passes in an address relative to the
naddy [Sun, 4 Jun 2017 14:20:12 +0000 (14:20 +0000)]
For the memory operand, clang passes in an address relative to the
stack pointer.  We cannot use this twice while pushing values on
the stack.  Instead load the operand address into a register and
use this as base address.  Use %edx since it is already marked as
clobbered.  Also fixes a syntax problem for clang.
ok mlarkin@

7 years agoSplit early startup code out of locore.S into locore0.S. Adjust link
patrick [Sun, 4 Jun 2017 14:10:42 +0000 (14:10 +0000)]
Split early startup code out of locore.S into locore0.S.  Adjust link
run so that this locore0.o is always at the start of the executable.
But randomize the link order of all other .o files in the kernel, so
that their exec/rodata/data/bss segments land all over the place.
Late during kernel boot, unmap the early startup code.

As a result, the internal layout of every newly build bsd kernel is
different from past kernels.  Internal relative offsets are not known
to an outside attacker.  The only known offsets are in the startup code,
which has been unmapped.

Ramdisk kernels cannot be compiled like this, because they are gzip'd.
When the internal pointer references change, the compression dictionary
bloats and results in poorer compression.

With guidance and ok deraadt@

7 years agoSwitch the TTM code over to the generic DRM VMA manager.
kettenis [Sun, 4 Jun 2017 14:02:24 +0000 (14:02 +0000)]
Switch the TTM code over to the generic DRM VMA manager.

ok jsg@

7 years agoMalloc the superblock buffer to make sure that it is properly aligned.
naddy [Sun, 4 Jun 2017 13:57:29 +0000 (13:57 +0000)]
Malloc the superblock buffer to make sure that it is properly aligned.
On i386, clang puts the char array at an odd address in .bss.
ok deraadt@

7 years agoDon't need to provide a padbyte value for .bss, it will always be 0
deraadt [Sun, 4 Jun 2017 13:55:04 +0000 (13:55 +0000)]
Don't need to provide a padbyte value for .bss, it will always be 0
pointed out by kettenis

7 years agoSync with current NetBSD/luna68k code.
aoyama [Sun, 4 Jun 2017 13:48:13 +0000 (13:48 +0000)]
Sync with current NetBSD/luna68k code.

7 years agoUse proper bool types in fortune(6).
fcambus [Sun, 4 Jun 2017 13:39:25 +0000 (13:39 +0000)]
Use proper bool types in fortune(6).

OK tb@, phessler@ (previous version)

7 years agoAdd sizes for free for the RSN IEs. Rewrite ieee80211_save_ie() slightly
tb [Sun, 4 Jun 2017 12:48:42 +0000 (12:48 +0000)]
Add sizes for free for the RSN IEs. Rewrite ieee80211_save_ie() slightly
to make it more readable.

help, many explanations and ok stsp

7 years agopass better arguments to mkdep.
espie [Sun, 4 Jun 2017 12:25:19 +0000 (12:25 +0000)]
pass better arguments to mkdep.
- some std= parameters are actually critical, -std=c++11 makes a huge
difference for clang.
- explicitly ask mkdep to run the C++ compiler for C++ code, as again,
some compilers will see the difference.

(this should allow us to repair make depend under src/gnu/usr.bin/clang)

okay kettenis@

7 years agoAdd a timeout to prevent the sequences which wait for a specific
nicm [Sun, 4 Jun 2017 09:22:34 +0000 (09:22 +0000)]
Add a timeout to prevent the sequences which wait for a specific
terminator (OSC, APC and DCS) waiting forever, which helps to avoid
garbage (cat /dev/random) locking up panes completely. This (and the
last commit) prompted by a discussion with theo.

7 years agoRemove unused variable.
nicm [Sun, 4 Jun 2017 09:02:57 +0000 (09:02 +0000)]
Remove unused variable.

7 years agoBe more strict about escape sequences that rename windows or set titles:
nicm [Sun, 4 Jun 2017 09:02:36 +0000 (09:02 +0000)]
Be more strict about escape sequences that rename windows or set titles:
ignore any that not valid UTF-8 outright, and for good measure pass the
result through our UTF-8-aware vis(3).

7 years agoSupport SIGUSR2 to stop and start logging for an existing server. Also
nicm [Sun, 4 Jun 2017 08:25:57 +0000 (08:25 +0000)]
Support SIGUSR2 to stop and start logging for an existing server. Also
we currently only have two log levels so just use -v and -vv rather than
-v and -vvvv, and clarify the man page entry for -v.

7 years agoTypo/style; plus man page escaping from jmc.
nicm [Sun, 4 Jun 2017 08:02:20 +0000 (08:02 +0000)]
Typo/style; plus man page escaping from jmc.

7 years agoRe-arrange struct bus_dmamap members
sf [Sun, 4 Jun 2017 06:21:37 +0000 (06:21 +0000)]
Re-arrange struct bus_dmamap members

This reduces holes/padding and makes the struct smaller by 8 bytes.

ok kettenis@

7 years agoupdate link to Ken Kato's vmware backdoor protocol documentation
jmatthew [Sun, 4 Jun 2017 05:04:24 +0000 (05:04 +0000)]
update link to Ken Kato's vmware backdoor protocol documentation
from Seth Jackson

7 years agouse htolem32 and lemtoh32 instead of htole32 and letoh32.
dlg [Sun, 4 Jun 2017 04:29:23 +0000 (04:29 +0000)]
use htolem32 and lemtoh32 instead of htole32 and letoh32.

saves about half a k on sparc64.

7 years agoPure preprocessor implementation of the roff(7) .ec and .eo requests
schwarze [Sun, 4 Jun 2017 00:08:56 +0000 (00:08 +0000)]
Pure preprocessor implementation of the roff(7) .ec and .eo requests
(escape character control), touching nothing after the preprocessing
stage and keeping even the state variable local to the preprocessor.
Since the escape character is also used for line continuation, this
requires pulling the implementation of line continuation from the
input reader to the preprocessor, which also considerably shortens
the code required for that.

When the escape character is changed, simply let the preprocessor
replace bare by escaped backslashes and instances of the non-standard
escape character with bare backslashes - that's all we need.

Oh, and if anybody dares to use these requests in OpenBSD manuals,
sending a medium-sized pack of axe-murderes after them might be a
worthwhile part of the punishment, but probably insuffient on its own.

7 years agoconfig -e mode should match our other policies which ensure og-rwx /bsd.
deraadt [Sat, 3 Jun 2017 23:31:37 +0000 (23:31 +0000)]
config -e mode should match our other policies which ensure og-rwx /bsd.
pointed out by brynet

7 years agoWe have been running a small awk program before installing the relinked libc.
deraadt [Sat, 3 Jun 2017 22:59:09 +0000 (22:59 +0000)]
We have been running a small awk program before installing the relinked libc.
Perform the same kind of test for relinked libcrypto, using an openssl
sequence (proposed by sthen)

7 years agoImmediately after mounting / read-write, chmod og-rwx the kernel. Remote
deraadt [Sat, 3 Jun 2017 22:33:36 +0000 (22:33 +0000)]
Immediately after mounting / read-write, chmod og-rwx the kernel.  Remote
prying eyes were already been hindered at determining kernel addresses, now
local prying eyes are also hindered.
ok tb rpe

7 years agoAfter installing, chmod og-rwx {/bsd bsd.mp bsd.sp bsd.rd }
deraadt [Sat, 3 Jun 2017 22:27:41 +0000 (22:27 +0000)]
After installing, chmod og-rwx {/bsd bsd.mp bsd.sp bsd.rd }
(Should we make them kmem readable?  Let's ignore that for now and see
if any issues surface).
ok tb rpe

7 years agokernels in compile dirs are readonly, and the bsd.rd we created has
deraadt [Sat, 3 Jun 2017 22:25:19 +0000 (22:25 +0000)]
kernels in compile dirs are readonly, and the bsd.rd we created has
tracked that permission.  Make the copy in $RELEASEDIR a+r

7 years agokernels in compile dirs are og-rwx, so need to make them readable in
deraadt [Sat, 3 Jun 2017 22:23:47 +0000 (22:23 +0000)]
kernels in compile dirs are og-rwx, so need to make them readable in
$RELEASEDIR
ok tb rpe

7 years agoCreate gap.S and gap.o with umask 077. Create lorder and bsd* with umask 007.
deraadt [Sat, 3 Jun 2017 22:21:33 +0000 (22:21 +0000)]
Create gap.S and gap.o with umask 077.  Create lorder and bsd* with umask 007.
Prying eyes cannot look at the kernels in the compile directory.
ok tb rpe, kernel developers seem unimpacted

7 years ago".section .bss" is portable to more platforms than plain ".bss"
deraadt [Sat, 3 Jun 2017 22:11:27 +0000 (22:11 +0000)]
".section .bss" is portable to more platforms than plain ".bss"

7 years agouse .balign instead of .align, it is portable to more architectures
deraadt [Sat, 3 Jun 2017 22:08:02 +0000 (22:08 +0000)]
use .balign instead of .align, it is portable to more architectures
discussed with patrick

7 years agoMake set-clipboard a three-state option so tmux itself can ignore the
nicm [Sat, 3 Jun 2017 17:43:01 +0000 (17:43 +0000)]
Make set-clipboard a three-state option so tmux itself can ignore the
sequencess.

7 years agoignore blank lines in man(7) next line scope;
schwarze [Sat, 3 Jun 2017 15:54:09 +0000 (15:54 +0000)]
ignore blank lines in man(7) next line scope;
strange groff edge case behaviour found in multimedia/mjpegtools

7 years agoAdd a few sizes to free().
tb [Sat, 3 Jun 2017 15:44:03 +0000 (15:44 +0000)]
Add a few sizes to free().

Input, help & ok stsp

7 years agodelete -n option, now covered by mandoc; OK jmc@
schwarze [Sat, 3 Jun 2017 12:23:13 +0000 (12:23 +0000)]
delete -n option, now covered by mandoc; OK jmc@

7 years agoenable -Wstyle by default in -Tlint; OK jmc@
schwarze [Sat, 3 Jun 2017 12:16:19 +0000 (12:16 +0000)]
enable -Wstyle by default in -Tlint; OK jmc@

7 years agoAdd missing NET_LOCK().
mpi [Sat, 3 Jun 2017 11:58:54 +0000 (11:58 +0000)]
Add missing NET_LOCK().

Found by jmc@

7 years agoExplicitly zero out the wepseed for TKIP and WEP.
tb [Sat, 3 Jun 2017 11:58:10 +0000 (11:58 +0000)]
Explicitly zero out the wepseed for TKIP and WEP.

ok stsp

7 years agosync
florian [Sat, 3 Jun 2017 10:01:04 +0000 (10:01 +0000)]
sync

7 years agoMove slaacd to /sbin
florian [Sat, 3 Jun 2017 10:00:29 +0000 (10:00 +0000)]
Move slaacd to /sbin
jca points out that all the other interface configuration tools live
there (like ifconfig or dhclient). Furthermore it starts so early in
the boot process that /usr might not be mounted yet if it's a nfs
filesystem.
sthen and deraadt agree

7 years agovioblk/virtio: Re-arrange some struct members
sf [Sat, 3 Jun 2017 08:50:38 +0000 (08:50 +0000)]
vioblk/virtio: Re-arrange some struct members

This reduces holes/padding and makes the structs smaller.