+ fix-logic-error-in-ipc-compat-semctl.patch added to -mm tree

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

 



The patch titled
     fix logic error in ipc compat semctl()
has been added to the -mm tree.  Its filename is
     fix-logic-error-in-ipc-compat-semctl.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: fix logic error in ipc compat semctl()
From: Alexander Graf <agraf@xxxxxxx>

When calling a semctl(IPC_STAT) without IPC_64 the check if the memory is
unevaluated.  This patch fixes this.

Signed-off-by: Alexander Graf <agraf@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 ipc/compat.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN ipc/compat.c~fix-logic-error-in-ipc-compat-semctl ipc/compat.c
--- a/ipc/compat.c~fix-logic-error-in-ipc-compat-semctl
+++ a/ipc/compat.c
@@ -225,7 +225,7 @@ static inline int put_compat_semid_ds(st
 	int err;
 
 	if (!access_ok (VERIFY_WRITE, up, sizeof(*up)))
-		err = -EFAULT;
+		return -EFAULT;
 	err  = __put_compat_ipc_perm(&s->sem_perm, &up->sem_perm);
 	err |= __put_user(s->sem_otime, &up->sem_otime);
 	err |= __put_user(s->sem_ctime, &up->sem_ctime);
_

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

fix-logic-error-in-ipc-compat-semctl.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