Displaying 1 50 of 174,639 commits (0.018s)

OpenBSD — regress/lib/libcrypto/engine enginetest.c

Gix misleading indent pointed out by GCC 6.1.

ok beck@ jsing@

OpenBSD — lib/libc/sys Makefile.inc

Move __getcwd from ASM to HIDDEN: we don't want the literal __getcwd symbol

ok millert@ deraadt@
Delta File
+3 -3 lib/libc/sys/Makefile.inc
+3 -3 1 file

OpenBSD — sys/kern exec_elf.c kern_exec.c, sys/sys proc.h exec.h

Identify W^X labelled binaries at execve() time based upon WX_OPENBSD_WXNEEDED
flag set by ld -zwxneeded.  Such binaries are allowed to run only on wxallowed
mountpoints.  They do not report mmap/mprotect problems.

Rate limit mmap/mprotect reports from other binaries.

These semantics are chosen to encourage progress in the ports ecosystem,
without overwhelming the developers who work in the area.
ok sthen kettenis

OpenBSD — sys/kern exec_elf.c kern_exec.c, sys/sys proc.h exec.h

backout to insert correct commit message

OpenBSD — sys/kern exec_elf.c kern_exec.c, sys/sys proc.h exec.h

*** empty log message ***

OpenBSD — distrib/armv7/ramdisk install.md

Tweak previous

OK jsg
Delta File
+5 -5 distrib/armv7/ramdisk/install.md
+5 -5 1 file

OpenBSD — usr.bin/ssh progressmeter.c

Backout rev. 1.43 for now.

The function update_progress_meter() calls refresh_progress_meter()
which calls snmprintf() which calls malloc(); but update_progress_meter()
acts as the SIGALRM signal handler.

"malloc(): error: recursive call" reported by sobrado@.
Delta File
+24 -27 usr.bin/ssh/progressmeter.c
+24 -27 1 file

OpenBSD — usr.bin/sed process.c

Make sed use the new REG_STARTEND | REG_NOTBOL combination. This fixes a begin
of word mismatch as reported by jsg@.

Discussed with otto@ and others early on, earlier version tested in ports build
by aja@

OK millert@
Few readability tweaks and OK schwarze@
Delta File
+24 -17 usr.bin/sed/process.c
+24 -17 1 file

OpenBSD — share/man/man4 video.4

Fix sequence for the mmap(2) method.

ok jmc
Delta File
+5 -5 share/man/man4/video.4
+5 -5 1 file

OpenBSD — sys/arch/amd64/amd64 cpu.c autoconf.c

include rdtsc in the rdrand callback. some systems don't have rdrand yet,
but rdtsc may provide a few bits. ok deraadt

OpenBSD — regress/usr.bin/sed substitute.sh

Some tests for \<; will be fixed by martijn@'s upcoming commit to process.c
Delta File
+8 -1 regress/usr.bin/sed/substitute.sh
+8 -1 1 file

OpenBSD — sys/arch/octeon/dev if_cnmac.c if_cnmacvar.h, sys/arch/octeon/include octeonvar.h

Fill the packet data pool with standard mbuf clusters instead of
driver-specific memory blocks. This lets the cnmac(4) RX path run
without an mbuf ext_free callback.

ok uebayasi@

OpenBSD — lib/libssl/src/crypto/evp evp.h evp_enc.c, lib/libssl/src/ssl s3_srvr.c t1_lib.c

deprecate internal use of EVP_[Cipher|Encrypt|Decrypt]_Final.
14 years ago these were changed in OpenSSL to be the same
as the _ex functions. We use the _ex functions only internally
to ensure it is obvious the ctx must be cleared.
ok bcook@

OpenBSD — usr.bin/ssh utf8.c

Even when only writing an unescaped character, the dst buffer may need to
grow, or it would be overrun; issue found by tb@ with malloc.conf(5) 'C'.

While here, reserve an additional byte for the terminating NUL
up front such that we don't have to realloc() later just for that.

OK tb@
Delta File
+31 -15 usr.bin/ssh/utf8.c
+31 -15 1 file

OpenBSD — sys/net if_bridge.c, sys/netinet ip_carp.c

Insert a hack to deal with interfaces removing the VLAN header before
the packet has been feed to the pseudo-interfaces input handlers.

To fix that without introducing a layer violation we should be able to
disable HW-vlan on parent when in use with different pseudo-interfaces.

In the case of bridge(4) for example it makes no sense to let the interface
remove the VLAN header if the kernel has to add it back for every packet.

Fix issues reported by sebastia@ and markus@

From dlg@, ok claudio@
Delta File
+14 -1 sys/netinet/ip_carp.c
+13 -1 sys/net/if_bridge.c
+27 -2 2 files

OpenBSD — sys/dev/wscons wsmousevar.h

Do not forward declare an enum, makes gcc3 happy.

From miod@, ok bru@
Delta File
+27 -27 sys/dev/wscons/wsmousevar.h
+27 -27 1 file

OpenBSD — usr.sbin/smtpd to.c

Simplify address parsing code by only using inet_net_pton(3).

There's no need to have a separate case for non-CIDR addresses using
inet_pton(3) as inet_net_pton(3) handles them as well.

This simplification is valid for all our daemons parsing addresses,
it is a common patern.

ok gilles@, millert@
Delta File
+15 -37 usr.sbin/smtpd/to.c
+15 -37 1 file

OpenBSD — regress/usr.bin/ssh/unittests/utf8 Makefile

stricter malloc.conf(5) options for utf8 tests

OpenBSD — regress/usr.bin/ssh/unittests/utf8 tests.c, usr.bin/ssh utf8.c

Fix two rare edge cases:
1. If vasprintf() returns < 0, do not access a NULL pointer in snmprintf(),
and do not free() the pointer returned from vasprintf() because on some
systems other than OpenBSD, it might be a bogus pointer.
2. If vasprintf() returns == 0, return 0 and "" rather than -1 and NULL.

Besides, free(dst) is pointless after failure (not a bug).

One half OK martijn@, the other half OK deraadt@;
committing quickly before people get hurt.

OpenBSD — usr.bin/tmux tty.c cmd-set-option.c

Cache the window styles and do not look up the window-style options
unless they have changed.

OpenBSD — usr.bin/tmux screen-write.c

Do not draw character to screen if it has not changed, and do not save
last character if it won't be used. This (and last few commits) prompted
by a report from Hubert depesz Lubaczewski.
Delta File
+54 -25 usr.bin/tmux/screen-write.c
+54 -25 1 file

OpenBSD — usr.bin/tmux tty.c

Send two cub1 instead of using cub for moving the cursor two left. This
is normally better because using cub1 will be ^H^H (so two bytes) but
cub would be ^[[2D (four).
Delta File
+7 -2 usr.bin/tmux/tty.c
+7 -2 1 file

OpenBSD — lib/libc/sys syscall.2

We no longer have syscalls with multiple return values.  Whine about
long long alignment instead.
Delta File
+7 -5 lib/libc/sys/syscall.2
+7 -5 1 file

OpenBSD — lib/libc/arch/arm Symbols.list, lib/libc/arch/arm/sys brk.S sbrk.S

Consistently reference '_end' instead of 'end' in the brk/sbrk implementation

ok deraadt@

OpenBSD — lib/libc/stdlib icdb.c

The icdb magic number doesn't need to be visible to static links

ok tedu@
Delta File
+2 -2 lib/libc/stdlib/icdb.c
+2 -2 1 file

OpenBSD — include/rpcsvc yp_prot.h ypclnt.h, lib/libc/hidden/rpcsvc ypclnt.h

Stop publicly declaring _yp_dobind() and struct dom_binding, closing out
a rant Theo wrote 24 years ago.  Mark __ypexclude_{add,is,free}() as hidden

"get off my lawn!" deraadt@

OpenBSD — lib/libc/arch/i386/gen setjmp.S sigsetjmp.S

Do setjmp cookies for eip, esp, and ebp.  For bonus points, mix how
the cookies are used in setjmp/_setjmp/sigsetjmp so that mixing
calls (e.g., longjmp on a _setjmp buffer) will scramble all three
registers and jump you to a random location on a random stack!

ok deraadt@

OpenBSD — lib/libc/arch/mips64/gen setjmp.S _setjmp.S

Do setjmp cookies for gp, sp, and ra

endian testing and ok deraadt@
ok visa@

OpenBSD — distrib/armv7/miniroot Makefile.inc

Add back the fdisk command to flag the fat fs as active.
The omap boot rom that loads the first u-boot stage requires this.

OpenBSD — lib/libc/yp ypinternal.h yp_bind.c

_yp_bind(), _ypbindlist, _yp_domain, and _yplib_timeout are no longer
exported, so declare them as hidden to avoid pointless GOT relocations

ok millert@ deraadt@

OpenBSD — lib/libc/arch/amd64/gen setjmp.S sigsetjmp.S

Switch from calling obsolete sig{block,setmask} to directly using the
sigprocmask syscall

ok kettenis@

OpenBSD — lib/libc/hidden/machine sysarch.h

Wrap <machine/sysarch.h> to prevent overriding internal calls, for
alpha and mips64

ok millert@
Delta File
+25 -0 lib/libc/hidden/machine/sysarch.h
+25 -0 1 file

OpenBSD — lib/libc/db/hash hash_func.c extern.h, lib/libc/hidden db.h

Remove dead support for changing BDB hash algorithm and cache of alternatives

ok natano@ millert@ deraadt@

OpenBSD — regress/lib/libc/sigreturn sigret.c Makefile

Nuke sigret.c
ok deraadt@ kettenis@

OpenBSD — regress/lib/libc Makefile

We don't have sigreturn anymore
Delta File
+2 -2 regress/lib/libc/Makefile
+2 -2 1 file

OpenBSD — sbin/disklabel disklabel.c

Refactor and clean up the logic before pledge a bit and fix pledge
fallout related to pledge disklabel (e.g. 'disklabel /dev/tty').

- Allow 'disklabel sdN' again for non-root users.
- Make sure at least one DIO* ioctl comes before pledge "disklabel"
- Fix the op == WRITE logic that broke 'make release' in -r2.217

Based on -r2.17 from beck.

ok beck
Delta File
+17 -20 sbin/disklabel/disklabel.c
+17 -20 1 file

OpenBSD — lib/libc/gen sysctl.3, sbin/sysctl sysctl.8

wxabort bits; ok deraadt
Delta File
+7 -2 lib/libc/gen/sysctl.3
+3 -2 sbin/sysctl/sysctl.8
+10 -4 2 files

OpenBSD — etc rc

Improve error handling in reorder_libs()

- run commands in subshell only if mktemp is successful
- on error just leave the for-loop but set _error=true
- cleanup tmpdirs afterwards
- set _error=true if the ro remount fails
- print appropriate final message depending on $_error

positive feedback from deraadt
OK krw
Delta File
+12 -8 etc/rc
+12 -8 1 file

OpenBSD — distrib/armv7/ramdisk install.md

Decide which u-boot/dtb to use based on the fdt model printed when
attaching mainbus not the string we print based on the board id when
attaching the soc platform abstraction.

Overhaul md_installboot() to make it much more readable based on
suggestions from rpe@
Delta File
+33 -41 distrib/armv7/ramdisk/install.md
+33 -41 1 file

OpenBSD — regress/usr.sbin/syslogd args-server-tls-reconnect.pl args-server-tcp-reconnect.pl

When connecting to a non existing tcp listen socket on localhost,
connect(2) does no longer fail immediately.  It reports EINPROGRESS
first, an ECONNREFUSED or EPIPE error follows later.  Allow this
changed behavior in syslogd(8) regression tests.

OpenBSD — sys/kern kern_descrip.c

Fix sizes passed to free() in fdfree(). This prevents a panic reported
by sthen.
ok semarie
Delta File
+3 -3 sys/kern/kern_descrip.c
+3 -3 1 file

OpenBSD — distrib/notes/armv7 prep

Remove the section on tftp booting a umg file.  This might come back in
a different form when u-boot supports efi networking interfaces.
Delta File
+2 -28 distrib/notes/armv7/prep
+2 -28 1 file

OpenBSD — sys/arch/octeon/dev cn30xxgmx.c if_cnmac.c

Map ASX registers only if link control needs them.

ok mpi@

OpenBSD — sys/arch/arm/mainbus mainbus.c

use fdt "model" string for hw.product
ok kettenis@
Delta File
+10 -4 sys/arch/arm/mainbus/mainbus.c
+10 -4 1 file

OpenBSD — sys/arch/macppc/dev smu.c

Add support for new smu-firmware fan commands.  This fixes wrong sysctl
hw.sensors fan values seen on macppc models with a new smu-firmware.

Help and ok kettenis
Delta File
+112 -37 sys/arch/macppc/dev/smu.c
+112 -37 1 file

OpenBSD — sys/arch/octeon/dev cn30xxgmx.c

The same MAC filter setup code should work with all PHY link types.
Remove unnecessary abstraction.

ok mpi@
Delta File
+108 -128 sys/arch/octeon/dev/cn30xxgmx.c
+108 -128 1 file

OpenBSD — sbin/mount mount.8

sort mount options, and shorten slightly the wxabort text;
Delta File
+7 -7 sbin/mount/mount.8
+7 -7 1 file

OpenBSD — lib/libc/arch/hppa/gen setjmp.S, lib/libc/arch/powerpc/gen setjmp.S

Only require 4 byte alignment on ILP32 archs

OpenBSD — distrib/armv7/ramdisk install.md Makefile, etc/etc.armv7 Makefile.inc

Stop building u-boot kernel and ramdisk images.  The kernel make targets
are left for now but umg files are no longer built when building

OpenBSD — lib/libc/arch/powerpc/gen setjmp.S

Use .balign instead of .align; only need 8 byte alignment not 2^8