Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp822014pxb; Wed, 6 Apr 2022 00:45:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMmj6zg7hVIxBWq7LBlRcNg2/lZNYYFhHeK+fiDcdSikCcr5yB2O9zeXMpLTAv1Nuqourt X-Received: by 2002:a17:90b:164f:b0:1c7:8d27:91fc with SMTP id il15-20020a17090b164f00b001c78d2791fcmr8583903pjb.228.1649231155454; Wed, 06 Apr 2022 00:45:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649231155; cv=none; d=google.com; s=arc-20160816; b=zHBMSiFtZyWq2KO+O9Vca5RqJrjGR5KcrWvzvISliwRX1uJp6LwpLJww5xOZ4WUD5b 06yxiAGnu65YxV77Ak7vPfrKGk0p+KO+mM8UYkBaNso8cQniYID6DF8eXuutBDKRDtHg MUk64EcxdVK7t1tH8AY4Fz3YssvavqnwX2h3nQh3Q9mrfdiwL1LrLRU58DYrmYM8pgz4 0ZhI572A9K3C6UW9mLuQtCo3yYk3X2MGh4A3BlKByF8wOrZiak3ggXCcNmzsyzHUyDaq C7tXPDfSShDfzl6AfTy3sGfb3UM92iag0obTMk5QTarCKJ/qKrCTmbjXdeqgYpLVNKon dt8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=jz454qGS4E33Hbox43SKsrefS5IN21YoZYkzutcCyCM=; b=gmV2dX8MFBVl7+M32+F9ZxYyP6OsMjT/FEmcGnGt6m3r/ynPTOIH+TtYO9HkXBoFY+ 1BxsPsegnUAwr6ksuik8xRz1jcb30saIiNlmXOQ9MQtF9p1tFNB9ZiaqAHGXABwFR0vl jBSZelPB8DtQFizxkZ8UjUmRLVc+pKOzQzPHEe2fuRxuWs8BPwPhd8rkyb6JzD36DpYE cXzN1q9Hn6ULWMCONR+6tz9LwC+DurWMBik4Q5DlPnP3aAmNltGo2YWArJwuMSmjQGzR 1KwVuSMIYaI/iPNSCOHrpTSsoWyE8yLVsN7gLTXGeZjSEvWZ3Xp/tTejffVi9tPqqT0V sTPA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q32-20020a63f960000000b003816043ee5csi14417197pgk.81.2022.04.06.00.45.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 00:45:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B9FEE50A7AB; Wed, 6 Apr 2022 00:14:21 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1452190AbiDEWvw (ORCPT + 99 others); Tue, 5 Apr 2022 18:51:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349186AbiDEJt1 (ORCPT ); Tue, 5 Apr 2022 05:49:27 -0400 Received: from angie.orcam.me.uk (angie.orcam.me.uk [IPv6:2001:4190:8020::34]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4DD0320181; Tue, 5 Apr 2022 02:42:23 -0700 (PDT) Received: by angie.orcam.me.uk (Postfix, from userid 500) id 0518E92009D; Tue, 5 Apr 2022 11:42:21 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id F2E5592009B; Tue, 5 Apr 2022 10:42:21 +0100 (BST) Date: Tue, 5 Apr 2022 10:42:21 +0100 (BST) From: "Maciej W. Rozycki" To: Andrew Powers-Holmes cc: yaliang.wang@windriver.com, rppt@kernel.org, Thomas Bogendoerfer , huangpei@loongson.cn, Andrew Morton , kumba@gentoo.org, Geert Uytterhoeven , anshuman.khandual@arm.com, penberg@kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Greg KH Subject: Re: [PATCH] MIPS: pgalloc: fix memory leak caused by pgd_free() In-Reply-To: Message-ID: References: <20220310113116.2068859-1-yaliang.wang@windriver.com> <9cc88b1c-8a8c-95ea-2cf7-31be3b771495@omnom.net> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 4 Apr 2022, Andrew Powers-Holmes wrote: > Fair enough :) apologies, didn't mean to sound combative or ungrateful. > I know there's far more work to go around than people to do it, > everyone's doing the best they can, and I have nothing but appreciation > for all the work the kernel community does. No offence taken; I just wanted to make it absolutely clear what the situation currently is. > It's just surprising that this *could* go unnoticed for over a year - > though I suppose most of the MIPS64 systems out there are running on one > or another old vendor SDK kernel so won't have been affected... That's subject to the probability theory and depending on what people's usage models are. > Would the best way to get this merged into 5.10/15 (and maybe .16 just > for good measure) be to email the stable team (since it's already in > Linus' tree)? Documentation/process/stable-kernel-rules seems to say > yes, but I'd like to avoid stepping on anyone's toes given that it's not > my patch. You seem the most severely affected so far, so why not act in your best interest? I think option #2 applies here and seems quite straightforward to follow, referring commit 2bc5bab9a763 and using your use case as the justification. It doesn't have to be the author to request a backport. NB I think it has to be backported to all the stable branches made since the original breakage; i.e. v5.9+ (I haven't kept track of what they are). Maciej