v6 autoconf broken in bsd.rd

2017-07-21 Thread Christian Weisgerber
i386 snapshot, Build date: 1500601432 - Fri Jul 21 01:43:52 UTC 2017

I tried to run an install with...

--->
IPv6 address for em0? (or 'autoconf' or 'none') [none] autoconf
...
DNS nameservers? (IP address list or 'none') [none] fddd:28ee:243::1
<---

... but there is something wrong with SLAAC.  Here's what's advertised
on the network:

--->
Router Advertisement from fe80::20d:b9ff:fe41:568%vlan0
received: 2017-07-21 17:16:26.496289572; 152.154965150s ago
Cur Hop Limit:  64, M: 0, O: 0, Router Lifetime:  1800s
Default Router Preference: Medium
Reachable Time: 0ms, Retrans Timer: 0ms
prefix: 2003:e5:cbc0:a01::/64
On-link: 1, Autonomous address-configuration: 1
vltime:   2592000, pltime:604800
prefix: fddd:28ee:243::/64
On-link: 1, Autonomous address-configuration: 1
vltime:   2592000, pltime:604800
<---

After network configuration, the installer ends up with this:

--->
# ifconfig egress
em0: flags=208843 mtu 1500
lladdr 00:0d:b9:41:06:a4
llprio 3
groups: netboot egress
media: Ethernet autoselect (1000baseT full-duplex,rxpause,txpause)
status: active
inet 172.16.0.2 netmask 0xff00 broadcast 172.16.0.255
inet6 fe80::20d:b9ff:fe41:6a4%em0 prefixlen 64 scopeid 0x1
inet6 fddd:28ee:243:0:384d:91e7:fefc:b697 prefixlen 64 autoconf 
autoconfprivacy pltime 85665 vltime 604477
<---

This is missing a non-privacy address for one prefix, and any addresses
for the other prefix.  The routing table also looks suspicious:

--->
# route -n show -inet6   
Routing tables

Internet6:
DestinationGatewayFlags   Refs  
Use   Mtu  Prio Iface
defaultfe80::20d:b9ff:fe41:568%em0UGS0  
 63 -56 em0  
::1::1UHPl   0  
  0 32768 1 lo0  
fddd:28ee:243:0:384d:91e7:fefc:b697 00:0d:b9:41:06:a4  UHLPl  0 
  75 - 1 em0  
fe80::%em0/64  fe80::20d:b9ff:fe41:6a4%em0UCPn   3  
  3 - 4 em0  
fe80::20d:b9ff:fe41:568%em000:0d:b9:41:05:68  UHLcP  0  
183 - 3 em0  
fe80::20d:b9ff:fe41:568%em0link#1 UHLchP 1  
  3 - 3 em0  
fe80::20d:b9ff:fe41:6a4%em000:0d:b9:41:06:a4  UHLPl  0  
 89 - 1 em0  
fe80::fab1:56ff:feb6:dcc8%em0  f8:b1:56:b6:dc:c8  UHLcP  0  
 13 - 3 em0  
fe80::1%lo0fe80::1%lo0UHPl   0  
  0 32768 1 lo0  
ff01::%em0/32  fe80::20d:b9ff:fe41:6a4%em0Um 0  
  2 - 4 em0  
ff01::%lo0/32  ::1Um 0  
  1 32768 4 lo0  
ff02::%em0/32  fe80::20d:b9ff:fe41:6a4%em0Um 0  
 77 - 4 em0  
ff02::%lo0/32  ::1Um 0  
  1 32768 4 lo0  
<---

There is a default route, but no routes for the advertised prefixes.

-- 
Christian "naddy" Weisgerber  na...@mips.inka.de



Re: ifconfig carpX a.b.c.d -> arpresolve: route contains no arp information

2017-07-21 Thread Remi Locherer

On 2017-07-10 17:52, Remi Locherer wrote:
Synopsis:	ifconfig carpX a.b.c.d -> arpresolve: route contains no arp 
information

Category:   kernel
Environment:

System  : OpenBSD 6.1
	Details : OpenBSD 6.1 (GENERIC.MP) #20: Sat Apr  1 13:45:56 MDT 
2017
			 
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP


Architecture: OpenBSD.amd64
Machine : amd64


Description:

After reconfiguring an existing carp interface with the same ip the
gateway stops forwarding traffic (forwarding to directly connected
hosts still works).
In /var/log/messages this can be found:

Jul 10 12:54:27 gw1 /bsd: arpresolve: 10.0.20.10: route contains no
arp information



How-To-Repeat:


[...]


I can reproduce this problem with:
- OpenBSD 6.1 -release
- OpenBSD 6.1 -stable (all patches applied with syspatch)
- OpenBSD 6.1 -current (7.7.2017)

With OpenBSD 6.0 3 pings are lost after executing ifconfig and then 
packages

are forwarded again as expected.




Fix:

unknown. Workaround: route change 10.0.200.0/24 10.0.20.10



Somebody suggested in a private mail to use /32 masks for carp 
interfaces.

This fix/workaround helps indeed!



Re: x250 random boot xhci panics

2017-07-21 Thread Paul Irofti
On Fri, Jul 21, 2017 at 10:45:01AM +0300, p...@irofti.net wrote:
> >Synopsis:Booting OpenBSD with external keyboard randomly panics in xhci
> >Category:kernel
> >Environment:
>   System  : OpenBSD 6.1
>   Details : OpenBSD 6.1-current (GENERIC.MP) #6: Fri Jul 21 10:29:44 
> EEST 2017
>
> bulib...@sci.irofti.net:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> 
>   Architecture: OpenBSD.amd64
>   Machine : amd64
> >Description:
>   Not that often my laptop panics on boot when using an external keyboard
>   and mouse that are hooked up via an USB hub provided by the external
>   monitor.

Forgot to post the trace and ps: http://irofti.net/tmp/x250/xhci/



x250 random boot xhci panics

2017-07-21 Thread paul
>Synopsis:  Booting OpenBSD with external keyboard randomly panics in xhci
>Category:  kernel
>Environment:
System  : OpenBSD 6.1
Details : OpenBSD 6.1-current (GENERIC.MP) #6: Fri Jul 21 10:29:44 
EEST 2017
 
bulib...@sci.irofti.net:/usr/src/sys/arch/amd64/compile/GENERIC.MP

Architecture: OpenBSD.amd64
Machine : amd64
>Description:
Not that often my laptop panics on boot when using an external keyboard
and mouse that are hooked up via an USB hub provided by the external
monitor.

It is rare, but anoying.
>How-To-Repeat:
I do not have a way to reproduce this except booting multiple times
and waiting for it to happen.
>Fix:
None yet.


dmesg:
OpenBSD 6.1-current (GENERIC.MP) #6: Fri Jul 21 10:29:44 EEST 2017
bulib...@sci.irofti.net:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 3959955456 (3776MB)
avail mem = 3834150912 (3656MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xccbfc000 (65 entries)
bios0: vendor LENOVO version "N10ET36W (1.15 )" date 06/19/2015
bios0: LENOVO 20CLS7AH00
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP ASF! HPET ECDT APIC MCFG SSDT SSDT SSDT SSDT SSDT SSDT 
SSDT SSDT SSDT PCCT SSDT UEFI MSDM BATB FPDT SSDT SSDT TPM2 UEFI DMAR
acpi0: wakeup devices LID_(S4) SLPB(S3) IGBE(S4) EXP2(S4) XHCI(S3) EHC1(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpiec0 at acpi0
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz, 2195.22 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,RDSEED,ADX,SMAP,PT,SENSOR,ARAT
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: TSC frequency 2195219200 Hz
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz, 2194.92 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,RDSEED,ADX,SMAP,PT,SENSOR,ARAT
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 1, core 0, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz, 2194.92 MHz
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,RDSEED,ADX,SMAP,PT,SENSOR,ARAT
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 1, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz, 2194.92 MHz
cpu3: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,RDSEED,ADX,SMAP,PT,SENSOR,ARAT
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 40 pins
acpimcfg0 at acpi0 addr 0xf800, bus 0-63
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG_)
acpiprt2 at acpi0: bus 2 (EXP1)
acpiprt3 at acpi0: bus 3 (EXP2)
acpiprt4 at acpi0: bus -1 (EXP3)
acpicpu0 at acpi0: C3(200@233 mwait.1@0x40), C2(200@148 mwait.1@0x33), 
C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C3(200@233 mwait.1@0x40), C2(200@148 mwait.1@0x33), 
C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0: C3(200@233 mwait.1@0x40), C2(200@148 mwait.1@0x33), 
C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0: C3(200@233 mwait.1@0x40), C2(200@148 mwait.1@0x33), 
C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: PUBS, resource for XHCI, EHC1
acpipwrres1 at acpi0: NVP3, resource for PEG_
acpipwrres2 at acpi0: NVP2, resource for PEG_
acpitz0 at acpi0: critical temperature is 128 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
"LEN