Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4206760imb; Wed, 6 Mar 2019 07:51:34 -0800 (PST) X-Google-Smtp-Source: APXvYqyq44G/OY1+3VSNA4z7p0R6g5MLUbjpXNCXJLNUzfDb+W0ysSzGgh6nQ+F5tiMIMJufv8I/ X-Received: by 2002:a63:702:: with SMTP id 2mr6877900pgh.14.1551887494167; Wed, 06 Mar 2019 07:51:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551887494; cv=none; d=google.com; s=arc-20160816; b=cnIMOO5p+yUSbuoj0f11W9a7DUGwy5cVJpJuJQGtemxF7icpeCts1HZrg5EGZPXEyG 8M5WbyumB4wb4RRrXoTLC2CZqIAsQ51f78hrCdWLwS2/f1REL2CHLlFblfoY5S12e9E6 /BL5za/OoSBMyQ+4pZsLc71fkBRHZFipXqlr50v0TKHJpNDg1pS5gRaH/vAayMu5pewV 3b1BC9RRZjWpHfKc9XVLqL9Y9Lu2oLkahVOImDqRif4IQTYGF3IH/mwLqAZKFT29V4+j D+bO2vU9ztQ7754kCubKWOPt6XpGtWJWHMDGkW6ePIng0BhA3GT956KXb49v0TNNmeJI kRkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=w2qlXM6S/TXeApsHSBd9rIP98koyjYiGRpzbBjw+dN4=; b=Tgxcq1Fsa/ZBrBsHmLwsfIz6Y+oDOqXkrOtWz2fSIjRTDECSeMlZYsRQDuYcsFWCK7 H5POoaj4DdXo0RSwQQ5NKd2A2sTJmiIuR0RsnrIctf9M+ChZN9IYVX4nThP90osT0ORt vHSWR6kynEawuOcCKW0TYLwfI2Bht4BtwMthy6jgKyOTiP7bGJQ8GBXFAqmhcYbrpl2C YGB1PE13uCS/o9yHGcPSCJzmxqUjPOVGmQ+/fcvelxIBWUSLtCf85KpX3DE7/DV1H7BX sAgfrbyflhrI3Kezo7g/Lx25z88Jj2WMp3Rk7SJTiyK3HNaxDZFVWnA9+QoftLFUzsnJ nLww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=pyDhtWf3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d1si1672403pgg.214.2019.03.06.07.51.18; Wed, 06 Mar 2019 07:51:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=pyDhtWf3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727604AbfCFNjb (ORCPT + 99 others); Wed, 6 Mar 2019 08:39:31 -0500 Received: from mail.kernel.org ([198.145.29.99]:50238 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726266AbfCFNja (ORCPT ); Wed, 6 Mar 2019 08:39:30 -0500 Received: from mail-qk1-f178.google.com (mail-qk1-f178.google.com [209.85.222.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EEB5B208E4; Wed, 6 Mar 2019 13:39:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1551879569; bh=RZVjRder/5EZYovaqiWdThINkoZDSPcukDSyvz7UueY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=pyDhtWf3VomeFuoODOPJwzvo0gD/vrvpcOihJjJpWIYNU/PKa0lxtpGQtYeL2wnfK 56RkqFln093zBQbjbcBviyKTm7LjPsNcAR3pR6ZRFLEmnazVoCFOGW8ybmQ/2k3f9K 6TMFRXS8wqLNsLlitUlppN5U+/DEOScV+nM6qkow= Received: by mail-qk1-f178.google.com with SMTP id f196so6762109qke.10; Wed, 06 Mar 2019 05:39:28 -0800 (PST) X-Gm-Message-State: APjAAAWk+Jsa+yv4rMcKGKAG6rQnRjSX1oZvWrFqfN8+w2FyIsGbU27I zhDcWBPZFaXACoHK4r9+uIbt3u21eX9zIGV2eQ== X-Received: by 2002:a05:620a:123b:: with SMTP id v27mr5357078qkj.29.1551879568048; Wed, 06 Mar 2019 05:39:28 -0800 (PST) MIME-Version: 1.0 References: <3c886941-bf9d-f040-b568-ee7a8eba9a04@free.fr> <20190123055414.GA4747@rapoport-lnx> <78f4ea8a-996d-038e-9e33-5ff02fa2c43f@samsung.com> <20190123123143.GE4747@rapoport-lnx> <4b8f82c4-7f8f-b814-c1ec-9902e43963f6@free.fr> <617e0d57-342d-4162-bd21-ece18e481d87@free.fr> <20190213085028.6199594b@canb.auug.org.au> <20190306021248.GA17298@roeck-us.net> In-Reply-To: <20190306021248.GA17298@roeck-us.net> From: Rob Herring Date: Wed, 6 Mar 2019 07:39:16 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RESEND PATCH v2] of: fix kmemleak crash caused by imbalance in early memory reservation To: Guenter Roeck Cc: Stephen Rothwell , Marc Gonzalez , Frank Rowand , Mike Rapoport , Marek Szyprowski , Catalin Marinas , Prateek Patel , DT , LKML , stable , Andrew Morton Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 5, 2019 at 8:12 PM Guenter Roeck wrote: > > On Tue, Feb 12, 2019 at 04:12:24PM -0600, Rob Herring wrote: > > On Tue, Feb 12, 2019 at 3:50 PM Stephen Rothwell wrote: > > > > > > Hi all, > > > > > > On Tue, 12 Feb 2019 10:03:09 -0600 Rob Herring wrote: > > > > > > > > On Mon, Feb 11, 2019 at 10:47 AM Marc Gonzalez wrote: > > > > > > > > > > On 04/02/2019 15:37, Marc Gonzalez wrote: > > > > > > > > > > > Cc: stable@vger.kernel.org # 3.15+ > > > > > > Fixes: 3f0c820664483 ("drivers: of: add initialization code for dynamic reserved memory") > > > > > > Acked-by: Marek Szyprowski > > > > > > Acked-by: Prateek Patel > > > > > > Tested-by: Marc Gonzalez > > > > > > Signed-off-by: Mike Rapoport > > > > > > --- > > > > > > Resend with DT CCed to reach robh's patch queue > > > > > > I added CC: stable, Fixes, and Prateek's ack > > > > > > Trim recipients list to minimize inconvenience > > > > > > > > > > I'm confused over commit 3532b3b554a216f30edb841d29eef48521bdc592 in linux-next > > > > > "memblock: drop __memblock_alloc_base()" > > > > > > > > > > It's definitely going to conflict with the proposed patch > > > > > over drivers/of/of_reserved_mem.c > > > > > > > > > > Rob, what's the next step then? > > > > > > > > Rebase it on top of what's in linux-next and apply it to the tree > > > > which has the above dependency. I'm guessing that is Andrew Morton's > > > > tree. > > > > > > Yeah, that is in Andrew's "post linux-next" patch series, so if you > > > rebase it on top of linux-next and then send it to Andrew with some > > > explanation. > > > > > > ... > > > > > > Actually, if it is intended for the stable trees, then presumably it is > > > intended to go to Linus for the current release? In which case, the > > > patch in Andrew's tree will have to be changed to cope after your patch > > > appears in Linus' tree (and therefore, linux-next). > > > > At this point in the cycle, I wasn't planning to send this for 5.0. > > It's not fixing something introduced in 5.0 and it is a debug feature. > > > Hi Rob, > > this may be a debug feature, but we do test our kernels with it enabled, > and the problem does affect our 4.19 branch (chromeos-4.19). Are you > suggesting that we should backport the fix into our branch and not send > the backport to -stable ? No, not at all. Just that I wasn't going to add it to the probable last 5.0-rc and would wait. However, it's complicated by other memblock changes in 5.1 and not a trivial backport. One of the versions on the list should be easier to backport than what's in mainline (or going to be). Rob