Message ID | 20190619123019.30032-10-mszeredi@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-fsdevel-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5DB9E924 for <patchwork-linux-fsdevel@patchwork.kernel.org>; Wed, 19 Jun 2019 12:30:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4DACA283AD for <patchwork-linux-fsdevel@patchwork.kernel.org>; Wed, 19 Jun 2019 12:30:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 41A6428617; Wed, 19 Jun 2019 12:30:59 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI 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 D9BDC28508 for <patchwork-linux-fsdevel@patchwork.kernel.org>; Wed, 19 Jun 2019 12:30:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731891AbfFSMao (ORCPT <rfc822;patchwork-linux-fsdevel@patchwork.kernel.org>); Wed, 19 Jun 2019 08:30:44 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:55093 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731878AbfFSMan (ORCPT <rfc822;linux-fsdevel@vger.kernel.org>); Wed, 19 Jun 2019 08:30:43 -0400 Received: by mail-wm1-f67.google.com with SMTP id g135so1579405wme.4 for <linux-fsdevel@vger.kernel.org>; Wed, 19 Jun 2019 05:30:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=U+fZF4p8UXoG115rrzAt76mcBbpeZ8uSJfCJdMqpJmo=; b=lb69jvKkz4vvnQo/2X6dzS8Nce6sWtVEbeheN6rcm+Pal7kN2gX99xBamVT/mftRs5 gM+i5bfMbH9YYBub8R/XMOVU9FHp0ZgEvksi9CBbjfaRhQ5VAuiZgCCfcAauq0nbASEO K/JdorWScQH/ALB2V/z9W75Vnbvj43zxl2YNC9RE6vSkHl1rJ7Ee6ZL6s+hOHC2ZobQM Czl1DwOphpb3ipDk0yhA9iWBoXs8hFpnyQUbLsqUnCFeb3EWSNYprJxyoQa65zFw6Fwi pbYrqSmnxX/uo9ArDwPVEpjYL8hHCniXDqJtXPqK/GrihaQxDHIqZNN0Ozr/xxoFA8IP LaAw== X-Gm-Message-State: APjAAAV75PKhHGMXdqlOMfJlAc9cNgPKhJkvkO0ksNNb5bXOhnpVbLYh RaGW4KWdbZtkE/vf5Iyo6wFVkw== X-Google-Smtp-Source: APXvYqxOFvgzAiwoliKXheRHN29zlWhShNiFpi+wWSWUHY8gLlo8vKWqRpXQ0haoqcTS2XPWsi/GyQ== X-Received: by 2002:a1c:6585:: with SMTP id z127mr8881636wmb.25.1560947441267; Wed, 19 Jun 2019 05:30:41 -0700 (PDT) Received: from miu.piliscsaba.redhat.com (catv-212-96-48-140.catv.broadband.hu. [212.96.48.140]) by smtp.gmail.com with ESMTPSA id 11sm1837513wmd.23.2019.06.19.05.30.38 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 19 Jun 2019 05:30:39 -0700 (PDT) From: Miklos Szeredi <mszeredi@redhat.com> To: David Howells <dhowells@redhat.com> Cc: Al Viro <viro@zeniv.linux.org.uk>, Ian Kent <raven@themaw.net>, linux-api@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 10/13] cpuset: don't ignore options Date: Wed, 19 Jun 2019 14:30:16 +0200 Message-Id: <20190619123019.30032-10-mszeredi@redhat.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190619123019.30032-1-mszeredi@redhat.com> References: <20190619123019.30032-1-mszeredi@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-fsdevel.vger.kernel.org> X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
[01/13] vfs: verify param type in vfs_parse_sb_flag()
|
expand
|
diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c index 025f6c6083a3..f6f6b5b44fc3 100644 --- a/kernel/cgroup/cpuset.c +++ b/kernel/cgroup/cpuset.c @@ -394,7 +394,7 @@ static int cpuset_get_tree(struct fs_context *fc) } static const struct fs_context_operations cpuset_fs_context_ops = { - .parse_param = vfs_parse_sb_flag, + .parse_param = vfs_parse_ro_rw, .get_tree = cpuset_get_tree, };
The options "sync", "async", "dirsync", "lazytime", "nolazytime", "mand" and "nomand" make no sense for the cpuset filesystem. If these options are supplied to fsconfig(FSCONFIG_SET_FLAG), then return -EINVAL instead of silently ignoring the option. Any implementation, such as mount(8) that needs to parse this option without failing should simply ignore the return value from fsconfig(). Signed-off-by: Miklos Szeredi <mszeredi@redhat.com> --- kernel/cgroup/cpuset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)