Debian Bug report logs - #431860
bridge-utils: Segfaults when a bridge is named "bridge"

version graph

Package: bridge-utils; Maintainer for bridge-utils is Santiago García Mantiñán <manty@debian.org>; Source for bridge-utils is src:bridge-utils (PTS, buildd, popcon).

Reported by: Michael Holzt <debian-bugs@michael.holzt.de>

Date: Thu, 5 Jul 2007 14:18:01 UTC

Severity: normal

Found in version bridge-utils/1.2-1

Fixed in version bridge-utils/1.2-2

Done: Santiago Garcia Mantinan <manty@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Santiago Garcia Mantinan <manty@debian.org>:
Bug#431860; Package bridge-utils. (full text, mbox, link).


Acknowledgement sent to Michael Holzt <debian-bugs@michael.holzt.de>:
New Bug report received and forwarded. Copy sent to Santiago Garcia Mantinan <manty@debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Michael Holzt <debian-bugs@michael.holzt.de>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: bridge-utils: Segfaults when a bridge is named "bridge"
Date: Thu, 05 Jul 2007 16:16:50 +0200
Package: bridge-utils
Version: 1.2-1
Severity: normal


brctl has problems handling a bridge which is called "bridge", see
below.

| # brctl show
| bridge name     bridge id               STP enabled     interfaces
| xenbr0          8000.005004430ecb       no              uplink
|
| # brctl addbr bridge
| # brctl show
| bridge name     bridge id               STP enabled     interfaces
| .               Segmentation fault
|
| # brctl delbr bridge
| # brctl show
| bridge name     bridge id               STP enabled     interfaces
| xenbr0          8000.005004430ecb       no              uplink


-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-n0
Locale: LANG=en_US.ISO-8859-15, LC_CTYPE=en_US.ISO-8859-15 (charmap=ISO-8859-15)

Versions of packages bridge-utils depends on:
ii  libc6                       2.3.6.ds1-13 GNU C Library: Shared libraries

Versions of packages bridge-utils recommends:
ii  ifupdown                      0.6.8      high level tools to configure netw

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, Santiago Garcia Mantinan <manty@debian.org>:
Bug#431860; Package bridge-utils. (full text, mbox, link).


Acknowledgement sent to Robert Gerlach <khnz@gmx.de>:
Extra info received and forwarded to list. Copy sent to Santiago Garcia Mantinan <manty@debian.org>. (full text, mbox, link).


Message #10 received at 431860@bugs.debian.org (full text, mbox, reply):

From: Robert Gerlach <khnz@gmx.de>
To: 431860@bugs.debian.org
Subject: Re: bridge-utils: Segfaults when a bridge is named "bridge"
Date: Thu, 9 Aug 2007 00:15:05 +0200
scandir() returns "." if a bridge named "bridge". this small patch fixed it 
for me.

--- ./libbridge/libbridge_init.c        2007-08-08 23:40:14.233046782 +0200
+++ ./libbridge/libbridge_init.c        2007-08-08 23:39:42.000000000 +0200
@@ -49,6 +49,9 @@
        char path[SYSFS_PATH_MAX];
        struct stat st;
 
+       if(entry->d_name[0] == '.')
+               return 0;
+
        snprintf(path, SYSFS_PATH_MAX, SYSFS_CLASS_NET "%s/bridge", 
entry->d_name);
        return stat(path, &st) == 0 && S_ISDIR(st.st_mode);
 }



Reply sent to Santiago Garcia Mantinan <manty@debian.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Michael Holzt <debian-bugs@michael.holzt.de>:
Bug acknowledged by developer. (full text, mbox, link).


Message #15 received at 431860-close@bugs.debian.org (full text, mbox, reply):

From: Santiago Garcia Mantinan <manty@debian.org>
To: 431860-close@bugs.debian.org
Subject: Bug#431860: fixed in bridge-utils 1.2-2
Date: Sat, 20 Oct 2007 11:02:02 +0000
Source: bridge-utils
Source-Version: 1.2-2

We believe that the bug you reported is fixed in the latest version of
bridge-utils, which is due to be installed in the Debian FTP archive:

bridge-utils_1.2-2.diff.gz
  to pool/main/b/bridge-utils/bridge-utils_1.2-2.diff.gz
bridge-utils_1.2-2.dsc
  to pool/main/b/bridge-utils/bridge-utils_1.2-2.dsc
bridge-utils_1.2-2_i386.deb
  to pool/main/b/bridge-utils/bridge-utils_1.2-2_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 431860@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Santiago Garcia Mantinan <manty@debian.org> (supplier of updated bridge-utils package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Mon, 15 Oct 2007 22:57:46 +0200
Source: bridge-utils
Binary: bridge-utils
Architecture: source i386
Version: 1.2-2
Distribution: unstable
Urgency: low
Maintainer: Santiago Garcia Mantinan <manty@debian.org>
Changed-By: Santiago Garcia Mantinan <manty@debian.org>
Description: 
 bridge-utils - Utilities for configuring the Linux ethernet bridge
Closes: 405215 406907 410277 431860
Changes: 
 bridge-utils (1.2-2) unstable; urgency=low
 .
   * Fix port no and id reading from sysfs (taken from git).
   * Fix segfault on bridge named "bridge", thanks Robert. Closes: #431860.
   * Fix printing of unknown commands, thanks Julien. Closes: #406907.
   * Fix the FAQ url. Closes: #410277.
   * Apply the regexp patch. Closes: #405215.
Files: 
 cb3cd4142fc502899e3d49a8d8543f01 595 net optional bridge-utils_1.2-2.dsc
 e1e1b1ffc3a0e7afa8616ed52755ee53 11379 net optional bridge-utils_1.2-2.diff.gz
 6864d3c69bd75f18ca90c0596d67f117 29128 net optional bridge-utils_1.2-2_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHGRtPcv3CBfajKo4RAu4uAKCTyqXRRcifUQX8XankK20xAUEmnwCdHLpQ
vYWSNY4XJB3gb0ucgReyr/w=
=Ui7A
-----END PGP SIGNATURE-----





Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 29 Nov 2007 07:27:31 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Tue Jul 2 22:46:00 2024; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.