Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4309535ybl; Mon, 26 Aug 2019 08:32:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqwjol7YkHOJDen3FargpP3d40Kh6poZaxbBl/1kpuHq+85hF1kDfYISQAJTzt8LSlZ/HxBB X-Received: by 2002:a65:6093:: with SMTP id t19mr16943791pgu.79.1566833578409; Mon, 26 Aug 2019 08:32:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566833578; cv=none; d=google.com; s=arc-20160816; b=WTGv8D7hprsTyiSxcsImKvEkrVmpxtxTEVG3fXlRTbE6kN02pZJwwsHesdaXz1egNz lK+NbMbtWjDLYPCKe24Gqgy8rYY9GWk4xrVGZUMhXzPBQJW/zEUdOt9tyarHvHcTfDVX l/QSN7U6DuRtwv+47rHr18B13mOw095gI/uNTeVUJRxOqjMWPSaai8d2Rsnjvx28LOBa QmH8PVZXsD7Y7iVltgerYh59qqzSR/X1LaPJ0N44CE0LXKoWLgqqPnPCBxLCeMBveOcS J8rtpWZrqrfu1YaNdgERF17yQtTpp/OCqMBCrQu3iwOylIT8uijMq1D/dO+N60hq4EVL QU/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=gUx4bIz6SbSC5XBGXuEWiYRqiIogpwSbKJjzgPIGaN8=; b=zPSCaCEgy7sZ/eRNUFj3SWaXXE56RN1hIBw6GC22ACzyHdrnnIp0eN9Ycvwb5LkxLz oh1FSa86EajF4e6o6hB8ZnE+t081lIl+W1FSZuBOgvjND8UUdTvdVKJ3i2Ka0v3HuAlD Z/SKyx6iF8cMzA+f9oKWdmy1jmDWCuSKQidGRCKk3zHqMZ6VYbvc9rg5Lk6yUmN81Yym LmVp8lJWkblT9WG85JdlBnFhcGryEtzlK0tvW5SdghbWQL7+EGO+pWCHlDdDihcjY9QQ ixXYaYO4OkEbQjc2bNmidqjZml+10SDpBdKA1nyMGv+QhpmaafRHGef08QkgfS2vLdk8 eFlA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d1si9052872pgn.512.2019.08.26.08.32.43; Mon, 26 Aug 2019 08:32:58 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732564AbfHZOiR (ORCPT + 99 others); Mon, 26 Aug 2019 10:38:17 -0400 Received: from fieldses.org ([173.255.197.46]:46604 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726484AbfHZOiR (ORCPT ); Mon, 26 Aug 2019 10:38:17 -0400 Received: by fieldses.org (Postfix, from userid 2815) id E12333F0; Mon, 26 Aug 2019 10:38:16 -0400 (EDT) Date: Mon, 26 Aug 2019 10:38:16 -0400 From: "J. Bruce Fields" To: Alex Lyakas Cc: chuck.lever@oracle.com, linux-nfs@vger.kernel.org, Shyam Kaushik Subject: Re: [RFC-PATCH] nfsd: when unhashing openowners, increment openowner's refcount Message-ID: <20190826143816.GD22759@fieldses.org> References: <1566406146-7887-1-git-send-email-alex@zadara.com> <20190826133951.GC22759@fieldses.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190826133951.GC22759@fieldses.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Mon, Aug 26, 2019 at 09:39:51AM -0400, J. Bruce Fields wrote: > On Sun, Aug 25, 2019 at 01:12:34PM +0300, Alex Lyakas wrote: > > You are listed as maintainers of nfsd. Can you please take a look at > > the below patch? > > Thanks! > > I take it this was found by some kind of code analysis or fuzzing, not > use in production? > > Asking because I've been considering just deprecating it, so: So, unless someone objects I'd like to queue this up for 5.4. --b. commit 9d60d93198c6 Author: J. Bruce Fields Date: Mon Aug 26 10:28:58 2019 -0400 Deprecate nfsd fault injection This is only useful for client testing. I haven't really maintained it, and reference counting and locking are wrong at this point. You can get some of the same functionality now from nfsd/clients/. It was a good idea but I think its time has passed. In the unlikely event of users, hopefully the BROKEN dependency will prompt them to speak up. Otherwise I expect to remove it soon. Reported-by: Alex Lyakas Signed-off-by: J. Bruce Fields diff --git a/fs/nfsd/Kconfig b/fs/nfsd/Kconfig index bff8456220e0..10cefb0c07c7 100644 --- a/fs/nfsd/Kconfig +++ b/fs/nfsd/Kconfig @@ -148,7 +148,7 @@ config NFSD_V4_SECURITY_LABEL config NFSD_FAULT_INJECTION bool "NFS server manual fault injection" - depends on NFSD_V4 && DEBUG_KERNEL && DEBUG_FS + depends on NFSD_V4 && DEBUG_KERNEL && DEBUG_FS && BROKEN help This option enables support for manually injecting faults into the NFS server. This is intended to be used for