Displaying 1 50 of 185,769 commits (0.015s)

OpenBSD — . Makefile, etc Makefile

mark newish phony targets as phony.
okay tb@
Delta File
+2 -2 Makefile
+2 -2 etc/Makefile
+4 -4 2 files

OpenBSD — sys/net if_gif.c

Remove unused define satoin6().
Delta File
+1 -2 sys/net/if_gif.c
+1 -2 1 file

OpenBSD — sys/net if_gif.c if_etherip.c, sys/netinet ipsec_input.c ip_ipsp.h

Pass down the address family through the pr_input calls.  This
allows to simplify code used for both IPv4 and IPv6.
OK mikeb@ deraadt@
Delta File
+9 -9 sys/netinet/ipsec_input.c
+8 -8 sys/netinet/ip_ipsp.h
+6 -6 sys/netinet/ip_icmp.c
+6 -6 sys/netinet/igmp.c
+5 -5 sys/net/if_gif.c
+5 -5 sys/net/if_etherip.c
+70 -72 31 files not shown
+109 -111 37 files

OpenBSD — gnu/usr.bin/cvs/src server.c

once cvs's flow-control mechanism has kicked in, stop reading from
its local reader until memory usage goes back down below its

during a checkout of a tree with big files (like www) from a fast
reader (disk) and a slow writer (net), the amount of data being
buffered can back up enough that cvs tries to allocate too many
buffers and hits its resource limit, causing death.

cvs's flow-control mechanism properly detects this early on, but the
message sent to the reader process to stop sending data takes too
long to process.

take more aggressive action and just stop reading from the reader
until the writer has ejected enough data that it can start re-using
its already-allocated buffers instead of allocating new ones.

ok deraadt
Delta File
+5 -1 gnu/usr.bin/cvs/src/server.c
+5 -1 1 file

OpenBSD — usr.bin/mandoc mdoc_term.c

Show long .Lk URIs in like an indented display, similar to groff.
Suggested by bentley@.
Delta File
+11 -1 usr.bin/mandoc/mdoc_term.c
+11 -1 1 file

OpenBSD — regress/sys/netinet/ipsec Makefile ipsec.conf

Add test for IP payload compression.  It is sending small and big
ping packets as only the latter get actually compressed.

OpenBSD — usr.bin/mandoc mdoc_man.c mdoc_term.c

Do not make the colon after the .Lk link text italic.
I just pushed the same change to GNU troff.

OpenBSD — regress/sbin/ipsecctl sa27.ok sa25.in

Add tests with the ipsec.conf SA bundle keyword.

OpenBSD — sbin/ipsecctl parse.y ipsec.conf.5

Up to now ipsecctl(8) grouped SAs with identical src and dst to the
flow which the first SA matched by the flow type.  This behaviour
was mostly undocumented and unexpected.  Make SA bundles explicit
in ipsec.conf(5).  Only group SAs that have the same src and dst
and also the same bundle identifier.
OK hshoexer@

OpenBSD — lib/libssl ssl_srvr.c

Use freezero(3) when cleaning up session tickets - not only does it require
less code, but there is also a potential performance gain since they can be
larger allocations.
Delta File
+3 -6 lib/libssl/ssl_srvr.c
+3 -6 1 file

OpenBSD — lib/libssl ssl_srvr.c

Use freezero(3) to clean up the X25519 keys - simpler, cleaner code.
Delta File
+3 -6 lib/libssl/ssl_srvr.c
+3 -6 1 file

OpenBSD — lib/libssl bs_cbb.c

Use freezero(3) in the CBB clean up path, since this could hold sensitive
information (such as master keys).
Delta File
+2 -3 lib/libssl/bs_cbb.c
+2 -3 1 file

OpenBSD — lib/libssl ssl_asn1.c

Switch i2d_SSL_SESSION() back to freezero(3) now that the size constraints
have been relaxed.
Delta File
+2 -5 lib/libssl/ssl_asn1.c
+2 -5 1 file

OpenBSD — lib/libssl ssl_srvr.c

Clean up server key exchange EC point handling. Encode the point directly
into the CBB memory, rather than mallocing and memcpying, which also makes
makes the code more consistent with the client. Add a missing check for the
first EC_POINT_point2oct() call.

ok beck@
Delta File
+15 -27 lib/libssl/ssl_srvr.c
+15 -27 1 file

OpenBSD — sys/dev softraid.c, sys/kern kern_sig.c

Avoid some false positives with cppcheck.  No binary change.
OK jsg@

OpenBSD — lib/libc/gen ttyname.c

Delta File
+2 -2 lib/libc/gen/ttyname.c
+2 -2 1 file

OpenBSD — sys/sys cdefs.h

Define __dead and __pure even if __STRICT_ANSI__ for compilers that
support GCC's __attribute__ syntax.  Fixes several warnings when compiling
code with clang with -std=c++11 or some other strict ISO standard.

ok millert@, guenther@
Delta File
+2 -2 sys/sys/cdefs.h
+2 -2 1 file

OpenBSD — lib/libc/gen sysctl.3

correct path; from Klemens Nanni
Delta File
+3 -3 lib/libc/gen/sysctl.3
+3 -3 1 file

OpenBSD — sys/arch/amd64/amd64 identcpu.c, sys/arch/amd64/include cpu.h

SVM: calculate max ASID value and save for later use. This will be used in
an upcoming diff to handle ASID/VPID reuse/rollover.

OpenBSD — usr.sbin/vmctl vmctl.8

Update a man page example to reflect recent changes.

Spotted by Ilya Kaliman, thanks.
Delta File
+3 -3 usr.sbin/vmctl/vmctl.8
+3 -3 1 file

OpenBSD — sys/arch/arm64/include pte.h

A little bit more trivial cleanup.
Delta File
+7 -8 sys/arch/arm64/include/pte.h
+7 -8 1 file

OpenBSD — lib/libc/sys execve.2

Xr sigprocmask(2) not the obsolete sigsetmask(3)
Delta File
+3 -3 lib/libc/sys/execve.2
+3 -3 1 file

OpenBSD — sys/arch/arm64/arm64 pmap.c

Use the non-interrupt-safe pool allocator for the vp pool to avoid runninng
out of kva in the kmem_map.  Avoids a hang when spawning a lot of processes.
Delta File
+3 -3 sys/arch/arm64/arm64/pmap.c
+3 -3 1 file

OpenBSD — lib/libc/stdio getdelim.c

Use recallocarray in getdelim/getline to clear memory on buffer resizes,
inspired by a similar change to fgetln.

ok deraadt millert
Delta File
+2 -2 lib/libc/stdio/getdelim.c
+2 -2 1 file

OpenBSD — lib/libc/stdlib malloc.3 malloc.c

allow clearing less than allocated and document freezero(3) better

OpenBSD — usr.sbin/rebound rebound.c

moving some code into a switch meant that break no longer stopped the loop.
try harder with a goto. diagnosis and original fix by tb.
Delta File
+4 -3 usr.sbin/rebound/rebound.c
+4 -3 1 file

OpenBSD — usr.sbin/dhcpd dhcpd.h

Remove a bunch of obsolete, unused and irrelevant DHCP client types, fields,
and enums.
Delta File
+1 -102 usr.sbin/dhcpd/dhcpd.h
+1 -102 1 file

OpenBSD — usr.sbin/ldapd syntax.c

multi-statement CHECK_RANGE() macro isn't safe for all placements, and
needs to use "do {} while 0" idiom; all callers need repair also.
Discovered by jsg
Delta File
+9 -7 usr.sbin/ldapd/syntax.c
+9 -7 1 file

OpenBSD — sbin/fsck_ffs pass4.c, sbin/pfctl pfctl_table.c

fix wrongly indented lines

OpenBSD — sbin/iked ikev2.c iked.h

Add a NAT-T keepalive timer in case we are behind a NAT gateway.

See RFC 5996, section 2.23, NAT Traversal:
  In the case of a mismatching NAT_DETECTION_DESTINATION_IP hash, it
  means that the system receiving the NAT_DETECTION_DESTINATION_IP
  payload is behind a NAT and that system SHOULD start sending
  keepalive packets as defined in [UDPENCAPS].

With markus@, ok reyk@

OpenBSD — sys/kern init_sysent.c syscalls.c, sys/sys syscallargs.h syscall.h


OpenBSD — sys/kern kern_prot.c syscalls.master

Delete the getlogin59 syscall, which was last used one year, two releases,
and four libc major versions ago

ok sthen@ jsing@ deraadt@ jca@

OpenBSD — sys/arch/alpha/include proc.h, sys/arch/amd64/include proc.h

Provide mips64 with kernel-facing TCB_{GET,SET} macros that store it
in struct mdproc.  With that, all archs have those and the __HAVE_MD_TCB
macro can be unifdef'ed as always defined.

ok kettenis@ visa@ jsing@
Delta File
+1 -7 sys/sys/proc.h
+2 -5 sys/kern/kern_sig.c
+2 -5 sys/kern/kern_prot.c
+2 -5 sys/kern/kern_fork.c
+2 -5 sys/kern/kern_exec.c
+4 -2 sys/arch/mips64/include/tcb.h
+13 -33 12 files not shown
+26 -62 18 files

OpenBSD — usr.sbin/dhcpd Makefile

Inspired by recent dhcrelay changes, bring in stricter CFLAGS!
Delta File
+4 -1 usr.sbin/dhcpd/Makefile
+4 -1 1 file

OpenBSD — usr.sbin/dhcpd dispatch.c

One 'foo' per function is enough. Rename one to eliminate shadowing.
Delta File
+5 -5 usr.sbin/dhcpd/dispatch.c
+5 -5 1 file

OpenBSD — usr.sbin/dhcpd conflex.c confpars.c

Add missing function prototypes. Mark kw_cmp() as static like all
its friends.

OpenBSD — sys/crypto siphash.c

The kernel has to slightly different version of SipHash_Final but with
the same bug as just fixed in userland:

SipHash_Final() was assuming the digest was 64-bit aligned, resulting in
misaligned memory accesses with armv7 ramdisk -Os bsd.rd ping
ok florian millert

OK deraadt@
Delta File
+3 -4 sys/crypto/siphash.c
+3 -4 1 file

OpenBSD — lib/libedit chared.c terminal.c

Use calloc(3) and recallocarray(3) instead of *alloc* + memset(0).

ok deraadt

OpenBSD — lib/libc/hash siphash.c

SipHash_Final() was assuming the digest was 64-bit aligned, resulting in
misaligned memory accesses with armv7 ramdisk -Os bsd.rd ping
ok florian millert
Delta File
+3 -4 lib/libc/hash/siphash.c
+3 -4 1 file

OpenBSD — lib/libc/string strstr.c

New strstr() implementation from musl libc by Rich Felker.  This
version uses the two-way string matching algorithm and is faster
than the old implementation.  With this change, ports that check
for strstr having linear complexity time strstr will no longer
replace the libc strstr with a private version.
OK deraadt@ espie@
Delta File
+180 -44 lib/libc/string/strstr.c
+180 -44 1 file

OpenBSD — sbin/fsck_ffs pass1.c

Prevent inosused from wrapping when soft updates is enabled while
scanning the used inode map.  The code as written assumes inosused
is signed but this is no longer the case.  OK deraadt@
Delta File
+8 -3 sbin/fsck_ffs/pass1.c
+8 -3 1 file

OpenBSD — usr.bin/lex parse.y

isblank() is ANSI C since C99, no need to provide a replacement.
OK deraadt@
Delta File
+3 -6 usr.bin/lex/parse.y
+3 -6 1 file

OpenBSD — usr.bin/script script.c

bluhm discovered "script < /dev/null" attempts tty operations in violation
of pledge.  We can wrap isatty() around those codepaths.
ok bluhm beck
Delta File
+16 -9 usr.bin/script/script.c
+16 -9 1 file

OpenBSD — regress/sys/kern/mount Makefile

Add comment what the test does.
Delta File
+9 -1 regress/sys/kern/mount/Makefile
+9 -1 1 file

OpenBSD — sbin/dhclient dhclient.c

RTM_PROTO3 messages should not trigger a resolv.conf check.
Delta File
+2 -2 sbin/dhclient/dhclient.c
+2 -2 1 file

OpenBSD — regress/sys/kern/pledge Makefile, regress/sys/kern/pledge/sigkill sigkill.c Makefile

The pledge sigkill test is an outdated copy of sigabrt.  Remove the
former and activate the latter.
OK semarie@

OpenBSD — sbin/dhclient kroute.c

Shuffle another function.
Delta File
+21 -21 sbin/dhclient/kroute.c
+21 -21 1 file

OpenBSD — regress/sys/kern/pledge/sockopt Makefile

Add comment how the test works.

OpenBSD — gnu/usr.bin/clang/include/clang/intrin Makefile

explicitly set the ownership on installed include files as well