From: Steve Wise <swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
To: Roland Dreier <roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org,
linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] iw_cm: reject connect requests if cmid is not in LISTEN
Date: Fri, 24 Feb 2012 08:16:22 -0600 [thread overview]
Message-ID: <4F479BB6.7060101@opengridcomputing.com> (raw)
In-Reply-To: <CAL1RGDWkVJxEDZ5SaaSa8oA_y6a0u1NCbzTK9agsJE+V_YzimQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On 02/23/2012 07:57 PM, Roland Dreier wrote:
> On Thu, Feb 23, 2012 at 11:55 AM, Steve Wise
> <swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org> wrote:
>> RIP: 0010:[<0000000000200200>] [<0000000000200200>]
> 0x200200 is LIST_POISON2, which is set when something is removed
> from a Linux list.
>
>> [<ffffffff8008c846>] __wake_up_common+0x3e/0x68
>> [<ffffffff8002e261>] __wake_up+0x38/0x4f
>> [<ffffffff8867410b>] :iw_cm:iw_cm_reject+0x5a/0xa7
> So in the code
>
> if (cm_id_priv->state != IW_CM_STATE_CONN_RECV) {
> spin_unlock_irqrestore(&cm_id_priv->lock, flags);
> clear_bit(IWCM_F_CONNECT_WAIT,&cm_id_priv->flags);
> wake_up_all(&cm_id_priv->connect_wait);
> return -EINVAL;
> }
>
> the cm_id_priv->connect_wait is being corrupted before
> or during the call to wake_up_all...
>
> could the HW or low-level driver be generating events for
> the incoming connections that are associated with the
> listen ID, as the listen ID is being destroyed?
>
> Maybe that's why the code silently ignored these requests
> before :)
>
The low level driver at this point doesn't have the cm_id for this connect request because it has not been accepted or
rejected by the iwcm. So there's no way it can post any events.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2012-02-24 14:16 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-22 21:43 [PATCH] iw_cm: reject connect requests if cmid is not in LISTEN Steve Wise
[not found] ` <20120222214307.23921.83903.stgit-T4OLL4TyM9aNDNWfRnPdfg@public.gmane.org>
2012-02-23 7:46 ` Roland Dreier
[not found] ` <CAL1RGDV7ZoKWgbh+ERF+af3_B7K2USAkXSPKWeQEg5atpHY0og-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-02-23 15:24 ` Steve Wise
[not found] ` <4F465A46.3060301-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
2012-02-23 19:55 ` Steve Wise
[not found] ` <4F4699A1.7030402-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
2012-02-23 20:23 ` Steve Wise
2012-02-24 1:57 ` Roland Dreier
[not found] ` <CAL1RGDWkVJxEDZ5SaaSa8oA_y6a0u1NCbzTK9agsJE+V_YzimQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-02-24 14:16 ` Steve Wise [this message]
2012-02-24 21:32 ` Roland Dreier
[not found] ` <CAL1RGDWb0ocYN5oM3QtxRj5VWCAWrp3Jtx6N1UHSrNDP2A1WEw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-02-24 21:41 ` Steve Wise
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=4F479BB6.7060101@opengridcomputing.com \
--to=swise-7bpotxp6k4+p2yhjcf5u+vpxobypeauw@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox