+ add-listio-syscall-support-fix.patch added to -mm tree

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

 



The patch titled
     add-listio-syscall-support fix
has been added to the -mm tree.  Its filename is
     add-listio-syscall-support-fix.patch

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: add-listio-syscall-support fix
From: Bharata B Rao <bharata@xxxxxxxxxx>

Fixes a ioctx reference leak in compat_sys_lio_submit().

Signed-off-by: Bharata B Rao <bharata@xxxxxxxxxx>
Cc: Sébastien Dugué <sebastien.dugue@xxxxxxxx>
Cc: Laurent Vivier <laurent.vivier@xxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 fs/compat.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff -puN fs/compat.c~add-listio-syscall-support-fix fs/compat.c
--- a/fs/compat.c~add-listio-syscall-support-fix
+++ a/fs/compat.c
@@ -749,8 +749,10 @@ compat_sys_lio_submit(aio_context_t ctx_
 		struct sigevent kevent;
 		event = compat_alloc_user_space(sizeof(struct sigevent));
 		if (get_compat_sigevent(&kevent, sig_user) ||
-			copy_to_user(event, &kevent, sizeof(struct sigevent)))
-			return -EFAULT;
+			copy_to_user(event, &kevent, sizeof(struct sigevent))) {
+				ret = -EFAULT;
+				goto out_put_ctx;
+		}
 	}
 
 	lio = lio_create(event, mode);
_

Patches currently in -mm which might be from bharata@xxxxxxxxxx are

add-listio-syscall-support.patch
add-listio-syscall-support-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