Skip to contentSkip to conversation

ipc-mq-do-not-validate-queue-attributes-default-ceiling-value-if-the-user-passed-attr==null.patch removed from -mm tree

nacked [email protected] 1 participant 1 message Aug 15, 2013

lore
Share & tools
lore
#0 lore raw

Subject: [nacked] ipc-mq-do-not-validate-queue-attributes-default-ceiling-value-if-the-user-passed-attr==null.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Thu, 15 Aug 2013 13:02:52 -0700

The patch titled

     Subject: ipc/mq: do not validate queue attributes default/ceiling value if the user passed attr==NULL
has been removed from the -mm tree.  Its filename was
     ipc-mq-do-not-validate-queue-attributes-default-ceiling-value-if-the-user-passed-attr==null.patch

This patch was dropped because it was nacked

------------------------------------------------------
From: Sasikantha Babu <[email protected]>
Subject: ipc/mq: do not validate queue attributes default/ceiling value if the user passed attr==NULL

The kernel should not validate queue attributes default/ceiling value while creating a mqueue, if user passed attr as NULL. Otherwise in the worst case if the validation fails then sys_mq_open returns -EINVAL/-EOVERFLOW which will leave the user clueless about the reason for the failure.

Cc Jeff Layton <[email protected]>
Cc Vladimir Davydov <[email protected]>
Cc Sasikantha Babu <[email protected]>
Cc Doug Ledford <[email protected]>
Cc Manfred Spraul <[email protected]>

---

 ipc/mqueue.c |   10 ----------
 1 file changed, 10 deletions(-)
ipc/mqueue.c renamed from ipc/mqueue.c~ipc-mq-do-not-validate-queue-attributes-default-ceiling-value-if-the-user-passed-attr==null +0 -2
diff -puN ipc/mqueue.c~ipc-mq-do-not-validate-queue-attributes-default-ceiling-value-if-the-user-passed-attr==null ipc/mqueue.c
@@ -741,16 +741,6 @@ static struct file *do_create(struct ipc
 			return ERR_PTR(ret);
 		/* store for use during create */
 		path->dentry->d_fsdata = attr;
-	} else {
-		struct mq_attr def_attr;