Displaying 1 50 of 166,694 commits (0.014s)

OpenBSD — sys/net if_trunk.c

if the mbuf has a valid flowid, use it instead of using siphash24
and a bunch of header fields we have to parse the mbuf for.

siphash24 is about 20% of the cost of sending a udp packet on a
trunk interface with tcpbench on my box. if there's a flowid set
we get all that back.

ok mpi@ mikeb@ sthen@
Delta File
+4 -1 sys/net/if_trunk.c
+4 -1 1 file

OpenBSD — share/man/man9 mbuf.9, sys/sys mbuf.h

steal some padding in mbuf pkthdrs to store a flow id.

the flowid roughly identifies a flow or connection that the mbuf
is a part of, and can be used instead of hashing contents of the
packet (like src+dst mac and ip addresses) to decide which path a
packet should take.

ok mpi@ mikeb@ sthen@
Delta File
+18 -3 share/man/man9/mbuf.9
+6 -2 sys/sys/mbuf.h
+24 -5 2 files

OpenBSD — regress/sbin/route rttest10.ok rttest11.ok

Local route entries are always UP now, missed in previous.

OpenBSD — sys/dev/pci/drm/ttm ttm_page_alloc.c

Implement set_pages_array_wb() and set_pages_array_wc() for powerpc.  Since
powerpc doesn't actually implement write-combining fall back to uncached

ok mpi@, jsg@

OpenBSD — sys/arch/powerpc/include pmap.h, sys/arch/powerpc/powerpc pmap.c

Add a per-page flag to indicate that all mappings of that page should be
uncached.  To be used in the drm code.

ok mpi@

OpenBSD — sys/net if.c

Unlock the softnet task.

ok dlg@, kettenis@
Delta File
+1 -3 sys/net/if.c
+1 -3 1 file

OpenBSD — sys/kern vfs_subr.c, sys/net radix.h radix.c

Use the radix API directly and get rid of the function pointers.  There
is no point in keeping an unused level of abstraction.

ok mikeb@, claudio@

OpenBSD — usr.sbin/snmpd mib.c

add comment, suggested by reyk
Delta File
+2 -1 usr.sbin/snmpd/mib.c
+2 -1 1 file

OpenBSD — usr.sbin/snmpd mps.c snmpe.c

Link the result of each mps_getbulkreq() to the end of the previous list
and not the start of it. Fixes getbulk requests for multiple OIDs.

From Gerhard Roth, ok blambert@

OpenBSD — usr.sbin/snmpd mib.c

use correct return value for IP-MIB::ipForwarding, tweak/ok uebayasi@
Delta File
+2 -2 usr.sbin/snmpd/mib.c
+2 -2 1 file

OpenBSD — bin/cp cp.c

Try again.  Both -R and -p prevent use of tame, but other cases can use it.
Delta File
+9 -1 bin/cp/cp.c
+9 -1 1 file

OpenBSD — distrib/sets/lists/comp mi

Delta File
+2 -0 distrib/sets/lists/comp/mi
+2 -0 1 file

OpenBSD — lib/libssl/src/crypto/asn1 a_utctm.c asn1.h

Rip the guts out of another gibbering horror of a time comparison function, and
mark it as #ifndef LIBRESSL_INTERNAL at least we don't use this.
ok jsing@

OpenBSD — lib/libssl/src/crypto/asn1 a_utctm.c asn1.h

revert previous accidental commit

OpenBSD — lib/libssl/src/crypto/asn1 a_utctm.c asn1.h

Spelling in comment

OpenBSD — bin/cp cp.c

ah, fchflags.  We will come back to this issue later
Delta File
+1 -6 bin/cp/cp.c
+1 -6 1 file

OpenBSD — usr.sbin/bgpd rde.c

In theory, bgpd should be happy with tame "stdio unix route recvfd".
Let's hear from people's experiences by commiting it.
Delta File
+5 -1 usr.sbin/bgpd/rde.c
+5 -1 1 file

OpenBSD — usr.sbin/arp arp.c

use new tame "route" feature when possible
Delta File
+9 -7 usr.sbin/arp/arp.c
+9 -7 1 file

OpenBSD — usr.sbin/bgpd session.c

use fatal() instead of err(); from benno
Delta File
+2 -2 usr.sbin/bgpd/session.c
+2 -2 1 file

OpenBSD — usr.sbin/smtpd bounce.c

Use getline(3) rather than fgetln(3).  OK gilles@
Delta File
+7 -5 usr.sbin/smtpd/bounce.c
+7 -5 1 file

OpenBSD — sys/net bsd-comp.c

one simple free, ok mpi
another not so simple free, repaired by mpi
Delta File
+4 -4 sys/net/bsd-comp.c
+4 -4 1 file

OpenBSD — distrib/amd64/common install.md, distrib/amd64/ramdisk_cd list.local

Add initial support for UEFI/GPT installs to install script. Original
diff from rpe@.

ok deraadt@ yasuoka@

OpenBSD — usr.bin/tty tty.c

use tame "stdio rpath tty", for ttyname().  from Rob Pierce, who chose to
do this using ktrace step by step.  not the method i recommend, because
it requires 100% coverage via feature tests.  better to read the code and
understand everything being called, then make decisions.
Delta File
+5 -2 usr.bin/tty/tty.c
+5 -2 1 file

OpenBSD — usr.sbin/pkg_add pkg_info.1 pkg_delete.1, usr.sbin/pkg_add/OpenBSD PkgInfo.pm PkgDelete.pm

"..." implies optional, so no need for []; from michael reed

OpenBSD — usr.bin/who who.c

from previous commit: "ioctl" is used for grab ttyname(0)

with a function's name like that "tty" should be a better request (more strict)

pointed by and ok deraadt@
Delta File
+2 -2 usr.bin/who/who.c
+2 -2 1 file

OpenBSD — lib/libc/stdio getdelim.3

Be explicit that the user is responsible for freeing the line buffer
and show this in the example.
Delta File
+10 -4 lib/libc/stdio/getdelim.3
+10 -4 1 file

OpenBSD — usr.bin/who who.c

enable tame(2) in who(1).

some refactor to grab ttyname(0) early and use it later.
gradually drop tame requests when no more needed.

"ioctl" is used for grab ttyname(0)
"rpath" is for -T and -u flag, that used stat(2) to get terminal status

initial patch from deraadt with help from guenther

ok deraadt@
Delta File
+21 -9 usr.bin/who/who.c
+21 -9 1 file

OpenBSD — usr.bin/ssh readconf.c

include PubkeyAcceptedKeyTypes in ssh -G config dump
Delta File
+2 -1 usr.bin/ssh/readconf.c
+2 -1 1 file

OpenBSD — bin/rmdir rmdir.c

tame "stdio cpath". The cpath is for rmdir(). Tame bundles all the system
calls that create/destroy filesystem paths in the "cpath" request.
Delta File
+4 -1 bin/rmdir/rmdir.c
+4 -1 1 file

OpenBSD — bin/cp cp.c

We cannot tame if -R is specified, because mknod and mkfifo may be called.
But in other cases, we can use tame "stdio rpath wpath cpath fattr", including
for the historical -r option.
Delta File
+6 -1 bin/cp/cp.c
+6 -1 1 file

OpenBSD — sys/netinet ip_output.c

easy size for free(); ok mpi
Delta File
+4 -2 sys/netinet/ip_output.c
+4 -2 1 file

OpenBSD — sys/kern sysv_msg.c sysv_shm.c

easy free sizes; ok mpi
Delta File
+3 -3 sys/kern/sysv_msg.c
+2 -2 sys/kern/sysv_shm.c
+5 -5 2 files

OpenBSD — usr.bin/ssh sshd_config.5

UsePrivilegeSeparation defaults to sandbox now.

ok djm@
Delta File
+9 -4 usr.bin/ssh/sshd_config.5
+9 -4 1 file

OpenBSD — usr.bin/split split.c

tame "stdio rpath wpath cpath" to support use of freopen() with "w"
Delta File
+4 -1 usr.bin/split/split.c
+4 -1 1 file

OpenBSD — usr.bin/tftp main.c

tame "stdio inet rpath wpath cpath" supports all the functions of tftp.
Delta File
+4 -1 usr.bin/tftp/main.c
+4 -1 1 file

OpenBSD — usr.bin/users users.c

tame "stdio rpath".  no uid/user resolution happening here.
Delta File
+4 -1 usr.bin/users/users.c
+4 -1 1 file

OpenBSD — usr.bin/tee tee.c

tame "stdio wpath cpath", since tee creates & writes to a list of files
ok semarie
Delta File
+7 -1 usr.bin/tee/tee.c
+7 -1 1 file

OpenBSD — bin/mkdir mkdir.c

tame "stdio cpath rpath fattr", unless mkdir -m is passed a mode which
has setuid/setgid/sticky bits.
ok semarie
Delta File
+6 -1 bin/mkdir/mkdir.c
+6 -1 1 file

OpenBSD — usr.bin/make main.c

Oops, not quite ready for tame() here.  People need time to update
their kernels, before it starts using the new "exec" primitive.
HINT: everyone, update your kernels, tame is coming to make really soon.
Delta File
+1 -4 usr.bin/make/main.c
+1 -4 1 file

OpenBSD — usr.bin/make main.c

*** empty log message ***
Delta File
+4 -1 usr.bin/make/main.c
+4 -1 1 file

OpenBSD — usr.bin/look look.c

tame "stdio rpath", for the open with O_RDONLY.
ok semarie
Delta File
+4 -1 usr.bin/look/look.c
+4 -1 1 file

OpenBSD — usr.bin/paste paste.c

tame "stdio rpath", satisfies the fopen cases
ok semarie
Delta File
+4 -1 usr.bin/paste/paste.c
+4 -1 1 file

OpenBSD — usr.bin/readlink readlink.c

tame "stdio rpath", which covers readlink() and realpath()
ok semarie
Delta File
+4 -1 usr.bin/readlink/readlink.c
+4 -1 1 file

OpenBSD — usr.bin/logname logname.c

tame "stdio"; username information does not use getpw
Delta File
+4 -1 usr.bin/logname/logname.c
+4 -1 1 file

OpenBSD — usr.bin/lastcomm lastcomm.c

tame "stdio rpath getpw". getpw is for user_from_uid(), which is a libc
cache on top of the getpw* functions.
ok semarie, who didn't spot the getpw need :)
Delta File
+4 -1 usr.bin/lastcomm/lastcomm.c
+4 -1 1 file

OpenBSD — lib/libc/asr asr.c getaddrinfo_async.c

getaddrinfo_async() shouldn't unconditionally intialize the resolver
via _asr_use_resolver().  If the hint specifies for AI_NUMERICHOST,
create a transient lookup context which won't try to open /etc/reslov.conf
ok eric guenther

OpenBSD — lib/libc/asr getaddrinfo.c

getaddrinfo() should not res_init() unconditionally, but allow lower
layers to decide.  The request could be AI_NUMERICHOST.  [And the process
could be tame()-constrained to not open /etc/resolv.conf]
ok eric guenther
Delta File
+3 -2 lib/libc/asr/getaddrinfo.c
+3 -2 1 file

OpenBSD — sys/kern vfs_subr.c, sys/net pf_table.c

rn_inithead() offset argument is now specified in byte, missed in previous.
Delta File
+3 -3 sys/net/pf_table.c
+2 -2 sys/kern/vfs_subr.c
+5 -5 2 files

OpenBSD — sys/kern init_main.c, sys/net route.c route.h

Initialize the routing table before domains.

The routing table is not an optional component of the network stack
and initializing it inside the "routing domain" requires some ugly
introspection in the domain interface.

This put the rtable* layer at the same level of the if* level.  These
two subsystem are organized around the two global data structure used
in the network stack:

- the global &ifnet list, to be used in process context only, and
- the routing table which can be read in interrupt context.

This change makes the rtable_* layer domain-aware and extends the
"struct domain" such that INET, INET6 and MPLS can specify the length
of the binary key used in lookups.  This allows us to keep, or move
towards, AF-free route and rtable layers.

While here stop the madness and pass the size of the maximum key length
in *byte* to rn_inithead0().

ok claudio@, mikeb@
Delta File
+8 -148 sys/net/route.c
+5 -2 sys/kern/init_main.c
+3 -3 sys/netinet/in_proto.c
+3 -3 sys/sys/domain.h
+1 -5 sys/net/route.h
+3 -3 sys/netmpls/mpls_proto.c
+10 -11 4 files not shown
+33 -175 10 files

OpenBSD — gnu/gcc/gcc/cp parser.c

Correct handling of enum attributes with g++

gcc and g++ can currently have different ideas on the size of a
packed enum type:

enum __attribute__((packed)) foo { a = 0, b};

gcc: 1
g++: 4

enum foo { a = 0, b} __attribute__((packed));

gcc: 1
g++: 1

The first format is actually the preferred one according to the
g++ will accept the first format and silently not actually choose a
smaller size.

This was responsible for memory corruption with recent versions
of Mesa where c and c++ code share a header with a packed enum type.

The problem was reported in

    [5 lines not shown]
Delta File
+1 -0 gnu/gcc/gcc/cp/parser.c
+1 -0 1 file