Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 259626 - iproute2 / arping overflows buffer with infiniband IPoIB on sys-apps/iproute2-2.6.22.20070710
Summary: iproute2 / arping overflows buffer with infiniband IPoIB on sys-apps/iproute2...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-19 18:37 UTC by Matt Summers (RETIRED)
Modified: 2009-05-09 21:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Summers (RETIRED) gentoo-dev 2009-02-19 18:37:48 UTC
Attempting to initialize net.ib0 we see:
# /etc/init.d/net.ib0 start
 * Starting ib0
 *   Bringing up ib0
 *     192.168.0.1
*** buffer overflow detected ***: arping terminated
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x37)[0x7f7e28176bf7]
/lib/libc.so.6[0x7f7e281749d0]
arping[0x402002]
/lib/libc.so.6(__libc_start_main+0xe6)[0x7f7e280b05c6]
arping[0x4011e9]
======= Memory map: ========
00400000-00403000 r-xp 00000000 09:04 6168933                            /sbin/arping
00602000-00603000 r--p 00002000 09:04 6168933                            /sbin/arping
00603000-00604000 rw-p 00003000 09:04 6168933                            /sbin/arping
007d4000-007f5000 rw-p 007d4000 00:00 0                                  [heap]
7f7e27e7a000-7f7e27e90000 r-xp 00000000 09:04 10772525                   /lib64/libgcc_s.so.1
7f7e27e90000-7f7e28090000 ---p 00016000 09:04 10772525                   /lib64/libgcc_s.so.1
7f7e28090000-7f7e28091000 r--p 00016000 09:04 10772525                   /lib64/libgcc_s.so.1
7f7e28091000-7f7e28092000 rw-p 00017000 09:04 10772525                   /lib64/libgcc_s.so.1
7f7e28092000-7f7e281dd000 r-xp 00000000 09:04 6422962                    /lib64/libc-2.9.so
7f7e281dd000-7f7e283dd000 ---p 0014b000 09:04 6422962                    /lib64/libc-2.9.so
7f7e283dd000-7f7e283e1000 r--p 0014b000 09:04 6422962                    /lib64/libc-2.9.so
7f7e283e1000-7f7e283e2000 rw-p 0014f000 09:04 6422962                    /lib64/libc-2.9.so
7f7e283e2000-7f7e283e7000 rw-p 7f7e283e2000 00:00 0
7f7e283e7000-7f7e283fa000 r-xp 00000000 09:04 6422951                    /lib64/libresolv-2.9.so
7f7e283fa000-7f7e285fa000 ---p 00013000 09:04 6422951                    /lib64/libresolv-2.9.so
7f7e285fa000-7f7e285fb000 r--p 00013000 09:04 6422951                    /lib64/libresolv-2.9.so
7f7e285fb000-7f7e285fc000 rw-p 00014000 09:04 6422951                    /lib64/libresolv-2.9.so
7f7e285fc000-7f7e285fe000 rw-p 7f7e285fc000 00:00 0
7f7e285fe000-7f7e2861b000 r-xp 00000000 09:04 6422953                    /lib64/ld-2.9.so
7f7e2880e000-7f7e28810000 rw-p 7f7e2880e000 00:00 0
7f7e28818000-7f7e2881a000 rw-p 7f7e28818000 00:00 0
7f7e2881a000-7f7e2881b000 r--p 0001c000 09:04 6422953                    /lib64/ld-2.9.so
7f7e2881b000-7f7e2881c000 rw-p 0001d000 09:04 6422953                    /lib64/ld-2.9.so
7fff30806000-7fff3081b000 rw-p 7ffffffea000 00:00 0                      [stack]
7fff309fe000-7fff309ff000 r-xp 7fff309fe000 00:00 0                      [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]

Reproducible: Always

Steps to Reproduce:
1.start net.ib0 via init scripts

Actual Results:  
buffer overflow occurs
results below:
ib0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 2044 qdisc pfifo_fast qlen 256
inet 192.168.0.1/24 brd 192.168.0.255 scope global ib0

Expected Results:  
Normal IPoIB operation with no buffer overflow

Using sys-apps/iproute2-2.6.22.20070710

This bug has been noted here with a patch:
https://bugzilla.redhat.com/show_bug.cgi?id=163383

# emerge --info
Portage 2.1.6.4 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r1, 2.6.27-gentoo-r8-IB x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-r8-IB-x86_64-Quad-Core_AMD_Opteron-tm-_Processor_2344_HE-with-glibc2.2.5
Timestamp of tree: Wed, 18 Feb 2009 00:15:01 +0000
app-shells/bash:     3.2_p39
dev-lang/python:     2.5.2-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.63
sys-devel/automake:  1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=barcelona -O2 -pipe -fforce-addr"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=barcelona -O2 -pipe -fforce-addr"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/science /usr/local/portage"
SYNC="rsync://rsync21.us.gentoo.org/gentoo-portage"
USE="acl amd64 berkdb bzip2 cli cracklib crypt cups dri fortran gdbm gmp gpm iconv ipv6 isdnlog midi mmx mudflap multilib ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl sse sse2 ssl sysfs tcpd unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 SpanKY gentoo-dev 2009-02-22 18:33:18 UTC
can you test iproute-2.6.28 ?