Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1433913rdb; Wed, 6 Dec 2023 20:59:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IFayFSd4jgLuezci91oijQMJ2AIm+Pni0gkRDhHH6PR9Za8GLXf1L07NZ8hPVYC7GEaDvcL X-Received: by 2002:a05:6a20:6aa0:b0:18b:4632:af0b with SMTP id bi32-20020a056a206aa000b0018b4632af0bmr2038838pzb.17.1701925165999; Wed, 06 Dec 2023 20:59:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701925165; cv=none; d=google.com; s=arc-20160816; b=dnHDCtNanh+xy1jTIFpDazFKro1M4m/SwGqBK78MyWNYafzq8dQ5vcSQQHyNUqDnhl 2IBUtrC2aZdRQXKKpkj9Q8EHUznoibPuv2Z1CagkHxG8YKcGyaYETYiPnwR5qP3qUAY3 1K0VvggKFuwln5vs4LOWis+BjNwCH5D/s/7JQMXsDuO8D1AUly0DBMVI0NH9NmoJTbW2 wfXLQoj7v1D36lkejzroFC6zLNRBPjEGO2Ws6xwOdRgWtTP8nlFg07SFLPgb5GbsJPpZ ac8YV7absJ1fNQok6LzstlEJ36q7TbxkDAcDEP3ph8YsifIuWDCDx11S++0elfbQEd8C jgmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=jNjuJ70wYcPCgm9fSzOs2on1O3wdVHSIH2LiIdCkx3k=; fh=dX45Cbq2XCSlytYwOmVkBCL1wgwlXzOocIUgL3NGUQo=; b=EyNbxRyQkZlcv9hS2o4u6s1X21h3wcCBhFL5Na20pthvmWJHpKmwbAVzTQpswB2gUb z57++oYPxWYpjJ8G6X41zcaaO2iOjAmG/MbeYOFNjWgG+vTFHnrURw3TzZ0voywHAn9t jDNziJEP0dZhRsGiNOL/2tZGlYsBpfNu5QytvouCUWg9d7DZUpxb1pTy+F24o+uda6m5 Y8Gp9rT0JxbDeOSK8KgD4MrC6jihQ4GqoT3LS+FkDIRQomvxlDSAc8xudwu3ST2lPXqe bp7V39sztlFz+AkkbMlXTyb6rCzvalsJeOXvnqnnqE1itRAZe3hbqPy+e6NcJh0aiS64 C/jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fromorbit-com.20230601.gappssmtp.com header.s=20230601 header.b=gfOsPHBT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fromorbit.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id u2-20020a170902e80200b001cf67d98a77si466810plg.396.2023.12.06.20.59.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 20:59:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@fromorbit-com.20230601.gappssmtp.com header.s=20230601 header.b=gfOsPHBT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fromorbit.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 9B2A280ADEC0; Wed, 6 Dec 2023 20:59:23 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230193AbjLGE7J (ORCPT + 99 others); Wed, 6 Dec 2023 23:59:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229840AbjLGE7I (ORCPT ); Wed, 6 Dec 2023 23:59:08 -0500 Received: from mail-oi1-x229.google.com (mail-oi1-x229.google.com [IPv6:2607:f8b0:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5525DD73 for ; Wed, 6 Dec 2023 20:59:14 -0800 (PST) Received: by mail-oi1-x229.google.com with SMTP id 5614622812f47-3b9e1a3e3f0so8882b6e.1 for ; Wed, 06 Dec 2023 20:59:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fromorbit-com.20230601.gappssmtp.com; s=20230601; t=1701925153; x=1702529953; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=jNjuJ70wYcPCgm9fSzOs2on1O3wdVHSIH2LiIdCkx3k=; b=gfOsPHBTUzavm5VjHye5nHE0Q+7ccAKluciawSJEd6FOeQJbb5+Apf0aPnipbBt824 5u4Ce5B53Fx5bvKeYxpbPVrs6ny4UitixanZx7kV6/ENMlT21GxGGZQBUhber8r7FOXR uKkyy/Y2DFwyPMD2gKsEeJ4uPQc/8vbrv/Up9VisxQ9XaMkXnz4/swBbtm4lHeNjuJCo jEG162T1XKmHZhWs0Kj4VdD/TTNq9aHATtgCyOMRroxD542WIZSA+opLL9S1AcucPpFs s5qCVDWJz9hCklfwzHEjjKigLuoUxyZRgR6MuPQV/6oLsVPayQmvS5Sfei3suO4j0hJb EVyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701925153; x=1702529953; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=jNjuJ70wYcPCgm9fSzOs2on1O3wdVHSIH2LiIdCkx3k=; b=pbiINoHYCAzl8Hcuy3mKaKY6WwwwE8KB4TI2EUxQS5TRbU6SXtwOA0smpsHmObsYeg VAZ+jyDAD5RSqgZtROSlotH+U3qRObvAXfTOKEShHhqWYrB99vyoqO+9jlurRjZy1HO9 hmcGBjQ0l/W/4bCzuhuptv2IrU6qyp2YXXF83ArGJjPRBUyaONbZo9pq7lYIsfsY7Vk7 jqOdkcJPrnLpyOSGxR6dDi85oK+EgYaFwtqcrF2bT9yHZBjwqZE6RpC78WV9vojf/KHE mF5YSCHqyu8CgIEDuSM6ohXvsCn5lwVQnMpwv4S9xo6zFMtiG+MF9hFzmTKpz8nUHpJj YJVQ== X-Gm-Message-State: AOJu0Yy1RidJvdJucZ5i868tTqKVBnnkK3gyF1vBtRO5Ys7aG9PcHvu9 FqnfV+1BUlDUQ6wKEQs5cgiTtA== X-Received: by 2002:a05:6808:4492:b0:3b8:b063:a1d8 with SMTP id eq18-20020a056808449200b003b8b063a1d8mr2287992oib.98.1701925153685; Wed, 06 Dec 2023 20:59:13 -0800 (PST) Received: from dread.disaster.area (pa49-180-125-5.pa.nsw.optusnet.com.au. [49.180.125.5]) by smtp.gmail.com with ESMTPSA id d21-20020aa78695000000b006cb903ab057sm376426pfo.83.2023.12.06.20.59.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 20:59:13 -0800 (PST) Received: from dave by dread.disaster.area with local (Exim 4.96) (envelope-from ) id 1rB6Te-004vzJ-2E; Thu, 07 Dec 2023 15:59:10 +1100 Date: Thu, 7 Dec 2023 15:59:10 +1100 From: Dave Chinner To: Al Viro Cc: linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, linux-cachefs@redhat.com, dhowells@redhat.com, gfs2@lists.linux.dev, dm-devel@lists.linux.dev, linux-security-module@vger.kernel.org, selinux@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 03/11] vfs: Use dlock list for superblock's inode list Message-ID: References: <20231206060629.2827226-1-david@fromorbit.com> <20231206060629.2827226-4-david@fromorbit.com> <20231207024024.GU1674809@ZenIV> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231207024024.GU1674809@ZenIV> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, 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-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 06 Dec 2023 20:59:23 -0800 (PST) On Thu, Dec 07, 2023 at 02:40:24AM +0000, Al Viro wrote: > On Wed, Dec 06, 2023 at 05:05:32PM +1100, Dave Chinner wrote: > > > @@ -303,6 +303,7 @@ static void destroy_unused_super(struct super_block *s) > > super_unlock_excl(s); > > list_lru_destroy(&s->s_dentry_lru); > > list_lru_destroy(&s->s_inode_lru); > > + free_dlock_list_heads(&s->s_inodes); > > security_sb_free(s); > > put_user_ns(s->s_user_ns); > > kfree(s->s_subtype); > > Umm... Who's going to do that on normal umount? Huh. So neither KASAN nor kmemleak has told me that s->s-inodes was being leaked. I'm guessing a rebase sometime in the past silently dropped a critical hunk from deactivate_locked_super() in the bit bucket, but as nothing since whenever that happened has failed or flagged a memory leak I didn't notice. Such great tools we have...... -Dave. -- Dave Chinner david@fromorbit.com