Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp21643561ybl; Mon, 6 Jan 2020 08:29:26 -0800 (PST) X-Google-Smtp-Source: APXvYqy+VlZdT0U5rmuvkFCK+3/5n86/sdA3YT+nMzYbJWeoYfAj3kplwLdAZ3noTn42aGEGJet1 X-Received: by 2002:a05:6830:1116:: with SMTP id w22mr119416009otq.63.1578328165992; Mon, 06 Jan 2020 08:29:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578328165; cv=none; d=google.com; s=arc-20160816; b=ysaxf4foPUxRLPRSkAUZPkKZzh4uvAS2jjMT2BzPZGm/+n6OTC7w5DTIZd2YsRcqL6 h4Z0Lm7rQCR35RVo22LlNPATrY0QU6xeSbu3s3lD9N2gJu+46CHZK0LmNO0XUVilh0A/ 0MHRtVs8pG1QbfCGjZcLlJ0NQaOXRjm48UMXB2hOv4eiWzvARjK3txjV/AvvlnE2ltKb Uf2kJBBYFpHWoFjeVb3/o4KAa8O9znTEprD9Nxu1AMe2TfR/QsO1F9uqqGe7jQskVv7r I+t5+GlIpTQ1ZfBJuAg/FNtv3mpBi/mZveW1RRuxhPLikxhhI1ZTdrRs7H1FXywWqxml G5VA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=dWZzCo0dL1t3oBL+mRxnfhduXRW4GvQOIUYTk1rT7zk=; b=VudNTRdo1wArME8hdyXUAmuHOzgPFAwc/9Tm2+kVZR+OR8g32JflFz25rWbSW/B/tN ElBYjpKNWsgcZhJujRBtc3teF3aqgitB6tnKxjoaZJrdkq50a1RSbF7ATah9sBQrreN9 94+nfWSjwELHtW92fvlmgXVx8p0BUfZRVwvyMqJZC6FjBk2WKAJMgNcCInJ0yexsGXxL WmsLJ/i5ax2WlNsVkVGLVehc7f6HLC8YYco5a4OiapYa6mx2jOBDL53iYK7I6hDUxON4 Bv1j0YDilrnuWI2saHynd/MYZeOykHUvFQaaaoyJ3kQeyEEgiwBeWWSPZyWWChebRtjf +RQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=aOWkfbIQ; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p8si19015345otc.118.2020.01.06.08.29.05; Mon, 06 Jan 2020 08:29:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-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=@redhat.com header.s=mimecast20190719 header.b=aOWkfbIQ; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726695AbgAFQ3C (ORCPT + 99 others); Mon, 6 Jan 2020 11:29:02 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:41833 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726677AbgAFQ3C (ORCPT ); Mon, 6 Jan 2020 11:29:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1578328141; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=dWZzCo0dL1t3oBL+mRxnfhduXRW4GvQOIUYTk1rT7zk=; b=aOWkfbIQ9dFuGvqkhyEJq2KM69wp1i4rCcXL5XuxsLlnwhy6/KKrJ2UaYkQNlKhMrOBACo FUqCPH0KdBP1ZX9pvk1OKQ8Ep2Y9M3QKAxeu7BQ1hEMmbKBYTWmOMrMkrF0T86GguW6o0d Ay/Cyhg8zWhEMgkGUQzN3WzjfHE7ytQ= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-43-5o_xm6yvM4OHFzWq3DrMOQ-1; Mon, 06 Jan 2020 11:28:58 -0500 X-MC-Unique: 5o_xm6yvM4OHFzWq3DrMOQ-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2E3F218552DF; Mon, 6 Jan 2020 16:28:57 +0000 (UTC) Received: from pick.fieldses.org (ovpn-126-209.rdu2.redhat.com [10.10.126.209]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B7B1E10840F5; Mon, 6 Jan 2020 16:28:56 +0000 (UTC) Received: by pick.fieldses.org (Postfix, from userid 2815) id 9E8D7120198; Mon, 6 Jan 2020 11:28:54 -0500 (EST) Date: Mon, 6 Jan 2020 11:28:54 -0500 From: "J. Bruce Fields" To: "J. R. Okajima" Cc: trond.myklebust@hammerspace.com, linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org Subject: Re: [PATCH]: nfs acl: bugfix, don't use static nfsd_acl_versions[] Message-ID: <20200106162854.GA25029@pick.fieldses.org> References: <29104.1578242282@jrobl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <29104.1578242282@jrobl> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Thanks, but, see 7c149057d044 "nfsd: restore NFSv3 ACL support", in 5.5-rc1; looks like you and I both stumbled on the identical fix?--b. On Mon, Jan 06, 2020 at 01:38:02AM +0900, J. R. Okajima wrote: > Here is a patch to fix nfs acl. > > J. R. Okajima > > ---------------------------------------- > commit 8684b9a7c55e9283e8b21112fbdf19b4d27f36b7 > Author: J. R. Okajima > Date: Mon Jan 6 01:31:20 2020 +0900 > > nfs acl: bugfix, don't use static nfsd_acl_versions[] > > By the commit for v5.2-rc1, > e333f3bbefe3 2019-04-24 nfsd: Allow containers to set supported nfs versions > the line to copy a value from nfsd_acl_version[] to static > nfsd_acl_versions[] was removed. It is OK, but nfsd_acl_versions[] is > still set to nfsd_acl_program.pg_vers which means pg_vers has NULLs for > its all entires and nfsacl stops working entirely. > I am afraid the removal of static nfsd_acl_versions[] was just > forgotten. > > Signed-off-by: J. R. Okajima > > diff --git a/fs/nfsd/nfssvc.c b/fs/nfsd/nfssvc.c > index 18d94ea984ba..7f938bcb927d 100644 > --- a/fs/nfsd/nfssvc.c > +++ b/fs/nfsd/nfssvc.c > @@ -94,12 +94,11 @@ static const struct svc_version *nfsd_acl_version[] = { > > #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, >