From: akpm@linux-foundation.org Subject: [nacked] ipc-mq-do-not-validate-queue-attributes-default-ceiling-value-if-the-user-passed-attr==null.patch removed from -mm tree Date: Thu, 15 Aug 2013 13:02:52 -0700 Message-ID: <520d33ec.6NJssn4S0uco/eWQ%akpm@linux-foundation.org> Reply-To: linux-kernel@vger.kernel.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mail.linuxfoundation.org ([140.211.169.12]:41928 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759467Ab3HOUCx (ORCPT ); Thu, 15 Aug 2013 16:02:53 -0400 Sender: mm-commits-owner@vger.kernel.org List-Id: mm-commits@vger.kernel.org To: mm-commits@vger.kernel.org, vdavydov@parallels.com, manfred@colorfullife.com, jlayton@redhat.com, dledford@redhat.com, sasikanth.v19@gmail.com Subject: [nacked] ipc-mq-do-not-validate-queue-attributes-default-ceiling-value-if-the-user-passed-attr==null.patch removed from -mm tree To: sasikanth.v19@gmail.com,dledford@redhat.com,jlayton@redhat.com,manfred@colorfullife.com,vdavydov@parallels.com,mm-commits@vger.kernel.org From: akpm@linux-foundation.org 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 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. Signed-off-by: Sasikantha Babu Cc: Jeff Layton Cc: Vladimir Davydov Cc: Sasikantha Babu Cc: Doug Ledford Cc: Manfred Spraul Signed-off-by: Andrew Morton --- ipc/mqueue.c | 10 ---------- 1 file changed, 10 deletions(-) diff -puN ipc/mqueue.c~ipc-mq-do-not-validate-queue-attributes-default-ceiling-value-if-the-user-passed-attr==null ipc/mqueue.c --- a/ipc/mqueue.c~ipc-mq-do-not-validate-queue-attributes-default-ceiling-value-if-the-user-passed-attr==null +++ a/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;