From: Solomon Peachy <solomon@linux-wlan.com>
To: "Srinivas M.A." <srinivas.aji@gmail.com>
Cc: bridge@lists.linux-foundation.org
Subject: Re: [Bridge] [patch] rstpd crashes with GARP/GMRP packets
Date: Thu, 3 Jul 2008 09:59:39 -0400 [thread overview]
Message-ID: <20080703135939.GA31482@linux-wlan.com> (raw)
In-Reply-To: <fed120860807022323u5147beedn33960694ab4e05a5@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 1160 bytes --]
Whoops, the correct patch is attached.
On Thu, Jul 03, 2008 at 11:53:06AM +0530, Srinivas M.A. wrote:
> This looks like the earlier patch, for NETLINK size fixes. Could you
> resend the intended patch. Thanks.
>
> On Thu, Jul 3, 2008 at 4:39 AM, Solomon Peachy <solomon@linux-wlan.com> wrote:
> > The attached patch, against Shrinivas's May 7, 2008 snapshot, fixes a
> > null pointer dereference that occurs when we receive a packet from the
> > brige interface that bears the STP MACADDR, but is *not* a STP packet.
> >
> > Specifically, I was receiving GMRP packets (see 802.1D-2004 10.1) from a
> > 3Com switch.
> >
> > I don't know what we should do with these -- but crashing isn't it. I
> > can send over a packet dump and more debugging info if desired.
>
> Looks like we aren't validating the BPDU as we should be. Please send
> any debugging information you have.
--
Solomon Peachy solomon@linux-wlan.com
AbsoluteValue Systems http://www.linux-wlan.com
721-D North Drive +1 (321) 259-0737 (office)
Melbourne, FL 32934 +1 (321) 259-0286 (fax)
[-- Attachment #1.2: rstpd_crash_fix.diff --]
[-- Type: text/plain, Size: 503 bytes --]
diff --git a/packages/foss/rstp/bridge_track.c b/packages/foss/rstp/bridge_track.c
index e93c014..becfff6 100644
--- a/packages/foss/rstp/bridge_track.c
+++ b/packages/foss/rstp/bridge_track.c
@@ -448,6 +448,12 @@ void bridge_bpdu_rcv(int if_index, const unsigned char *data, int len)
return;
TST(ifc->up,);
+
+ /* Note, we can receive packets via the bridge interface
+ that are not STP, eg GMRP */
+ if (!ifc->master)
+ return;
+
if (!ifc->master->stp_up)
return;
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2008-07-03 13:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-02 23:09 [Bridge] [patch] rstpd crashes with GARP/GMRP packets Solomon Peachy
2008-07-03 6:23 ` Srinivas M.A.
2008-07-03 13:59 ` Solomon Peachy [this message]
2008-07-03 17:18 ` Srinivas M.A.
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=20080703135939.GA31482@linux-wlan.com \
--to=solomon@linux-wlan.com \
--cc=bridge@lists.linux-foundation.org \
--cc=srinivas.aji@gmail.com \
/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.