From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22549 invoked by alias); 18 May 2009 18:04:35 -0000 Received: (qmail 22541 invoked by uid 22791); 18 May 2009 18:04:34 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from hagrid.ecoscentric.com (HELO mail.ecoscentric.com) (212.13.207.197) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 18 May 2009 18:04:28 +0000 Received: from localhost (hagrid.ecoscentric.com [127.0.0.1]) by mail.ecoscentric.com (Postfix) with ESMTP id E27A43B4005B for ; Mon, 18 May 2009 19:04:26 +0100 (BST) Received: from mail.ecoscentric.com ([127.0.0.1]) by localhost (hagrid.ecoscentric.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0RuCqB5a+0jF; Mon, 18 May 2009 19:04:25 +0100 (BST) From: bugzilla-daemon@ecoscentric.com To: ecos-bugs@ecos.sourceware.org Subject: [Bug 1000772] New: SNMP lockup on requests for ifTable interface number <= 0 X-Bugzilla-Reason: QAcontact X-Bugzilla-Type: newchanged X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: eCos X-Bugzilla-Component: SNMP X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: grant.b.edwards@gmail.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: normal X-Bugzilla-Assigned-To: bartv@ecoscentric.com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Mon, 18 May 2009 18:04:00 -0000 Mailing-List: contact ecos-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-bugs-owner@sourceware.org X-SW-Source: 2009/txt/msg00203.txt.bz2 http://bugs.ecos.sourceware.org/show_bug.cgi?id=1000772 Summary: SNMP lockup on requests for ifTable interface number <= 0 Product: eCos Version: CVS Platform: Other (please specify) OS/Version: All Status: UNCONFIRMED Severity: normal Priority: normal Component: SNMP AssignedTo: bartv@ecoscentric.com ReportedBy: grant.b.edwards@gmail.com QAContact: ecos-bugs@ecos.sourceware.org Class: --- Created an attachment (id=728) --> (http://bugs.ecos.sourceware.org/attachment.cgi?id=728) Patch to fix SNMP lock-up The FreeBSD SNMP helper cyg_snmp_get_if() exhibits a bug when passed if_num<=0: it loops 2^32 times -- walking through all of memory and then returning a rogue pointer. This can be demonstrated by sending an eCos-based device an SMP "get" request for OID 1.3.6.1.2.1.2.2.1.6.0. Typical behavior is that the device will lock up for several seconds ans the SNMP management thread loops through all of memory. The problem didn't exist in the helper routine for the NetBSD. The attached patch fixes the problem. -- Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.