ipsec-related panic?

2018-09-03 Thread Joao Pedras
Greetings all.

I have been playing around with GRE tunnel over IPSec. A couple of times
I have seen either of the endpoints panic about 5GB into a large
transfer using ssh between 2 nodes which live within the networks
connected by this tunnel. These transfers aside, there isn't much going
on in this tunnel but with a lot of activity this event is recurring.

Both endpoints are running OpenBSD 6.3 with all current patches applied
by syspatch and the hardware used is PCEngines APU2
(http://pcengines.ch/apu2c4.htm). I also tried with plain 6.3 (ie. no
patches) which was the original state of these endpoints.

Here is the info which I have been able to gather. I can't show you
'ipsecctl -sa' at the moment since the node which just panic'ed needs
somebody on the other end to power cycle it.

I can pursue getting more info if needed.

Any thoughts?

Thanks a lot!

Joao

#  ifconfig


lo0: flags=8049 mtu 32768
index 5 priority 0 llprio 3
groups: lo
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
inet 127.0.0.1 netmask 0xff00
em0: flags=8843 mtu 1500
lladdr 00:0d:b9:48:b8:f4
index 1 priority 0 llprio 3
groups: egress
media: Ethernet autoselect (1000baseT full-duplex)
status: active
inet 77.xx.yy.214 netmask 0xffc0 broadcast 77.
em1: flags=8843 mtu 1500
lladdr 00:0d:b9:48:b8:f5
index 2 priority 0 llprio 3
media: Ethernet autoselect (1000baseT full-duplex)
status: active
inet 10.22.0.32 netmask 0xfffe
em2: flags=8802 mtu 1500
lladdr 00:0d:b9:48:b8:f6
index 3 priority 0 llprio 3
media: Ethernet autoselect (none)
status: no carrier
enc0: flags=41
index 4 priority 0 llprio 3
groups: enc
status: active
gre0: flags=9051 mtu 1476
index 6 priority 0 llprio 3
encap: vnetid none
groups: gre
tunnel: inet 77.xx.yy.214 -> 77.xx.yy.216 ttl 64 nodf
inet 172.17.0.1 --> 172.17.0.2 netmask 0x
lo1: flags=8049 mtu 32768
index 7 priority 0 llprio 3
groups: lo
inet 172.22.0.9 netmask 0x
pflog0: flags=141 mtu 33136
index 8 priority 0 llprio 3
groups: pflog

# dmesg
OpenBSD 6.3 (GENERIC.MP) #10: Wed Aug 22 16:42:31 CEST 2018

r...@syspatch-63-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4261076992 (4063MB)
avail mem = 4124860416 (3933MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xdffb7020 (7 entries)
bios0: vendor coreboot version "4.0.7" date 02/28/2017
bios0: PC Engines APU2
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S2 S3 S4 S5
acpi0: tables DSDT FACP SSDT APIC HEST SSDT SSDT HPET
acpi0: wakeup devices PWRB(S4) PBR4(S4) PBR5(S4) PBR6(S4) PBR7(S4)
PBR8(S4) UOH1(S3) UOH3(S3) UOH5(S3) XHC0(S4)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD GX-412TC SOC, 998.28 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,DBKP,PERFTSC,PCTRL3,ITSC,BMI1,XSAVEOPT
cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB
64b/line 16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
acpitimer0: recalibrated TSC frequency 998131167 Hz
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD GX-412TC SOC, 998.13 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,DBKP,PERFTSC,PCTRL3,ITSC,BMI1,XSAVEOPT
cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB
64b/line 16-way L2 cache
cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: AMD GX-412TC SOC, 998.13 MHz
cpu2:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,DBKP,PERFTSC,PCTRL3,ITSC,BMI1,XSAVEOPT
cpu2: 32KB 64

Re: [Soekris] Cold boot failures on Net5501?

2008-06-06 Thread Joao Pedras

Kevin,

I saw this once last week in the midst of trying some new units I 
purchased with 1.33 and then 1.33b.
The CF was a Silicon Drive 1Gb (I don't have the exact model with me 
now). I could only get the box to boot
by changing the CF setting in the BIOS to "secondary". There is 
something in the Soekris' FAQs which suggests

to try this out when you have problems with detecting the flash.

The problem you described happened once *after* this was done and it 
hasn't happened. I didn't really have time
to dig deeper into this. I still have two more units which I can try 
with next week.


It also was with OpenBSD 4.3. I have a bunch of 5501 with 4.2 but with 
BIOSes <1.33. Most likely 1.32.


I am not giving you much. :|

Regards,

Joao Pedras

K K wrote:

Is anybody else seeing cold boot failures on Soekris Net5501-70
with comBIOS v1.33b and OpenBSD 4.3?  I asked earlier on the
soekris-tech list, received no replies.


The console shows the following, and then hangs for about five seconds:

1 Seconds to automatic boot.   Press Ctrl-P for entering Monitor.
Using drive 0, partition 3.
Loading...
probing: pc0 com0 com1 pci mem[639K 511M a20=on]
disk: hd0+


The cursor sits at the '+' for several seconds, then a '*' is printed,
then error messages:

disk: hd0+*
  

OpenBSD/i386 BOOT 3.01
  

open(hd0a:/etc/boot.conf): Unknown error: code 102
boot>
booting hd0a:/bsd: open hd0a:/bsd: Unknown error: code 102
 failed(102). will try /bsd
boot>
booting hd0a:/bsd: open hd0a:/bsd: Invalid argument
 failed(22). will try /bsd
Turning timeout off.
boot>


If I now type 'machine diskinfo' at the prompt, I see the following:

boot> machine diskinfo
DiskBIOS#   TypeCylsHeads   SecsFlags   Checksum
hd0 0x80label   971 64  63  0x1 0x0
boot>

If I type 'reboot' at the prompt, then on the second try,
the disk line reads "disk: hd0+" (no *, no delay),
and in diskinfo the "Flags' entry is different, a checksum is shown,
and booting is ultimately successful!

Using drive 0, partition 3.
Loading...
probing: pc0 com0 com1 pci mem[639K 511M a20=on]
disk: hd0+
  

OpenBSD/i386 BOOT 3.01
  

boot> machine diskinfo
DiskBIOS#   TypeCylsHeads   SecsFlags   Checksum
hd0 0x80label   971 64  63  0x2 0xc7f794bc
boot>


Looking through the source code for 'boot', I think the '*' indicates
getdisklabel() failed?  I am not sure what the cause or fix would be.
Without upgrading comBIOS (to "ver. 1.33b 20080501"), the compactflash
card (Kingston 2GB) isn't detected at all.

Any ideas?


Thanks,

Kevin
___
Soekris-tech mailing list
[EMAIL PROTECTED]
http://lists.soekris.com/mailman/listinfo/soekris-tech