From owner-freebsd-bugs@FreeBSD.ORG Tue Jan 22 19:20:03 2008 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2E34116A418 for ; Tue, 22 Jan 2008 19:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 2318A13C448 for ; Tue, 22 Jan 2008 19:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0MJK2mU021919 for ; Tue, 22 Jan 2008 19:20:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0MJK2AA021918; Tue, 22 Jan 2008 19:20:02 GMT (envelope-from gnats) Date: Tue, 22 Jan 2008 19:20:02 GMT Message-Id: <200801221920.m0MJK2AA021918@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Kirk Strauser Cc: Subject: Re: kern/119842: [smbfs] "Bad address" with smbfs inside a jail X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Kirk Strauser List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jan 2008 19:20:03 -0000 The following reply was made to PR kern/119842; it has been noted by GNATS. From: Kirk Strauser To: bug-followup@freebsd.org, kirk@strauser.com Cc: Subject: Re: kern/119842: [smbfs] "Bad address" with smbfs inside a jail Date: Tue, 22 Jan 2008 13:10:36 -0600 Here's a minimal example that triggers the failure 100% of the time on both i386 and amd64. =46rom inside a jail: =2D-------------- $ python >>> import os >>> outfile =3D os.open('/mnt/remote/foo', os.O_CREAT|os.O_EXCL|os.O_RDWR) >>> os.write(outfile, 'this is a test') 14 >>> os.close(outfile) >>> exit() $ cp /mnt/remote/foo /tmp/foo cp: /tmp/foo: Bad address $ =2D-------------- =46rom the "host OS": =2D-------------- $ python >>> import os >>> outfile =3D os.open('/jail/server1/mnt/remote/foo', os.O_CREAT|os.O_EXC= L|os.O_RDWR) >>> os.write(outfile, 'this is a test') 14 >>> os.close(outfile) >>> exit() $ cp /jail/server1/mnt/remote/foo /tmp/foo $ =2D-------------- Note that "/mnt/remote/foo" and "/jail/server1/mnt/remote/foo" are the exact same mountpoint. The first is just the second as seen from inside the jail rooted at /jail/server1.