OpenBSD cvs log

created 2019-02-12T07:05:20Z
begin 2019-01-24T00:00:00Z
end 2019-01-31T00:00:00Z
path src/sys
commits 50

date 2019-01-24T00:00:50Z
author deraadt
files src/sys/arch/amd64/amd64/locore.S log diff annotate
src/sys/arch/amd64/amd64/locore0.S log diff annotate
message gdt64 is only used by locore0 during the gut-wrenching 32-bit bring-up, so
move it to right place.

date 2019-01-24T00:16:15Z
author deraadt
files src/sys/arch/amd64/amd64/locore0.S log diff annotate
src/sys/arch/amd64/include/param.h log diff annotate
message the KERN*_{HI,LO} variables are not needed, and easier to calculate the
parts on the fly.

date 2019-01-24T00:21:45Z
author deraadt
files src/sys/arch/amd64/amd64/locore0.S log diff annotate
message 32 not 16

date 2019-01-24T00:57:14Z
author mlarkin
files src/sys/arch/amd64/amd64/locore0.S log diff annotate
message Correct a wrong comment about PTE skip size

This was likely left over from long ago when we loaded the kernel at a
lower PA. Noticed by deraadt@ and I as we were crawling through this
code recently. This may change again, but correcting it now just in case
this code stays around for a while.

date 2019-01-24T09:48:01Z
author kn
files src/sys/dev/pci/if_iwn.c log diff annotate
message Zap unused disable flag from iwn_stop()

This function parameter has been unused since introduction in 2007.

OK stsp

date 2019-01-24T13:19:19Z
author kettenis
files src/sys/arch/arm/arm/vfp.c log diff annotate
message Add .fpu directives in inline assembly to silence new compiler
warnings/errors about using VFP2 instructions. We use vfpv3 here
(which corresponds to vfpv3-d32) since that is the minimum requirement
for OpenBSD/armv7.

ok jsg@, patrick@

date 2019-01-25T00:19:26Z
author millert
files src/sys/dev/ksyms.c log diff annotate
src/sys/dev/pci/if_wi_pci.c log diff annotate
src/sys/kern/sysv_sem.c log diff annotate
src/sys/kern/sysv_shm.c log diff annotate
src/sys/lib/libkern/strlcat.c log diff annotate
src/sys/lib/libkern/strlcpy.c log diff annotate
src/sys/lib/libkern/strnlen.c log diff annotate
src/sys/sys/stdint.h log diff annotate
message I am retiring my old email address; replace it with my OpenBSD one.

date 2019-01-25T23:16:52Z
author jsg
files src/sys/arch/amd64/conf/RAMDISK_CD log diff annotate
src/sys/arch/arm64/conf/RAMDISK log diff annotate
message build ccp(4) on ramdisks
ok dlg@

date 2019-01-26T06:58:08Z
author dlg
files src/sys/netmpls/mpls_input.c log diff annotate
message check if the incoming ttl is <= 1 before decrementing it.

previously it would decrement the uint8_t ttl and then check if it
was less than one, which let ttl 0 off the wire wrap to 255 (which
is higher than 1).

date 2019-01-26T11:47:41Z
author visa
files src/sys/kern/subr_witness.c log diff annotate
message Tag the start of witness(4) output with prefix "witness:".
This eases data extraction in syzkaller.

Prompted by and OK anton@

date 2019-01-26T11:57:21Z
author mglocker
files src/sys/dev/pckbc/pms.c log diff annotate
message Wait a bit for the set mode command to complete for Synaptics devices to
make sure that the device doesn't get enabled before, which would make it
fail.
Fixes regular occurring 'not in sync yet, discard input' issue seen on
ThinkPad X1 Gen6.

ok deraadt@

date 2019-01-26T16:18:52Z
author visa
files src/sys/kern/subr_witness.c log diff annotate
message Use memset() instead of bzero().

date 2019-01-26T22:51:13Z
author landry
files src/sys/kern/tty_nmea.c log diff annotate
message Parse altitude and ground speed values from the GGA & RMC NMEA messages,
and provide them as nmea(4) distance & velocity sensors.

With my 'u-blox GNSS receiver' that gives:

hw.sensors.nmea0.distance0=335.600 m (Altitude), OK
hw.sensors.nmea0.velocity0=18.337 m/s (Ground speed), OK

ok deraadt@

date 2019-01-27T01:39:05Z
author dlg
files src/sys/netmpls/mpls_input.c log diff annotate
message forgot to commit the tweaks to mpls_input when mpw became an ethernet iface

the input mechanism for mpw is now that it inserts a tag into the
mpls table with RTF_LOCAL set. mpls_input falls through to calling
the interface output routine (mpw_output in this case) which looks
for that RTF_LOCAL and then calls mpw_input against that mbuf.

ok claudio@ who is keep to apply this semantic to mpe

date 2019-01-27T01:42:31Z
author dlg
files src/sys/net/if_mpw.c log diff annotate
message like ip headers, mpls tags need to be aligned to a 4 byte boundary

copy the semantics for guaranteeing this from egre. when sending
an encapsulated frame, prepend a whole new mbuf for the tags and
transport headers. when rxing a packet, check the alignment of the
ethernet payload and duplicate it on the right boundary if it isn't
already aligned.

date 2019-01-27T02:24:49Z
author dlg
files src/sys/net/if_mpw.c log diff annotate
src/sys/netmpls/mpls_input.c log diff annotate
message split off "local" input handling

this means the current mpls header will be passed along with the
mbuf for mpw to look at. right now this doesn't do anything, but
it will allow for implementation of RFC 6391 (flow aware transport)
and using the exp header for cos.

when mpe gets moved to adding an RTF_LOCAL route, this will be used
for cos and ttl handling.

date 2019-01-27T02:29:46Z
author dlg
files src/sys/net/if_mpe.c log diff annotate
message put underscores in function names like other drivers

mpestart, mpeioctl and mpeoutput are now mpe_start, mpe_ioctl, and
mpe_output respectively.

no functional change

date 2019-01-27T02:35:27Z
author dlg
files src/sys/net/if_mpe.c log diff annotate
message use sc as the name of the softc variable.

makes this more like other drivers to read.

date 2019-01-27T02:40:47Z
author dlg
files src/sys/net/if_mpw.c log diff annotate
message let ether_ioctl handle the mtu. set hardmtu to ETHER_MAX_HARDMTU_LEN.

as well as allowing for larger frames to be transported, it also
gets rid of the dependancy on mpe defines.

date 2019-01-27T02:41:56Z
author dlg
files src/sys/net/if_mpe.c log diff annotate
src/sys/netmpls/mpls.h log diff annotate
message move the mpe_softc definition and mpe macros into the mpe driver.

date 2019-01-27T04:20:59Z
author dlg
files src/sys/net/if_mpe.c log diff annotate
src/sys/netmpls/mpls.h log diff annotate
src/sys/netmpls/mpls_input.c log diff annotate
message change how packets are pushed into mpe(4).

mpe(4) adds itself ot the mpls rtable with RTF_LOCAL set, which
pushes the packet through mpe_output, which sees RTF_LOCAL can calls
mpe_input. this follows what mpw(4) does, and removes a special
case in mpls_input.

date 2019-01-27T04:54:06Z
author dlg
files src/sys/net/if_mpe.c log diff annotate
message rework mpe_input so it patches ipv4 cksum, and handles ipv6 too.

rather than check and recalculate the ipv4 checksum, we can update
the cksum incrementally. this is a bit faster, and means we'll see
more things on bpf.

also, peek at the first nibble so we can tell ipv6 from ipv4. i
consider them the same FEC, so either can be received now.

date 2019-01-27T05:13:04Z
author dlg
files src/sys/net/if_mpe.c log diff annotate
src/sys/netmpls/mpls.h log diff annotate
src/sys/netmpls/mpls_input.c log diff annotate
message use mpls_ip_adjttl and mpls_ip6_adjttl in mpe instead of rolling it again.

mpls_ip_adjttl now patches the checksum rather than check it and
calculate it again. both mpls_ip_adjttl and mpls_ip6_adjttl now
rely on the caller to check the sysctls for whether they should run
or not, which paves the way for making it configurable in mpe via
the tunnel ioctls.

date 2019-01-27T05:31:10Z
author dlg
files src/sys/net/if_mpe.c log diff annotate
message don't play with IFF_UP in strange places.

date 2019-01-27T10:34:45Z
author anton
files src/sys/kern/subr_witness.c log diff annotate
message consistency tweaks to panic format strings; ok visa@

date 2019-01-27T10:41:41Z
author anton
files src/sys/kern/subr_witness.c log diff annotate
message stop using capital letters in printf format strings; ok visa@

date 2019-01-27T11:59:30Z
author anton
files src/sys/dev/wscons/wsmux.c log diff annotate
message Validate the user-supplied device index given to WSMUXIO_ADD_DEVICE. The same
index is used to index an array which could cause a panic if it's negative.

ok deraadt@

Reported-by: syzbot+c5997876fea393e6b948@syzkaller.appspotmail.com

date 2019-01-27T16:24:00Z
author anton
files src/sys/dev/wscons/wsmux.c log diff annotate
message tweak errno in previous

date 2019-01-28T02:43:34Z
author dlg
files src/sys/net/if_mpe.c log diff annotate
message make a start at supporting ipv6 on mpe.

we still can't assign a v6 address to the interface, or handle icmp
error generation, but denis@ is working toward that.

date 2019-01-28T06:48:22Z
author dlg
files src/sys/net/if_mpe.c log diff annotate
message fix mpe_start by if_put()ting the right ifp

shuffle mpe_output while here.

date 2019-01-28T06:50:11Z
author dlg
files src/sys/net/if_mpe.c log diff annotate
message get rid of unused global

date 2019-01-28T10:29:35Z
author patrick
files src/sys/dev/fdt/imxuart.c log diff annotate
message Implement breaking into ddb on imxuart(4). When a break is detected,
a flag in the upper byte of the 2-byte-wide receive register is set.

ok kettenis@

date 2019-01-28T11:48:13Z
author mpi
files src/sys/kern/sched_bsd.c log diff annotate
message Stop accounting/updating priorities for Idle threads.

Idle threads are never placed on the runqueue so their priority doesn't
matter.

This fixes an accounting bug where top(1) would report a high CPU usage
for Idle threads of secondary CPUs right after booting. That's because
schedcpu() would give 100% CPU time to the Idle thread until "real"
threads get scheduled on the corresponding CPU.

Issue reported by bluhm@, ok visa@, kettenis@

date 2019-01-28T11:49:04Z
author mpi
files src/sys/kern/kern_clock.c log diff annotate
message Simplify by using `spc' since we already have it, no behavior change.

date 2019-01-29T01:39:30Z
author dlg
files src/sys/dev/pci/if_ixl.c log diff annotate
message don't need to print the base queue number.

ok jmatthew@

date 2019-01-29T01:41:29Z
author dlg
files src/sys/dev/pci/if_ixl.c log diff annotate
message get rid of some more debug printfs

suggested by jmatthew@

date 2019-01-29T02:43:05Z
author dlg
files src/sys/arch/sparc64/conf/GENERIC log diff annotate
message ixl works fine on sparc64

ok deraadt@ jmatthew@

date 2019-01-29T03:08:19Z
author dlg
files src/sys/net/if_mpw.c log diff annotate
message use a sockaddr_mpls when preparing an AF_MPLS sockaddr for mpls_output

date 2019-01-29T03:12:12Z
author dlg
files src/sys/net/if_mpw.c log diff annotate
message call the "parent" interface ifp0 to be consistent with other drivers.

date 2019-01-29T09:35:16Z
author kevlo
files src/sys/dev/ic/rtwn.c log diff annotate
message Accept control frames in monitor mode.
Based on a diff from Jesper Wallin.

ok jmatthew@, stsp@

date 2019-01-29T14:07:15Z
author visa
files src/sys/kern/kern_sysctl.c log diff annotate
src/sys/kern/subr_witness.c log diff annotate
src/sys/sys/sysctl.h log diff annotate
src/sys/sys/witness.h log diff annotate
message Add a dedicated sysctl(2) node for witness(4).

The new node contains the subsystem's main control variable,
kern.witness.watch. It is aliased by the old name, kern.witnesswatch.
The alias will be removed in the future.

OK anton@ mpi@

date 2019-01-29T17:47:35Z
author mpi
files src/sys/net/if_bridge.c log diff annotate
src/sys/net/if_bridge.h log diff annotate
message Plumbing to simplify upcoming locking.

- Do checks that do not access shared data structures first, they don't
need locking and save us some dances.

- Use the common !ETHER_IS_MULTICAST() idiom and move some code that won't
be executed if the bridge(4) is down.

ok bluhm@, visa@

date 2019-01-29T18:25:26Z
author mglocker
files src/sys/dev/ic/pckbc.c log diff annotate
message Discard unwanted mouse events from the keyboard input channel when we're
on the console.

Issue reported by deraadt@.

ok deraadt@, mpi@

date 2019-01-29T22:14:32Z
author patrick
files src/sys/arch/arm64/conf/RAMDISK log diff annotate
message Enable CRYPTO for arm64 RAMDISK so that we can use softraid crypto.

ok deraadt@

date 2019-01-29T23:36:35Z
author dlg
files src/sys/netmpls/mpls_input.c log diff annotate
message check the result of rtalloc with rtisvalid instead of a compare with NULL

based on advice seen from mpi@

date 2019-01-30T00:28:26Z
author dlg
files src/sys/net/if_mpe.c log diff annotate
message dont store the unit when creating the interface, it's never used

date 2019-01-30T01:01:01Z
author dlg
files src/sys/netmpls/mpls.h log diff annotate
message add some macros to help turn labels into shims and back again.

date 2019-01-30T01:09:36Z
author dlg
files src/sys/net/if_mpe.c log diff annotate
src/sys/net/if_mpw.c log diff annotate
message use MPLS_SHIM2LABEL and MPLS_LABEL2SHIM

date 2019-01-30T09:20:56Z
author stsp
files src/sys/dev/ic/bwfm.c log diff annotate
src/sys/dev/ic/bwfmreg.h log diff annotate
message Make bwfm(4) query firmware for RSSI levels and current transmit rate when
ifconfig asks for such information.
ok patrick@

date 2019-01-30T17:04:04Z
author anton
files src/sys/kern/vfs_lockf.c log diff annotate
src/sys/sys/lockf.h log diff annotate
message Replace hand rolled linked list with TAILQ. All made possible by the recent
introduction of struct lockf_state.

ok bluhm@ visa@