Displaying 1 50 of 515,856 commits (0.021s)

OpenBSD — sys/dev/usb uvideo.c, sys/sys videoio.h

Now that gcc2 is gone revert the removal of anonymous unions, means not having to
modify various third party apps using the V4L2 API to build on OpenBSD specifically.

"I think this is the right thing to do" miod@
"Fine with me." sthen@
Delta File
+11 -11 sys/dev/usb/uvideo.c
+4 -4 sys/sys/videoio.h
+15 -15 2 files

OpenBSD — lib/libc/stdlib malloc.3

Save space in man page: err() -> errc() and combine vars.

Suggested by millert@ and schwarze@.

OK schwarze@, millert@
Delta File
+11 -18 lib/libc/stdlib/malloc.3
+11 -18 1 file

OpenBSD — distrib/sets/lists/base mi

sync
Delta File
+3 -0 distrib/sets/lists/base/mi
+3 -0 1 file

OpenBSD — sys/crypto crypto.c

pools lock themselves now, we just have to tell them what IPL they
will be used from.

this adds pool_setipl at IPL_VM to the crypto descriptor pools, and
removes all the splvm handling around the use of those pools.

tested by many via tech@
ok kettenis@ deraadt@
Delta File
+4 -13 sys/crypto/crypto.c
+4 -13 1 file

OpenBSD — sys/crypto crypto.c

apply only the bit of r1.69 that should have been committed:

make the crypto taskq protect things at IPL_VM instead of IPL_HIGH.

everything else in crypto.c uses splvm/IPL_VM. it seems this IPL_HIGH
came about because the hand rolled task list and thread that crypto
used to use was converted to workqs, which unconditionally used
IPL_HIGH internally. when it was converted from workqs to tasks it
blindly ported the protection workqs gave.

tested by many via tech@ and snapshots
ok kettenis@
Delta File
+2 -2 sys/crypto/crypto.c
+2 -2 1 file

OpenBSD — sys/crypto crypto.c

revert previous. it did more than the commit message said it did.
Delta File
+14 -5 sys/crypto/crypto.c
+14 -5 1 file

OpenBSD — share/man/man9 bemtoh32.9, sys/arch/powerpc/include endian.h

make [bl]emtoh{16,32,64} take volatile const foo *, not volatile foo *

while in the manpage add volatile where the code has it too.

ok miod@ guenther@

OpenBSD — usr.bin/sed sed.1

make the description of the syntax of function lists agree
with our actual implementation, which also agrees with POSIX;
triggered by guenther@'s answer to a question from chrisz@;
ok chrisz@ guenther@
Delta File
+4 -9 usr.bin/sed/sed.1
+4 -9 1 file

OpenBSD — usr.bin/tmux key-bindings.c window-choose.c

Fix some spacing nits.

OpenBSD — usr.bin/tmux cmd-unlink-window.c cmd-kill-window.c

Merge unlink-window into kill-window.

OpenBSD — lib/libc/rpc svc_run.c

We prefer to use call reallocarray() with nmemb first and size second.
Requested by guenther@
Delta File
+2 -2 lib/libc/rpc/svc_run.c
+2 -2 1 file

OpenBSD — share/zoneinfo/datfiles asia australasia

Update to tzdata2014i from ftp.iana.org

OpenBSD — sys/kern vfs_syscalls.c

Extend domknodat() to support S_IFIFO directly and remove domkfifoat().
Both sys_mkfifo(2) and sys_mkfifoat(2) could be replace by libc wrappers
using mknodat(2) at a later date if we desire.  OK guenther@
Delta File
+22 -41 sys/kern/vfs_syscalls.c
+22 -41 1 file

OpenBSD — usr.bin/printf printf.1

document the special \c escape sequence that can only be used with %b;
gap found by guenther@ following a question asked
by Frank Brodbeck <fab at split dash brain dot de>;
while here, sort escape sequences,
this part of the patch from Frank Brodbeck;
ok guenther@
Delta File
+13 -4 usr.bin/printf/printf.1
+13 -4 1 file

OpenBSD — usr.sbin/rtadvd rtadvd.c

Replace abs(3) with llabs(3).

Pointed out by LLVM.

rtadvd.c:979:7: warning: absolute value function 'abs' given an argument of type
'long long' but has parameter of type 'int' which may cause truncation of value
[-Wabsolute-value]


ok dcoppa@ millert@
Delta File
+3 -3 usr.sbin/rtadvd/rtadvd.c
+3 -3 1 file

OpenBSD — lib/libssl/src/crypto/pkcs12 p12_mutl.c

In PKCS12_setup_mac(), do not assign p12->mac->salt->length until the allocation
of p12->mac->salt->data has actually succeeded.
In one of my trees for a long time already...

OpenBSD — sbin/isakmpd pf_key_v2.c

Fix error reporting when reallocarray() fails.  OK miod@
Delta File
+3 -3 sbin/isakmpd/pf_key_v2.c
+3 -3 1 file

OpenBSD — lib/libc/rpc svc_run.c

Use reallocarray() instead of calloc() (originally was realloc).
OK deraadt@
Delta File
+2 -3 lib/libc/rpc/svc_run.c
+2 -3 1 file

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

Avoid a NULL pointer dereference that can be triggered by
SSL3_RT_HANDSHAKE replays.

Reported by Markus Stenberg <markus.stenberg at iki.fi> - thanks!

ok deraadt@
Delta File
+2 -2 lib/libssl/src/ssl/d1_pkt.c
+2 -2 1 file

OpenBSD — regress/lib/libcrypto/rand randtest.c

#undef LIBRESSL_INTERNAL for the RAND_pseudo_bytes() test.

OpenBSD — lib/libssl/src/crypto/rand rand.h

Place most of the RAND_* functions under #ifndef LIBRESSL_INTERNAL (some
are still needed for the engine). Our code should use arc4random instead.
Delta File
+4 -1 lib/libssl/src/crypto/rand/rand.h
+4 -1 1 file

OpenBSD — usr.bin/openssl s_cb.c passwd.c

Use arc4random_buf() instead of RAND(_pseudo)?_bytes().

ok bcook@

OpenBSD — usr.bin/openssl gendh.c genrsa.c

None of these need <openssl/rand.h>

OpenBSD — sbin/mountd mountd.c

Use svc_getreq_poll() instead of svc_getreqset2() for mountd's
custom svc_run loop.  From Dimitris Papastamos.  OK schwarze@
Delta File
+20 -23 sbin/mountd/mountd.c
+20 -23 1 file

OpenBSD — regress/lib/libcrypto/bn/mont mont.c, regress/lib/libcrypto/ecdsa ecdsatest.c

Use arc4random_buf() instead of RAND_bytes() or RAND_pseudo_bytes() (most
with unchecked return values).

OpenBSD — regress/lib/libcrypto/bn/general bntest.c, regress/lib/libcrypto/dh dhtest.c

None of these need <openssl/rand.h>

OpenBSD — lib/libssl/src/crypto/asn1 p5_pbev2.c p5_pbe.c, lib/libssl/src/crypto/bio bf_nbio.c

Use arc4random_buf() instead of RAND_bytes() or RAND_pseudo_bytes().

arc4random_buf() is guaranteed to always succeed - it is worth noting
that a number of the replaced function calls were already missing return
value checks.

ok deraadt@

OpenBSD — sys/netinet6 in6.c

Introduce a special hack for carp during IPv6 source address selection:

If there is a tie then a carp interface is not allowed to win even if
it has an address with a longer bitwise match. This allows reliable IPv6
communication between carp master and backup across a shared IPv6 subnet.

Consider the carp address 2001:DB8:10::14, which is configured on firewall A
(in carp master state) and firewall B (in carp backup state), each of which
has another address in the same prefix on a non-carp interface (A has
2001:DB8:10::1 and B has 2001:DB8:10::11). In this setup, A would use
2001:DB8:10::14 as source address when sending neighbour solicitations to B.
Since 2001:DB8:10::14 is a local address from B's point of view, B never
replied to the neighbour solicitations sent by A.
With this change A uses 2001:DB8:10::1 as source address instead.

ok mpi@
Delta File
+20 -2 sys/netinet6/in6.c
+20 -2 1 file

OpenBSD — usr.sbin/httpd httpd.c httpd.h

URL-decode the request path.

Tested by ajacoutot@ and others
OK doug@

OpenBSD — sys/sys param.h

    Sync offsetof() definition with what we have in <stddef.h> for
    userland.
    Fix a warning from gcc-4.9:
    
    ../../../../ufs/ufs/dir.h:113:33: warning: variably modified 'dh_firstfree' at file 
scope
    
    ok kettenis@
Delta File
+5 -1 sys/sys/param.h
+5 -1 1 file

OpenBSD — sys/kern subr_hibernate.c

Remove some unused/unneeded code.
Delta File
+1 -9 sys/kern/subr_hibernate.c
+1 -9 1 file

OpenBSD — sys/crypto crypto.c

make the crypto taskq protect things at IPL_VM instead of IPL_HIGH.

everything else in crypto.c uses splvm/IPL_VM. it seems this IPL_HIGH
came about because the hand rolled task list and thread that crypto
used to use was converted to workqs, which unconditionally used
IPL_HIGH internally. when it was converted from workqs to tasks it
blindly ported the protection workqs gave.

tested by many via tech@ and snapshots
ok kettenis@
Delta File
+5 -14 sys/crypto/crypto.c
+5 -14 1 file

OpenBSD — lib/libc/stdlib malloc.3

Avoid writing in second person in malloc.3

ok deraadt@
Delta File
+12 -13 lib/libc/stdlib/malloc.3
+12 -13 1 file

OpenBSD — sys/kern subr_hibernate.c

Use the global piglet address variables as sparingly as possible to avoid
redundant copies of the same information. No functional change.

Also add some comments as to how these globals are used.
Delta File
+22 -10 sys/kern/subr_hibernate.c
+22 -10 1 file

OpenBSD — lib/libkvm kvm_proc.c

Don't leak the old data if _kvm_reallocarray() fails

ok millert@ doug@
Delta File
+5 -3 lib/libkvm/kvm_proc.c
+5 -3 1 file

OpenBSD — usr.bin/tmux window.c cmd-select-pane.c

Only redraw pane when it has actually changed.

OpenBSD — usr.bin/tmux cmd-queue.c

Save next item after firing command in case it has added to the queue.
Delta File
+2 -3 usr.bin/tmux/cmd-queue.c
+2 -3 1 file

OpenBSD — usr.sbin/httpd server_http.c server_file.c

Rework the error message a little bit: Do not send details of the
error.  Traditionally, web servers responsed with the request path on
40x errors which could be abused to inject JavaScript etc.  Instead of
sanitizing the path, we just don't reprint it.  Also modify the style
a little bit but keep Comic Sans.

With input from Jonas Lindemann and doug@

OpenBSD — sys/net pipex.c pipex.h

tun(4) has a pipex session which is used for multicast internally, it
wasn't freeed when the interface is destroyed.  Free it properly.

ok dlg
Delta File
+15 -5 sys/net/pipex.c
+2 -3 sys/net/pipex.h
+2 -2 sys/net/if_tun.c
+3 -1 sys/net/pipex_local.h
+22 -11 4 files

OpenBSD — sys/dev ipmi.c

Style + typos in debug printfs.
Delta File
+7 -5 sys/dev/ipmi.c
+7 -5 1 file

OpenBSD — usr.bin/tftp tftp.c

cope with sending or receiving files beyond 65536 blocks in length.

reported by justin mayes on misc@

ok deraadt@
Delta File
+16 -11 usr.bin/tftp/tftp.c
+16 -11 1 file

OpenBSD — etc/examples relayd.conf, usr.sbin/relayd relayd.conf.5

Remove SSLv2 and SSLv3 references from the example relayd.conf and the
relevant example snippet in the relayd.conf(5) man page.

Change the default SSL protocols in the example file/man page to
"no tlsv1.0" (suggested by sthen@), which will enable the TLSv1.1
and TLSv1.2 protocols only.

feedback/ok jsing@ reyk@ sthen@

OpenBSD — gnu/usr.bin/cvs Makefile.bsd-wrapper

no more kerberos.

ok deraadt@, dcoppa@

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

Better format for printf format attributes.

OpenBSD — usr.bin/tmux tmux.h cmd-list-windows.c

Move template defines back into .c files.

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

Tidy up some includes.

OpenBSD — usr.bin/tmux cmd-suspend-client.c cmd-detach-client.c

Move suspend-client code into detach-client.

OpenBSD — usr.bin/tmux cmd-has-session.c cmd-new-session.c

Move tiny has-session function into cmd-new-session.c.

OpenBSD — usr.bin/apropos apropos.c apropos.1, usr.bin/whatis whatis.c whatis.1

superseded by usr.bin/mandoc/mansearch.c
removal suggested by daniel@; ok deraadt@

OpenBSD — usr.bin/tmux cmd-list-commands.c

Argh, meant to remove this file...
Delta File
+0 -45 usr.bin/tmux/cmd-list-commands.c
+0 -45 1 file