From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4C4AFE784A7 for ; Mon, 2 Oct 2023 02:53:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235342AbjJBCxD (ORCPT ); Sun, 1 Oct 2023 22:53:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234028AbjJBCxC (ORCPT ); Sun, 1 Oct 2023 22:53:02 -0400 Received: from zeniv.linux.org.uk (zeniv.linux.org.uk [IPv6:2a03:a000:7:0:5054:ff:fe1c:15ff]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2B5CC9 for ; Sun, 1 Oct 2023 19:52:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=xINw1YgO8R1t3kZBiNeV3AnsQ8IWjQIrzX/uhoLsmfs=; b=sputEP/Exdr3ON8hagHBxxXwIk ykcAxlvPTVrwOkYSC1FD2rnDr6/3WnXDx/9/dfYaQ0Fqe/BIH9ptc04jUDnQiP1bP6B4hu3p2LORd wkT3wLVXMRMmMxPmW8XfVWhfJSnqMgsXAXaM8UyreDCtmvdww1xF8Cbg8kWzHKed3/2ZGmoYTKTyP s/mJ5vmfAQDnRUSoO8DQT9J/OS2evsuV6Har299xXQuQPwlyMJ2n0ZzeRYT5cGkJIseWhmNiwvPHj 3YfIXqZHLUJxk1H3loggFvq3P4Yw4/JogdRNqYmWfWHrJdoaG248aYBeJjpn7/OiZ0m6eUxNFQDW9 dIfOK3zg==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.96 #2 (Red Hat Linux)) id 1qn93I-00EEDA-2w; Mon, 02 Oct 2023 02:52:57 +0000 Date: Mon, 2 Oct 2023 03:52:56 +0100 From: Al Viro To: linux-fsdevel@vger.kernel.org Cc: Christian Brauner , Christoph Hellwig , Linus Torvalds , Namjae Jeon , David Sterba , David Howells , Miklos Szeredi , Amir Goldstein , Trond Myklebust , Bob Peterson , Steve French , Luis Chamberlain Subject: Re: [RFC][PATCHES] fixes in methods exposed to rcu pathwalk Message-ID: <20231002025256.GR800259@ZenIV> References: <20231002022815.GQ800259@ZenIV> <20231002022846.GA3389589@ZenIV> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231002022846.GA3389589@ZenIV> Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org PS: ceph ->d_revalidate() uses ->s_fs_info and stuff hanging off it (mdsc) and I'm not familiar enough with the codebase to do anything useful with it; AFAICS, there are UAF on fs shutdown, but I'd rather leave that one to ceph folks. NTFS3 ->d_hash() and ->d_compare() do blocking allocations, and that stuff can be called under rcu_read_lock(); ->d_compare() pretty much always is called so...