Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp937989pxj; Fri, 21 May 2021 02:41:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzt96YU0n13b7/napjLfojv5S5DZFtwhwzjgxTkdREja19hXiyHp2OSPN+57k5+/HMRQg1/ X-Received: by 2002:a17:906:2bd3:: with SMTP id n19mr9314860ejg.210.1621590072319; Fri, 21 May 2021 02:41:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621590072; cv=none; d=google.com; s=arc-20160816; b=JBlN+886OQ7DNj++b0QB4YiGT4R2DC4nw9xL15ELaowg8ixAfcuWrDGRIlXhyV4+iT X4qYFg+FBca4G5V2PgGGYvocnVai0Lso1syuGq2mVzD2SR8OfsLfwyE2IiJAxjzeHM5f VjonHgMSG2OZBAQGMkg+AGJqVRabqRNtxxFgF/ItzxuVDBwGxNniwFUBtRk0uYmfJxFj ATizFbS4RIJJOTBHRo3aC9T+Dy7k70XvpwGddnsAoT2IwhJitFTy679h0uv75ZYJU5f/ ns97XwRcI6KcDwv5g5uH8wJ+celFB3FDVA/2QfyMl4IIlhBlmZFT34MOXp5Nx7tJtY0Q rhZw== 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; bh=IwgLw6tys7GpuuzpACmOHbZAYsGBw9vfZwfu9bNcWp8=; b=rTK5qzfjf2utgN4g3zj23xh+RfBxOJN87HNAgz1miR+HpP8eBNW2SsOkOMFqIWJOBK yN68A8dhMmcTaInyrubfpfq9lw6Ct0hjpGR26VnJ0mymc2+utzPYXuHTR1Sxqrc+tgq8 +IYSY3oTS5RqdIJ68whSUQJAen0gT81HBIJnrA1u24lhC81yyJfDLakR5BnD//S0Nv1V yZlQMHhM48EWv0cahYAZwUM3sj3+NvEQjeSMaxpNcZ4CfWX6SPtkiOIloW8MVehmqhqA QHWsYvgoSzvW2xxs1uc4IunD6vuId82bE2RR2m7DTUgQafjWMx01tCyRQ184mQfUd0kW wU0A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id am2si5073613ejc.605.2021.05.21.02.40.47; Fri, 21 May 2021 02:41:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239174AbhEUEpL (ORCPT + 99 others); Fri, 21 May 2021 00:45:11 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:40988 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S239172AbhEUEpL (ORCPT ); Fri, 21 May 2021 00:45:11 -0400 Received: from callcc.thunk.org (c-73-8-226-230.hsd1.il.comcast.net [73.8.226.230]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 14L4hh8u023398 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 May 2021 00:43:45 -0400 Received: by callcc.thunk.org (Postfix, from userid 15806) id 18B91420119; Fri, 21 May 2021 00:43:43 -0400 (EDT) Date: Fri, 21 May 2021 00:43:42 -0400 From: "Theodore Y. Ts'o" To: Alexey Makhalov Cc: linux-ext4@vger.kernel.org, stable@vger.kernel.org, Andreas Dilger Subject: Re: [PATCH] ext4: fix memory leak in ext4_fill_super Message-ID: References: <20210428221928.38960-1-amakhalov@vmware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210428221928.38960-1-amakhalov@vmware.com> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Wed, Apr 28, 2021 at 10:19:28PM +0000, Alexey Makhalov wrote: > I've recently discovered that doing infinite loop of > systemctl start .mount, and > systemctl stop .mount > linearly increases percpu allocator memory consumption. > In several hours, it might lead to system instability by > consuming most of the memory. > > Bug is not reproducible when the ext4 filesystem is on > physical partition, but it is persistent when ext4 is on > logical volume. Why is this the case? It sounds like we're looking a buffer for each mount where the block size is not 1k. It shouldn't matter whether it is a physical partition or not. - Ted