NetBSD Problem Report #10487

Received: (qmail 26608 invoked from network); 30 Jun 2000 14:53:40 -0000
Message-Id: <200006301453.HAA26470@nbwww.isc.org>
Date: Fri, 30 Jun 2000 07:53:40 -0700 (PDT)
From: chr@akaflieg.uni-karlsruhe.de
Reply-To: chr@akaflieg.uni-karlsruhe.de
To: gnats-bugs@gnats.netbsd.org
Subject: rpcbind crashes on  pmax
X-Send-Pr-Version: www-1.0

>Number:         10487
>Category:       bin
>Synopsis:       rpcbind crashes on  pmax
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 30 14:54:00 +0000 2000
>Closed-Date:    Thu Jan 04 11:18:30 +0000 2001
>Last-Modified:  Thu Jan 04 11:18:30 +0000 2001
>Originator:     Christian Riede
>Release:        1.5_ALPHA
>Organization:
Akaflieg Karlsruhe e.V.
>Environment:
chr@akfv1(~)$ uname -a
NetBSD akfv1 1.5_ALPHA NetBSD 1.5_ALPHA (AKAFLIEG) #3: Sun Jul 11 17:22:09 CET 1976     chr@akfds2:/usr/src/sys/arch/pmax/compile/AKAFLIEG pmax

>Description:
rpcbind crashes with SIGSEV in:
rpcb_svc_com.c: unmodified, readonly: line 451 of 1458
because of a null pointer in cap->rmt_uaddr used as first argument to sscanf().



>How-To-Repeat:
Run rpcbind and wait. Possibly an old DECSystem 5500 under Ultrix 4.3 
in the same subnet using the NetBSD system as nis and nfs server 
could cause the problem:

chr@akfds3(~)$ uname -a
ULTRIX akfds3 4.3 1 RISC unknown

Coredump of rpcbind can be provided O/R



>Fix:
root@akfds1(/usr/src/usr.sbin/rpcbind)# cvs diff rpcb_svc_com.c
Index: rpcb_svc_com.c
===================================================================
RCS file: /cvsroot/basesrc/usr.sbin/rpcbind/rpcb_svc_com.c,v
retrieving revision 1.1.2.1
diff -r1.1.2.1 rpcb_svc_com.c
451,452c451,454
<               if (sscanf(cap->rmt_uaddr, "%d.%d.%d.%d.%d.%d",
<                       &h1, &h2, &h3, &h4, &p1, &p2) != 6)
---
> /* C.R. Bugfix: check for NULL pointer cap->rmt_uaddr */
>               if ((!cap->rmt_uaddr ||
>                       sscanf(cap->rmt_uaddr, "%d.%d.%d.%d.%d.%d",
>                       &h1, &h2, &h3, &h4, &p1, &p2) != 6))
root@akfds1(/usr/src/usr.sbin/rpcbind)#


>Release-Note:
>Audit-Trail:

From: Simon Burge <simonb@wasabisystems.com>
To: chr@akaflieg.uni-karlsruhe.de
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: bin/10487: rpcbind crashes on pmax 
Date: Fri, 20 Oct 2000 22:46:47 +1100

 chr@akaflieg.uni-karlsruhe.de wrote:

 > >Number:         10487
 > >Category:       bin
 > >Synopsis:       rpcbind crashes on  pmax
 > >Confidential:   no
 > >Severity:       critical
 > >Priority:       high
 > >Responsible:    bin-bug-people
 > >State:          open
 > >Class:          sw-bug
 > >Submitter-Id:   net
 > >Arrival-Date:   Fri Jun 30 07:54:00 PDT 2000
 > >Closed-Date:
 > >Last-Modified:
 > >Originator:     Christian Riede
 > >Release:        1.5_ALPHA
 > >Organization:
 > Akaflieg Karlsruhe e.V.
 > >Environment:
 > chr@akfv1(~)$ uname -a
 > NetBSD akfv1 1.5_ALPHA NetBSD 1.5_ALPHA (AKAFLIEG) #3: Sun Jul 11 17:22:09 CET 1976    
  chr@akfds2:/usr/src/sys/arch/pmax/compile/AKAFLIEG pmax
 > 
 > >Description:
 > rpcbind crashes with SIGSEV in:
 > rpcb_svc_com.c: unmodified, readonly: line 451 of 1458
 > because of a null pointer in cap->rmt_uaddr used as first argument to sscanf().

 Frank van der Linden thinks that this problem is now fixed.  Are you
 able to reproduce this problem with up-to-date sources for the rpc
 library and rpcbind (either in -current or on the 1.5 branch)?

 Simon.
 --
 Simon Burge                            <simonb@wasabisystems.com>
 NetBSD Sales, Support and Service:  http://www.wasabisystems.com/
State-Changed-From-To: open->feedback 
State-Changed-By: tv 
State-Changed-When: Sun Nov 5 20:56:02 PST 2000 
State-Changed-Why:  
Try 1.5_BETA or the forthcoming 1.5_BETA2 and please reply back if this 
bug is still present.  It appears to be fixed. 
State-Changed-From-To: feedback->closed 
State-Changed-By: kleink 
State-Changed-When: Thu Jan 4 03:17:59 PST 2001 
State-Changed-Why:  
Reported as fixed by submitter. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.