Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp821360ybl; Wed, 11 Dec 2019 08:02:21 -0800 (PST) X-Google-Smtp-Source: APXvYqxeYUUG3CpkNTkKlZLRHGbHLKqPQvCiEGH4kZVsNdv4Zx6/2F+P1G5ayD7v50hf3P7+nOOZ X-Received: by 2002:a05:6830:1d6:: with SMTP id r22mr2934746ota.196.1576080140926; Wed, 11 Dec 2019 08:02:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576080140; cv=none; d=google.com; s=arc-20160816; b=m4WSq5Lw88Boy6IbY3KAS2Qt69lPpmNK273fq6ebNFpD30u2Fr4FvAYLKGy7DR39fe ekP+BRa4/txsnuf+CzBT+hMPK9NeGAFzn8lg1UtNLO1V6fT3YM3VB3uAlLh6nYO5YCxg 2JC03UjfBEg3IT8OrAMD123ao5HAkjvcIj9ML29836iMuXjQayj94/xoFjBdJVhIWFVf +hpz2fUNfqBLMYCoqV0ybuPl0nvx3aZqTAwFZYQnOHk4PAH1WogFu/Ytu0MRjD+uzofQ ocoHQWGuROJa+kXfoCZnTbnXs+C79Js6j4c18gIj3ctLHL7lpYKddKdmY6wbKIduijpt dcpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=n4pWo6wQ66WG7gmBu9hOHoOSWde7DiwEDcnZe4NcQl8=; b=MNdEfUbKTiEDNVob+VpuC7lkJpEfXM9RMpGEY6EPoP9CKoHJATxvVeTt1w4/AK8Xl+ qdY3luu4g0R/wGyke+gN8y8K7oXvuHQj1XVIQdh7nHwarbbk3WIKI1KKUn/7k9NREoN0 VcLLZRtRP5Xezh+/CquuB6pUS0jXEXVPHxDCbQk1jWYsFkfNy/h1ueDU6uY8PZxN75le f18503LwGvftkyxetz+/riJD32eqFj1GH9VoSzxwOuDk6OW4LXihK5vMhW39VYv+6Vmw Av5jSykssOLNN5vCZmDSkdaUbtsk8ZoVtPukIzuURwTY9S5ZgtB3qbeMk2A3TU//DwGe X8vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=whZOHmHJ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d13si1313881otp.196.2019.12.11.08.02.02; Wed, 11 Dec 2019 08:02:20 -0800 (PST) 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=@kernel.org header.s=default header.b=whZOHmHJ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732123AbfLKP7k (ORCPT + 99 others); Wed, 11 Dec 2019 10:59:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:38468 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731552AbfLKPOA (ORCPT ); Wed, 11 Dec 2019 10:14:00 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7731D2467E; Wed, 11 Dec 2019 15:13:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576077239; bh=Q5Dcr8A1aSAnDMxrhZ4ckRgixOVCPQ3v2ONjkEvR5QA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=whZOHmHJK8HUo4RaDj7juJ1XUBqUja2VG+jcPRXYYVPe5X18tNIOYYmbhMMTWoeLq wRCNjJbSMadtv3qtTt7jVDD8ZgJ46nDOGwG9h9Z19xeIFcMQ1sUWv0w2sWZqfObEi4 T+fJaDJjRVKaOAXcElQiXvVItA07JDQQReBBApn8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Trond Myklebust , "J. Bruce Fields" Subject: [PATCH 5.3 069/105] nfsd: restore NFSv3 ACL support Date: Wed, 11 Dec 2019 16:05:58 +0100 Message-Id: <20191211150250.436375546@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191211150221.153659747@linuxfoundation.org> References: <20191211150221.153659747@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: J. Bruce Fields commit 7c149057d044c52ed1e1d4ee50cf412c8d0f7295 upstream. An error in e333f3bbefe3 left the nfsd_acl_program->pg_vers array empty, which effectively turned off the server's support for NFSv3 ACLs. Fixes: e333f3bbefe3 "nfsd: Allow containers to set supported nfs versions" Cc: stable@vger.kernel.org Cc: Trond Myklebust Signed-off-by: J. Bruce Fields Signed-off-by: Greg Kroah-Hartman --- fs/nfsd/nfssvc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/fs/nfsd/nfssvc.c +++ b/fs/nfsd/nfssvc.c @@ -94,12 +94,11 @@ static const struct svc_version *nfsd_ac #define NFSD_ACL_MINVERS 2 #define NFSD_ACL_NRVERS ARRAY_SIZE(nfsd_acl_version) -static const struct svc_version *nfsd_acl_versions[NFSD_ACL_NRVERS]; static struct svc_program nfsd_acl_program = { .pg_prog = NFS_ACL_PROGRAM, .pg_nvers = NFSD_ACL_NRVERS, - .pg_vers = nfsd_acl_versions, + .pg_vers = nfsd_acl_version, .pg_name = "nfsacl", .pg_class = "nfsd", .pg_stats = &nfsd_acl_svcstats,