From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx2.suse.de ([195.135.220.15]:58637 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932577AbeF1DQJ (ORCPT ); Wed, 27 Jun 2018 23:16:09 -0400 Date: Thu, 28 Jun 2018 05:16:06 +0200 From: "Luis R. Rodriguez" To: Waiman Long Cc: "Luis R. Rodriguez" , Kees Cook , Andrew Morton , Jonathan Corbet , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-doc@vger.kernel.org, Al Viro , Matthew Wilcox , "Eric W. Biederman" , Takashi Iwai , Davidlohr Bueso Subject: Re: [PATCH v8 1/5] ipc: IPCMNI limit check for msgmni and shmmni Message-ID: <20180628031605.GJ21242@wotan.suse.de> References: <1529317698-16575-1-git-send-email-longman@redhat.com> <1529317698-16575-2-git-send-email-longman@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1529317698-16575-2-git-send-email-longman@redhat.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Mon, Jun 18, 2018 at 06:28:14PM +0800, Waiman Long wrote: > A user can write arbitrary integer values to msgmni and shmmni sysctl > parameters without getting error, but the actual limit is really > IPCMNI (32k). This can mislead users as they think they can get a > value that is not real. > > The right limits are now set for msgmni and shmmni so that the users > will become aware if they set a value outside of the acceptable range. > > Signed-off-by: Waiman Long Acked-by: Luis R. Rodriguez Luis