Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1384856rwd; Thu, 8 Jun 2023 17:38:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ63x6Fs6nzR2ixquUaGO+q3xr7CYr8Hd9591URAx9ygQLK7fup28YHvA+5tdegLo3ev1ulZ X-Received: by 2002:a05:6a20:7d88:b0:100:15c4:23af with SMTP id v8-20020a056a207d8800b0010015c423afmr5310969pzj.60.1686271090451; Thu, 08 Jun 2023 17:38:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686271090; cv=none; d=google.com; s=arc-20160816; b=dxnZsHe7SA0wBqBI1/Z63KSfR1wDphlg1OZCNjUWwMvyc7O3d22jNYIvUiAnDnpcDF fUYjp+pqze7IBpiCOmJYCEEQOSH9GyI8qVb8NkehJIv4uBB5y5Np6aT7umUoCbr7JjRw 9T+XnxOUTLE0VuWWFwSFdHRtMzT7TzqBWqC3hIXuuMgtRDHKfQyoQdwh7u7C9M3eitEu Z8uDSRQBTBHv3+/hl94y9QDNSnm+GOYLzP83C1E62SW2brwf7KBfggUV5136mpCwRQYa QZ1Edm/ALOSTFdxsd855k51fwuyKd0SK9EMhNAe/VdHaCyKsec3K8NbBHpraZ5vxFVBb RLZw== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=Nrdo84J0X8jc5B7eyB8R3RUmnR4HEezHSF/AurFo3mQ=; b=UlnfCdmUzVBdJAdZ6mhNjPe2D39geI5Z3FWsgWdHq7bznRCH32Wn0a2EsUZwy1U5+u 873cZZq5knXxO4gkJnCUc5jqzqOZ/tBu2AlvFvgjKQpUHPbs6DLBNC68VkawVAl+3J4z nYsYVxKqWDlJOzcG+dQ9o4Ex99E6YnVP/8QlCudL/FkcEtmruPNax4vn0eEHmW/lSLQ8 cvx0300JT5j53nzCoKs6p1hSdJJ4kS+Wv6VlETK+kSVGeAwkTBFbmOGTV9vKjIVj8+Lb I/+1nEtxqjuSHvVyFMiZrpUy7SnowNYBAkAh2dtjC1ifkYyrAbNZPLuy7tqCMvY9C67/ HXDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=qovGY+0h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t190-20020a6381c7000000b0050bfa82c23bsi1752011pgd.230.2023.06.08.17.37.58; Thu, 08 Jun 2023 17:38:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=qovGY+0h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237218AbjFIA12 (ORCPT + 99 others); Thu, 8 Jun 2023 20:27:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234568AbjFIA10 (ORCPT ); Thu, 8 Jun 2023 20:27:26 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 284DD2134; Thu, 8 Jun 2023 17:27:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id ABCE565253; Fri, 9 Jun 2023 00:27:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7D51DC433D2; Fri, 9 Jun 2023 00:27:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1686270444; bh=SIg2qSZ9l+pY1OkA6HENpenV0b7K5waTnRvy/sKwjlM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=qovGY+0h9kLFkv8QAsPqRiqvTog85N6Irziw8/5DXTE+XQCqe2huwuR906/zl7a/x Ho4FNOd10FP9DQauKymXsDz+ZhYXwSlGn5zAh+4ePggbfsi6GAzK1/KNUuA5lu+mB5 pWOAXh7/CxArWsHYtqr/+ee3eOzQjML/D1WpI3fQ= Date: Thu, 8 Jun 2023 17:27:22 -0700 From: Andrew Morton To: Dave Chinner Cc: Theodore Ts'o , Roman Gushchin , Kirill Tkhai , vbabka@suse.cz, viro@zeniv.linux.org.uk, brauner@kernel.org, djwong@kernel.org, hughd@google.com, paulmck@kernel.org, muchun.song@linux.dev, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org, zhengqi.arch@bytedance.com Subject: Re: [PATCH v2 3/3] fs: Use delayed shrinker unregistration Message-Id: <20230608172722.d32733db433d385daa6c11a0@linux-foundation.org> In-Reply-To: References: <168599103578.70911.9402374667983518835.stgit@pro.pro> <168599180526.70911.14606767590861123431.stgit@pro.pro> <20230608163622.GA1435580@mit.edu> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 9 Jun 2023 09:17:54 +1000 Dave Chinner wrote: > > Given that we're at -rc5 now, and the file system folks didn't get > > consulted until fairly late in the progress, and the fact that this > > may cause use-after-free problems that could lead to security issues, > > perhaps we shoould consider reverting the SRCU changeover now, and try > > again for the next merge window? > > Yes, please, because I think we can fix this in a much better way > and make things a whole lot simpler at the same time. Qi Zheng, if agreeable could you please prepare and send reverts of 475733dda5a ("mm: vmscan: add shrinker_srcu_generation") and of f95bdb700bc6bb74 ("mm: vmscan: make global slab shrink lockless")? Thanks.