Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp290783lqb; Thu, 23 May 2024 20:02:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUaGsWvn4EZ9lc1eaxaBJtqeC8Kc0mdMJB7t549N3rHjYvkPZL9/Qj+55MiQY7+7r67ULuZ24goycBgcoBs3GYTlofa2P4Wluw/LwJjoQ== X-Google-Smtp-Source: AGHT+IE/N8Eq6DvVEqrvM10fZAQy3VqBz4hlTXSIl7qZQeSL5wfxgFAlGMV07h1JFUOQ4TtdgX6h X-Received: by 2002:a05:622a:5d0:b0:43e:3b30:f492 with SMTP id d75a77b69052e-43fb0e53b5fmr14460411cf.14.1716519759487; Thu, 23 May 2024 20:02:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716519759; cv=pass; d=google.com; s=arc-20160816; b=QuRrkTtRnfxWol98CyOJnbuKg34G7//7CwmaBsDiv7xxt5dibu3tn0VgS2B/Y6qQ1B H3HYrtPiS2D4qcdN5WS+NBp1hWulFx3eTlZ8mVJJaLhdOlXNsE3tTvWvLIdC6AIaw24Q U/KsGOzWttetm4rJduO63/DSc6C5CFZKm2CzDUYlNu5em4wJ5zF21xJfzlolRXrkS1QV Y8zYb0c+W7G+WWKGEPb/IuRRfGlipn9zDUNTXQv4OAkccrV5CjhaMSfVx4G4e18MF8jW iTQBjqn4bM9O3aR/QwGxxeRAVHB4DOXz6RbJAt9kBbYsx5umn3iBRkqVPYagqUUgJ5n9 iTAA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=rzlFuFxF5RZnfPGZsH/jNBsrbVKFRaZTgLX5fYRAyxs=; fh=HF+WU1kbfmyzFoNW2fwPNf9N1geI/alMHbMzbwRKBhI=; b=w/3lweXs63tZ+2ZYnPs510HEyUY1Gq2ld80j9nMBHAcONQT9UWZmBlX96ePLwEE/bo Nz6+lwAaNVcUf60g+sGm8e7YgkKyC2ZXjn8Cnbmsm+g8JxmYt8w+ezO/TMOTvvIoufUS SoziG9l1eH9dyNwhd5geimJMYgYmihuzGc+VslrsounHT5ZWpDvGNzwQSqS/a01xa3Al YAVxCyBypdpUy6MkJVRwiNbkJks4MrII63nh16FwrAVVaol/K6Vd9i8GDmW9CsWhJLfJ 0xhfd0TxdF6cdhRMxspoSR/op9EEn1pRpwCR5cRG/S5aeMOx57W78i/r4YJjSYX2smIF 8C/A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b="mtzM/RNC"; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-188242-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188242-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43fb18a6ba1si8828361cf.319.2024.05.23.20.02.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 20:02:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-188242-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b="mtzM/RNC"; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-188242-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188242-linux.lists.archive=gmail.com@vger.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 36FF51C20F7F for ; Fri, 24 May 2024 03:02:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 169F7364CD; Fri, 24 May 2024 03:02:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="mtzM/RNC" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 379932C9A; Fri, 24 May 2024 03:02:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716519750; cv=none; b=psf4LWQgCoWLP1F46grxA5aAyS0xdv8dLrvu51bkVNx9gVEbOfW5573FvBD/JrWmDBmDY6KjmnzFLaUtdAt3EriwYGiHouVVGyy9rp5a/N0UOYCWZlaGh7k8Fz8WxSkIn5T7+ecGanoZqCRHjqeLDpfJLDSyO9j7WRLi09CEba4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716519750; c=relaxed/simple; bh=UqaAqn/5AQ9qU6fVaXfOjyWzrKVks76At49JNqcdI3k=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=qL0oATGNu3gxDMQdrDJrkgLF4ZdFpjJotNi/0MAPblAahvwv6psBJUMDPzN35IMtSHXovUigPApmk2tn2Q7Z53NfyCtA1PglgS/M6O7nuE+xkzjcel5ig1Rem8jgu0OnbYDkCfKFt4CkzQZNkG8WiJuwtWr1iCJdjyhl5e8TI1g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=mtzM/RNC; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 829B3C32781; Fri, 24 May 2024 03:02:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1716519749; bh=UqaAqn/5AQ9qU6fVaXfOjyWzrKVks76At49JNqcdI3k=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=mtzM/RNC6LPlo6QwCZDa7BwE1zCNweNBrAIKwARlEo5khM2vdPDiikPmJCATKwcoV edlxV/XwN8TFaHWmiOJxAFIYiuxdtUcixnFvZT9SDz50qGM/Cen/KPRVl3Ok9tWtYI 6LRWEAUjsg6sb9zjBJjRsO+R279HIsHvwsOvKUNI= Date: Thu, 23 May 2024 20:02:28 -0700 From: Andrew Morton To: Yuanyuan Zhong Cc: David Hildenbrand , Matthew Wilcox , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Mohamed Khalfella Subject: Re: [PATCH] mm: /proc/pid/smaps_rollup: avoid skipping vma after getting mmap_lock again Message-Id: <20240523200228.fdaa0319d3fd4bd7a62f7f8a@linux-foundation.org> In-Reply-To: References: <20240523183531.2535436-1-yzhong@purestorage.com> <20240523115624.d068dfb43afc067ed9307cfe@linux-foundation.org> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) 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=UTF-8 Content-Transfer-Encoding: 8bit On Thu, 23 May 2024 12:16:57 -0700 Yuanyuan Zhong wrote: > On Thu, May 23, 2024 at 11:56 AM Andrew Morton > wrote: > > > > Please describe the userspace-visible runtime effects of this bug. > > This aids others in deciding which kernel version(s) need the patch. > > > Otherwise, with some VMAs skipped, userspace observed memory consumption > from /proc/pid/smaps_rollup will be smaller than the sum of the > corresponding fields from /proc/pid/smaps. > > Please let me know if separate v2 is needed. Thanks All is good, thanks. I added the above text and the cc:stable tag.