OpenBSD cvs log

created 2019-05-08T04:23:55Z
begin 2018-01-10T00:00:00Z
end 2018-01-11T00:00:00Z
path src/sys
commits 18

date 2018-01-10T00:05:06Z
author dlg
files src/sys/netmpls/mpls_input.c log diff annotate
message fix some poop that snuck into the last commit.

noticed by bijanebrahimi at riseup dot net and confirmed by anton@

date 2018-01-10T00:14:38Z
author dlg
files src/sys/net/if_ethersubr.c log diff annotate
message shuffle how the protocol family input is done in ether_input.

the main change is to defer chopping the ethernet header off until the
ether_type is looked at. the main advantage of this is pppoe doesn't have
to reattach the ether header anymore, which simplifies the code a lot.

ok mpi@ visa@ bluhm@

date 2018-01-10T01:43:01Z
author patrick
files src/sys/dev/pci/if_bwfm_pci.c log diff annotate
message Move line for readability.

date 2018-01-10T02:07:11Z
author patrick
files src/sys/dev/pci/if_bwfm_pci.c log diff annotate
message Don't reset the internal memory core on chips other than the Broadcom
43602, as it's only necessary on that specific chip.

Found the hard way by jcs@ on a MacBook 12-inch (2017)

date 2018-01-10T02:15:22Z
author patrick
files src/sys/dev/pci/if_bwfm_pci.c log diff annotate
message Add firmware names for the two revisions of the Broadcom 4350 as seen
on a MacBook 12-inch (2017).

Tested by and with jcs@

date 2018-01-10T09:00:40Z
author ratchov
files src/sys/dev/pci/azalia.c log diff annotate
message Make azalia_free_dmamem() void, as its return value is not used. From
Michael W. Bombardieri, thanks.

date 2018-01-10T09:03:26Z
author ratchov
files src/sys/dev/audio.c log diff annotate
message Remove assignement of sc->round to itself that makes no sense. From
Michael W. Bombardieri, thanks.

date 2018-01-10T10:25:52Z
author dlg
files src/sys/netinet/ip_carp.c log diff annotate
message simplify the input interface type check in carp_proto_input_if.

carp6_proto_input_if only handles packets "received" on real carp
interfaces, which the ethernet stack goes to a lot of trouble to
provide. since carp assumes ethernet, carp_proto_input_if can assume
the packets will come in right too.

ok mpi@

date 2018-01-10T13:57:17Z
author bluhm
files src/sys/net/pf.c log diff annotate
message Use pf_send_icmp() consistently in pf_route(). It sets the routing
domain and other mbuf flags. In pf_route6() the bad packet counter
and dup-to check were missing.
OK visa@

date 2018-01-10T15:44:41Z
author jcs
files src/sys/dev/pci/pcidevs log diff annotate
message add another Apple NVMe

date 2018-01-10T15:44:56Z
author jcs
files src/sys/dev/pci/pcidevs.h log diff annotate
src/sys/dev/pci/pcidevs_data.h log diff annotate
message regen

date 2018-01-10T15:45:46Z
author jcs
files src/sys/dev/ic/nvme.c log diff annotate
src/sys/dev/pci/nvme_pci.c log diff annotate
message Attach nvme to additional Apple NVMe device, limit targets to 1

ok dlg

date 2018-01-10T15:52:23Z
author jcs
files src/sys/dev/pci/pcidevs log diff annotate
message add broadcom bcm4350

date 2018-01-10T15:52:36Z
author jcs
files src/sys/dev/pci/pcidevs.h log diff annotate
src/sys/dev/pci/pcidevs_data.h log diff annotate
message regen

date 2018-01-10T17:54:26Z
author jcs
files src/sys/dev/pci/if_bwfm_pci.c log diff annotate
message Attach bwfm to the Broadcom 4350 found in the 2017 MacBook.

Easily handles >150Mbps transfers through a 5Ghz AP.

ok patrick

(Committed via bwfm0, of course)

date 2018-01-10T18:14:34Z
author bluhm
files src/sys/kern/uipc_socket.c log diff annotate
message Mark sosplice task mp safe, do not grab kernel lock for tcp output.
OK mpi@

date 2018-01-10T23:27:18Z
author kettenis
files src/sys/arch/arm64/arm64/cpufunc_asm.S log diff annotate
src/sys/arch/arm64/arm64/exception.S log diff annotate
src/sys/arch/arm64/arm64/machdep.c log diff annotate
src/sys/arch/arm64/arm64/pmap.c log diff annotate
src/sys/arch/arm64/arm64/trampoline.S log diff annotate
src/sys/arch/arm64/conf/files.arm64 log diff annotate
src/sys/arch/arm64/dev/efi.c log diff annotate
src/sys/arch/arm64/include/cpufunc.h log diff annotate
message Implement FUCKWIT for arm64; unmap the kernel almost entirely while userland
is running. This provides protection against meltown on cores that are
vilnerable (just Cortex-A75 so far) but also seems to be an essential to
protect against spectre-like attacks against the kernel.

This implementation only exposes a single treampoline page that does not
contain any kernel virtual addresses and also hides the real virtual address
of the exception vectors, which helps on cores vulnerable to "variant 3a"
(Cortex-A57, Cortex-A72). The implementation is inspired by the work done
by Will Deacon for Linux, but there are no knobs to turn it off. The
overhead is fairly limited: around 3-4% slowdown on Cortex-A57.

ok patrick@, deraadt@

date 2018-01-10T23:50:39Z
author dlg
files src/sys/net/if.c log diff annotate
src/sys/net/if_bridge.c log diff annotate
src/sys/net/if_var.h log diff annotate
src/sys/netinet/ip_carp.c log diff annotate
src/sys/netinet/ip_carp.h log diff annotate
message get rid of struct carp_if by moving the srpl into struct ifnet if_carp.

currently carp uses a struct carp_if to hold an srp list head, which
is accessed by both if_carp in struct ifnet, and via the if input
handlers list.

this gets rid of some indirection by making if_carp itself the list
head, rather than a pointer to the list head via a struct carp_if.
it also makes accessing the list consistent by only using if_carp
to get to it.

ok mpi@