From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HHGPW-0000pO-14 for qemu-devel@nongnu.org; Wed, 14 Feb 2007 04:26:46 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HHGPS-0000oy-7E for qemu-devel@nongnu.org; Wed, 14 Feb 2007 04:26:45 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HHGPS-0000ov-2x for qemu-devel@nongnu.org; Wed, 14 Feb 2007 04:26:42 -0500 Received: from partizan.velesys.com ([213.184.230.195]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HHGPP-00070F-P3 for qemu-devel@nongnu.org; Wed, 14 Feb 2007 04:26:40 -0500 Received: from localhost (partizan [10.0.0.24]) by partizan.velesys.com (paritzan.velesys.com) with ESMTP id 29E15D63258 for ; Wed, 14 Feb 2007 11:27:45 +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 FoAr1iaWJdKK for ; Wed, 14 Feb 2007 11:27:44 +0200 (EET) Received: from localhost.localdomain (xps.velesys.com [10.0.0.92]) by partizan.velesys.com (paritzan.velesys.com) with ESMTP id 6599FD63256 for ; Wed, 14 Feb 2007 11:27:44 +0200 (EET) Date: Wed, 14 Feb 2007 11:26:41 +0300 From: "Kirill A. Shutemov" Message-ID: <20070214082641.GA9094@localhost.localdomain> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2/5bycvrmDh4d1IB" 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 --2/5bycvrmDh4d1IB Content-Type: multipart/mixed; boundary="+g7M9IMkV8truYOl" Content-Disposition: inline --+g7M9IMkV8truYOl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In the attachment fixed Debian patch(with lock_user_string). --+g7M9IMkV8truYOl 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)); --+g7M9IMkV8truYOl-- --2/5bycvrmDh4d1IB 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) iD8DBQFF0sfBbWYnhzC5v6oRAp4lAJwNUJsxGdZ46jyqn70+39knXq7jFwCbB7uQ T3PKbOc/yW56OWL6W1/d/Xo= =GNa1 -----END PGP SIGNATURE----- --2/5bycvrmDh4d1IB--