Displaying 1 50 of 397,805 commits (0.084s)

OpenBSD — sys/net if_trunk.c if_bridge.c

Unify the check for up & running between all pseudo-drivers.
Delta File
+10 -12 sys/net/if_trunk.c
+2 -2 sys/net/if_bridge.c
+12 -14 2 files

OpenBSD — sys/net if_trunk.c if_vlan.c, sys/netinet ip_carp.c ip_ether.c

By design if_input_process() needs to hold a reference on the receiving
ifp in order to access its ifih handlers.

So get rid of if_get() in the various ifih handlers we know the ifp is
live at this point.

ok dlg@
Delta File
+4 -11 sys/netinet/ip_carp.c
+3 -11 sys/net/if_trunk.c
+3 -11 sys/net/if_vlan.c
+5 -8 sys/net/if_bridge.c
+2 -10 sys/net/if_ethersubr.c
+3 -3 sys/net/if.c
+7 -7 3 files not shown
+27 -61 9 files

OpenBSD — sys/arch/m88k/include mutex.h

copy MUTEX_ASSERT_LOCKED and MUTEX_ASSERT_UNLOCKED from alpha.

the previous asserts checked if the mutex was locked by any cpu or
not when they should have been checking if the current cpu has the
lock or not.

found by miod after i enabled pool_gc again.
ok miod@
Delta File
+5 -7 sys/arch/m88k/include/mutex.h
+5 -7 1 file

OpenBSD — share/man/man9 srp_enter.9

mikeb@ suggested making it clear that srp_enter and srp_leave pairs
have to be called in the same context.
Delta File
+6 -1 share/man/man9/srp_enter.9
+6 -1 1 file

OpenBSD — share/man/man9 Makefile

shuffle the list of files so tsleep.9 isnt in the middle of all the
mangpages starting with s.
Delta File
+4 -4 share/man/man9/Makefile
+4 -4 1 file

OpenBSD — share/man/man9 srp_enter.9 Makefile, sys/arch/alpha/include cpu.h

introduce srp, which according to the manpage i wrote is short for
"shared reference pointers".

srp allows concurrent access to a data structure by multiple cpus
while avoiding interlocking cpu opcodes. it manages its own reference
counts and the garbage collection of those data structure to avoid
use after frees.

internally srp is a twisted version of hazard pointers, which are
a relative of RCU.

jmatthew wrote the bulk of a hazard pointer implementation and
changed bpf to use it to allow mpsafe access to bpfilters. however,
at s2k15 we were trying to apply it to other data structures but
the memory overhead of every hazard pointer would have blown out
significantly in several uses cases. a bulk of our time at s2k15
was spent reworking hazard pointers into srp.

this diff adds the srp api and adds the necessary metadata to struct
cpuinfo on our MP architectures. srp on uniprocessor platforms has
alternate code that is optimised because it knows there'll be no
concurrent access to data by multiple cpus.

srp is made available to the system via param.h, so it should be
available everywhere in the kernel.

    [4 lines not shown]

OpenBSD — regress/usr.bin/ssh/unittests Makefile.inc

don't expect SSH v.1 in unittests

OpenBSD — usr.bin/ssh Makefile.inc

Compile-time disable SSH v.1 again
Delta File
+2 -2 usr.bin/ssh/Makefile.inc
+2 -2 1 file

OpenBSD — distrib/miniroot dot.profile

Use ksh style tests like in the rest of the installer scripts.

OK krw@ halex@
Delta File
+6 -6 distrib/miniroot/dot.profile
+6 -6 1 file

OpenBSD — usr.bin/units units.lib

update currency exchange rates;
Delta File
+37 -37 usr.bin/units/units.lib
+37 -37 1 file

OpenBSD — regress/lib/libssl/unit cipher_list.c

specify the array initializer value

noted by kinichiro from github

OpenBSD — usr.bin/ssh servconf.c

twiddle PermitRootLogin back
Delta File
+2 -2 usr.bin/ssh/servconf.c
+2 -2 1 file

OpenBSD — usr.bin/ssh servconf.c

twiddle; (this commit marks the openssh-6.9 release)
Delta File
+2 -2 usr.bin/ssh/servconf.c
+2 -2 1 file

OpenBSD — usr.bin/ssh clientloop.c channels.c

better refuse ForwardX11Trusted=no connections attempted after
ForwardX11Timeout expires; reported by Jann Horn

OpenBSD — usr.bin/ssh servconf.c

put back default PermitRootLogin=no
Delta File
+2 -2 usr.bin/ssh/servconf.c
+2 -2 1 file

OpenBSD — usr.bin/ssh version.h

openssh-6.9
Delta File
+2 -2 usr.bin/ssh/version.h
+2 -2 1 file

OpenBSD — usr.bin/ssh servconf.c

reset default PermitRootLogin to 'yes' (momentarily, for release)
Delta File
+2 -2 usr.bin/ssh/servconf.c
+2 -2 1 file

OpenBSD — usr.sbin/pkg_add/OpenBSD PkgAdd.pm

    cosmetic comma is not really necessary, better to have a raw list of packages. Pointed 
out by theo.

OpenBSD — usr.sbin/httpd patterns.7

new sentence, new line;
my apologies to semarie for not pointing this out when he asked for an ok...
Delta File
+5 -4 usr.sbin/httpd/patterns.7
+5 -4 1 file

OpenBSD — usr.sbin/syslogd syslogd.c

Sort the syslogd getopt string and switch cases according to the
man page.  This makes it easier to check wether both are consistent.
OK jung@
Delta File
+13 -13 usr.sbin/syslogd/syslogd.c
+13 -13 1 file

OpenBSD — sys/kern uipc_socket.c uipc_usrreq.c, sys/net raw_usrreq.c rtsock.c

Get rid of the undocumented & temporary* m_copy() macro added for
compatibility with 4.3BSD in September 1989.

*Pick your own definition for "temporary".

ok bluhm@, claudio@, dlg@

OpenBSD — sys/dev/usb if_upl.c, sys/net if_trunk.c trunklacp.c

Rename if_output() into if_enqueue() to avoid confusion with comments
talking about (*ifp->if_output)().

ok claudio@, dlg@
Delta File
+7 -11 sys/net/if_trunk.c
+4 -4 sys/net/trunklacp.c
+3 -3 sys/net/bridgestp.c
+2 -2 sys/net/if_spppsubr.c
+2 -2 sys/net/if_ethersubr.c
+2 -2 sys/net/if_gif.c
+22 -22 11 files not shown
+42 -46 17 files

OpenBSD — usr.sbin/syslogd syslogd.c syslogd.8

Add a -U command line switch for syslogd to specify an explict bind
address to receive UDP packets.  One advantge over -u and the *
sockets is that you can bind to localhost and divert the packets
with pf.  It is also possible to use a non standard port.
OK jung@ jmc@

OpenBSD — sys/net if_bridge.c

Move the specialized m_copym2() preserving the alignment of the payload
after the Ethernet header in its own function and use it in bridge_input().

This should fix alignment issues kettenis@ is seeing.

ok bluhm@, claudio@
Delta File
+44 -62 sys/net/if_bridge.c
+44 -62 1 file

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

Clean up a needless check in an if statement.

ok kettenis@
Delta File
+5 -8 sys/arch/amd64/amd64/pmap.c
+5 -8 1 file

OpenBSD — usr.sbin/httpd patterns.7

Add a small paragraph about some difference with Lua implementation.
Suggestion from Theo Buehler.

OK jmc@ reyk@
Delta File
+7 -3 usr.sbin/httpd/patterns.7
+7 -3 1 file

OpenBSD — sys/arch/octeon/octeon autoconf.c

Add "sd" to be specifiedit as "rootdev=" boot parameter.

ok jmatthew
Delta File
+5 -4 sys/arch/octeon/octeon/autoconf.c
+5 -4 1 file

OpenBSD — usr.bin/ssh channels.c

fatal() when a remote window update causes the window value to
overflow. Reported by Georg Wicherski, ok markus@
Delta File
+6 -3 usr.bin/ssh/channels.c
+6 -3 1 file

OpenBSD — usr.bin/ssh channels.c

Fix math error in remote window calculations that causes eventual stalls
for datagram channels. Reported by Georg Wicherski, ok markus@
Delta File
+2 -2 usr.bin/ssh/channels.c
+2 -2 1 file

OpenBSD — usr.bin/ssh sandbox-systrace.c

add getpid to sandbox, reachable by grace_alarm_handler

reported by Jakub Jelen; bz#2419
Delta File
+2 -1 usr.bin/ssh/sandbox-systrace.c
+2 -1 1 file

OpenBSD — regress/sys/kern/extent Makefile

Make this pass again on 32-bit platforms.
Delta File
+6 -3 regress/sys/kern/extent/Makefile
+6 -3 1 file

OpenBSD — distrib/sets/lists/base md.macppc md.socppc, distrib/sets/lists/comp md.macppc md.socppc

sync

OpenBSD — sys/dev/pci if_oce.c

Hide ETHER_ALIGN mbuf adjustment under "#ifdef __STRICT_ALIGNMENT"
for now to get jumbo frames working.  oce(4) will need the same
treatment as ix(4) when sparc64 support will be implemented.

Tested by Pedro Caetano <pedrocaetano at binaryflows ! com>, thanks!
Delta File
+3 -1 sys/dev/pci/if_oce.c
+3 -1 1 file

OpenBSD — sys/dev/usb xhci.c

Clear root hub's "port link state".

Allow to re-plug USB3 devices on the root hub withtout going through a
suspend/resume cycle (or rebooting) with Intel ICH7 xHCI as found the
hardway by sobrado@.

Debugging help from M.A.R. Osorio, tested by sobrado@
Delta File
+2 -1 sys/dev/usb/xhci.c
+2 -1 1 file

OpenBSD — sys/dev/usb uhub.c

Move the logic to handle a "connect status change" from uhub_explore()
into its own functions.

Needed for upcoming "port link state" change handling.

Tested by sobrado@
Delta File
+134 -124 sys/dev/usb/uhub.c
+134 -124 1 file

OpenBSD — bin/ps print.c ps.1

After removing the p_swtime from the kernel, ps always printed 0.0
as %cpu time.  Remove the calculation in ps that includes the process
lifetime.  Just print the p_pctcpu value, that was done before when
ps was called with -C.  Keep -C as a no-op for existing scripts.
OK millert@
Delta File
+2 -18 bin/ps/print.c
+4 -11 bin/ps/ps.1
+4 -6 bin/ps/ps.c
+2 -2 bin/ps/extern.h
+12 -37 4 files

OpenBSD — regress/usr.sbin/syslogd args-block-duplicate.pl args-block-prog-host.pl

Add test for blocks in syslog.conf constructed with the +host and
++host and +* keyword.

OpenBSD — usr.sbin/syslogd syslogd.c syslog.conf.5

Add the possiblity to store all syslog messages received from a
specific host into a single log file.  For programs this is already
implemented for !prog blocks.  So do the same with +host for
hostnames.
Based on a diff from Gregory Edigarov;  OK jung@ sthen@

OpenBSD — sys/net route.c

Never cache a RTF_GATEWAY route as next hop for a gateway route.

This prevents rtentry loops when rt->rt_gwroute points to rt leading
to an infamous "rtentry leak" panic, easily triggered by dhclient(8)
trying to remove a route after resuming a machine.

This bug is at least 20 years old!  4.4BSD-Lite2 had a fix for it in
its X.25 output routine but apparently it never made it into OpenBSD.

ok claudio@
Delta File
+11 -1 sys/net/route.c
+11 -1 1 file

OpenBSD — sys/dev/usb usb.h

Add missing definition of "usb_interface_assoc_descriptor" needed to for
a tool parsing device descriptors.

Use the same name as DragonFly/FreeBSD since they export it to userland.

From Ludovic Coues.
Delta File
+13 -1 sys/dev/usb/usb.h
+13 -1 1 file

OpenBSD — sys/net if.c if_trunk.c, sys/netinet ip_carp.c

count if_ibytes in if_input like we do for if_ipackets.

tweaks and ok mpi@

OpenBSD — sys/dev/pcmcia if_xe.c

dont double count if_ibytes here, it gets done by something inside
if_input.

from and ok mpi@
Delta File
+1 -2 sys/dev/pcmcia/if_xe.c
+1 -2 1 file

OpenBSD — regress/usr.sbin/syslogd args-selector.pl

Test that selectors, which specify facility and severity level for
each logfile, work as documented in syslog.conf(5).

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

fix the build on arm after the recent addition of -Wundef
ok doug@ deraadt@
Delta File
+2 -2 lib/libssl/src/crypto/arm_arch.h
+2 -2 1 file

OpenBSD — distrib/armv7/ramdisk install.md Makefile, etc/etc.armv7 Makefile.inc

enable vexpress

OpenBSD — sys/arch/arm/include atomic.h

Implement membar_* for armv7 with the dmb instruction.  The previous
sys/sys/atomic.h default of __sync_synchronize() resulted in "dmb sy",
a full system barrier for all memory operations.  With this change
membar_producer() switches to "dmb st" (StoreStore).

earlier version ok rapha@
Delta File
+15 -1 sys/arch/arm/include/atomic.h
+15 -1 1 file

OpenBSD — sys/arch/amd64/amd64 vector.S

Fix trap setup for double faults; error pointed out by Wei Liu a few months
ago and I forgot to commit this until now.

From Wei Liu <wei.liu2 at citrix.com>

ok mikeb@, guenther@, ratchov@
Delta File
+2 -2 sys/arch/amd64/amd64/vector.S
+2 -2 1 file

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

Remove some unused #defines

ok guenther@, millert@
Delta File
+1 -4 sys/arch/amd64/include/pmap.h
+1 -4 1 file

OpenBSD — regress/usr.sbin/syslogd args-client-udp.pl args-client-udp4.pl

Use fstat to check that the privsep parent of syslogd closes all
internet sockets also when invoked with -u.