From: "Michael Chan" <mchan@broadcom.com>
To: "David Miller" <davem@davemloft.net>
Cc: "Matthew Carlson" <mcarlson@broadcom.com>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"andy@greyhouse.net" <andy@greyhouse.net>
Subject: Re: [PATCH 1/1] tg3: Avoid Send BD corruption
Date: Thu, 11 Sep 2008 16:19:28 -0700 [thread overview]
Message-ID: <1221175168.12785.40.camel@HP1> (raw)
In-Reply-To: <20080911.160117.118147467.davem@davemloft.net>
On Thu, 2008-09-11 at 16:01 -0700, David Miller wrote:
> From: "Michael Chan" <mchan@broadcom.com>
> Date: Thu, 11 Sep 2008 15:55:58 -0700
>
> > Send BD corruption is quite serious as it can cause tg3_tx() to crash.
> > We've seen a number of similar crashes over the years caused by
> > re-ordered IOs and the nr_frags getting modified by HTB.
> >
> > Since regression/security/oops fixes are allowed, shouldn't this qualify
> > since it prevents a crash in tg3_tx()?
>
> It's at best borderline, since tg3_tx() has reordering detection logic
> which will reset and recover the card.
The re-ordering detection logic will allow corruption to happen once
only. It will then enable flushing of IOs and if it detects corruption
again, it will hit BUG(). That's why it wasn't able to prevent the
crash caused by HTB.
>
> Until I see a real user trigger this I'm still leaning towards no.
>
> Otherwise any driver maintainer can give me this spiel to get their
> changes installed outside of the merge window, and that subverts the
> entire purpose of the rules.
>
OK, we'll resubmit this for net-next then. But I still think this one
should qualify. We do internal testing to find as many problems as
possible so that real users don't see too many of them.
next prev parent reply other threads:[~2008-09-11 23:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-11 5:12 [PATCH 1/1] tg3: Avoid Send BD corruption Matt Carlson
2008-09-11 5:46 ` David Miller
2008-09-11 16:59 ` Matt Carlson
2008-09-11 21:51 ` David Miller
2008-09-11 22:55 ` Michael Chan
2008-09-11 23:01 ` David Miller
2008-09-11 23:19 ` Michael Chan [this message]
2008-09-11 23:30 ` David Miller
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=1221175168.12785.40.camel@HP1 \
--to=mchan@broadcom.com \
--cc=andy@greyhouse.net \
--cc=davem@davemloft.net \
--cc=mcarlson@broadcom.com \
--cc=netdev@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).