[Bridge] RSTPD user mode daemon segfaults with kernel 2.6.24
srinivas.aji at gmail.com
Fri Jan 2 11:01:17 PST 2009
Hi, the fix for this is:
Author: Srinivas Aji <Aji_Srinivas at emc.com>
Date: Thu Jul 3 22:45:03 2008 +0530
Fix crash when BPDU received on bridge if.
We could receive non STP BPDU's on bridge interface, or even STP BPDUs
if STP is off for the bridge. The crash is avoided by checking for bridge
interface and not processing further in that case.
Patch based on one from Solomon Peachy <solomon at linux-wlan.com>
diff --git a/bridge_track.c b/bridge_track.c
index e93c014..802db7a 100644
@@ -447,6 +447,12 @@ void bridge_bpdu_rcv(int if_index, const unsigned char *dat
+ /* We could get a STP BPDU from a bridge interface if STP is off,
+ or a non STP packet as well, e.g. GMRP, even when STP is on.
+ Don't process it, else we will crash at ifc->master->stp_up */
+ if (ifc->is_bridge)
On Fri, Jan 2, 2009 at 11:23 PM, Antonio Di Bacco <a.dibacco at gmail.com> wrote:
> I have downloaded rstp from sourceforge and I get a segfaults when running
> the daemon.
> This is the line where the problem arises:
> just at the beginning of function:
> void bridge_bpdu_rcv(int if_index, const unsigned char *data, int len)
> in file bridge_track.c
> Bridge mailing list
> Bridge at lists.linux-foundation.org
More information about the Bridge