Message ID | 20190619123019.30032-9-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 51E961580 for <patchwork-linux-fsdevel@patchwork.kernel.org>; Wed, 19 Jun 2019 12:31:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 42CE2283AD for <patchwork-linux-fsdevel@patchwork.kernel.org>; Wed, 19 Jun 2019 12:31:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 376BC28767; Wed, 19 Jun 2019 12:31:13 +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 C6384283AD for <patchwork-linux-fsdevel@patchwork.kernel.org>; Wed, 19 Jun 2019 12:31:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731845AbfFSMbL (ORCPT <rfc822;patchwork-linux-fsdevel@patchwork.kernel.org>); Wed, 19 Jun 2019 08:31:11 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:36994 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731869AbfFSMak (ORCPT <rfc822;linux-fsdevel@vger.kernel.org>); Wed, 19 Jun 2019 08:30:40 -0400 Received: by mail-wr1-f68.google.com with SMTP id v14so3213685wrr.4 for <linux-fsdevel@vger.kernel.org>; Wed, 19 Jun 2019 05:30:39 -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=cdQVoNmmq/tpICs94VWnUfb4xhH0uHVfAUpoN+yDuN4=; b=Y62kbKkx7jGuoTK8UlQKUtExlnegycyWya9bGSmsjeb4SIwkCcaGqaJB4f6/E+d0UF /yHII4BxSBawOV8HYjBopu2ftTWkmIaxg8ItoGyTqOHEV8fP+pZrqqLDpWhz71yO3sY7 VfZJkcb3SknGCjUD1ht40qkb3oa4YraJ/4lwiUAlRcoOmbquZGSkPlikwB/Km11QaqMa k419FAdZzZ3ybJAGSQUCBKzYQwqz0HlNXTmBiPxP9Lq3s0POP8U/9NYxflRll/q7rdke 7uPotV3e9xbyXTZwfCScGy3XDDwZtGFfd2THX8CyC5mV4XzTvtbsCK+dulfI6Yk+uMxP G39A== X-Gm-Message-State: APjAAAVPbD1Z60O0s00mtqPyhId1+YnQai1opi7K1E47WjbQusnnYWsk f4+ukInjvZSPR62blBskzuMKXw== X-Google-Smtp-Source: APXvYqzgc/pTXrx3oLCjioNyxDtYbyoBKOJfXCsDmaWxhuRtivEE9x9bE9zw/wRPVqXoUt4DZF9cvQ== X-Received: by 2002:adf:efcb:: with SMTP id i11mr37772543wrp.188.1560947438884; Wed, 19 Jun 2019 05:30:38 -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.37 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 19 Jun 2019 05:30:38 -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 09/13] mqueue: don't ignore options Date: Wed, 19 Jun 2019 14:30:15 +0200 Message-Id: <20190619123019.30032-9-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/ipc/mqueue.c b/ipc/mqueue.c index 557aa887996a..1e8567c20d6a 100644 --- a/ipc/mqueue.c +++ b/ipc/mqueue.c @@ -1577,7 +1577,7 @@ static const struct super_operations mqueue_super_ops = { static const struct fs_context_operations mqueue_fs_context_ops = { .free = mqueue_fs_context_free, - .parse_param = vfs_parse_sb_flag, + .parse_param = vfs_parse_ro_rw, .get_tree = mqueue_get_tree, };
The options "sync", "async", "dirsync", "lazytime", "nolazytime", "mand" and "nomand" make no sense for the mqueue 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> --- ipc/mqueue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)