Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jan 2008 19:20:02 GMT
From:      Kirk Strauser <kirk@strauser.com>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/119842: [smbfs] "Bad address" with smbfs inside a jail
Message-ID:  <200801221920.m0MJK2AA021918@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/119842; it has been noted by GNATS.

From: Kirk Strauser <kirk@strauser.com>
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.
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801221920.m0MJK2AA021918>