From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HHHNu-00049Z-I7 for qemu-devel@nongnu.org; Wed, 14 Feb 2007 05:29:10 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HHHNt-00048r-I6 for qemu-devel@nongnu.org; Wed, 14 Feb 2007 05:29:10 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HHHNt-00048j-An for qemu-devel@nongnu.org; Wed, 14 Feb 2007 05:29:09 -0500 Received: from partizan.velesys.com ([213.184.230.195]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HHHNs-0007fD-QS for qemu-devel@nongnu.org; Wed, 14 Feb 2007 05:29:09 -0500 Received: from localhost (partizan [10.0.0.24]) by partizan.velesys.com (paritzan.velesys.com) with ESMTP id BD73BD632A5 for ; Wed, 14 Feb 2007 12:30:16 +0200 (EET) Received: from partizan.velesys.com ([10.0.0.24]) by localhost (partizan.velesys.com [10.0.0.24]) (amavisd-new, port 10024) with ESMTP id kj0wskvvlvIm for ; Wed, 14 Feb 2007 12:30:15 +0200 (EET) Received: from localhost.localdomain (xps.velesys.com [10.0.0.92]) by partizan.velesys.com (paritzan.velesys.com) with ESMTP id E380BD63265 for ; Wed, 14 Feb 2007 12:30:15 +0200 (EET) Date: Mon, 12 Feb 2007 14:17:08 +0300 From: "Kirill A. Shutemov" Message-ID: <20070212111708.GA22367@localhost.localdomain> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Y7xTucakfITjPcLV" Content-Disposition: inline Subject: [Qemu-devel] [PATCH] mount syscall Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --Y7xTucakfITjPcLV Content-Type: multipart/mixed; boundary="ibTvN161/egqYuK8" Content-Disposition: inline --ibTvN161/egqYuK8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Fixed Debian patch in the attachment(lock_user_string used). --ibTvN161/egqYuK8 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="37_syscall_mount.patch" Index: linux-user/syscall.c =================================================================== RCS file: /sources/qemu/qemu/linux-user/syscall.c,v retrieving revision 1.86 diff -u -r1.86 syscall.c --- linux-user/syscall.c 11 Feb 2007 20:03:13 -0000 1.86 +++ linux-user/syscall.c 12 Feb 2007 10:49:07 -0000 @@ -2163,8 +2163,18 @@ ret = get_errno(getpid()); break; case TARGET_NR_mount: - /* need to look at the data field */ - goto unimplemented; + { + /* need to look at the data field */ + void *p2, *p3; + p = lock_user_string(arg1); + p2 = lock_user_string(arg2); + p3 = lock_user_string(arg3); + ret = get_errno(mount(p, p2, p3, (unsigned long)arg4, (const void *)arg5)); + unlock_user(p, arg1, 0); + unlock_user(p2, arg2, 0); + unlock_user(p3, arg3, 0); + break; + } case TARGET_NR_umount: p = lock_user_string(arg1); ret = get_errno(umount(p)); --ibTvN161/egqYuK8-- --Y7xTucakfITjPcLV Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFF0Ey0bWYnhzC5v6oRAnajAJwIWme0gzJ2tH1GVKtP+NY3yEG21QCeKxxA owqrWHunWxFPQSnftYObzzk= =8ifi -----END PGP SIGNATURE----- --Y7xTucakfITjPcLV--