From: Neil Horman <nhorman@tuxdriver.com>
To: linux-sctp@vger.kernel.org
Subject: Re: Ooops with SCTP
Date: Sat, 05 Jul 2014 13:03:49 +0000 [thread overview]
Message-ID: <20140705130349.GA14710@localhost.localdomain> (raw)
In-Reply-To: <20140705001606.GA29369@obsidianresearch.com>
On Fri, Jul 04, 2014 at 06:16:06PM -0600, Jason Gunthorpe wrote:
> Hello All,
>
> I've recently started doing some work with SCTP and noticed a few
> bugs, the worst being a kernel oops.
>
> 1) Requesting COOKIE_ACK to be auth'd but not COOKIE_ECHO (or vice
> versa) caused an immediate panic in a IRQ context, 'go reboot your
> machine' with sctp traceback. I would need to setup in a VM to
> capture the oops text..
Do you have the panic backtrace?
> 2) SCTP_I_WANT_MAPPED_V4_ADDR returns a 0 AF_INET6 for all IPv4
> addresses, looking at the code I think the functionality is just
> not implemented?
No, its implemented, not sure why you would get a 0 address here.
> 3) Using auth on COOKIE_ECHO and COOKIE_ACK and combining that with
> peer-peer connection does not seem to work. If the peers collide
> the handshake never completes. Works if the peers do not collide.
>
> 1 0.000000 10.0.0.161 -> 10.0.0.177 SCTP 174 INIT
> 5 1.037194 10.0.0.177 -> 10.0.0.161 SCTP 146 INIT
> 6 1.037313 10.0.0.161 -> 10.0.0.177 SCTP 494 INIT_ACK
> 7 1.037649 10.0.0.177 -> 10.0.0.161 SCTP 402 AUTH COOKIE_ECHO
> 8 3.003226 10.0.0.161 -> 10.0.0.177 SCTP 174 INIT
> 9 3.003588 10.0.0.177 -> 10.0.0.161 SCTP 466 INIT_ACK
> 10 3.003641 10.0.0.161 -> 10.0.0.177 SCTP 402 AUTH COOKIE_ECHO
> 11 4.042864 10.0.0.177 -> 10.0.0.161 SCTP 402 AUTH COOKIE_ECHO
> 12 6.011268 10.0.0.161 -> 10.0.0.177 SCTP 402 AUTH COOKIE_ECHO
>
> I see in the RFCs there is a corner case here in how to choose the
> proper keying material.
>
> If there is someone out there interested in these things I can
> probably provide code to reproduce?
>
> Thanks,
> Jason
>
next prev parent reply other threads:[~2014-07-05 13:03 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-05 0:16 Ooops with SCTP Jason Gunthorpe
2014-07-05 13:03 ` Neil Horman [this message]
2014-07-05 16:39 ` Jason Gunthorpe
2014-07-06 12:21 ` Neil Horman
2014-07-07 4:48 ` Jason Gunthorpe
2014-07-07 12:44 ` Neil Horman
2014-07-07 17:45 ` Jason Gunthorpe
2014-07-07 18:22 ` Neil Horman
2014-07-07 19:39 ` Jason Gunthorpe
2014-07-09 15:50 ` Neil Horman
2014-07-09 16:28 ` Jason Gunthorpe
2014-07-09 18:27 ` Neil Horman
2014-07-09 18:51 ` Jason Gunthorpe
2014-07-10 11:33 ` Neil Horman
2014-07-10 19:58 ` Jason Gunthorpe
2014-07-10 20:14 ` Neil Horman
2014-07-21 11:15 ` Neil Horman
2014-07-23 17:22 ` Jason Gunthorpe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140705130349.GA14710@localhost.localdomain \
--to=nhorman@tuxdriver.com \
--cc=linux-sctp@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.