sctplab / sctp-refimpl

Automatically exported from code.google.com/p/sctp-refimpl
BSD 2-Clause "Simplified" License
8 stars 2 forks source link

kernel crash when addip_enable=1 and default_auto_asconf=1 #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
tested in os: 
FreeBSD 10.1-RELEASE 
Linux odroid 3.8.13.30

openssh with sctp patch (from freebsd ports)
https://gist.github.com/proller/22597d546615eed04ec1

sysctl:
net.sctp.addip_enable=1                                                         

net.sctp.auth_enable=1                                                          

net.sctp.default_auto_asconf=1

use 2 adapters: lan + wifi 

make connection:
host_one: 
echo "Transport sctp" >> /usr/local/etc/sshd_config
/usr/local/sbin/sshd

host_two: ssh -z host_one

in ssh run something changing like 
ping 8.8.8.8 

now remove usb wifi adapter (or disable wifi switch on notebook)
here expecting available ssh connection 
but usually os in one host crashes

no problems (and simple disconnect) when sysctl not tuned

Original issue reported on code.google.com by pro...@gmail.com on 29 Apr 2015 at 6:00

GoogleCodeExporter commented 9 years ago
The sysctl's you mention are sysctl's from Linux. Can you be more specific, 
which kernel crashes? Linux or FreeBSD? Is the client or server running there?

Original comment by t00FC...@googlemail.com on 18 May 2015 at 9:27

GoogleCodeExporter commented 9 years ago
Most annoying:
freebsd 10.1 server (with all default options) crashes when connected via 2+ 
links ubuntu 15.04 (with tuned sysctl) client change link.

Original comment by pro...@gmail.com on 19 May 2015 at 12:23

GoogleCodeExporter commented 9 years ago
OK. Let me try to reproduce this.

Original comment by t00FC...@googlemail.com on 19 May 2015 at 6:45

GoogleCodeExporter commented 9 years ago
I can reproduce the issue.

Original comment by t00FC...@googlemail.com on 19 May 2015 at 7:52

GoogleCodeExporter commented 9 years ago
Here maybe other problem related to usb-wifi drivers

Original comment by pro...@gmail.com on 20 May 2015 at 1:04

Attachments:

GoogleCodeExporter commented 9 years ago
The problem I reproduced is an SCTP issue, reproduced with virtual machines. 
Not related to drivers.
I won't look into drivers, since I don't know anything about them.

Original comment by t00FC...@googlemail.com on 20 May 2015 at 4:08

GoogleCodeExporter commented 9 years ago
I fixed the issue in
https://code.google.com/p/sctp-refimpl/source/detail?r=9272
https://code.google.com/p/sctp-refimpl/source/detail?r=9274
and
https://svnweb.freebsd.org/changeset/base/284384
Will MFC it to stable/10 in 3 days.

It would be great if you could test it and let me know if it also fixes
the issue for you.

Best regards
Michael

Original comment by t00FC...@googlemail.com on 14 Jun 2015 at 5:54