From patchwork Wed Aug 31 03:34:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Kent X-Patchwork-Id: 9306291 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1418A60865 for ; Wed, 31 Aug 2016 03:34:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0A1AF28E50 for ; Wed, 31 Aug 2016 03:34:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F09D328E51; Wed, 31 Aug 2016 03:34:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BFF6428E52 for ; Wed, 31 Aug 2016 03:34:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759240AbcHaDed (ORCPT ); Tue, 30 Aug 2016 23:34:33 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:32988 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759015AbcHaDea (ORCPT ); Tue, 30 Aug 2016 23:34:30 -0400 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 929C120415; Tue, 30 Aug 2016 23:34:23 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute7.internal (MEProxy); Tue, 30 Aug 2016 23:34:23 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=themaw.net; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=FVy1m17NuevLOIt8wck8cHhA8YY=; b=EApBX6 rZ2aNyWT/MkxseZRYLHLZZ8ePjXBjZF+7sqKDeLfgzcz4NuYLhg/HJRUKMnWYN5y qFLi334nKfJFsXB+WQ1XwdQYHuc4tCDQBt2GXykXBn3qIz++BOfy+0RMtUlsIkiu o+QjsqVeIqLbDYz3QU/mKKwDYtd2Cmv83GPVs= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=FVy1m17NuevLOIt 8wck8cHhA8YY=; b=jhVTm49hbEeTBQYhgc11xIQkRAZ3sNDOVLjTb9xSdqk1nd1 vwvHkVcJvplx+jkWf2FK4+GSlrLWbtAY6s/C3kjEPFu0BEmlG+sBC76jJ9j701dN tjULn0zvbCxt4J+Nb7AjzHl9GvjJZVzfZh0Fyuh4nGSFaTGcGiamQOz7WChE= X-Sasl-enc: znrDDr93Pu0po7HjxwNGmzAoMn5lp07VBI8OyaVgL30Y 1472614462 Received: from pluto.themaw.net (220-253-166-124.dyn.iinet.net.au [220.253.166.124]) by mail.messagingengine.com (Postfix) with ESMTPA id E924BCCE7D; Tue, 30 Aug 2016 23:34:22 -0400 (EDT) Received: from pluto.themaw.net (localhost [127.0.0.1]) by pluto.themaw.net (Postfix) with ESMTP id 2D2FCA007B; Wed, 31 Aug 2016 11:34:20 +0800 (AWST) Subject: [PATCH 3/3] autofs: fix "fix dev ioctl number range check" From: Ian Kent To: Andrew Morton Cc: linux-fsdevel , Tomohiro Kusumi , autofs mailing list , Kernel Mailing List Date: Wed, 31 Aug 2016 11:34:20 +0800 Message-ID: <20160831033420.9910.16809.stgit@pluto.themaw.net> In-Reply-To: <20160831033409.9910.77067.stgit@pluto.themaw.net> References: <20160831033409.9910.77067.stgit@pluto.themaw.net> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Tomohiro Kusumi 102a340f had a typo that made the count macro negative (-13). The acutal check used by ioctl is ((cmd - cmd_first) > COUNT), so it needs to be positive (13). * 102a340f is a commit in linux-next which hasn't been merged to mainline upstream. Signed-off-by: Tomohiro Kusumi Signed-off-by: Ian Kent --- fs/autofs4/autofs_i.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/fs/autofs4/autofs_i.h b/fs/autofs4/autofs_i.h index 4404a22..a1fba42 100644 --- a/fs/autofs4/autofs_i.h +++ b/fs/autofs4/autofs_i.h @@ -21,7 +21,7 @@ #define AUTOFS_DEV_IOCTL_IOC_FIRST (AUTOFS_DEV_IOCTL_VERSION) #define AUTOFS_DEV_IOCTL_IOC_COUNT \ - (AUTOFS_DEV_IOCTL_VERSION_CMD - AUTOFS_DEV_IOCTL_ISMOUNTPOINT_CMD) + (AUTOFS_DEV_IOCTL_ISMOUNTPOINT_CMD - AUTOFS_DEV_IOCTL_VERSION_CMD) #include #include