Displaying 1 50 of 185,351 commits (0.026s)

OpenBSD — usr.sbin/syslogd syslogd.c

Keep syslogd(8) running as long as possible.  Regular programs
should terminate early in case of an error.  But if syslogd dies,
no messages can be seen at all.  Except from command line parsing
and memory shortage during statup, report errors and run all working
subsystems, but do not die.
OK millert@ dreaadt@
Delta File
+17 -30 usr.sbin/syslogd/syslogd.c
+17 -30 1 file

OpenBSD — regress/sys/kern/pledge/ioctl pfioctl1.c pfioctl2.c

correct my email address. thanks fcambus@

OpenBSD — sys/arch/armv7/conf GENERIC RAMDISK, sys/arch/armv7/marvell mvahci.c files.marvell

Implement a driver for Marvell's AHCI controller.  This is in essence
a generic AHCI controller with the twist that the MBUS window needs
to be configured in the controller registers.  This enables use of
SATA on devices like the SolidRun ClearFog or Omnia Turris.

ok kettenis@

OpenBSD — sys/arch/armv7/conf GENERIC RAMDISK, sys/arch/armv7/marvell mvxhci.c files.marvell

Implement a driver for Marvell's XHCI controller.  This is in essence
a generic XHCI controller with the twist that the MBUS window needs
to be configured in the controller registers.  This enables use of
USB on devices like the SolidRun ClearFog or Omnia Turris.

ok kettenis@

OpenBSD — sys/arch/arm64/arm64 pmap.c cpufunc_asm.S, sys/arch/arm64/include cpufunc.h pcb.h

Simplify ASID allocation code considerably by allocating an ASID up front
when a pmap is created and freeing it when the pmap is destroyed.  This
diff relies on the fill 16-bit ASID space being implemented in the processor.
While this is documented as an optional feature in the ARMv8 architecture
reference manual, all ARMv8 processors seen in the wild so far implement
the full 16-bit space.  This change incorporates changes by drahn@ to
allocate an empty page table for the lower half of the address space for the

ok drahn@, patrick@

OpenBSD — usr.bin/aucat afile.c

Use the right header sizes for reading .aiff and .au files, ok ratchov
Delta File
+2 -2 usr.bin/aucat/afile.c
+2 -2 1 file

OpenBSD — sys/kern subr_log.c

There was a race in dosendsyslog() which resulted in a crash.
sosend(syslogf->f_data, ...) could be called with a NULL pointer.
syslogf was not NULL, f_data was NULL and f_count was 1.  The file
structure is ref counted, but the global variable syslogf is not
protected.  So it may change during sleep and dosendsyslog() possibly
used a different socket at each access.  Solution is to access
syslogf only once, use a local copy, and do the ref counting there.
OK millert@ deraadt@
Delta File
+10 -7 sys/kern/subr_log.c
+10 -7 1 file

OpenBSD — usr.sbin/syslogd ttymsg.c

Replace bcopy(3) with memmove(3) in function ttymsg().  Values of
iov and localiov may overlap.  No more bcopy(3) in syslogd(8).
from Michael W. Bombardieri
Delta File
+3 -3 usr.sbin/syslogd/ttymsg.c
+3 -3 1 file

OpenBSD — lib/libc/stdlib malloc.c

add a helper function to print all pools #ifdef MALLOC_STATS
from David CARLIER
Delta File
+16 -1 lib/libc/stdlib/malloc.c
+16 -1 1 file

OpenBSD — lib/libc/stdlib malloc.3

document new recallocarray diagnostic; zap a few diagnostics that should
never occur
Delta File
+9 -8 lib/libc/stdlib/malloc.3
+9 -8 1 file

OpenBSD — lib/libc/stdlib malloc.c Makefile.inc

move recallocarray to malloc.c and
- use internal meta-data to do more consistency checking (especially with
  option C)
- use cheap free if possible
ok deraadt@

OpenBSD — sys/arch/armv7/marvell mvacc.c

Bump resolution of frequencies from kHz to Hz, since that is what the
clock frequency API expects.  Fixes login prompt over serial console.
Delta File
+5 -5 sys/arch/armv7/marvell/mvacc.c
+5 -5 1 file

OpenBSD — usr.bin/tmux tty.c

Write raw strings in one go rather than character at a time.
Delta File
+2 -6 usr.bin/tmux/tty.c
+2 -6 1 file

OpenBSD — sys/arch/armv7/armv7 armv7_machdep.c

Mainline u-boot on the ClearFog seems to insert an empty memory region
into the /memory node which we happily physload into UVM.  This leads
to a quickly panic(9)ing system when there is actual physical memory
starting at zero due to how the physeg array is sorted when using the
binary search strategy.  To fix this, do not physload an empty memory

ok jsg@ kettenis@

OpenBSD — usr.sbin/vmd i8253.c i8259.c

Backout mlarkin's previous commit while he is away:
The newly-used function get_input_data() is missing and broke the tree.
Delta File
+2 -2 usr.sbin/vmd/i8253.c
+2 -2 usr.sbin/vmd/i8259.c
+4 -4 2 files

OpenBSD — lib/libutil imsg_init.3 imsg.h

Use C99 types (uint32_t) instead of BSD (u_int32_t) - the former are
more portable. Add stdint.h to the headers in imsg_init(3).

No objections from millert@.
Delta File
+15 -14 lib/libutil/imsg_init.3
+13 -14 lib/libutil/imsg.h
+9 -9 lib/libutil/imsg.c
+37 -37 3 files

OpenBSD — usr.sbin/vmd i8253.c i8259.c

Last bits of cleanup for linux/seabios support in i8253/i8259 emulation
Delta File
+2 -2 usr.sbin/vmd/i8253.c
+2 -2 usr.sbin/vmd/i8259.c
+4 -4 2 files

OpenBSD — sys/arch/amd64/amd64 vmm.c

Handle guest interruptibility state - Reset the interruptibility state
VMCS field on vmentry when we advanced %rip on the last exit (simulating
a real processor's behaviour). Handles guest "sti ; hlt" instruction
sequences, which is used in seabios as a primitive idle loop construct.
Delta File
+37 -17 sys/arch/amd64/amd64/vmm.c
+37 -17 1 file

OpenBSD — sys/arch/amd64/amd64 vmm.c

Exit to vmd on byte size PCI accesses.
Delta File
+10 -4 sys/arch/amd64/amd64/vmm.c
+10 -4 1 file

OpenBSD — usr.sbin/vmd vm.c

Allow vmd to proceed after an interrupt occurred after retiring a cpuid
instruction. Matches previous commit to kernel vmm.c
Delta File
+2 -1 usr.sbin/vmd/vm.c
+2 -1 1 file

OpenBSD — sys/arch/amd64/amd64 vmm.c

Allow returns from vmd after handling cpuid exits (handles the case where
a cpuid instruction was emulated at the same time there was an interrupt
Delta File
+3 -1 sys/arch/amd64/amd64/vmm.c
+3 -1 1 file

OpenBSD — share/man/man4 virtio.4

add viocon and a missing full stop in previous;
ok mlarkin
Delta File
+5 -3 share/man/man4/virtio.4
+5 -3 1 file

OpenBSD — usr.bin/tmux window-copy.c colour.c

Show count of search results in copy mode.

OpenBSD — gnu/llvm/tools/lld/ELF DriverUtils.cpp

Add "supported targets" in lld --help output to be compatible with what
libtool generated configure scripts expect.  Otherwise they might assume
shared libraries aren't supported.

From lld svn revisions 298568 and 298571.
Discussed with kettenis@

OpenBSD — gnu/llvm/tools/lld/ELF Driver.cpp

Add "(compatible with GNU linkers)" to the lld version output to avoid
problems with configure scripts generated with libtool.m4 that would
otherwise have to be regenerated with a patched libtool.

Among other things this fixes the build of Mesa on arm64 with lld.

From lld svn revision 298532.  ok kettenis@
Delta File
+20 -4 gnu/llvm/tools/lld/ELF/Driver.cpp
+20 -4 1 file

OpenBSD — lib/libc/sys mkdir.2

mkdir(2) and mkdirat(2) can also fail with EACCESS if write permission
is denied on the parent directory of the directory to be created.
From FreeBSD.  OK deraadt@ natano@
Delta File
+5 -3 lib/libc/sys/mkdir.2
+5 -3 1 file

OpenBSD — usr.sbin/makefs msdos.c

Set the maximum value of the msdos options to the value of LLONG_MAX
instead of ULLONG_MAX since the type of the comparison is using long
long, which has a positive maximum of LLONG_MAX.  The affected opts
are of type off_t, which should have a maximum of LLONG_MAX anyway.
Fixes makefs(8) on msdos with options "create_size" or "offset".

ok natano@
Delta File
+2 -2 usr.sbin/makefs/msdos.c
+2 -2 1 file

OpenBSD — regress/sbin/ipsecctl sa25.ok sa26.ok

Add tests for SA grouped in bundles.

OpenBSD — sys/netinet ip_carp.c

Replace manual loop with SRPL_FOREACH_SAFE_LOCKED macro.
OK mpi@
Delta File
+2 -5 sys/netinet/ip_carp.c
+2 -5 1 file

OpenBSD — share/zoneinfo/datfiles northamerica iso3166.tab

Update to tzdata2017b from ftp.iana.org

OpenBSD — regress/sbin/ipsecctl Makefile

Allow to override location of ipsecctl tool with IPSECCTL environment.
Useful for development testing without make install.
Delta File
+11 -10 regress/sbin/ipsecctl/Makefile
+11 -10 1 file

OpenBSD — sbin/route route.c

Fix printf() incantation for non-NULL terminated string.

Pointed out by florian@.

ok bluhm@
Delta File
+2 -2 sbin/route/route.c
+2 -2 1 file

OpenBSD — usr.sbin/acme-client parse.y

It is perfectly valid to have a cert / key not owned by root; remove
useless check.
OK benno
Delta File
+1 -5 usr.sbin/acme-client/parse.y
+1 -5 1 file

OpenBSD — usr.sbin/acme-client main.c

pull root check up, the parser will bomb out anyway
OK benno
Delta File
+4 -4 usr.sbin/acme-client/main.c
+4 -4 1 file

OpenBSD — etc/rc.d spamd

Don't check for spamd_black twice in rc_pre and rc_start; just do everything
in rc_pre.

prodded by and ok jmc@, ok halex@
Delta File
+5 -7 etc/rc.d/spamd
+5 -7 1 file

OpenBSD — share/man/man4 virtio.4

Remove some obvious statement in previous commit
Delta File
+2 -2 share/man/man4/virtio.4
+2 -2 1 file

OpenBSD — share/man/man4 virtio.4

Mention vmmci(4) in virtio man page
Delta File
+7 -3 share/man/man4/virtio.4
+7 -3 1 file

OpenBSD — sys/arch/amd64/include vmmvar.h

Bump the emulated PCI MMIO range end to 0xFFFFFFFF. This slightly
penalizes i386 guests who previously had memory allocated by vmd after
0xF0FFFFFF (the previous range end) but makes memory range calculation
in vmd/mc146818 much much easier. This diff needs to be combined with
the previous vmd diffs or you won't be able to create a vm with memory
size larger than ~3855MB.
Delta File
+2 -2 sys/arch/amd64/include/vmmvar.h
+2 -2 1 file

OpenBSD — usr.sbin/vmd mc146818.c vm.c

Implement memory size and SMP CPU count NVRAM registers in the emulated
mc146818. This is needed for seabios to boot properly (and construct
a sensible e820 map to send to the guest OS).

OpenBSD — usr.sbin/vmd i8253.c i8253.h

Various i8253/i8254 implementation improvements - Fix an error that used
the wrong i/o latch index on reads (resulting in erratic counter values
possibly being read). Also do proper return size setting (don't clobber
%eax high bits).

This diff also implements counter readback mode, which is used in seabios.
Delta File
+79 -19 usr.sbin/vmd/i8253.c
+8 -1 usr.sbin/vmd/i8253.h
+87 -20 2 files

OpenBSD — usr.sbin/vmd mc146818.c

Various mc146818 emulation fixes - don't block interrupts needlessly, and
set proper return data size (don't clobber high %eax bits). Also apply
a mask on incoming data (from OUT instruction in guest) to avoid
misinterpreting register index values. Found when implementing Linux and
seabios support.
Delta File
+7 -11 usr.sbin/vmd/mc146818.c
+7 -11 1 file

OpenBSD — usr.sbin/vmd i8259.c

use proper return data size when doing PIC reads - don't clobber %eax
high bits.
Delta File
+3 -5 usr.sbin/vmd/i8259.c
+3 -5 1 file

OpenBSD — sbin/iked iked.c

set ps_noaction to not fork uneeded children when checking config with -n

ok mikeb@ reyk@
Delta File
+4 -1 sbin/iked/iked.c
+4 -1 1 file

OpenBSD — sys/net80211 ieee80211_crypto_bip.c ieee80211_crypto_ccmp.c

Use explicit_bzero() to wipe out key material and add some sizes to free().

ok stsp

OpenBSD — share/man/man4 pppoe.4

less verbose KERNEL OPTIONS section; help/ok sthen
Delta File
+13 -23 share/man/man4/pppoe.4
+13 -23 1 file

OpenBSD — share/man/man4 inet6.4

kill Tn;
Delta File
+10 -22 share/man/man4/inet6.4
+10 -22 1 file

OpenBSD — share/man/man4 inet6.4

Fix syntax of example route command.
Delta File
+2 -2 share/man/man4/inet6.4
+2 -2 1 file

OpenBSD — usr.bin/mandoc man.1

simplify description of -S and -w, point from EXIT STATUS
to mandoc(1) for details, and remove duplicate .Xr to whatis(1);
OK jmc@
Delta File
+8 -13 usr.bin/mandoc/man.1
+8 -13 1 file

OpenBSD — sys/net if.c

Replace an expensive microtime call with a getmicrotime for if_lastchange
reducing its resolution to 10ms.

ok florian, mpi
Delta File
+4 -4 sys/net/if.c
+4 -4 1 file

OpenBSD — etc acme-client.conf, usr.sbin/acme-client acme-client.conf.5 acme-client.1

Improve manpage and config file to show the more common use case.
from Nick Holland (nick AT holland-consulting DOT net)
ok jmc@ florian@