Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3296451imu; Mon, 28 Jan 2019 02:16:05 -0800 (PST) X-Google-Smtp-Source: ALg8bN6WjKckSa5qWrSGDRsfeZIrDrwsmXJBVnlNZhfJve2fDy2NPbQtcIzZYLv30Ifc+ph1CaJf X-Received: by 2002:a65:51ca:: with SMTP id i10mr18683124pgq.371.1548670565717; Mon, 28 Jan 2019 02:16:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548670565; cv=none; d=google.com; s=arc-20160816; b=DPEgvTyvN/4s5E64BJSga9YrIClTzM404IW2ouyVTOFvRozuN61w51LkFFNbVHcBNQ bnPIo6QrbYvJbGd5072htlWGIGTDhAU1UTMqSC5Eml/GMmF30Spb2SuMlc7j4caaefQZ WktGYAIA17skhLdCllsYXW5A1fwp8H+L8leJoMWlm3YDdvMrlzr+lQly36jp2jTWr6od 0dhkjntUejoA0uAUUuKVEzfmYe97v3EUnkRjpVlKw3gbG5TGx1Jc5AoFkG3Jltsd0n1T XiW3DC+xyjZAM/6cd1SBQgeJUBO8ZOpLq/1/BQsZzF669/NS6Cw31PegHSwwb1JP9AW7 xbYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=EPu49OiIatTota/mIto6HmOeGE4dJ93zpCBfd8m1Y30=; b=HvLlLHf1wjOgfvXN5VEtbCQWKQaUdpZBMMLrowAla1e315fS/+r8NO1e3YItlANIKk B6+VTFt77TW+sH5cqKY+k6YOsidXCJIp2BtVlVxrDKShDEnZy3Bgl0h90tb5OSHf+reg 2lxO5t6cieWeTlSLqGIsjbKuiRwgi2rmVky/TKwl0m+JVqzMdawaGoOeLmjsG/vYM5eS ThLZyn0cfokTKm6xeNsWNuSvuZyrFQJw0Nb7J0irPdYYjbEwSfaEcd+Hy3ZTGOaG9Y8L a1CbP7bk28Cc7Yb8ipi8f2VG1Azdm40PhySXfPTvJZCO8Qy3VW871De7AA8NhBojbOpI rDyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Aw28n8iE; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y11si32807195plg.236.2019.01.28.02.15.50; Mon, 28 Jan 2019 02:16:05 -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=Aw28n8iE; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726772AbfA1KPo (ORCPT + 99 others); Mon, 28 Jan 2019 05:15:44 -0500 Received: from mail.kernel.org ([198.145.29.99]:60264 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726611AbfA1KPo (ORCPT ); Mon, 28 Jan 2019 05:15:44 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2CC5B20856; Mon, 28 Jan 2019 10:15:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548670543; bh=oyXEftwZ1GLNPaw5L6KuZGnCT+5kOhemtMNZw8aQCsk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Aw28n8iEjdhFroHnl8iwtrRxXw4xStt7peCRIEX2JdcHCnXBeKA09uIxgj23GpK20 4qlXJAI5VRLrRgo27LTcdd1cOe1Xl2JNKpLOoeNIRZJWtmQTb876fRj8SbVfFLHFaN p4o5B43UJyJeEvY/v/4QWZomf5W8WK8yTEhNoA3g= Date: Mon, 28 Jan 2019 11:15:41 +0100 From: Greg KH To: Nicolas Boichat Cc: Will Deacon , Robin Murphy , Joerg Roedel , linux-arm-kernel@lists.infradead.org, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Catalin Marinas , stable@vger.kernel.org Subject: Re: [PATCH] iommu/io-pgtable-arm-v7s: only kmemleak_ignore L2 tables Message-ID: <20190128101541.GA32222@kroah.com> References: <20190128094301.151252-1-drinkcat@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190128094301.151252-1-drinkcat@chromium.org> User-Agent: Mutt/1.11.2 (2019-01-07) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 28, 2019 at 05:43:01PM +0800, Nicolas Boichat wrote: > L1 tables are allocated with __get_dma_pages, and therefore already > ignored by kmemleak. > > Without this, the kernel would print this error message on boot, > when the first L1 table is allocated: > > [ 2.810533] kmemleak: Trying to color unknown object at 0xffffffd652388000 as Black > [ 2.818190] CPU: 5 PID: 39 Comm: kworker/5:0 Tainted: G S 4.19.16 #8 > [ 2.831227] Workqueue: events deferred_probe_work_func > [ 2.836353] Call trace: > ... > [ 2.852532] paint_ptr+0xa0/0xa8 > [ 2.855750] kmemleak_ignore+0x38/0x6c > [ 2.859490] __arm_v7s_alloc_table+0x168/0x1f4 > [ 2.863922] arm_v7s_alloc_pgtable+0x114/0x17c > [ 2.868354] alloc_io_pgtable_ops+0x3c/0x78 > ... > > Fixes: e5fc9753b1a8314 ("iommu/io-pgtable: Add ARMv7 short descriptor support") > Signed-off-by: Nicolas Boichat > --- > > I only tested this on top of my other series > (https://patchwork.kernel.org/patch/10720495/), but I think the same fix > applies. I'm still a bit confused as to why this only shows up now, as IIUC, > the kmemleak_ignore call was always wrong with L1 tables. > > drivers/iommu/io-pgtable-arm-v7s.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read: https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html for how to do this properly.