From: Jack Morgenstein <jackm@dev.mellanox.co.il>
To: general@lists.openfabrics.org
Cc: Roland Dreier <rdreier@cisco.com>,
torvalds@linux-foundation.org, linux-kernel@vger.kernel.org
Subject: Re: [ofa-general] [GIT PULL] please pull infiniband.git
Date: Tue, 27 Nov 2007 10:59:48 +0200 [thread overview]
Message-ID: <200711271059.48891.jackm@dev.mellanox.co.il> (raw)
In-Reply-To: <adahcj8qkd5.fsf@cisco.com>
On Tuesday 27 November 2007 08:21, Roland Dreier wrote:
> Linus, please pull from
>
> master.kernel.org:/pub/scm/linux/kernel/git/roland/infiniband.git for-linus
>
>
> Jack Morgenstein (1):
> mlx4_core: Fix state check in mlx4_qp_modify()
>
MUST also enter the patch I send yesterday:
[PATCH] ipoib: fix kernel Oops resulting from xmit when priv->broadcast is NULL.
(critical bug fix -- will get kernel Oopses whenever ports on the network go down!).
(patch given again below)
- Jack
======================================================================================================================
IPoIB: Fix kernel Oops resulting from xmit following dev_down.
If a port goes down, ipoib_ib_dev_down is invoked -- which flushed the mcasts (clearing
priv->broadcast) and clearing the path record cache. If ipoib_start_xmit is then invoked (before
the port is upped), a kernel Oops results from attempting to access priv->broadcast.
Returning NULL if priv->broadcast is NULL is a harmless way of bypassing the problem -- the
offending packet is simply discarded "without prejudice".
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_main.c b/drivers/infiniband/ulp/ipoib/ipoib_main.c
index a03a65e..c9f6077 100644
--- a/drivers/infiniband/ulp/ipoib/ipoib_main.c
+++ b/drivers/infiniband/ulp/ipoib/ipoib_main.c
@@ -460,6 +460,9 @@ static struct ipoib_path *path_rec_create(struct net_device *dev, void *gid)
struct ipoib_dev_priv *priv = netdev_priv(dev);
struct ipoib_path *path;
+ if (!priv->broadcast)
+ return NULL;
+
path = kzalloc(sizeof *path, GFP_ATOMIC);
if (!path)
return NULL;
next prev parent reply other threads:[~2007-11-27 9:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-27 6:21 Roland Dreier
2007-11-27 8:59 ` Jack Morgenstein [this message]
2008-02-05 4:49 Roland Dreier
2008-02-05 15:59 ` [ofa-general] " Tziporet Koren
2009-06-23 17:39 Roland Dreier
2009-06-25 5:22 ` [ofa-general] " Tziporet Koren
2009-06-25 6:14 ` Roland Dreier
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=200711271059.48891.jackm@dev.mellanox.co.il \
--to=jackm@dev.mellanox.co.il \
--cc=general@lists.openfabrics.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rdreier@cisco.com \
--cc=torvalds@linux-foundation.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
Powered by JetHome