- x86_64-add-compat_sys_vmsplice-and-use-it-in.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     x86_64: Add compat_sys_vmsplice and use it in x86-64

has been removed from the -mm tree.  Its filename is

     x86_64-add-compat_sys_vmsplice-and-use-it-in.patch

This patch was probably dropped from -mm because
it has now been merged into a subsystem tree or
into Linus's tree, or because it was folded into
its parent patch in the -mm tree.

------------------------------------------------------
Subject: x86_64: Add compat_sys_vmsplice and use it in x86-64
From: "Andi Kleen" <ak@xxxxxxx>


Signed-off-by: Andi Kleen <ak@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 arch/x86_64/ia32/ia32entry.S |    1 +
 fs/compat.c                  |   20 ++++++++++++++++++++
 2 files changed, 21 insertions(+)

diff -puN arch/x86_64/ia32/ia32entry.S~x86_64-add-compat_sys_vmsplice-and-use-it-in arch/x86_64/ia32/ia32entry.S
--- devel/arch/x86_64/ia32/ia32entry.S~x86_64-add-compat_sys_vmsplice-and-use-it-in	2006-05-01 12:15:29.000000000 -0700
+++ devel-akpm/arch/x86_64/ia32/ia32entry.S	2006-05-01 12:15:29.000000000 -0700
@@ -695,4 +695,5 @@ ia32_sys_call_table:
 	.quad sys_splice
 	.quad sys_sync_file_range
 	.quad sys_tee
+	.quad compat_sys_vmsplice
 ia32_syscall_end:		
diff -puN fs/compat.c~x86_64-add-compat_sys_vmsplice-and-use-it-in fs/compat.c
--- devel/fs/compat.c~x86_64-add-compat_sys_vmsplice-and-use-it-in	2006-05-01 12:15:29.000000000 -0700
+++ devel-akpm/fs/compat.c	2006-05-01 12:15:29.000000000 -0700
@@ -1317,6 +1317,26 @@ out:
 	return ret;
 }
 
+asmlinkage long
+compat_sys_vmsplice(int fd, const struct compat_iovec __user *iov32,
+		    unsigned int nr_segs, unsigned int flags)
+{
+	unsigned i;
+	struct iovec *iov;
+	if (nr_segs >= UIO_MAXIOV)
+		return -EINVAL;
+	iov = compat_alloc_user_space(nr_segs * sizeof(struct iovec));
+	for (i = 0; i < nr_segs; i++) {
+		struct compat_iovec v;
+		if (get_user(v.iov_base, &iov32[i].iov_base) ||
+		    get_user(v.iov_len, &iov32[i].iov_len) ||
+		    put_user(compat_ptr(v.iov_base), &iov[i].iov_base) ||
+		    put_user(v.iov_len, &iov[i].iov_len))
+			return -EFAULT;
+	}
+	return sys_vmsplice(fd, iov, nr_segs, flags);
+}
+
 /*
  * Exactly like fs/open.c:sys_open(), except that it doesn't set the
  * O_LARGEFILE flag.
_

Patches currently in -mm which might be from ak@xxxxxxx are

origin.patch
git-acpi.patch
x86_64-dont-warn-for-overflow-in-nommu-case-when-dma_mask-is-32bit-fix.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux