kern/119842: [smbfs] "Bad address" with smbfs inside a jail
Kirk Strauser
kirk at strauser.com
Tue Jan 22 19:20:03 UTC 2008
The following reply was made to PR kern/119842; it has been noted by GNATS.
From: Kirk Strauser <kirk at strauser.com>
To: bug-followup at freebsd.org,
kirk at 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.
More information about the freebsd-bugs
mailing list