OpenBSD cvs log

created 2019-05-08T22:42:17Z
begin 2018-03-13T00:00:00Z
end 2018-03-14T00:00:00Z
path src/sys
commits 9

date 2018-03-13T01:31:48Z
author dlg
files src/sys/net/if_ethersubr.c log diff annotate
message on input, check the unicast address before the multicast handling.

if the mac address is not for the interface, it must be multicast
or broadcast. this is instead of if the packet is not
multicast/broadcast, it must be for the interface.

this allows ethernet interfaces to have multicast mac addresses
without having to special case it themselves. eg, carp load balancing
should become easier with this.

ok mpi@

date 2018-03-13T01:34:06Z
author dlg
files src/sys/kern/uipc_mbuf.c log diff annotate
message make m_pullup skip over empty mbufs when finding the payload alignment.

date 2018-03-13T05:10:40Z
author guenther
files src/sys/arch/amd64/amd64/cpu.c log diff annotate
message branches: 1.113.2;
We don't save+restore FS.base and GS.base on every context switch but
rather reset GS.base and restore FS.base to what was set via __tcb_set(),
so we can't really support the wr{fs,gs}base instructions by userspace.
Enabling CR4_FSGSBASE is therefore incorrect so stop doing so.

ok jsg@ krw@

date 2018-03-13T07:37:58Z
author guenther
files src/sys/arch/amd64/amd64/pmap.c log diff annotate
src/sys/arch/amd64/include/pmap.h log diff annotate
message pmap_map_ptes() always returns the same ptep and pdepp pointers,
so inline the assignments, pushing them through the callers into
several other functions. This shows that pmap_free_ptp() was doing
a duplicate set of pmap_tlb_shootpage() calls: delete the extras.

ok deraadt@ mlarkin@

date 2018-03-13T09:45:29Z
author jsg
files src/sys/dev/pci/drm/drm_dp_mst_topology.c log diff annotate
message drm/dp/mst: save vcpi with payloads

From Harry Wentland
c088f7bc3310bb57e0aaea297c7e2f467015d215 in linux 4.4.y/4.4.94
6cecdf7a161d2b909dc7c8979176bbc4f0669968 in mainline linux

date 2018-03-13T10:17:30Z
author jsg
files src/sys/dev/pci/drm/drm_edid.c log diff annotate
message drm/edid: Add 6 bpc quirk for CPT panel in Asus UX303LA

From Kai-Heng Feng
5b7ed414974320d7ebda71d18c85f505f3d959c0 in linux 4.4.y/4.4.119
06998a756a3865817b87a129a7e5d5bb66dc1ec3 in mainline linux

date 2018-03-13T13:51:05Z
author bluhm
files src/sys/arch/i386/i386/acpi_machdep.c log diff annotate
src/sys/arch/i386/i386/amd64errata.c log diff annotate
src/sys/arch/i386/i386/cpu.c log diff annotate
src/sys/arch/i386/i386/db_interface.c log diff annotate
src/sys/arch/i386/i386/est.c log diff annotate
src/sys/arch/i386/i386/gdt.c log diff annotate
src/sys/arch/i386/i386/genassym.cf log diff annotate
src/sys/arch/i386/i386/k1x-pstate.c log diff annotate
src/sys/arch/i386/i386/kvm86.c log diff annotate
src/sys/arch/i386/i386/kvm86call.S log diff annotate
src/sys/arch/i386/i386/lapic.c log diff annotate
src/sys/arch/i386/i386/locore.s log diff annotate
src/sys/arch/i386/i386/machdep.c log diff annotate
src/sys/arch/i386/i386/mptramp.s log diff annotate
src/sys/arch/i386/i386/pmap.c log diff annotate
src/sys/arch/i386/i386/powernow-k7.c log diff annotate
src/sys/arch/i386/i386/powernow-k8.c log diff annotate
src/sys/arch/i386/i386/vm_machdep.c log diff annotate
src/sys/arch/i386/i386/Attic/vmm.c log diff annotate
src/sys/arch/i386/include/cpu.h log diff annotate
src/sys/arch/i386/include/gdt.h log diff annotate
src/sys/arch/i386/include/pcb.h log diff annotate
src/sys/arch/i386/include/proc.h log diff annotate
src/sys/arch/i386/include/segments.h log diff annotate
src/sys/arch/i386/include/tss.h log diff annotate
src/sys/arch/i386/isa/npx.c log diff annotate
message Preparation for i386 Meltdown fix:

- provide a cpu_softc for cpu_attach() etc.
- replace per PCB TSS with per CPU TSS

The first change prepares for cpu_info being embedded in a
cpu_full_info. Therefore during autoconf/cpu_attach we hand down
a softc.

The second change removes the per PCB TSS. We now have one TSS per
CPU, thus in cpu_switchto() we only have to patch the ring 0 stack
pointer instead of loading a new TSS. This also allows for cleaning
up the GDT, so we only have a single slot for the TSS.

from hshoexer@; OK deraadt@

date 2018-03-13T13:58:03Z
author florian
files src/sys/netinet6/in6_ifattach.c log diff annotate
message Calculate RFC7217 link-local style addresses the same way as
slaacd(8).

RFC 7217 states (section 5, page 9):
| The Interface Identifier is finally obtained by taking as many
| bits from the RID value (computed in the previous step) as
| necessary, starting from the least significant bit.

Problem in slaacd pointed out by semarie@.

OK sthen, phessler

date 2018-03-13T16:42:22Z
author bluhm
files src/sys/netinet/if_ether.c log diff annotate
message branches: 1.234.2;
Mbuf data is used as struct ether_header before it has been made
continuous. The length of the hardware and protocol address are
provided in the network packet and have to be checked first. So
enforce that we only deal with internet over ethernet arp headers
with the address length filled correctly.
found by Maxime Villard; OK claudio@