Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp506839rdb; Tue, 31 Oct 2023 13:41:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEh1nUpH1lT4U8iI8JG7vAkSHFou/xV//5omTqGz347yedXkaNbSIkZRz7SrXfP5UrdEahj X-Received: by 2002:a17:902:cec8:b0:1cc:7100:2d62 with SMTP id d8-20020a170902cec800b001cc71002d62mr1863773plg.39.1698784884296; Tue, 31 Oct 2023 13:41:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698784884; cv=none; d=google.com; s=arc-20160816; b=ba+UVAmQTnoSXBuE7FkwWuT99i7lJG+yvh4gEU15ndfQr0asYCucLddpW/RorQMUSL FnwpNKg7VfHOabzy4mKi5GHpYG7mjirWYgcKvcmH0XloGFwQzMNaZRgexW3SXnm/hAra U974YF2+vVA5Zm8I8bQQc2r2ESZKrLU8blTriAAcIpaOXEPFFrGucaYPEtboWt9A+eTm i/X6+oJSTO/RFgsebBbkWonoj7ZFP1Hpuhd+esAJou/T0ESL+9sK4G2axYBDz20sp5ws XZAFphsKkTV3hGoO4eDQeesN9pSzWQzwDH3c9kr7ZlIqGKXWLETybAvE4jjBpL45xQ5L IDaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:references:in-reply-to:subject :cc:to:from:mime-version:content-transfer-encoding:dkim-signature :dkim-signature; bh=iTCYKilYfpB3yt9VGpAyi+x0xIG4jRgqYzB0R8UJYxs=; fh=yLjDJJsW5hslygGs/rbQ408wfQLi857ZoEWDXCtUCaE=; b=xcXxYj1M9u2hSsZWAxOEvjb9bXd3pwqnkz113QjowEwPW9Hxay+t4lOqKVUwQl9ylm +mvzJTT50ghtYbrmpqCQ1lFEkyo0xarlYAcaSMACGN1jIvSNFz2Co5CqAP4/y4vT7PV9 z1/pA0xdK7SvJoVjEnbk5zISjqRZtcZD9f9iTdDsha07Mo9XVZ+kTN0UxY5YEhBuZ1Z7 uqzETDhgb4S4XxoZW5vqEcjRhrADbZdh93oyI9Tp1AqpwXejFgjw77eUXfgsXMC+oo/b kcHqF+1HwmLC7RG8A5cihT2NfUKhCecN8BxVukW7NBghLhi/0/Q7AwHU0I3AjACsocQe g+HA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=WRaxd39m; dkim=neutral (no key) header.i=@suse.de header.b=G5wUNfot; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id i11-20020a170902c94b00b001cc43334839si1522054pla.521.2023.10.31.13.41.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 13:41:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=WRaxd39m; dkim=neutral (no key) header.i=@suse.de header.b=G5wUNfot; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id BF6AF8083B1D; Tue, 31 Oct 2023 13:41:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233491AbjJaUkw (ORCPT + 99 others); Tue, 31 Oct 2023 16:40:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231710AbjJaUkv (ORCPT ); Tue, 31 Oct 2023 16:40:51 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CF6AF9 for ; Tue, 31 Oct 2023 13:40:48 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id AC6F51F38C; Tue, 31 Oct 2023 20:40:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1698784847; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iTCYKilYfpB3yt9VGpAyi+x0xIG4jRgqYzB0R8UJYxs=; b=WRaxd39mB8syQPqQZrqME5wDamWCJ3KC2dNVTSHz7jiJn2aRITLy+QQbWV+VN+7XfWSW7O EpS4Ucu8QhIjygIT2xXq7uzqgmagufVg13gg3g52/VZuw2ilZfgsW/ykQSTYAuVOdtOD6h DsU2w2sH917ANIEZN6eEvJ8JqRu6Zjk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1698784847; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iTCYKilYfpB3yt9VGpAyi+x0xIG4jRgqYzB0R8UJYxs=; b=G5wUNfot3LMquWzpb0/jx62Uy0CcMLFbX2fFNZ5e7ql+k+AQUsM9MJ8VweVXXw/g5Xvt9t 170DB4KnGppfGrAg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id A35A1138EF; Tue, 31 Oct 2023 20:40:45 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id jYufFk1mQWUFTQAAMHmgww (envelope-from ); Tue, 31 Oct 2023 20:40:45 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 From: "NeilBrown" To: "Chuck Lever III" Cc: "Jeff Layton" , "Linux NFS Mailing List" , "Olga Kornievskaia" , "Dai Ngo" , "Tom Talpey" Subject: Re: [PATCH 0/5] sunrpc: not refcounting svc_serv In-reply-to: <9BA28F70-A3FC-4EC4-A638-A27C1867F221@oracle.com> References: <20231030011247.9794-1-neilb@suse.de>, <9BA28F70-A3FC-4EC4-A638-A27C1867F221@oracle.com> Date: Wed, 01 Nov 2023 07:40:42 +1100 Message-id: <169878484259.24305.17786556797570881562@noble.neil.brown.name> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 31 Oct 2023 13:41:02 -0700 (PDT) On Wed, 01 Nov 2023, Chuck Lever III wrote: > > > On Oct 29, 2023, at 6:08 PM, NeilBrown wrote: > > > > This patch set continues earlier work of improving how threads and > > services are managed. Specifically it drop the refcount. > > > > The refcount is always changed under the mutex, and almost always is > > exactly equal to the number of threads. Those few cases where it is > > more than the number of threads can usefully be handled other ways as > > see in the patches. > > > > The first patches fixes a potential use-after-free when adding a socket > > fails. This might be the UAF that Jeff mentioned recently. > > > > The second patch which removes the use of a refcount in pool_stats > > handling is more complex than I would have liked, but I think it is > > worth if for the result seen in 4/5 of substantial simplification. > > So I need a v2 of this series, then... > > - Move 4/5 to the beginning of the series (patch 1 or 2, doesn't matter) I don't understand.... 2 and 3 are necessary prerequisites for 4. The remove places where the refcount is used. > > - Add R-b, Fixes, and Cc: stable tags to those two patches Will do > > - Address Jeff's other comments Yep. > > AFAICT the 0-day bot reports were for the admin-revoked state series, > not this one. Agreed. NeilBrown > > > -- > Chuck Lever > > >