From nobody Tue Apr 7 19:06:58 2026 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 4E7F0C4332F for ; Wed, 19 Oct 2022 03:18:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229657AbiJSDS4 (ORCPT ); Tue, 18 Oct 2022 23:18:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbiJSDSw (ORCPT ); Tue, 18 Oct 2022 23:18:52 -0400 Received: from mail-oa1-x29.google.com (mail-oa1-x29.google.com [IPv6:2001:4860:4864:20::29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 101C3E8AB5 for ; Tue, 18 Oct 2022 20:18:52 -0700 (PDT) Received: by mail-oa1-x29.google.com with SMTP id 586e51a60fabf-12c8312131fso19183658fac.4 for ; Tue, 18 Oct 2022 20:18:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=GAeyZnwzzfhGFESECQVoU1J4Mcn3Vns5Z1CRpRFhKJ0=; b=K33RaYRgNppDWt/10xzhwd1v4B26clXQn+9iNAMke6fpUUlY+ZvG3M7UC9+DN5ZlMN zBoltdhn9vtmhEj1dWpB6mpxm2ExFrfqcH/0BHF4Yr/69k/Pp11/7iJmvbbwHvAId5cC RZ8PAN4fWaorWkQHvNJFZi5E8lr1HVCpFyp2yPiF4ZY1RsDGlBhpu38Foor+F+GaOpii izUeSQbPHKsKUW6zAQbAm06q2ZcINLwY+Rqc3EeIlzfdtgTDzhkFNsTt2ML/RWZODdfI +OCDuso4CR3Z2o1VoOOzQnHO3pyrfXz1+XQ75mTALt2W+1tA5NFpA8fih1YTfXXdxO3M okyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:subject:cc:to:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=GAeyZnwzzfhGFESECQVoU1J4Mcn3Vns5Z1CRpRFhKJ0=; b=VhCEu4YAxoYdsqEa5aB1PzjmGeHypEF938Rf403HrrkJ+FkYOH601G0eXLLE46skXx nRUDvhh2idRPHmcUmVcdUbk9qDuRIhJdiLI9rTMRPrgkwQallqgJ1QCSxRW1SYvguks2 pWKztVCO67piuiXWrsTj25gARbrK/erh9XWjIfKjBbQxBLqJuioft8kyfa2VYotNRXrV hee5t2k5+45ebpjXyqFTINIjfeKPbsYzK7HZE8EyLSxPOR5EL/nTf3oGkfxBLmKQRwHZ R5hT1iIbZsL162aWD7Vn8w2yirzvsqFpKCR1dIjDcD3CExPyhrdm/ugj10rwue3HK+xK Nf6g== X-Gm-Message-State: ACrzQf1plpMg4N/ru5swUb42sUr2toHP4k/1JS4Ov1vY6meMiJvIoz4R 4NtsW4l92+e/mElyzt5dOkgyCQ== X-Google-Smtp-Source: AMsMyM7OMl9zIUyR6LciyHrft8KITcPb5cfldifc8PFJicTj4YSK5oMyxRs0eC5+B+Rb5hQAFPGsRA== X-Received: by 2002:a05:6870:a553:b0:11e:5231:4eec with SMTP id p19-20020a056870a55300b0011e52314eecmr3613843oal.143.1666149529319; Tue, 18 Oct 2022 20:18:49 -0700 (PDT) Received: from ripple.attlocal.net (172-10-233-147.lightspeed.sntcca.sbcglobal.net. [172.10.233.147]) by smtp.gmail.com with ESMTPSA id w192-20020acaadc9000000b00353f41440dasm6184323oie.56.2022.10.18.20.18.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Oct 2022 20:18:49 -0700 (PDT) Date: Tue, 18 Oct 2022 20:18:38 -0700 (PDT) From: Hugh Dickins X-X-Sender: hugh@ripple.attlocal.net To: Andrew Morton cc: Matthew Wilcox , "Liam R. Howlett" , Alexey Dobriyan , Seth Jenkins , Vlastimil Babka , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH] mm: /proc/pid/smaps_rollup: fix maple tree search Message-ID: <3011bee7-182-97a2-1083-d5f5b688e54b@google.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" /proc/pid/smaps_rollup showed 0 kB for everything: now find first vma. Fixes: c4c84f06285e ("fs/proc/task_mmu: stop using linked list and highest_= vm_end") Signed-off-by: Hugh Dickins Reviewed-by: Liam R. Howlett --- fs/proc/task_mmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 6.1-rc1/fs/proc/task_mmu.c +++ linux/fs/proc/task_mmu.c @@ -902,7 +902,7 @@ static int show_smaps_rollup(struct seq_ goto out_put_mm; =20 hold_task_mempolicy(priv); - vma =3D mas_find(&mas, 0); + vma =3D mas_find(&mas, ULONG_MAX); =20 if (unlikely(!vma)) goto empty_set;