Displaying 1 50 of 166,710 commits (0.017s)

OpenBSD — sys/arch/amd64/stand Makefile.inc, sys/arch/i386/stand Makefile.inc

After replacement alloca() with alloc(), out-of-heap happened when booting
on a large block size (32K) partition.  Increase the HEAP_LIMIT from
0x90000 to 0xA0000.

try this, deraadt

OpenBSD — usr.bin/signify signify.c

add some tame calls. we may need a bunch of permissions to create files
and manipulate the tty for readpassphrase, but once we've parsed options
and have some idea of what's going to happen next, we can reduce down
quite a bit more. particular use case of "signify | patch" is limited to
feeding garbage to patch.
Delta File
+27 -1 usr.bin/signify/signify.c
+27 -1 1 file

OpenBSD — bin/ksh history.c

stop trying to gift history files to the original owner. instead, don't
open history files that don't belong to us. probably much safer.
ok deraadt
Delta File
+6 -7 bin/ksh/history.c
+6 -7 1 file

OpenBSD — sys/uvm uvm_page.h uvm_pdaemon.c

Lock the page queues by turning uvm_lock_pageq() and uvm_unlock_pageq() into
mtx_enter() and mtx_leave() operations.  Not 100% this won't blow up but
there is only one way to find out, and we need this to make progress on
further unlocking uvm.

prodded by deraadt@

OpenBSD — bin/ksh history.c

little cleanup from Michael McConville, mostly related to stale comments.
Delta File
+12 -20 bin/ksh/history.c
+12 -20 1 file

OpenBSD — usr.sbin/installboot util.c i386_installboot.c

Refactor fileprefix() and filecopy() to use warn() instead of err()
to display error message, and to return error indications (NULL and
-1 respectively).  Use the error indications in write_efisystem()
to unwind in the face of more error conditions. In other cases just
exit(1) to emulation current behaviour.

ok deraadt@

OpenBSD — usr.bin/make main.c

tame "stdio rpath wpath cpath proc exec".  make is a shell, and appears
to only need these operations.  Take note that "exec" is a 2-day old
tame request, so do get a new kernel before you update or risk getting
Delta File
+4 -1 usr.bin/make/main.c
+4 -1 1 file

OpenBSD — sys/arch/amd64/stand/libsa memprobe.c, sys/arch/i386/stand/libsa memprobe.c

16 years after E801 memprobe was disabled, probably safe to delete it.
ok deraadt jung kettenis ratchov

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

Remove the sc_soft_req_cnt field because the number of tx requests is
already tracked in sc_sendq. Replace the sc_flush logic with a simple
Fetch-and-Add store that avoids an unnecessary IOBDMA transaction.

ok uebayasi@

OpenBSD — share/man/man9 mbuf.9

tweak previous;
Delta File
+4 -4 share/man/man9/mbuf.9
+4 -4 1 file

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

fix conditionals

ok deraadt@

OpenBSD — usr.sbin/portmap portmap.c

portmap's main process can be tame "stdio rpath inet proc"; proc is
for the callit interface needing to fork, and parent needing to wait.
that child can drop to "stdio rpath inet".

It is possible some libc/rpc codepath has not yet been figured out, but
commiting it is the best way to get it tested. Tested what I could myself,
but noone answered my call for testing...
Delta File
+8 -1 usr.sbin/portmap/portmap.c
+8 -1 1 file

OpenBSD — sys/net if_trunk.c

Make sure that when trunk_port_ioctl is called to set a new
lladdr the trunk port is already on the list.

OK mpi
Delta File
+5 -5 sys/net/if_trunk.c
+5 -5 1 file

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

Handle case where no hint is passed in.  Found as a crash of fdm by jturner@

OpenBSD — bin/rm rm.c

the -P flag overwrites files, so it needs tame "stdio rpath wpath cpath".
the remaining code paths can use tame "stdio rpath cpath". One again,
the "cpath" request says a path-based system call will be used to
"change" filesystem pathname layout, for instance any of O_CREAT, symlink,
rename, unlink...
Delta File
+9 -1 bin/rm/rm.c
+9 -1 1 file

OpenBSD — sys/arch/amd64/stand/libsa softraid.c, sys/arch/i386/stand/libsa softraid.c

Simpify some code by noting that DOSBBSECTOR is 0, so "if (n >
n+DOSBBSSECTOR) ..." is pointless, as is "n = n + DOSBBSECTOR;".

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