Date: Mon, 12 Nov 2007 16:19:59 +0200 From: Kostik Belousov <kostikbel@gmail.com> To: Nikolay Pavlov <qpadla@gmail.com> Cc: freebsd-current@freebsd.org, delphij@freebsd.org, Dmitry Morozovsky <marck@rinet.ru> Subject: Re: tmpfs on contemporary -current: panic: locked against myself Message-ID: <20071112141959.GP37471@deviant.kiev.zoral.com.ua> In-Reply-To: <200711121433.26356.qpadla@gmail.com> References: <20070917194009.W84177@woozle.rinet.ru> <200709241223.52140.qpadla@gmail.com> <472561A7.60108@delphij.net> <200711121433.26356.qpadla@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--wJnDPJhqGGlzIm5V Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 12, 2007 at 02:33:22PM +0200, Nikolay Pavlov wrote: > On Monday 29 October 2007 06:29:27 LI Xin wrote: > > > Just want to be sure that no one lose this. Here is a PR: > > > http://www.freebsd.org/cgi/query-pr.cgi?pr=3D116600 > > > > Can not reproduce here. =9ACould you please confirm that this still > > persists for latest RELENG_7? >=20 > Look like i've got it finally. The exact option the cause a panic for me = is=20 > a "mode=3D777". So that: > mount -t tmpfs tmpfs /tmp - works fine. =20 > mount -t tmpfs -o mode=3D777 tmpfs /tmp - triggers a panic. > A backtrace and a message are the same as in PR. 7.0-BETA2 is affected to= o. The following patch fixed it for me. diff --git a/sys/fs/tmpfs/tmpfs_vfsops.c b/sys/fs/tmpfs/tmpfs_vfsops.c index 4a3cdec..55e9891 100644 --- a/sys/fs/tmpfs/tmpfs_vfsops.c +++ b/sys/fs/tmpfs/tmpfs_vfsops.c @@ -201,7 +201,7 @@ tmpfs_mount(struct mount *mp, struct thread *td) /* Root node attributes. */ uid_t root_uid; gid_t root_gid; - mode_t root_mode; + int root_mode; =20 struct vattr va; =20 --wJnDPJhqGGlzIm5V Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFHOGEPC3+MBN1Mb4gRAgmDAKDEL4P6HqEd9FC0+f1QjA8ybtkDzACgitaf aoOSRLzlqCgrZXwYa2t6thY= =0OCb -----END PGP SIGNATURE----- --wJnDPJhqGGlzIm5V--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071112141959.GP37471>