Re: Crash if net.pipex enabled and traffic on OpenVPN network

2017-10-03 Thread YASUOKA Masahiko
Hi,

On Thu, 28 Sep 2017 14:38:27 +0200
Daniel Stocker  wrote:
>>> Kernel panic if the pipex is activated in the kernel and traffic is
>>> sent
>>> or received on a tun interface of an OpenVPN network. The machine is a
>>> PC Engine APU 2c4.
>> Can you try -current?
>> There have been a couple of fixes applied to pipex since 6.1.
> 
> haven't been able to reproduce the crash, neither on 6.1 than on
> current.
> 
> - apu2
> - openvpn installed
> - basic configuration applied
> - pipex enabled
> - ping tunX

Yes, it must have been fixed at May 27.

  https://marc.info/?l=openbsd-cvs=149588875810667=2

--yasuoka



Re: Crash if net.pipex enabled and traffic on OpenVPN network

2017-09-28 Thread Daniel Stocker
Kernel panic if the pipex is activated in the kernel and traffic is 
sent

or received on a tun interface of an OpenVPN network. The machine is a
PC Engine APU 2c4.


Can you try -current?
There have been a couple of fixes applied to pipex since 6.1.


haven't been able to reproduce the crash, neither on 6.1 than on 
current.


- apu2
- openvpn installed
- basic configuration applied
- pipex enabled
- ping tunX

regards
daniel



Re: Crash if net.pipex enabled and traffic on OpenVPN network

2017-09-28 Thread Stefan Sperling
On Wed, Sep 27, 2017 at 10:32:51PM +0200, Sébastien Douche wrote:
> >Synopsis: Crash if net.pipex enabled and traffic on OpenVPN network
> >Category: amd64
> >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:
> Kernel panic if the pipex is activated in the kernel and traffic is sent
> or received on a tun interface of an OpenVPN network. The machine is a
> PC Engine APU 2c4.

Can you try -current?
There have been a couple of fixes applied to pipex since 6.1.



Crash if net.pipex enabled and traffic on OpenVPN network

2017-09-27 Thread Sébastien Douche
>Synopsis: Crash if net.pipex enabled and traffic on OpenVPN network
>Category: amd64
>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:
Kernel panic if the pipex is activated in the kernel and traffic is sent
or received on a tun interface of an OpenVPN network. The machine is a
PC Engine APU 2c4.

>How-To-Repeat:
1. Install an OpenBSD 6.1 amd64 from a CD.

2. Install the OpenVPN 2.4.1 package.
pkg_add openvpn

3. Configure the OpenVPN server.
Tested many configurations, a basic one is sufficient.

4. Launch the OpenVPN server.

5. Activate pipex.
sysctl net.pipex.enable=1

7. Ping a vpn interface.

6. Crash
ddb{1}> trace
rn_addmask() at rn_addmask+0x133
rn_lookup() at rn_lookup+0x5a
pipex_lookup_by_ip_address() at pipex_lookup_by_ip_address+0x66
pipex_output() at pipex_output+0x9c
tun_output() at tun_output+0xeb
ip_output() at ip_output+0x7e3
ip_send_dispatch() at ip_send_dispatch+0x70
taskq_thread() at taskq_thread+0x6c
end trace frame: 0x0, count: -8

>Fix:
Work around : sysctl net.pipex.enable=0

dmesg:
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
real mem = 4261076992 (4063MB)
avail mem = 4127260672 (3936MB)
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.27 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,ITSC,BMI1
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
cpu0: TSC frequency 998274720 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.22 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,ITSC,BMI1
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,ITSC,BMI1
cpu2: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB
64b/line 16-way L2 cache
cpu2: ITLB 32 4KB entries fully associative, 8 4MB entries fully
associative
cpu2: DTLB 40 4KB entries fully associative, 8 4MB entries fully
associative
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: AMD GX-412TC SOC, 998.13 MHz
cpu3:
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,ITSC,BMI1
cpu3: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB
64b/line 16-way L2 cache
cpu3: ITLB 32 4KB entries fully associative, 8 4MB entries fully
associative
cpu3: DTLB 40 4KB entries fully associative, 8 4MB entries fully
associative
cpu3: smt 0, core 3, package 0
ioapic0 at mainbus0: apid 4 pa 0xfec0, version 21, 24 pins
ioapic1 at mainbus0: apid 5 pa 0xfec2, version 21, 32 pins
acpihpet0 at acpi0: 14318180 Hz
acpiprt0 at acpi0: bus 0