From nobody@FreeBSD.ORG  Mon Jul 24 22:03:01 2000
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id BA0E337B71D; Mon, 24 Jul 2000 22:03:01 -0700 (PDT)
Message-Id: <20000725050301.BA0E337B71D@hub.freebsd.org>
Date: Mon, 24 Jul 2000 22:03:01 -0700 (PDT)
From: zensyo@ann.tama.kawasaki.jp
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@FreeBSD.org
Subject: Problem with RPC on jail(8) in 4.0-RELEASE and 4.0-STABLE
X-Send-Pr-Version: www-1.0

>Number:         20167
>Category:       kern
>Synopsis:       Problem with RPC on jail(8) in 4.0-RELEASE and 4.0-STABLE
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    phk
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 24 22:10:00 PDT 2000
>Closed-Date:    Sun Sep 17 06:36:00 PDT 2000
>Last-Modified:  Mon Feb 26 17:40:00 PST 2001
>Originator:     Yoshiaki Suzuki
>Release:        4.0-STABLE/RELEASE
>Organization:
ANN-NET
>Environment:
FreeBSD ns.ann.tama.kawasaki.jp 4.0-STABLE FreeBSD 4.0-STABLE #0: Sun Jul 23 23:
02:33 JST 2000     zroot@ns.ann.tama.kawasaki.jp:/usr/src/sys/compile/INETD  i38

>Description:
Some command that imprimented by RPC takes kernel panic. For example, When run following command on jail enviroment,
your kernel will panic.

rusers -l localhost


Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0x0
fault code              = supervisor write, page not present
instruction pointer     = 0x8:0xc017827d
stack pointer           = 0x10:0xcfededf8
frame pointer           = 0x10:0xcfededfc
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 2054 (rusers)
interrupt mask          =
trap number             = 12
panic: page fault

In another case, popper which use DRAC(for POP before SMTP)  takes same problem. DRAC patch for popper using RPC.
And, I found similer problem on GNATS database at misc/19839.

>How-To-Repeat:
Any time, please run command rusers -l localhost on jail enviroment.
May be any program that using RPC takes same probrem.
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->phk 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Tue Jul 25 01:52:14 PDT 2000 
Responsible-Changed-Why:  
pjk is the jail(8) warden, although he might defer this to 
one of the networking chaps. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20167 

From: Robert Watson <rwatson@FreeBSD.org>
To: zensyo@ann.tama.kawasaki.jp, phk@FreeBSD.org
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/20167: Problem with RPC on jail(8) in 4.0-RELEASE and 4.0-STABLE
Date: Wed, 26 Jul 2000 16:59:53 -0400 (EDT)

 I was unable to reproduce this bug on 5.0-CURRENT, but I'm wondering if it
 doesn't have to do with IPv6.  ``localhost'' resolves to "::1" under
 IPv6-enabled FreeBSD boxes, which is unfortunate, as the jail code in
 4.0 doesn't really know what to do about that.  For that matter, the jail
 code in 5.0-CURRENT doesn't really either.
 
 I.e., since the introduction of IPv6, ``telnet localhost'' has telneted to
 ::1 instead of 127.0.0.1, causing operations on localhost that are
 v6-enabled to go to the wrong host.  To solve this, we may have to make
 jail more multi-protocol aware.
 
 I'll have access to a 4.x box this evening and will see if I can reproduce
 it there, also.
 
   Robert N M Watson 
 
 robert@fledge.watson.org              http://www.watson.org/~robert/
 PGP key fingerprint: AF B5 5F FF A6 4A 79 37  ED 5F 55 E9 58 04 6A B1
 TIS Labs at Network Associates, Safeport Network Services
 
 

From: Suzuki Yoshiaki <suzuki@intelligent.co.jp>
To: freebsd-gnats-submit@FreeBSD.org, zensyo@ann.tama.kawasaki.jp
Cc:  
Subject: Re: kern/20167: Problem with RPC on jail(8) in 4.0-RELEASE and 
 4.0-STABLE
Date: Thu, 27 Jul 2000 12:16:39 +0900

 I tried it on only IPv4. And, the problem was reproduced using any IPv4
 addresses.
 
 
 
State-Changed-From-To: open->closed 
State-Changed-By: phk 
State-Changed-When: Sun Sep 17 06:36:00 PDT 2000 
State-Changed-Why:  
Thanks for the report, I found the problem and I belive it is fixed 
in current now. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20167 

From: Niels Bakker <niels=freebsd-gnats@bakker.net>
To: freebsd-gnats-submit@FreeBSD.org
Cc: phk@freebsd.org
Subject: Re: kern/20167: Problem with RPC on jail(8) in 4.0-RELEASE and 4.0-STABLE
Date: Tue, 27 Feb 2001 02:32:28 +0100

 Has this bugfix been MFC'd?  I could still observe the behaviour with
 4.2-BETA.
 
 
 	-- Niels.
>Unformatted:
