From mboxrd@z Thu Jan 1 00:00:00 1970 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 26BAEC38A2D for ; Wed, 26 Oct 2022 16:41:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233441AbiJZQll (ORCPT ); Wed, 26 Oct 2022 12:41:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232773AbiJZQlk (ORCPT ); Wed, 26 Oct 2022 12:41:40 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 326246B8F5 for ; Wed, 26 Oct 2022 09:41:40 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C3A6B61F8A for ; Wed, 26 Oct 2022 16:41:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C8BD8C433C1; Wed, 26 Oct 2022 16:41:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666802499; bh=ZrHGt36zubHPQ6ib6JDDuU7W2uKWdeua3iS+/oFPZp8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iqrP9bKBYBRdOqp6I1jWt6+N9YZoZ+0qOwW+GM7mOssnFfxjYF3tHQ38iPBsTrJt9 jQPNTynFoVuSFC1WtgNMpN872ez/s3+Ktb/rNYut9BcASr4UEN2Y+9X3+48EkQU5Ms x8PUUpwDBW0cH7vACrVD/UpAWU03fqvbjn1AwYtk= Date: Wed, 26 Oct 2022 18:41:36 +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: <20221026162438.711738-1-sethjenkins@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221026162438.711738-1-sethjenkins@google.com> Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Wed, Oct 26, 2022 at 12:24:38PM -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, but a fix must still be applied to stable trees 4.19-5.19. And you need to document really really really well why we can not take that upstream commit please. Also note that 5.19.y is end-of-life. Please fix up and resend. thanks, greg k-h