On Thu, 2004-10-07 at 17:23 -0400, Ted Kaczmarek wrote: > On Thu, 2004-10-07 at 21:49 +0200, Tommy Christensen wrote: > > Ted Kaczmarek wrote: > > > I opened a bug up with redhat for net-snmp on this, was not sure where > > > it should go. Ifconfig also hangs after this happens. Saw this with > > > kernel-2.6.5-1.358/8139too and kernel-2.6.8-1.521/e100. Appears to have > > > something to do with 802.1q, never occurs on machine without 802.1q. > > > > Well, this isn't a net-snmp issue. snmpd just happens to trigger a > > kernel bug when querying vlan interfaces. > > > > > Call Trace: > > > [<1a923773>] e1000_mii_ioctl+0x76/0x18f [e1000] > > > [<1a9236e3>] e1000_ioctl+0x0/0x1a [e1000] > > > [<1a8681f8>] vlan_dev_ioctl+0x85/0xbe [8021q] > > > [<0229f92f>] dev_ifsioc+0x304/0x310 > > > [<1a868173>] vlan_dev_ioctl+0x0/0xbe [8021q] > > > [<0229faa7>] dev_ioctl+0x16c/0x28a > > > [<022d377b>] udp_ioctl+0x0/0x190 > > > [<022d967b>] inet_ioctl+0x6e/0x73 > > > [<02296a84>] sock_ioctl+0x2f4/0x3aa > > > [<021752d2>] sys_ioctl+0x29a/0x33c > > > [<02160c5e>] sys_read+0x3c/0x62 > > > Code: 89 58 20 31 db b8 de 46 03 00 e8 6e 3d 8b e7 8b 06 8b 50 20 > > > > You need this patch for the kernel. > > > > --- a/net/8021q/vlan_dev.c 2004-09-10 06:12:16 -07:00 > > +++ b/net/8021q/vlan_dev.c 2004-09-10 06:12:16 -07:00 > > @@ -772,7 +772,7 @@ > > case SIOCGMIIREG: > > case SIOCSMIIREG: > > if (real_dev->do_ioctl && netif_device_present(real_dev)) > > - err = real_dev->do_ioctl(dev, &ifrr, cmd); > > + err = real_dev->do_ioctl(real_dev, &ifrr, cmd); > > break; > > > > case SIOCETHTOOL: > > > > > > -Tommy > > > > P.S. There is no need to recompile everything, just the 8021q module. > > Thanks a bunch, will try this out hopefully later. > > Ted I get Hunk #1 FAILED at 772 when trying to
patch -p1 < patch-vlan_dev.c Contents of reject. [EMAIL PROTECTED] linux-2.6.8-1.521]# cat net/8021q/vlan_dev.c.rej *************** *** 772,779 **** case SIOCGMIIREG: case SIOCSMIIREG: if (real_dev->do_ioctl && netif_device_present (real_dev)) - err = real_dev->do_ioctl(dev, &ifrr, cmd); break; case SIOCETHTOOL: --- 772,779 ---- case SIOCGMIIREG: case SIOCSMIIREG: if (real_dev->do_ioctl && netif_device_present (real_dev)) + err = real_dev->do_ioctl(real_dev, &ifrr, cmd); break; case SIOCETHTOOL: Am I being a chucklehead here? Ted ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ Net-snmp-users mailing list [EMAIL PROTECTED] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users