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 32367ECAAA1 for ; Thu, 27 Oct 2022 16:45:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235581AbiJ0QpC (ORCPT ); Thu, 27 Oct 2022 12:45:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234219AbiJ0QpB (ORCPT ); Thu, 27 Oct 2022 12:45:01 -0400 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A74CD402C2 for ; Thu, 27 Oct 2022 09:44:58 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 8E1E35C0183; Thu, 27 Oct 2022 12:44:55 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Thu, 27 Oct 2022 12:44:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; t=1666889095; x=1666975495; bh=AYpXDOUpdf w0TDHk31kbXzhf3mqVzE3mgPyTTPWsdyY=; b=a5+AGTjUiCh6q9uIs5qmYAO1Qi D796wHBld4UFqCk8aMi0hIojJOFQnlJ+h7hlWlCe6fiUdckwkM7UaqQ0ZYYnA2Ub /YO2VCgfZN2kWbdpus1dK5n39rsO4EiLgnoovQr9Dmjh7a0wvv+dwXCCy7JavUcf B4f6wn4+QFxlmsGnpWuyz8aUdN2GZ/PZg0/W1PIQoZfSiGMj7AgJGFlZETnrnX7/ VzW4F3aJBt+Ms43mdcnPQypZehiceBJfLNqFuKOYr5xy7bigeQgUtI+ZLXKfAfqx ZEYsv9TaTyzG4dXr1fi7hz584WFDgyaJFbJ1IHi6NYQIJhY6vT4GN3z/fhwg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1666889095; x=1666975495; bh=AYpXDOUpdfw0TDHk31kbXzhf3mqV zE3mgPyTTPWsdyY=; b=YjhaEl/HTH4FNW0ePh5zhHTAng1jcXOjznZ4a03y6d2W uKxFWF5MmbVQWmSntf+BSQeu7Hp6sVXXcHUSBCc+tYUXstkPpcuypJWyKjTAgwJx fYS7xw4EMoNcIVO1HtYPhxSClB4Se4AjrWOC1lVwKBeUtivB+xZnPuFccHH6fyTI LBzAwHjbOmgqYwZI/KUuIl8rH96sVAwUPlc3oZS5jr/2aErUovQd82FOOPLdcRZs pGTFWbS5OTV+9NgjPsFPE38Udfj//lBiufLwaaifmVZBLKrtMLX3HwT68ohW1qC6 2FbYGnxVzPKeCdx4DtrB1z5F8PiYCQE5L9z2uM1BaA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrtdeggddutdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepifhrvghg ucfmjfcuoehgrhgvgheskhhrohgrhhdrtghomheqnecuggftrfgrthhtvghrnhepheegvd evvdeljeeugfdtudduhfekledtiefhveejkeejuefhtdeufefhgfehkeetnecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepghhrvghgsehkrhhorg hhrdgtohhm X-ME-Proxy: Feedback-ID: i787e41f1:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 27 Oct 2022 12:44:54 -0400 (EDT) Date: Thu, 27 Oct 2022 18:44:51 +0200 From: Greg KH To: Seth Jenkins Cc: stable@vger.kernel.org, Andrew Morton , Alexey Dobriyan Subject: Re: [PATCH stable 4.19-5.19] mm: /proc/pid/smaps_rollup: fix no vma's null-deref Message-ID: References: <20221027153652.899495-1-sethjenkins@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221027153652.899495-1-sethjenkins@google.com> Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Thu, Oct 27, 2022 at 11:36:52AM -0400, Seth Jenkins wrote: > Commit 258f669e7e88 ("mm: /proc/pid/smaps_rollup: convert to single value > seq_file") introduced a null-deref if there are no vma's in the task in > show_smaps_rollup. > > Fixes: 258f669e7e88 ("mm: /proc/pid/smaps_rollup: convert to single value seq_file") > Signed-off-by: Seth Jenkins > Reviewed-by: Alexey Dobriyan > Tested-by: Alexey Dobriyan > --- > c4c84f06285e on upstream resolves this issue as part of the switch to using > maple trees for VMA lookups, but a fix must still be applied to stable trees > 4.19-5.19. Now queued up, thanks. greg k-h