Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3681187pxv; Mon, 26 Jul 2021 09:16:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJziBW37CXXHXLA4yT3NPP8wvw8l8hOJ5rmVAsZF6HE5/KyNKYohHxX6eJHc0USh40crUmpT X-Received: by 2002:a05:6402:49a:: with SMTP id k26mr22081716edv.279.1627316182358; Mon, 26 Jul 2021 09:16:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627316182; cv=none; d=google.com; s=arc-20160816; b=CP92UrFmuae8i5ArO9lVPibAZ6QmKoZY/yMVFMXEQY5/3xWlTwVdewyAq3RfKwWkw6 FiAyX0dlkozzy1SsCqMLo3Fw+EyiRP9Yjs3VSzQJGbs8qoRCn9hRhLQ/70Fg2wBxuBYF SL5yYafFPFkgaOhbKAVCCRs6xUy0RSmj5c8fPjWgKwDQBDdTb/Y85bmMKNjNyg5IiEyg 1PtXxIL+OPG1gDIVv9kciGuI4+lM6YBp/pOoGwul521uh1JgBW6X0817XbyBi9ZmzTMn sBHKE7aX/4E4WH0/ncJEhCzybYr/ADw4cQVEPDBR1Bj09Mb18Uu3SOKxGMGgVbcgxXQs QPPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=g2CJXm8NbMa8QKSJK/8M7SmHkrUaS6RLkhwKGafk/JM=; b=vnQXAuD3eFt6a8AjvOWZ/h9V+iHKrX/EaZZqJbJpZ2saZyL62Nk9KGHEh1a1TdSXnY EV5tXKgTFHTEc+q5KHaJyN7J2CRWGZcoUzYlTy4HwL+XC3pCRier+/Oy04do1TuDcwOb vbOUCcHZ2ry+9L9FpdgTKpDQvxN3ixgUREDWGOEFrcvJ6vbb1JEr1/ebCLMnPia4Q5x9 KU8+dle8FbakVnYFjDn0vxjT3OTX+RRzwO9g+ViORGcKkn/TBkyddrTZy1cXK2XABdQY hxhGQB9FmO+sY59n2HFT9piEmwtHyBMkgMfzm1yu8uw1ygi4ahBqAOJl30JVDXJ6z6rV zsKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=b1Tu9SvC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ch28si294330edb.164.2021.07.26.09.15.58; Mon, 26 Jul 2021 09:16:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=b1Tu9SvC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234327AbhGZPd1 (ORCPT + 99 others); Mon, 26 Jul 2021 11:33:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:59706 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236514AbhGZPSv (ORCPT ); Mon, 26 Jul 2021 11:18:51 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2052E60FA0; Mon, 26 Jul 2021 15:59:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1627315160; bh=6tdVmc8+k5o5n29AgJThLPgZtvTBGjpXIogXodbu0IA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=b1Tu9SvC1z2Zq7AHek2u3EAnNrPEFXSGRbhBidqxQ4EGYuQAWrs5+CHUblfHFQwck tyogpx3wqUCgAUnhFD4bXGkVQ43kZx+kvPOLLD/3S5NagIf63K+q8Zb8TpVvo0jvvD waJj772t2azUeG98I38uy+IUkvqTbulKJpO/46hA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mike Kravetz , Dennis Camera , "Matthew Wilcox (Oracle)" , David Howells , Al Viro , Andrew Morton , Linus Torvalds Subject: [PATCH 5.4 096/108] hugetlbfs: fix mount mode command line processing Date: Mon, 26 Jul 2021 17:39:37 +0200 Message-Id: <20210726153834.762076100@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210726153831.696295003@linuxfoundation.org> References: <20210726153831.696295003@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mike Kravetz commit e0f7e2b2f7e7864238a4eea05cc77ae1be2bf784 upstream. In commit 32021982a324 ("hugetlbfs: Convert to fs_context") processing of the mount mode string was changed from match_octal() to fsparam_u32. This changed existing behavior as match_octal does not require octal values to have a '0' prefix, but fsparam_u32 does. Use fsparam_u32oct which provides the same behavior as match_octal. Link: https://lkml.kernel.org/r/20210721183326.102716-1-mike.kravetz@oracle.com Fixes: 32021982a324 ("hugetlbfs: Convert to fs_context") Signed-off-by: Mike Kravetz Reported-by: Dennis Camera Reviewed-by: Matthew Wilcox (Oracle) Cc: David Howells Cc: Al Viro Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- fs/hugetlbfs/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/hugetlbfs/inode.c +++ b/fs/hugetlbfs/inode.c @@ -76,7 +76,7 @@ enum hugetlb_param { static const struct fs_parameter_spec hugetlb_param_specs[] = { fsparam_u32 ("gid", Opt_gid), fsparam_string("min_size", Opt_min_size), - fsparam_u32 ("mode", Opt_mode), + fsparam_u32oct("mode", Opt_mode), fsparam_string("nr_inodes", Opt_nr_inodes), fsparam_string("pagesize", Opt_pagesize), fsparam_string("size", Opt_size),