Displaying 1 50 of 187,376 commits (0.029s)

OpenBSD — sbin/ifconfig ifconfig.8

update the VLAN doco.

the parameters are parent and vnetid, not vlandev and vlan. svlan(4) is
also a thing.

ok jmc@
Delta File
+37 -35 sbin/ifconfig/ifconfig.8
+37 -35 1 file

OpenBSD — bin/chmod chmod.1

X is not restricted to just the + operator;

diff from klemens nanni
confirmed by otto
Delta File
+3 -12 bin/chmod/chmod.1
+3 -12 1 file

OpenBSD — usr.bin/htpasswd htpasswd.c

htpasswd: use crypt_newhash instead of the bcrypt API

man bcrypt states:
     These functions are deprecated in favor of crypt_checkpass(3) and
     crypt_newhash(3).

hence with this change we move htpasswd to the new API, while here
also change the rounds from a hardcoded 8 to automatic selection based
on system performance.

OK florian@
Delta File
+4 -6 usr.bin/htpasswd/htpasswd.c
+4 -6 1 file

OpenBSD — usr.bin/mandoc term.c term.h

The \h escape sequence provides another method for moving backwards,
and after that, previously written output gets overwritten, but
overwriting with blanks does *not* erase previously written content.
Yes, manual pages exist that are crazy enough to rely on that...
Delta File
+28 -15 usr.bin/mandoc/term.c
+3 -2 usr.bin/mandoc/term.h
+31 -17 2 files

OpenBSD — regress/usr.bin/ssh proto-version.sh

unbreak after sshv1 purge

OpenBSD — share/man/man7 roff.7, usr.bin/mandoc roff.c roff.h

Implement the roff(7) .rn (rename macro or string) request.
Renaming a user-defined macro is very simple: just copy
the definition to the new name and delete the old name.
Renaming high-level macros is a bit tricky: use a dedicated
key-value-table, with non-standard names as keys and standard
names as values.  When a macro is found that is not user-defined,
look it up in the "renamed" table and translate it back to the
standard name before passing it on to the high-level parsers.

OpenBSD — sys/dev/pckbc pms.c, sys/dev/usb ubcmtp.c

Set the weak variant of hysteresis as default.

OpenBSD — sys/dev/pv xbf.c

Rewrite the driver to handle 64kb transfers

Although several codepaths in the kernel such as coredump
and buffercache read-ahead feature assume that underlying
hardware is capable of handling 64kb transfers without any
issues, xbf was setup to rely on a single descriptor per
transfer which limited the maximum size of an individual
transfer to 11 4k segments amounting to 44k bytes.

To avoid overbooking, a metadata object is allocated for
each transfer to keep track of associated descriptors
limiting the maximum amount of outstanding transfers to
half the ring size.

The issue was reported by Dan Cross <crossd at gmail.com>,
thanks!
Delta File
+323 -214 sys/dev/pv/xbf.c
+323 -214 1 file

OpenBSD — distrib/syspatch bsd.syspatch.mk

Don't patch(1) as the 'build' user; it has no right over the src tree.
That bug was hidden because patch(1) returns '0' on that particular case.
To be fixed...

ok robert@
Delta File
+2 -2 distrib/syspatch/bsd.syspatch.mk
+2 -2 1 file

OpenBSD — sys/dev/pv xbf.c

Call xbf_intr for polled transfers that can't sleep
Delta File
+2 -1 sys/dev/pv/xbf.c
+2 -1 1 file

OpenBSD — sys/dev/wscons wstpad.c wsconsio.h

Add support for tap gestures.
Delta File
+290 -3 sys/dev/wscons/wstpad.c
+8 -2 sys/dev/wscons/wsconsio.h
+298 -5 2 files

OpenBSD — sys/dev softraid.c

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@
Delta File
+5 -5 sys/dev/softraid.c
+5 -5 1 file

OpenBSD — usr.bin/tmux server-client.c

Continue and pass keys through if they are repeated keys, so that the
first key after a repeated key doesn't get lost.
Delta File
+4 -3 usr.bin/tmux/server-client.c
+4 -3 1 file

OpenBSD — usr.bin/tmux window-tree.c

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.
Delta File
+2 -2 usr.bin/tmux/window-tree.c
+2 -2 1 file

OpenBSD — share/man/man7 roff.7, usr.bin/mandoc roff.c roff_term.c

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.

OpenBSD — usr.bin/tmux tty.c

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.
Delta File
+4 -2 usr.bin/tmux/tty.c
+4 -2 1 file

OpenBSD — sys/arch/octeon/octeon locore.S

Remove code that is not needed right now.
Delta File
+1 -18 sys/arch/octeon/octeon/locore.S
+1 -18 1 file

OpenBSD — sys/arch/octeon/octeon autoconf.c locore.S

Implement startup smashing in C. The code should be moved
under arch/mips64 once loongson and sgi have gap.o.

Discussed with deraadt@

OpenBSD — etc rc

start slaacd as early as possible, right after pf and sysctl.conf are
setup.
Input & OK deraadt@
Delta File
+4 -2 etc/rc
+4 -2 1 file

OpenBSD — sbin/slaacd slaacd.h

We are going to start slaacd(8) much earlier, before /var is even
mounted. Move control socket to /dev for now.
Input & OK deraadt@
Delta File
+2 -2 sbin/slaacd/slaacd.h
+2 -2 1 file

OpenBSD — regress/sys/net/rtable kern_compat.h

Update stubs to work with radix tree.

OpenBSD — sys/net pipex.c

Update panic strings, pipex no longer use rn_inithead0().
Delta File
+3 -3 sys/net/pipex.c
+3 -3 1 file

OpenBSD — sys/net if_etherip.c

Do not rely on <net/rtable.h> beeing included by other headers.

Fix build without PF, PIPEX nor IPSEC.
Delta File
+2 -1 sys/net/if_etherip.c
+2 -1 1 file

OpenBSD — sys/net pfkeyv2_convert.c

Fix build without PF.
Delta File
+2 -2 sys/net/pfkeyv2_convert.c
+2 -2 1 file

OpenBSD — share/man/man1 clang-local.1

mention -fwrapv being on by default
Delta File
+8 -2 share/man/man1/clang-local.1
+8 -2 1 file

OpenBSD — gnu/llvm/tools/clang/lib/Driver Tools.cpp

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@

OpenBSD — usr.bin/ssh packet.c

Fix compression output stats broken in rev 1.201.  Patch originally by
Russell Coker via Debian bug #797964 and Christoph Biedl.  ok djm@
Delta File
+2 -2 usr.bin/ssh/packet.c
+2 -2 1 file

OpenBSD — share/man/man8/man8.alpha MAKEDEV.8, share/man/man8/man8.amd64 MAKEDEV.8

regen

OpenBSD — etc MAKEDEV.man

Mention that the special files are created in the current working
directory. Suggested by Scott Cheloha.

discussed with jmc
Delta File
+3 -2 etc/MAKEDEV.man
+3 -2 1 file

OpenBSD — regress/bin/ksh/edit emacs.sh

Test insertion of unmatched meta sequence.
Delta File
+3 -0 regress/bin/ksh/edit/emacs.sh
+3 -0 1 file

OpenBSD — sbin/ifconfig ifconfig.c

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.
Delta File
+5 -5 sbin/ifconfig/ifconfig.c
+5 -5 1 file

OpenBSD — sys/arch/arm64/conf Makefile.arm64

correct the depend list of a target introduced in rev 1.9
from deraadt@

OpenBSD — sys/dev/usb usbdevs_data.h usbdevs.h

Regen.

OpenBSD — sys/dev/usb usbdevs

Sort DLINK section and add USB device ID of D-Link DWA-131 rev E1.

ok stsp@
Delta File
+4 -3 sys/dev/usb/usbdevs
+4 -3 1 file

OpenBSD — share/man/man8 release.8

Show usage of sysmerge and MAKEDEV instead of just mentioning them.
From Scott Cheloha, thanks.

ok jmc and positive feedback from several
Delta File
+7 -3 share/man/man8/release.8
+7 -3 1 file

OpenBSD — sys/net pf.c pf_norm.c

- 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@
Delta File
+34 -13 sys/net/pf.c
+39 -6 sys/net/pf_norm.c
+35 -1 sys/net/pfvar_priv.h
+7 -1 sys/net/pf_ioctl.c
+115 -21 4 files

OpenBSD — share/man/man5 bsd.port.mk.5

initial docs for COMPILER_WRAPPER and COMPILER_LINKS
Delta File
+18 -2 share/man/man5/bsd.port.mk.5
+18 -2 1 file

OpenBSD — sys/arch/hppa/conf Makefile.hppa files.hppa, sys/arch/hppa/hppa locore0.S locore.S

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.

OpenBSD — sys/arch/hppa/conf ld.script

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
Delta File
+2 -2 sys/arch/hppa/conf/ld.script
+2 -2 1 file

OpenBSD — etc/rc.d rc.subr

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).
Delta File
+6 -2 etc/rc.d/rc.subr
+6 -2 1 file

OpenBSD — sys/arch/alpha/alpha locore0.S locore.s, sys/arch/alpha/conf Makefile.alpha files.alpha

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.

OpenBSD — sys/conf makegap.sh

include machine/param.h before machine.asm.h because uhm alpha.
Delta File
+1 -1 sys/conf/makegap.sh
+1 -1 1 file

OpenBSD — regress/bin/ksh/edit emacs.sh

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.
Delta File
+59 -0 regress/bin/ksh/edit/emacs.sh
+59 -0 1 file

OpenBSD — sys/arch/arm64/conf Makefile.arm64

track permissions of original file

OpenBSD — sys/arch/amd64/conf Makefile.amd64

use same idiom as other Makefiles

OpenBSD — etc/rc.d rc.subr

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
Delta File
+4 -3 etc/rc.d/rc.subr
+4 -3 1 file

OpenBSD — sys/arch/octeon/conf Makefile.octeon files.octeon, sys/arch/octeon/octeon locore0.S locore.S

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@

OpenBSD — usr.bin/mkdep mkdep.gcc.sh

explicitly pass -w since clang -M doesn't imply it.

okay millert@
Delta File
+3 -3 usr.bin/mkdep/mkdep.gcc.sh
+3 -3 1 file

OpenBSD — regress/bin/ksh/edit vi.sh edit.c

Add new edit regress files.

Absent from my previous commit.

OpenBSD — regress/bin/ksh Makefile, regress/bin/ksh/vi vi.sh test_vi.c

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@