Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1907456imm; Sun, 8 Jul 2018 14:11:31 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfwxm7Z9V5oRMIOfSy5n8CSMLg+2QKEmKuMaGjiwXUabq7F/Oz9+0WgSnE3GmaeCNQWi5Yj X-Received: by 2002:a63:91c8:: with SMTP id l191-v6mr16109822pge.180.1531084291509; Sun, 08 Jul 2018 14:11:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531084291; cv=none; d=google.com; s=arc-20160816; b=uXD0Ce8VUjjkBla54LCDQdJvvPuZ2QRsH7As9XA0NgXGw7K6F9hAVZeyHVaR72/NLx 7AGi9utiPaYOa7iFYn1h/PGXj4W1nrj56xvV9q5qcmdzddprHV8VB0H/D6TkPptjxFAF FR1B1MGSspkTW4lG2ofhdhVWIlc1D72K9qlTv7YJbIdXPHzIX2Pww2mq6t3D/lR1/pwG MqtR6MxY+FKJB0ORVHfOW3WmToVaSmTpdIknACQYUopeuLVA9j3+FF7t9ICeocMPfAZy LTO80xRQeU8woZ5fyeFNMLgqRS5i/kb98hdmVLiZvctPHwvGNCNdNPSkAqopAVKyKDiE cSBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=0zZrDFaUYH6tNLCEMNQxuslgb4FT2NkwdB6xP3Qwwyg=; b=C36JDngiBUSV02Gd3q3b1Uocz1OpO/oUdDM37X8weM+RCqK7YqC039utCAQvR4Gibr V3So62rkzqAEmikpfdLWeYjUuKz7oXghFjy2MWgf1jRXiZ95QLpvz9jQ9Qh7QFrgK1VP mGWF9mEqUuUTu7v1oEqHkxafuNe6qV/nkjADZRUWIREB7/WQ/Z7rB4WkDCuKo43i3Ie2 CZx7RMbDyAr06Ve3JV3+oUz/1zMEvbYCnbZceg5IFKvsr/5YANXm0fz8Ph1UircwVMUU cNpIQ1OuCmMTuMBSl8ItBbaSzS/bQL6BfA/yOEATax+/tLnFFhT3AZEU1FJahV2g8yl0 ZnNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NKKcoGB8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a7-v6si11960789pgt.495.2018.07.08.14.11.17; Sun, 08 Jul 2018 14:11:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NKKcoGB8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933582AbeGHVI4 (ORCPT + 99 others); Sun, 8 Jul 2018 17:08:56 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:37453 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933079AbeGHVFh (ORCPT ); Sun, 8 Jul 2018 17:05:37 -0400 Received: by mail-pg1-f193.google.com with SMTP id n15-v6so845386pgv.4; Sun, 08 Jul 2018 14:05:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=0zZrDFaUYH6tNLCEMNQxuslgb4FT2NkwdB6xP3Qwwyg=; b=NKKcoGB8pNJxeJsbsl/iYSZH2whmUvTpEX10H3ORxUst7ekV3At+gPDCCGSo/X84Lh x6t3bSSGuT63macMzHqAGXpVfaPYxfd943uhAz8JaM0yCngSxgL0HO7LkK1nFfwhLzlv XfuEt/ZaO2YXodLj+e2BfFEiFhk2wXqHqJSK00TQXMFNdP+A3NMJZMG+wMCYOJokZ5q1 S2oFQpY0PHiijJ/h7oTZ05OliIhzvgrb9X4biX73TSUE6TsfvRLzmKuM/g+G66Q55GIb n3C1uxQ9PRVnSJcqSzjfYu06oNY+v0H4PEdkAfzpL3X1vbgVCmNBPIsW/2CDJVbH4VXh 9l8Q== 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; bh=0zZrDFaUYH6tNLCEMNQxuslgb4FT2NkwdB6xP3Qwwyg=; b=uOEG2EFGvoI340imBZRbJqC4Bfy5SBy6cmiMtUSUGjbbZGbqS6WsyyPaK/FzhKByha vU1+twUduqDjUn9olrIlcY954pKr/ZpWaEkQF9oMfHOH03BXQnl/cddCZvPEFOYLSpMa Vv03+bt7TP3NNQ4lE+E+BtJFl2mOAbMExI33EqBoxjhUbO4jeNhs1gF7gLfVzoyNn9jx 4swdbrAMoV5h7rPBKp5f7dCUut86LTANWwNH4xWD8BFwuoVDw3RW5BD4/edmEL+zfOER LtZLdkimFzbiv1tg9wGge02XkgxbqHwjrov08Vvk+fzzhTzrqv45zda0/sdtOmlfGUw5 MZgg== X-Gm-Message-State: APt69E1JdBfOnE1lRJ15r0zkqpSnTZKlyjmjmFhj/VFGSvKTgxUqGSNY VqD6H2ZR9GnbNpMS879r2kg= X-Received: by 2002:a65:5907:: with SMTP id f7-v6mr16136687pgu.83.1531083937154; Sun, 08 Jul 2018 14:05:37 -0700 (PDT) Received: from sol.localdomain (c-67-185-97-198.hsd1.wa.comcast.net. [67.185.97.198]) by smtp.gmail.com with ESMTPSA id x68-v6sm23355681pfb.138.2018.07.08.14.05.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 08 Jul 2018 14:05:36 -0700 (PDT) From: Eric Biggers To: David Howells , Alexander Viro , linux-fsdevel@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Eric Biggers Subject: [PATCH 05/18] fs_context: fix mount option blacklist Date: Sun, 8 Jul 2018 14:01:41 -0700 Message-Id: <20180708210154.10423-6-ebiggers3@gmail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180708210154.10423-1-ebiggers3@gmail.com> References: <20180708210154.10423-1-ebiggers3@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Eric Biggers The blacklist didn't actually do anything, since match_token() always returned 0. Fixes: 8a2e54b8af88 ("vfs: Implement a filesystem superblock creation/configuration context") Signed-off-by: Eric Biggers --- fs/fs_context.c | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/fs/fs_context.c b/fs/fs_context.c index a0e22f4c6b64a..7a8d1ed34ae71 100644 --- a/fs/fs_context.c +++ b/fs/fs_context.c @@ -65,26 +65,26 @@ static const match_table_t common_clear_sb_flag = { }; static const match_table_t forbidden_sb_flag = { - { 0, "bind" }, - { 0, "move" }, - { 0, "private" }, - { 0, "remount" }, - { 0, "shared" }, - { 0, "slave" }, - { 0, "unbindable" }, - { 0, "rec" }, - { 0, "noatime" }, - { 0, "relatime" }, - { 0, "norelatime" }, - { 0, "strictatime" }, - { 0, "nostrictatime" }, - { 0, "nodiratime" }, - { 0, "dev" }, - { 0, "nodev" }, - { 0, "exec" }, - { 0, "noexec" }, - { 0, "suid" }, - { 0, "nosuid" }, + { 1, "bind" }, + { 1, "move" }, + { 1, "private" }, + { 1, "remount" }, + { 1, "shared" }, + { 1, "slave" }, + { 1, "unbindable" }, + { 1, "rec" }, + { 1, "noatime" }, + { 1, "relatime" }, + { 1, "norelatime" }, + { 1, "strictatime" }, + { 1, "nostrictatime" }, + { 1, "nodiratime" }, + { 1, "dev" }, + { 1, "nodev" }, + { 1, "exec" }, + { 1, "noexec" }, + { 1, "suid" }, + { 1, "nosuid" }, { }, }; -- 2.18.0