Displaying 1 50 of 181,047 commits (0.017s)

OpenBSD — sys/netinet6 raw_ip6.c

bluhm@ pointed out that addr->sin6_port should be forced to zero since
a port doesn't make sense for a raw socket.
I forgot to commit this hunk in the previous commit. Sorry about that.
Delta File
+7 -1 sys/netinet6/raw_ip6.c
+7 -1 1 file

OpenBSD — sys/dev/pv if_hvn.c hyperv.c

Channel API users should pick the bufring size

hvn(4) needs to be able to put up to 128 RNDIS data messages on the
channel ring each pointing up to 16 fragments in addition to a small
number of RNDIS control messages.  This simplifies accounting of
available TX descriptors in relation to the available space on the
channel ring and as a results prevents packet drops due to the ring
being full.

OpenBSD — sys/dev/usb if_umb.c, sys/net if_vxlan.c

Make kernel without INET6 compile again.
OK mikeb@
Delta File
+49 -11 sys/net/if_vxlan.c
+3 -1 sys/dev/usb/if_umb.c
+52 -12 2 files

OpenBSD — usr.sbin/tcpdump print-ofp.c

Add missing OpenBSD keyword in the first line.
Delta File
+1 -1 usr.sbin/tcpdump/print-ofp.c
+1 -1 1 file

OpenBSD — share/man/man9 cpumem_get.9 counters_alloc.9

minor tweaks;

OpenBSD — usr.sbin/makefs makefs.c

convert usage() to just spit out the normal options list,
instead of trying to list all the fs-specific stuff;

help/ok natano
Delta File
+7 -16 usr.sbin/makefs/makefs.c
+7 -16 1 file

OpenBSD — usr.bin/tmux alerts.c

Do not handle activity or silence alerts in the current window, reported
by jasper@.
Delta File
+10 -9 usr.bin/tmux/alerts.c
+10 -9 1 file

OpenBSD — sys/netinet ip_carp.c

Accept CARP advertisement packets whose destination is not for multicast.
When both "carppeer" and "real mac-address" are used at once and the
BACKUP is to take over the new MASTER, the present MASTER receives
such packets.  Found by and diff from nagasaka at iij.

ok henning bluhm
Delta File
+2 -2 sys/netinet/ip_carp.c
+2 -2 1 file

OpenBSD — sys/dev/acpi acpiec.c acpidev.h

Deduplicate the CRS parsing code and handle broken ACPI implementations.

This change was prompted by a report from Ilya Kaliman where acpiec(4)
failed to initialize on his Acer Aspire S7.

Further investigations showed that the machine had 4 instead of 2 resources
defined inside the EC device which is a violation of all existing ACPI

We now handle such machines by using the aml resource parser directly, which
lead to the removal of the existing one from acpiec.c, and ignoring extra
resources (although they are reported in the dmesg).

In the process I also done a couple of more style(9) fixes.

Suggested by and ok guenther@
Delta File
+64 -93 sys/dev/acpi/acpiec.c
+3 -1 sys/dev/acpi/acpidev.h
+67 -94 2 files

OpenBSD — sys/dev/acpi dsdt.c acpiprt.c

Add the resource index to aml_parse_resource() callback function.

This is needed by an upcoming acpiec commit that handles machines breaking
the current ACPI specifications.

Change suggested by and ok kettenis@, guenther@
Delta File
+7 -7 sys/dev/acpi/dsdt.c
+5 -5 sys/dev/acpi/acpiprt.c
+3 -3 sys/dev/acpi/chvgpio.c
+3 -3 sys/dev/acpi/tpm.c
+3 -3 sys/dev/acpi/bytgpio.c
+3 -3 sys/dev/acpi/acpi.c
+9 -8 3 files not shown
+33 -32 9 files

OpenBSD — sys/netinet6 raw_ip6.c

Fix bind(2)ing link local addresses to raw sockets by calling
in6_pcbaddrisavail() which does all the checking for us instead of
hand rolling half of it.
Input & OK bluhm@

bluhm@ also points out that this relaxes the check for valid addresses
a bit, deprecated addresses become valid for raw sockets. This should
be fine, it brings raw sockets in line with udp/tcp sockets and it
might be particularly interesting for debugging purposes.
Delta File
+4 -29 sys/netinet6/raw_ip6.c
+4 -29 1 file

OpenBSD — sys/dev/ic nvme.c nvmevar.h, sys/dev/pci nvme_pci.c

mask and unmask the interrupt source in an intx specific intr handler.

it seems devices using levelled intx interrupts need to explicitely ack
interrupts by masking and unmasking the source around the completion
ring handling. without this completions can be lost, which in turn
causes long (permanent?) stalls in the block layer under heavy write

ive experienced this problem with an intel nvme part that only has
intx and msix support. because we dont support msix yet we only
use intx on it. it appeared to lock up before this fix.

this has been tested on both that intel board and a samsung with msi.
this fix was based on work found in code by nonaka

OpenBSD — libexec/ld.so malloc.c

bring canaries for > page sized objects from libc to ld.so; ok guenther@
Delta File
+29 -12 libexec/ld.so/malloc.c
+29 -12 1 file

OpenBSD — usr.bin/ssh readconf.c

Fix logic in add_local_forward() that inverted a test when code was
refactored out into bind_permitted().  This broke ssh port forwarding
for non-priv ports as a non root user.

ok dtucker@ 'looks good' deraadt@
Delta File
+2 -2 usr.bin/ssh/readconf.c
+2 -2 1 file

OpenBSD — share/man/man9 counters_alloc.9

provide an example based on the mbuf code
Delta File
+63 -1 share/man/man9/counters_alloc.9
+63 -1 1 file

OpenBSD — share/man/man9 counters_alloc.9 cpumem_get.9

bluhm@ suggested pointing out that cpumem_malloc_ncpus and
counters_alloc_ncpus preserve the contents of memory used by the
boot cpu.

OpenBSD — share/man/man9 cpumem_get.9 counters_alloc.9

bluhm@ suggests that it is enough to say that the allocations will
be zeroed, and how they're zeroed is an implementation detail that
doesnt really help the reader.

OpenBSD — sys/arch/armv7/armv7 platform.c armv7_machdep.h, sys/arch/armv7/exynos exynos_machdep.c

Remove now unused disable_l2_if_needed interface.
ok kettenis@ patrick@

OpenBSD — share/man/man9 cpumem_get.9 counters_alloc.9

start documenting allocating per cpu data at boot time, and adding
memory for new cpus after theyve attached.

some tweaks from jmc@ who will probably find more things wrong after this.
im putting some suggestions in from bluhm@ shortly

OpenBSD — sys/kern subr_percpu.c uipc_mbuf.c, sys/sys percpu.h

avoid using realloc in the name of things that dont work like realloc.

cpumem_realloc and counters_realloc actually allocated new per cpu data
for new cpus, they didnt resize the existing allocation.

specifically, this renames cpumem_reallod to cpumem_malloc_ncpus, and
counters_realloc to counters_alloc_ncpus.

ok (and with some fixes by) bluhm@

OpenBSD — usr.sbin/dhcpd dhcp.c

Compare server-identifiers and reject packets only *after* applying
value specified in dhcpd.conf.

i.e. don't assume it is always the primary address of the interface
the packet arrived on.

Fixes issues with redundant dhcpd servers and CARP'd interfaces.

Issue reported and fix tested by Johan Huldtgren
Delta File
+14 -10 usr.sbin/dhcpd/dhcp.c
+14 -10 1 file

OpenBSD — sys/arch/alpha/conf Makefile.alpha, sys/arch/amd64/conf Makefile.amd64

make cleandir should skip the version file; ok otto millert

OpenBSD — usr.bin/mg echo.c

remove double semicolon

from Brian Callahan
Delta File
+2 -2 usr.bin/mg/echo.c
+2 -2 1 file

OpenBSD — regress/lib/libm/tgamma tgamma.c

using exact valus in floating point tests often does not work as expected,
use epsilon test
Delta File
+3 -2 regress/lib/libm/tgamma/tgamma.c
+3 -2 1 file

OpenBSD — usr.sbin/makefs makefs.8

document the options for msdos systems; help/ok natano
Delta File
+57 -5 usr.sbin/makefs/makefs.8
+57 -5 1 file

OpenBSD — usr.bin/column column.1

As suggested by martijn@, delete absurd EXAMPLES section and two
irrelevant .Xr links.  While here, add two .Xr links that are relevant.
OK martijn@ jmc@
Delta File
+4 -11 usr.bin/column/column.1
+4 -11 1 file

OpenBSD — bin/ls ls.1, usr.bin/colrm colrm.1

Unify wording for LC_CTYPE in ENVIRONMENT:
* Consistently use "character encoding locale" as suggested by stsp@.
* Resolve various gratuitious wording variations.
OK jmc@.
Delta File
+10 -7 bin/ls/ls.1
+8 -8 usr.bin/fmt/fmt.1
+7 -8 usr.bin/fold/fold.1
+9 -4 usr.bin/uniq/uniq.1
+5 -5 usr.bin/ul/ul.1
+5 -5 usr.bin/wc/wc.1
+21 -18 4 files not shown
+65 -55 10 files

OpenBSD — usr.bin/locale locale.1

Document the LC_* variables in more detail
and explain what is special about locales in OpenBSD.
Lots of feedback and OK jmc@.
Delta File
+189 -26 usr.bin/locale/locale.1
+189 -26 1 file

OpenBSD — sys/netinet6 frag6.c

When the IPv6 network stack receives an empty non atomic fragment,
just drop it.  It can never overlap existing content, there is no
ambiguous payload.  So save resources and do not try to insert it
into the queue.  This makes our IPv6 stack behave like pf fragment
OK deraadt@
Delta File
+7 -1 sys/netinet6/frag6.c
+7 -1 1 file

OpenBSD — usr.sbin/nsd configlexer.lex zlexer.lex

do not ignore -Wsign-compare; requested by deraadt@

OpenBSD — usr.sbin/nsd configure

Delta File
+47 -11 usr.sbin/nsd/configure
+47 -11 1 file

OpenBSD — usr.sbin/nsd xfrd.c query.c

Update to 4.1.13
Testing millert, brad and myself.
OK millert@
Delta File
+55 -7 usr.sbin/nsd/xfrd.c
+41 -15 usr.sbin/nsd/query.c
+46 -9 usr.sbin/nsd/edns.c
+37 -1 usr.sbin/nsd/namedb.h
+32 -4 usr.sbin/nsd/namedb.c
+20 -11 usr.sbin/nsd/nsd-mem.c
+166 -43 25 files not shown
+397 -90 31 files

OpenBSD — share/man/man4 mfii.4

Delta File
+2 -2 share/man/man4/mfii.4
+2 -2 1 file

OpenBSD — sys/dev/sun z8530ms.c

adapt to recent wsmouse changes by bru (oct23)
Delta File
+2 -1 sys/dev/sun/z8530ms.c
+2 -1 1 file

OpenBSD — sys/dev/pci mfii.c

Backout last 2 revisions.  Requested by deraadt.
Delta File
+3 -845 sys/dev/pci/mfii.c
+3 -845 1 file

OpenBSD — sys/kern uipc_mbuf.c kern_sysctl.c, sys/sys mbuf.h

move the mbstat structure to percpu counters

each cpus counters still have to be protected by splnet, but this
is better thana single set of counters protected by a global mutex.

ok bluhm@

OpenBSD — share/man/man4 mfii.4, sys/dev/pci mfii.c

Make mfii(4) bio(4) capable.

ok dlg
Delta File
+756 -2 sys/dev/pci/mfii.c
+6 -2 share/man/man4/mfii.4
+762 -4 2 files

OpenBSD — sys/kern subr_percpu.c, sys/sys percpu.h

non-MP vs MP codepaths were confusingly split between the .c and .h file.
Unify these by placing #ifdef MULTIPROCESSOR inside the functions, then
collapse further to reduce _KERNEL blocks
ok dlg
Delta File
+22 -42 sys/sys/percpu.h
+13 -1 sys/kern/subr_percpu.c
+35 -43 2 files

OpenBSD — sys/dev/pci mfii.c

Add scsi ioctl hook to do a special treatment for DIOC{G,S}CACHE which
is already done in mfi(4).

ok dlg
Delta File
+90 -2 sys/dev/pci/mfii.c
+90 -2 1 file

OpenBSD — sys/dev/pci mpii.c mpiireg.h

augment the scsi_probe handler so it tries to query the sas dev pg 0

sas dev pg0 tells us interesting things, like the devices sas addresses
and if it is ATAPI or not.
Delta File
+35 -5 sys/dev/pci/mpii.c
+8 -1 sys/dev/pci/mpiireg.h
+43 -6 2 files

OpenBSD — usr.bin/ssh servconf.c sshkey.c

Remove dead breaks, found via opencoverage.net.  ok deraadt@
Delta File
+1 -2 usr.bin/ssh/servconf.c
+1 -2 usr.bin/ssh/sshkey.c
+2 -4 2 files

OpenBSD — sys/dev/pckbc pms.c, sys/dev/wscons wsmouse.c wsmousevar.h

Improved parameter handling in wsmouse and new ioctls for reading and
setting parameter values.

ok matthieu@

OpenBSD — usr.bin/ssh misc.c serverloop.c

Factor out "can bind to low ports" check into its own function.  This will make
it easier for Portable to support platforms with permissions models other than
uid==0 (eg bz#2625).  ok djm@, "doesn't offend me too much" deraadt@.

OpenBSD — sys/arch/armv7/armv7 intr.c armv7var.h, sys/arch/armv7/stand/efiboot conf.c efiboot.c

Remove sunxi board IDs.

OpenBSD — sys/arch/armv7/armv7 platform.c, sys/arch/armv7/conf RAMDISK GENERIC

De-platformize sunxi.  This removes the board initialization code that sets up
SRAM for the EMAC.  Instead we rely on u-boot setting this up for us.

ok jsg@, patrick@

OpenBSD — regress/lib/libm/lgamma lgamma.c

fix lgamma test on i386 and use symbolic constant; ok martynas@
Delta File
+8 -5 regress/lib/libm/lgamma/lgamma.c
+8 -5 1 file

OpenBSD — usr.sbin/pstat pstat.c

For -d, if there is no modifier, don't go down the "longformat" path.
Fixes cases like "pstat -d x ticks" on armv7.

ok jca@, deraadt@
Delta File
+2 -2 usr.sbin/pstat/pstat.c
+2 -2 1 file

OpenBSD — usr.bin/make make.1

zap trailing whitespace;
Delta File
+4 -4 usr.bin/make/make.1
+4 -4 1 file

OpenBSD — sys/kern uipc_syscalls.c, usr.sbin/rebound rebound.c

unbreak by fixing obvious pastos