Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp136687lqh; Fri, 3 May 2024 16:27:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWhJlzP6Bb6/uQ2vzXpFLX060CmqepUOnj8a4WHDM/ANd1vtAn1BCshOb4s27QUXXTlfQgkQH5oNXFH0c6HQUuDguBf2CdkxuePYQNsEg== X-Google-Smtp-Source: AGHT+IFMbYa8eVl1KoKeIQkYyIBWqlpFZzp0pUIcGm17EmJECOODss494I18Q/C+QSQivX4rF/0f X-Received: by 2002:a17:906:f1c6:b0:a58:c239:48ae with SMTP id gx6-20020a170906f1c600b00a58c23948aemr5355347ejb.12.1714778828927; Fri, 03 May 2024 16:27:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714778828; cv=pass; d=google.com; s=arc-20160816; b=LIX1MBlyQrSifOxf+XXUdhU3aloSm2kAm/JYyeTD9uGp6Mp2fIFkr5FkNpdRvY90om tv2F3uidOdUwlzgcFEj7C/9RbiR3VUQTWFftAQdK2t52b6WTM8iORU+mS0ITkc2HmPfR 3EhbgtSCocaWXDEP24s+RxG2uR6D+9hUQ6Vnwjgv4XxYvyKPQgVxcwNKOtf357ppjBVm LlR3XV6oYPkkUv46bzfhmuVI6oasQVhFt20vHuRYlJ+ZJfr18sB+ncTMNwstP/F5zl25 aIAjHo2e0jNgPotiJFfi4olhsJgp24felKREcLkHn/9JqkaoeELsBwpeDWq7MRruFOzA V0mg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=dT/tZ4BeVrX503tjBuNztLOilBaPjVoqnxlR5AjEN90=; fh=UAvVC63a5uH6YE1uNzZ+PCkoy/teMZ9f5DE/YbssQJ0=; b=HGfyfAcqPfVewKsE3yFiBTevuNG5JIRJKDOo6+CW318diuAnbckkPdvF2LFB/0XufP zlOIyOxoCwSqQeHxrY/Je2lim/0pVvUtUKV1zS9xksD1mhVSbX50BRtId1+cXN0qvv5R 9tlwn3U77I1zzp1meDwIKvQDRtXcfIRFhuUjonPQd8qIuJcFzrdtcrm6y0l7I0zl1J7+ lUkW3oG7NLZKZ2KRiRy6VhmoOMD5laMhf9IlOW7P+iA5fFkztPwA7BsG10RdpGHDCn9B kegqSt2PoyV/FVQgnvCRnszNSyZ4ZIGob1h5AAKAvVsuN09bNHasBKQqegSGl2AV1Q2n 9JKw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=Vcue1ghk; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-168154-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168154-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id oz44-20020a1709077dac00b00a59a7b3f84csi82145ejc.468.2024.05.03.16.27.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 16:27:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168154-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=Vcue1ghk; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-168154-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168154-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 4FE5A1F23135 for ; Fri, 3 May 2024 19:51:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3AB1B158D76; Fri, 3 May 2024 19:51:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="Vcue1ghk" Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3DEFA1581FD; Fri, 3 May 2024 19:51:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714765865; cv=none; b=SQKx1aqXii+VvVvWMpZE5fJaStp0CbW58B1/w//mP6TwR8IyVVcaV1/6prhMh1+Ej8KEaa9tOUhZyfHmEeLlzmtZzmbtLcBFphA/+zUkgF4djmnVPN0JZpW/JpyU1Di8h0NU+Do+coArdm1UN8kIRzBkl4h3wbyfkurzUV4EOwA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714765865; c=relaxed/simple; bh=2JyPRo2Ro2xyGaHzv78UPZmNJQTNXNYjBIsAi3zZbGc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=c3KjKacnWgJSjqI37srDcNTK/KgIqQkVPWzqZ0RQVhU9yEcRY9Qfmps7u5DKvSL8jLtbxTFAivDtZrUKsalqkJVQxh835kAw2rxbEs3CnwWvJGAlUr/lmsWrMihHdzOAlmyU8I3IAUQZKMSG3+OUZ1OnQCBeyTpIQK0D9EPZxHw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=Vcue1ghk; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; 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=dT/tZ4BeVrX503tjBuNztLOilBaPjVoqnxlR5AjEN90=; b=Vcue1ghkLjZN/Pe40AnCT5GmP9 p8Ci91b4oylITVwrlE0lJHNHQ8hYq8UsAy82XhSPcb+39l0pSU2jMCfwsg7UsBtpZdXW/2K3xIxGK u9HR7Zh2jJwR8nfJ2le4iJHsE2UB+SHcXEycw6svdqdqv/C/4U7+4JyRa+LItfjvHwd2Ds5L1J61F NTthaERztVnLYJ4DMtLSk5GPab0AxaDZJmRKX7Jo8NFhujqnDUmCjPDEcrf0hO5NLpC7lg2XzhU69 fnoJsP0dMW8pBG/xWO/jjigWBxxAZ1sUDpqirxvfJSUOJp6BTVnpp8l394Zwx7d2VYgPLAvr8HYML e/xZoG2Q==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1s2yvs-00000000EEx-2NIY; Fri, 03 May 2024 19:51:00 +0000 Date: Fri, 3 May 2024 12:51:00 -0700 From: Luis Chamberlain To: Allen Pais Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, viro@zeniv.linux.org.uk, brauner@kernel.org, jack@suse.cz, ebiederm@xmission.com, keescook@chromium.org, j.granados@samsung.com, allen.lkml@gmail.com Subject: Re: [PATCH v3] fs/coredump: Enable dynamic configuration of max file note size Message-ID: References: <20240502235603.19290-1-apais@linux.microsoft.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240502235603.19290-1-apais@linux.microsoft.com> Sender: Luis Chamberlain Thanks for the cleanups, this is certainly now in the right direction. Generic long term growth questions below. On Thu, May 02, 2024 at 11:56:03PM +0000, Allen Pais wrote: > Why is this being done? > We have observed that during a crash when there are more than 65k mmaps > in memory, the existing fixed limit on the size of the ELF notes section > becomes a bottleneck. The notes section quickly reaches its capacity, I'm not well versed here on how core dumps associate mmaps to ELF notes section, can you elaborate? Does each new mmap potentially peg information on ELF notes section? Where do we standardize on this? Does it also change depending on any criteria of the mmap? Depending on the above, we might want to be proactive to get a sense of when we want to go beyond the new 16 MiB max cap on new mmaps for instance. How many mmaps can we have anyway too? > leading to incomplete memory segment information in the resulting coredump. > This truncation compromises the utility of the coredumps, as crucial > information about the memory state at the time of the crash might be > omitted. Luis