Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp1875222pxb; Mon, 13 Sep 2021 07:21:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhKPc8N9kpiBR7a+y5QJqbqx+umwNsnlTTmW1n0jLf2xBO2dBqkogZAUm29q2GwQhQaxGW X-Received: by 2002:a6b:f214:: with SMTP id q20mr9211563ioh.84.1631542875452; Mon, 13 Sep 2021 07:21:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631542875; cv=none; d=google.com; s=arc-20160816; b=qw1j2KX3MvuWwIGRTORMj2boWTtgBhAkyRAp0+SmTogVLAB52ZQNAa2jps//+5SzxB 6EdzzVP39LhRjoX4b4WwJFvjsPImeeTkQ8YgiZtX3HOhOSEhYMunCpAcO1pb29lyrbu9 DP/tKwYms92bZDXjbipcLREUi5ybriPQf7d9+gs6PkMYQLrrD9GxBN4Zpz+MUVr8xKGA YrYwEaO/hUGEzN+RjrPOXDpOSwfjLQSxp3IR/CiVm8tYvzcjYByIfZEHx+cNyH/mG/tV H7KloV8nc+HC8ppzhxhlARRnOydX8goZVLxlKNyU0l1I2gJXKNjehmSfTeGxGqF7Md9n DXMA== 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=MlUG/Sjhdx6Np9/6+j8HpO6h2RGhd175r88GoAOhPzk=; b=Xp1aT0MO5GeAGaK28WLdLIjSHO6CK+vOx2dznnVA6NxnMy+m3emszYN78IOqOiOBKT IVeN2kNTtJjFQDMoNEODs/3sP/LUykMomTyRbBONgi3wBN7iAb1bkGlEMIP6rNA0/fum tqWE0NFFMnqrzYM1Ro9Eyyq470jHBXAVPDF5xcLEFGWJxtDJm86NKUV6dT4+lq7ByFnj WSsiC/9SyMHmHrmhRwXZ7IagoXa5OuEt3U5AP4Rcv6r3srN5MONX9Kil5JweQQdguE79 aj63/f7krpn2GSmTlSQwyMr/iKQvhVErFVc8t+X8Nds1N+zbuo2y7LpMnZaaburCeU2U Nf5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ug0usjFg; 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 e3si5985564ili.28.2021.09.13.07.21.02; Mon, 13 Sep 2021 07:21:15 -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=ug0usjFg; 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 S1345209AbhIMOT1 (ORCPT + 99 others); Mon, 13 Sep 2021 10:19:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:37398 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345038AbhIMOOt (ORCPT ); Mon, 13 Sep 2021 10:14:49 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id EB10E61AEF; Mon, 13 Sep 2021 13:43:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631540637; bh=k6QrmouAQnh3bcPZYG3BkcLiWo6qCAT+FpjzOobLcLI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ug0usjFgj6jPL/YrJjzEUPpPZ7icSTZRz6ebSMi6t92q6uoCz+DNkKHTNwkq5fgFW Ia1jtlJw2eLMO2mSWrZlbVyJJ+1NHXTu2HDSWqPbFqplI0PipWDyvoVucRiInKhS/2 nFQo5LaSH3iNDtUDNoN2XamPlnDiWJy1q7981eg4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christian Brauner , Namjae Jeon , Steve French Subject: [PATCH 5.13 275/300] smb3: fix posix extensions mount option Date: Mon, 13 Sep 2021 15:15:36 +0200 Message-Id: <20210913131118.622507712@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210913131109.253835823@linuxfoundation.org> References: <20210913131109.253835823@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: Steve French commit 7321be2663da5922343cc121f1ff04924cee2e76 upstream. We were incorrectly initializing the posix extensions in the conversion to the new mount API. CC: # 5.11+ Reported-by: Christian Brauner Acked-by: Christian Brauner Suggested-by: Namjae Jeon Signed-off-by: Steve French Signed-off-by: Greg Kroah-Hartman --- fs/cifs/fs_context.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) --- a/fs/cifs/fs_context.c +++ b/fs/cifs/fs_context.c @@ -1259,10 +1259,17 @@ static int smb3_fs_context_parse_param(s ctx->posix_paths = 1; break; case Opt_unix: - if (result.negated) + if (result.negated) { + if (ctx->linux_ext == 1) + pr_warn_once("conflicting posix mount options specified\n"); ctx->linux_ext = 0; - else ctx->no_linux_ext = 1; + } else { + if (ctx->no_linux_ext == 1) + pr_warn_once("conflicting posix mount options specified\n"); + ctx->linux_ext = 1; + ctx->no_linux_ext = 0; + } break; case Opt_nocase: ctx->nocase = 1;