Displaying 1 50 of 164,816 commits (0.012s)

OpenBSD — etc/mtree BSD.x11.dist

Update: add include/libdrm, sort include/EGL, add share/util-macros
Delta File
+7 -3 etc/mtree/BSD.x11.dist
+7 -3 1 file

OpenBSD — sys/uvm uvm_map.c

After more than a decade it seems safe to conclude that amap_clean works.

ok mpi@, visa@
Delta File
+1 -4 sys/uvm/uvm_map.c
+1 -4 1 file

OpenBSD — sbin/fdisk misc.c mbr.c

Nuke some trailing whitespace that keeps coming back.
Delta File
+3 -3 sbin/fdisk/misc.c
+2 -2 sbin/fdisk/mbr.c
+2 -2 sbin/fdisk/disk.c
+7 -7 3 files

OpenBSD — sys/netinet tcp_subr.c tcp_input.c

The syn cache is completely implemented in tcp_input.c.  So all its
global variables should also live there.
OK markus@

OpenBSD — libexec/ld.so/hppa rtld_machine.c

If we take the address of a function pointer, we might get a pointer to
a plabel instead of the entry-point address.  In that case, get the
entry-point address from the plabel.  Makes ld.so work on hppa when
_dl_bind_start gets hidden by the version script.

ok miod@
Delta File
+10 -2 libexec/ld.so/hppa/rtld_machine.c
+10 -2 1 file

OpenBSD — sys/dev/pv vmt.c

size for free()
Delta File
+2 -2 sys/dev/pv/vmt.c
+2 -2 1 file

OpenBSD — usr.sbin/pwd_mkdb pwd_mkdb.c

missing va_end(); OK deraadt
Delta File
+2 -1 usr.sbin/pwd_mkdb/pwd_mkdb.c
+2 -1 1 file

OpenBSD — sys/uvm uvm_vnode.c

delete a comment about gcc -Wuninitialized
Delta File
+2 -4 sys/uvm/uvm_vnode.c
+2 -4 1 file

OpenBSD — share/man/man4 cd.4

document CDIOREADTOCENTRIES, rather than the misspelled (but equivalent)

from martijn van duren
Delta File
+3 -4 share/man/man4/cd.4
+3 -4 1 file

OpenBSD — sys/dev vscsi.c

fairly simple size for free()
Delta File
+2 -2 sys/dev/vscsi.c
+2 -2 1 file

OpenBSD — sys/dev/ic ahci.c

sizes for free()
Delta File
+5 -5 sys/dev/ic/ahci.c
+5 -5 1 file

OpenBSD — sys/arch/mips64/mips64 fp_emulate.c

Access the image of the floating point registers via p_md.md_regs, instead of
directly on the frame, or any updates will get lost. This went unnoticed for
so long because FPU emulation traps usually use the first frame of the U area,
so values kind of stick.

This fixes a rare occurrence of wrong floating-point values with MP kernels
on Octeon.

ok visa@
Delta File
+201 -153 sys/arch/mips64/mips64/fp_emulate.c
+201 -153 1 file

OpenBSD — usr.sbin/syslogd syslogd.c

When syslogd is reloading a modified config, it does a reexec on
itself.  For this it uses the original arguments of main().  The
function loghost_parse() modifies the optarg memory it is operating
on.  To prevent that the exec arguments have been tampered, pass a
copy of optarg to loghost_parse().
OK deraadt@
Delta File
+8 -4 usr.sbin/syslogd/syslogd.c
+8 -4 1 file

OpenBSD — sys/netinet tcp_usrreq.c

When the dynamic TCP update is reducing so->so_snd.sb_hiwat the
sbspace() in the socket buffer shrinks.  So a writable socket
reported by poll(2) could become unwritable before calling write(2).
Ensure that a writable or readable socket can still be written to
or read from after changing the buffer size.
Discussed with and OK millert@ deraadt@ claudio@
Delta File
+14 -1 sys/netinet/tcp_usrreq.c
+14 -1 1 file

OpenBSD — usr.bin/doas doas.c

add a type of "auth-doas" to the perm check to allow login.conf fiddling
originally proposed by halex
Delta File
+2 -2 usr.bin/doas/doas.c
+2 -2 1 file

OpenBSD — lib/libtls tls.c tls_client.c

Improve libtls error messages.

The tls_set_error() function previously stored the errno but did nothing
with it. Change tls_set_error() to append the strerror(3) of the stored
errno so that we include useful information regarding failures.

Provide a tls_set_errorx() function that does not store the errno or
include strerror(3) in the error message. Call this function instead of
tls_set_error() for errors where the errno value has no useful meaning.

With feedback from and ok doug@

OpenBSD — lib/libtls tls_client.c tls_internal.h

Split the persistent/configuration flags from temporary state flags and
ensure that the temporary state flags get cleared in tls_reset(). Fixes a
bug spotted by Marko Kreen whereby TLS_CONNECTING could remain on reset.

While here, also move the TLS_STATE_CONNECTING check to after the
TLS_CLIENT check - if TLS_STATE_CONNECTING was ever set on any other
context type it would allow a bypass.

ok bluhm@

OpenBSD — lib/libssl/src/ssl t1_enc.c

Change AEAD out_len argument to size_t instead of ssize_t - while here,
rename it to out_len so that its purpose is more obvious. Also, drop two
checks that are no longer possible (and have not been for a long time).

Spotted by and ok doug@
Delta File
+8 -10 lib/libssl/src/ssl/t1_enc.c
+8 -10 1 file

OpenBSD — lib/libc/gen authenticate.c

use explicit_bzero to clear some memory that had creds in it instead of

ok deraadt@ millert@
Delta File
+3 -3 lib/libc/gen/authenticate.c
+3 -3 1 file

OpenBSD — usr.bin/sndiod file.c

backout previous for now, as it causes me portability problems
Delta File
+4 -3 usr.bin/sndiod/file.c
+4 -3 1 file

OpenBSD — usr.bin/aucat aucat.c

fix typos in comments and error messages
Delta File
+5 -5 usr.bin/aucat/aucat.c
+5 -5 1 file

OpenBSD — usr.bin/aucat afile.c

Allow sparse blocks to be used as silence if samples are encoded
as signed integers.
Delta File
+1 -1 usr.bin/aucat/afile.c
+1 -1 1 file

OpenBSD — lib/libc/arch/powerpc/sys tfork_thread.S

fix comment

OpenBSD — regress/lib/libssl/ciphers cipherstest.c, regress/lib/libssl/ssl testssl ssltest.c

Remove SSLv3 support from LibreSSL regression tests.

OpenBSD — lib/libtls tls_verify.c

Make functions that are internal to tls verify static.

Spotted by Marko Kreen.

Rides libtls major bump.
Delta File
+8 -7 lib/libtls/tls_verify.c
+8 -7 1 file

OpenBSD — lib/libssl/ssl shlib_version, lib/libtls shlib_version

Crank major version for libssl and libtls due to SSLv3 removal.

OpenBSD — lib/libssl/src/crypto opensslfeatures.h, lib/libssl/src/ssl s23_srvr.c s23_clnt.c

Remove SSLv3 support from LibreSSL.

This is the first wave of SSLv3 removal which removes the main SSLv3
functions.  Future commits will remove the rest of the SSLv3 support.

Discussed the plan at c2k15.  Input from jsing@, beck@, miod@, bcook@,
sthen@, naddy@, and deraadt@.

ok jsing@, beck@

OpenBSD — sys/dev systrace.c

simple sizes for free()
Delta File
+6 -5 sys/dev/systrace.c
+6 -5 1 file

OpenBSD — sys/dev/onewire owctr.c

simple size for free()
Delta File
+2 -2 sys/dev/onewire/owctr.c
+2 -2 1 file

OpenBSD — sys/dev/gpio gpio.c

simple sizes for free()
Delta File
+5 -6 sys/dev/gpio/gpio.c
+5 -6 1 file

OpenBSD — usr.bin/grep grep.c

use strtonum to parse the number of lines of context.

this provides better error messages.

ok deraadt@ guenther@
Delta File
+9 -10 usr.bin/grep/grep.c
+9 -10 1 file

OpenBSD — lib/libc/gen nlist.c

ELF uberalles: remove #ifdef _NLIST_DO_ELF tests
Delta File
+1 -6 lib/libc/gen/nlist.c
+1 -6 1 file

OpenBSD — include db.h, lib/libc/citrus citrus_utf8.h citrus_ctype.h

Use static and __{BEGIN,ENV}_HIDDEN_DECLS to hide a bunch of internal
symbols that are not longer exported.  (This improves the generated code.)

ok deraadt@

OpenBSD — lib/libc/stdlib rand48.h seed48.c

Move the __rand48_* declarations into rand48.h, and then hide both them
and __dorand48() and __rand48_deterministic

ok deraadt@

OpenBSD — libexec/ld.so/hppa rtld_machine.c

Use kbind for lazy binding GOT/PLT updates on hppa.

Much discussion with and assistance from miod and deraadt
ok deraadt@
Delta File
+34 -26 libexec/ld.so/hppa/rtld_machine.c
+34 -26 1 file

OpenBSD — usr.sbin/radiusd util.c util.h

Add a boundary check for safety and use snprintf() to construct the IP
address strings instead of strl{cpy,cat}().  Also make the function
return a valid string even in failure case.

input deraadt
ok deraadt
Delta File
+9 -10 usr.sbin/radiusd/util.c
+2 -2 usr.sbin/radiusd/util.h
+11 -12 2 files

OpenBSD — sys/dev vnd.c

Simple size for free().  These are a pleasure to convert when the
allocation is clearly spelled out as ptr = malloc(sizeof(*ptr), ...)
Delta File
+2 -2 sys/dev/vnd.c
+2 -2 1 file

OpenBSD — sys/dev firmload.c

two simple sizes to free()
Delta File
+3 -3 sys/dev/firmload.c
+3 -3 1 file

OpenBSD — sys/dev bio.c, sys/dev/ata wd.c

trivial size to free()
Delta File
+2 -2 sys/dev/ata/wd.c
+2 -2 sys/dev/bio.c
+4 -4 2 files

OpenBSD — sys/kern tty.c

two simple free() sizes
Delta File
+3 -3 sys/kern/tty.c
+3 -3 1 file

OpenBSD — lib/libexpat/lib xmlparse.c

More overflow checks in XML_GetBuffer(), adapted from FreeBSD security
advisory FreeBSD-SA-15:20. Most of them were already fixed by niallo@'s work,
which unfortunately got removed in r1.10 /-:

With help from doug@
Delta File
+5 -1 lib/libexpat/lib/xmlparse.c
+5 -1 1 file

OpenBSD — lib/libexpat/lib xmlparse.c

Put back local changes (revisions 1.2 to 1.4), which unfortunately got lost in
the last upgrade.
ok deraadt@
Delta File
+12 -2 lib/libexpat/lib/xmlparse.c
+12 -2 1 file

OpenBSD — sys/kern subr_disk.c

Enhance setdisklabel() to ensure that the disk size and 'C'
partition information of the in-memory disklabel remains correct.

ok deraadt@
Delta File
+7 -1 sys/kern/subr_disk.c
+7 -1 1 file

OpenBSD — lib/libc/sys tame.2

tweak previous;
Delta File
+5 -3 lib/libc/sys/tame.2
+5 -3 1 file

OpenBSD — games/fortune/fortune fortune.c

remove #ifdef OK_TO_WRITE_DISK which isn't used by default.
and few disambiguisations suggested by cc(1)
  - parentheses around && within ||
  - explicit braces to avoid ambiguous 'else'

ok doug@
Delta File
+7 -55 games/fortune/fortune/fortune.c
+7 -55 1 file

OpenBSD — lib/libc/sys tame.2, sys/kern kern_tame.c

use ENAMETOOLONG instead of EINVAL for errno when string overflow occurs.
document tame.2 according.

ok deraadt@
Delta File
+7 -1 lib/libc/sys/tame.2
+3 -3 sys/kern/kern_tame.c
+10 -4 2 files

OpenBSD — sys/arch/sparc64/sparc64 db_interface.c

Kill code that tries to handle 32-bit code that we're never going to use.

OpenBSD — sys/arch/amd64/amd64 disksubr.c, sys/arch/i386/i386 disksubr.c

MBR must have priority over GPT.

Found, fix tested & thus ok ajacoutot@

OpenBSD — sys/net if_bridge.c

Use the specialized m_copym2() preserving the alignment of the payload
in bridge_localbroadcast() too.

This should fix another alignment issue kettenis@ is seeing.

ok dlg@
Delta File
+2 -2 sys/net/if_bridge.c
+2 -2 1 file