From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Moyer Subject: Re: [PATCH 2/2] autofs4 - fix string validation check order Date: Tue, 28 Oct 2008 09:25:37 -0400 Message-ID: References: <20081028053047.29379.19919.stgit@zeus.themaw.net> <20081028053053.29379.15598.stgit@zeus.themaw.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: autofs mailing list , linux-fsdevel , Andrew Morton , Kernel Mailing List To: Ian Kent Return-path: In-Reply-To: <20081028053053.29379.15598.stgit@zeus.themaw.net> (Ian Kent's message of "Tue, 28 Oct 2008 14:30:53 +0900") List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: autofs-bounces@linux.kernel.org Errors-To: autofs-bounces@linux.kernel.org List-Id: linux-fsdevel.vger.kernel.org Ian Kent writes: > In function validate_dev_ioctl() we check that the string we've > been sent is a valid path. The function that does this check > assumes the string is NULL terminated but our NULL termination > check isn't done until after this call. This patch changes the > order of the check. > > Signed-off-by: Ian Kent Acked-by: Jeff Moyer