Re: iflib/bridge kernel panic

2020-09-26 Thread S.N. Trigub

Hi!

There is some serios issue in kernel related to network interfaces.
See my message
"speedtest.net in multi connections mode causes the FreeBSD 13-CURRENT 
router to crash"

from 28 aug 2020.

I noticed that kernel every time goes into panic if users run on client 
computers in browser

speedtest.net in multi connections mode.
If my external network interface use VLAN this panic occurs when uplink has 
speed 100Mbits per second.
Without VLAN speedtest passes without any problems at 100Mbits channel but 
every time goes into panic

at 1Gbits outer channel.
During crash, the console screen goes out and the server (router) stops 
responding to the keyboard.

Can anyone do this test on their machine?

Sergei.


From: xt
Sent: Friday, September 25, 2020 8:46 PM
To: Sergey V. Dyatko ; Kristof Provost
Cc: FreeBSD Current
Subject: Re: iflib/bridge kernel panic

Sergey V. Dyatko wrote:

On Mon, 21 Sep 2020 09:57:40 +0200
"Kristof Provost"  wrote:


On 21 Sep 2020, at 2:52, Shawn Webb wrote:

 From latest HEAD on a Dell Precision 7550 laptop:


https://gist.github.com/lattera/a0803f31f58bcf8ead51ac1ebbc447e2

The last working boot environment was 14 Aug 2020. If I get some time to
bisect commits, I'll try to figure out the culprit.


Try https://reviews.freebsd.org/D26418

Best regards,
Kristof


I'm not sure, but doesn't this panic have the same root as mine?
Sorry, but I haven't text console and can post only screenshot[s]
  from IP-KVM
https://gyazo.com/fee41c5267e9fc543d43901e498b7c94

rc.conf have something like:
clonned_interfaces="lagg0 vlan101"
ifconfig_lagg0="laggproto lacp laggport em0 laggport em1 x.x.x.x/mask"
ifconfig_vlan101="vlan 101 vlandev lagg0 192.168.1.29/24"

without VLAN part all works fine.
Installed from FreeBSD-13.0-CURRENT-amd64-20200924-3c514403bef-disc1.iso


Yes, same panic.
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org" 


___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


speedtest.net in multi connections mode causes the FreeBSD 13-CURRENT router to crash

2020-08-28 Thread S.N. Trigub

Hi!

I run FreeBSD 13.0-CURRENT #0 r363772 as router in small office with two 
network interface: sk0 and sk1.
sk0 connected to 2 providers (main and backup) via VLAN and natd, sk1 
connected to office network via VLAN.

I had to use VLAN due to cabling issues.

As soon as the user runs the speedtest.net in browser on any client computer 
in network
FreeBSD router goes into panic mode and automatically reboot during multi 
connection upload test.

In single connections mode of speedtest.net all is fine.

Error is : Fatal trap 12: page fault while in kernel mode.

In my opinion the error is caused by multiple openings of outgoing 
connections on router in a short period of time.
This is not a hardware error. I tested it on three different motherboards 
with different kernel versions and diffenent amount of RAM (8GB DDR2 and 16, 
24, 32GB DDR3).
Maybe this is somehow due to the use of VLAN, or network card driver 
problem...
I noticed this problem about six months ago when I switched from FreeBSD 
12-Current to FreeBSD 13-Current.
Since then I have been updating the kernel about once a week, but the error 
still present.


I read on the some artictes in Internet that this can happen when tcp 
extensions are enabled. I disabled tcp_extensons in rc.conf, and
set some sysctls params as described in Internet-articles, but it didn't 
affect anything.

The same error sometimes occurs when clients are talking on Skype.

Could you help me? Any idea is appreciated!

Thank you.
Sergei.

My network 
cards:


skc0:  port 0xc100-0xc1ff mem 
0xf7b44000-0xf7b47fff irq 16 at device 1.0 on pci6

skc0: DGE-530T Gigabit Ethernet Adapter rev. (0x9)
sk0:  on skc0
sk0: Ethernet address: 00:15:e9:b8:c3:53
miibus1:  on sk0
e1000phy0:  PHY 0 on miibus1
e1000phy0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 
1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto


skc1:  port 0xc000-0xc0ff mem 
0xf7b4-0xf7b43fff irq 17 at device 2.0 on pci6

skc1: DGE-530T Gigabit Ethernet Adapter rev. (0x9)
sk1:  on skc1
sk1: Ethernet address: 00:19:5b:8a:97:a7
miibus2:  on sk1
e1000phy1:  PHY 0 on miibus2
e1000phy1:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 
1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto



 My 
natd.conf:


instance default
interface vlan2
port 8668
use_sockets yes
same_ports yes
#
instance vlan3
interface vlan3
port 8669
use_sockets yes
same_ports yes
#
globalport 8670
#
#

= My 
rc.conf:=


defaultrouter="109.251.97.65"
tcp_extensions="NO"# Set to NO to turn off RFC1323 extensions.
#
ifconfig_sk0="up -rxcsum -txcsum"
ifconfig_sk1="up -rxcsum -txcsum"
ipv6_network_interfaces="none"  # Default is auto
ipv6_activate_all_interfaces="NO"   # this is the default
ip6addrctl_enable="NO"  # New way to disable IPv6 support
ip6addrctl_policy="ipv4_prefer" # Use IPv4 instead of IPv6
cloned_interfaces="vlan2 vlan3 vlan5"
#
# vlan2 – provider 1 as main
# vlan3 -- provider 2 as backup
# vlan5 – office network
#
ifconfig_vlan2="inet 109.251.97.75 netmask 255.255.255.224   vlan 2 vlandev 
sk0"
ifconfig_vlan3="inet 95.164.8.37 netmask 255.255.252.0   vlan 3 vlandev 
sk0"
ifconfig_vlan5="inet 10.10.10.177  netmask 255.255.255.240 vlan 5 vlandev 
sk1"

#
gateway_enable="YES"
#
zfs_enable="YES"  # Set to YES to automatically mount ZFS file systems
natd_enable="YES"# enables NAT
natd_flags="-f /etc/natd.conf"


== My 
sysctl.conf:===


debug.debugger_on_panic=0
kern.coredump=0
kern.corefile=/dev/null
net.inet.ip.fw.one_pass=1
net.inet.tcp.blackhole=2
net.inet.udp.blackhole=1
net.inet.tcp.recvspace=1048576
net.inet.tcp.sendspace=524288
net.inet.tcp.recvbuf_max=4194304
net.inet.tcp.sendbuf_inc=65535
net.inet.tcp.msl=5000
net.inet.ip.fw.dyn_buckets=65536
net.inet.ip.fw.dyn_max=65536
net.inet.ip.fw.dyn_ack_lifetime=120
net.inet.ip.fw.dyn_syn_lifetime=10
net.inet.ip.fw.dyn_fin_lifetime=2
net.inet.ip.fw.dyn_short_lifetime=10


= My 
loader.conf:==


zfs_load="YES"
vfs.root.mountfrom="zfs:zpoolasr"
vfs.zfs.prefetch_disable=0
accf_data_load="YES"# Wait for data accept filter
accf_dns_load="YES"# Wait for full DNS request accept filter
accf_http_load="YES"# Wait for full HTTP request accept filter
coretemp_load="YES"
hw.vga.textmode=0


= My kernel 
config:==


include GENERIC
#
ident  HOME64
#
nooptions  KDB   # Enable kernel debugger support.
nooptions  KDB_TRACE  # Print a stack trace for

Promise SuperTrak EX8350 RAID driver for FreeBSD-Current

2010-02-18 Thread S.N. Trigub

Hi!

Could anyone help me? How bring this card to work in FreeBSD-Current?


Sergei.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"