From: Vlad Yasevich <vladislav.yasevich@hp.com>
To: linux-sctp@vger.kernel.org
Subject: Re: BUG in sctp crashes the system
Date: Thu, 06 Nov 2008 13:48:45 +0000 [thread overview]
Message-ID: <4912F5BD.5040509@hp.com> (raw)
In-Reply-To: <200811061205.57403.mhocko@suse.cz>
Michal Hocko wrote:
> Hi,
> we are experiencing BUG and hang conditions with simple echo client-server
> SCTP application. It looks like a race condition which is rather hard to
> trigger.
>
> BUG traces come usually with sctp code in the code paths (see traces attached)
> but sometimes the machine simply hangs without any traces at all. It
> obviously depends on the kernel configuration and HW (different machines
> comes with different traces).
>
> Initial report of this issue was against SLES10SP2 (2.6.16.60) kernel but we
> were able to reproduce with upstream Linus tree as well (2.6.
> {25,26,27,75fa67706cce5272bcfc51ed646f2da21f3bdb6e}).
> We were able to reproduce _only_ with 2 _directly_ connected machines with
> 1GiB wired ethernet connection. (no BUG condition occurred on the single HW
> nor with connection through at least one switch or 100MB). Original report
> states that it takes from minutes to hours to trigger this issue but it takes
> hours in my testing environment.
>
> At first we thought that this can be caused by SO_REUSEADDR used by server
> application, but I was able to reproduce also without it.
> We are also not 100% sure that the sctp is culprit here, but almost all traces
> contain some sctp paths so it smells suspicious.
>
> This may have security implications so I am not attaching the crash
> application directly into this email (please write me and I will send it
> directly or let me know if it is safe to publish it publicly in the mailing
> list).
>
> Thanks for any help/hints and let me know if you need some more information or
> test some patches.
>
> Best regards
>
In the earlier kernels there were a few bugs in the accept code paths that
had to do with locking the newly created socket correctly as well as locking
the port hash table during the migration of the ports. Both of those
contributed to crashes at odd points in time and sometimes even to stack and
memory corruptions.
I'll take a look at what's causing skb overflow in 2.6.28.
-vlad
next prev parent reply other threads:[~2008-11-06 13:48 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-06 11:05 BUG in sctp crashes the system Michal Hocko
2008-11-06 13:48 ` Vlad Yasevich [this message]
2008-11-13 12:19 ` Michal Hocko
2008-11-18 9:03 ` Michal Hocko
2008-11-18 14:04 ` Vlad Yasevich
2008-11-18 14:10 ` Michal Hocko
2008-11-18 14:22 ` Michal Hocko
2008-11-18 15:46 ` Vlad Yasevich
2008-11-18 16:12 ` Michal Hocko
2008-11-19 10:54 ` Michal Hocko
2008-11-21 14:28 ` Vlad Yasevich
2008-11-21 14:48 ` Michal Hocko
2008-11-21 15:05 ` Michal Hocko
2008-11-21 15:35 ` Vlad Yasevich
2008-11-21 15:42 ` Vlad Yasevich
2008-11-21 15:50 ` Michal Hocko
2008-11-24 13:35 ` Michal Hocko
2008-11-24 15:00 ` Vlad Yasevich
2008-11-24 15:25 ` Michal Hocko
2008-11-24 15:31 ` Vlad Yasevich
2008-12-08 18:53 ` Vlad Yasevich
2008-12-09 15:38 ` Michal Hocko
2008-12-09 17:06 ` Vlad Yasevich
2008-12-11 9:27 ` Michal Hocko
2008-12-11 13:47 ` Vlad Yasevich
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=4912F5BD.5040509@hp.com \
--to=vladislav.yasevich@hp.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.