qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] mount syscall
@ 2007-02-12 12:38 Kirill A. Shutemov
  0 siblings, 0 replies; 4+ messages in thread
From: Kirill A. Shutemov @ 2007-02-12 12:38 UTC (permalink / raw)
  To: qemu-devel


[-- Attachment #1.1: Type: text/plain, Size: 54 bytes --]

Fixed(with lock_user_string) patch in the attachment.

[-- Attachment #1.2: 37_syscall_mount.patch --]
[-- Type: text/plain, Size: 934 bytes --]

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));

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread
* [Qemu-devel] [PATCH] mount syscall
@ 2007-02-14  8:26 Kirill A. Shutemov
  2007-02-22 18:08 ` Paul Brook
  0 siblings, 1 reply; 4+ messages in thread
From: Kirill A. Shutemov @ 2007-02-14  8:26 UTC (permalink / raw)
  To: qemu-devel


[-- Attachment #1.1: Type: text/plain, Size: 61 bytes --]

In the attachment fixed Debian patch(with lock_user_string).

[-- Attachment #1.2: 37_syscall_mount.patch --]
[-- Type: text/plain, Size: 934 bytes --]

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));

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread
* [Qemu-devel] [PATCH] mount syscall
@ 2007-02-12 11:17 Kirill A. Shutemov
  0 siblings, 0 replies; 4+ messages in thread
From: Kirill A. Shutemov @ 2007-02-12 11:17 UTC (permalink / raw)
  To: qemu-devel


[-- Attachment #1.1: Type: text/plain, Size: 61 bytes --]

Fixed Debian patch in the attachment(lock_user_string used).

[-- Attachment #1.2: 37_syscall_mount.patch --]
[-- Type: text/plain, Size: 934 bytes --]

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));

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-02-22 18:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-12 12:38 [Qemu-devel] [PATCH] mount syscall Kirill A. Shutemov
  -- strict thread matches above, loose matches on Subject: below --
2007-02-14  8:26 Kirill A. Shutemov
2007-02-22 18:08 ` Paul Brook
2007-02-12 11:17 Kirill A. Shutemov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).