Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp11008940imu; Thu, 6 Dec 2018 10:03:07 -0800 (PST) X-Google-Smtp-Source: AFSGD/VbovUvjWWWJuao1bz2L7SKdvWCl0GH0eF6u6qN+a4+fXWK6o1JkJg3gX3iDf+0lAqp9FLZ X-Received: by 2002:a63:1c61:: with SMTP id c33mr24334062pgm.354.1544119387040; Thu, 06 Dec 2018 10:03:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544119387; cv=none; d=google.com; s=arc-20160816; b=xsKFWnRNevCIImsuhLWJYjPJFQa8jT+arPVCV9TOhBgOdLQvUOtx8HeB2w/zRpLsZJ U5fUBty9lF7xHD6R1nxezbqKugA59tCPCtml1DTDH7WOjkI06Rso4dXOfRwsGUzPEbUk xfBcV/MgWgKTm4pXPfRRNRUDtWiUQ0YuYkvE8+hZz12oKk4FgBZl5I0tRyVZE7Gwrnhz wxMh0nRoiah4qm9B6Ao8sbNQP85O7wSfHE6mYja6m8Uy0KeY8Wxjzv58ihGaClzgusjT PYp+9ronGHRoFpHW39xxBwbYi+VTXWxZsrRF1DLTCBX7ARWjqbYQz95+JL2fGD41XQlR HaBQ== 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=h0aBsvp/rh0WCAFydjv+EeSRbhvQ/94HjQEIz9TLyx8=; b=NuOSv1M5dscwyjd8eXn6BSlMTjO3Ft+2gotJqaQGxsaazlmiP3yTISNSYq/kaLjbOA KE1eSt+TC5AGR0FkzVZnHdI1j47Gfj4N3FnXgf4eVCg5n72mJx33pB7YPPiitkL7pGWz Wi0CMk0X/FISDI4InXrzXH5oaKiEAkbnWJ+t5wD870xPX62W3811PZzvm7c41vRgSsLo LmzmAHF9LKZP+YnO0SjZVzZnieqEPUGkr4HPWPRL8MhwkI3encmWGCTJftIdtwf+752Y C4ckHbfQ8BBut079xe2DT1jlUHfM9R2V+SqQIQ4V3v7q36T7Ax4HvWPwH9N61fPRhJaW sYEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kjnZCOoV; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r14si744580pfh.229.2018.12.06.10.02.38; Thu, 06 Dec 2018 10:03:07 -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=@linaro.org header.s=google header.b=kjnZCOoV; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725946AbeLFSBw (ORCPT + 99 others); Thu, 6 Dec 2018 13:01:52 -0500 Received: from mail-it1-f193.google.com ([209.85.166.193]:55881 "EHLO mail-it1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725901AbeLFSBv (ORCPT ); Thu, 6 Dec 2018 13:01:51 -0500 Received: by mail-it1-f193.google.com with SMTP id o19so2755697itg.5 for ; Thu, 06 Dec 2018 10:01:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=h0aBsvp/rh0WCAFydjv+EeSRbhvQ/94HjQEIz9TLyx8=; b=kjnZCOoVDxiS4ay04jCvRSiJd6uzCvvaPTQ9QhAqXxjoHu7kbIpPA/4YjzPFzOq68d 7JJIO/qFIMWeP+Wp4xbauOc5YHAd//0x6FtfCnaFuUeGj0Bp/OK5gBb8DxwpC+yMoNqE 0IXa06URPQavz07yc7fKIZ42JwaAybJWAQBPo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=h0aBsvp/rh0WCAFydjv+EeSRbhvQ/94HjQEIz9TLyx8=; b=LSnFKXgdIeFI09kWMegMJ0wJ/qmtoOW9L9jzV3j5mWSuX8/TGt22mX+ag406PN4bPL Vv5O5xiWdG4Szi0DTcWkLKcX0OJgyRbRVz4Y4L3hV1KaA2Ri2PHZQA6XTwoXsr8rhII5 J+T23xpFkkbQrNME2nl+HnF/NEwr0IWfjFozOgocxyTHm3exJvuc+6GgBwr/pnEE8NHI dLq6b49I0YYl0ZtV6RNZAJrH35piCQuo5zgNpFrwHym4jc0sOAjksPrVnrB495F+I057 EBhK1MebZj/981+qFW0YFnl/9o5hDJYlyj2Bx0ia3WhA9qksDyOjYDkv5D2my3Ur5zQk 6N4w== X-Gm-Message-State: AA+aEWYItVJzvVirsQBX/MK9mpE64+441gTbmXqF+zUyWgvyG7ph9S0+ AqIbt7ueA612T1SLUxlGNhMiJQ1mBOpeFSBTPiCvgw== X-Received: by 2002:a02:183:: with SMTP id 3mr13214371jak.130.1544119310491; Thu, 06 Dec 2018 10:01:50 -0800 (PST) MIME-Version: 1.0 References: <1543517152-23969-1-git-send-email-cai@gmx.us> <20181206161633.36292-1-cai@gmx.us> <20181206175958.GS54495@arrakis.emea.arm.com> In-Reply-To: <20181206175958.GS54495@arrakis.emea.arm.com> From: Ard Biesheuvel Date: Thu, 6 Dec 2018 19:01:38 +0100 Message-ID: Subject: Re: [RESEND PATCH] efi: let kmemleak ignore false positives To: Catalin Marinas Cc: Qian Cai , Andrew Morton , Marc Zyngier , linux-efi , Linux Kernel Mailing List 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 Thu, 6 Dec 2018 at 19:00, Catalin Marinas wrote: > > On Thu, Dec 06, 2018 at 11:16:33AM -0500, Qian Cai wrote: > > unreferenced object 0xffff8096c1acf580 (size 128): > > comm "swapper/63", pid 0, jiffies 4294937418 (age 1201.230s) > > hex dump (first 32 bytes): > > 80 87 b5 c1 96 00 00 00 00 00 cc c2 16 00 00 00 ................ > > 00 00 01 00 00 00 00 00 6b 6b 6b 6b 6b 6b 6b 6b ........kkkkkkkk > > backtrace: > > [<000000001d2549ba>] kmem_cache_alloc_trace+0x430/0x500 > > [<0000000093a6dfab>] efi_mem_reserve_persistent+0x50/0xf8 > > [<000000000a730828>] its_cpu_init_lpis+0x394/0x4b8 > > [<00000000edf04e07>] its_cpu_init+0x104/0x150 > > [<000000004d0342c5>] gic_starting_cpu+0x34/0x40 > > [<000000005d9da772>] cpuhp_invoke_callback+0x228/0x1d68 > > [<0000000061eace9b>] notify_cpu_starting+0xc0/0x118 > > [<0000000048bc2dc5>] secondary_start_kernel+0x23c/0x3b0 > > [<0000000015137d6a>] 0xffffffffffffffff > > > > efi_mem_reserve_persistent+0x50/0xf8: > > kmalloc at include/linux/slab.h:546 > > (inlined by) efi_mem_reserve_persistent at drivers/firmware/efi/efi.c:979 > > > > This line, > > > > rsv = kmalloc(sizeof(*rsv), GFP_ATOMIC); > > > > Kmemleak has a known limitation that can only track pointers in the kernel > > virtual space. Hence, it will report false positives due to "rsv" will only > > reference to other physical addresses, > > > > rsv->next = efi_memreserve_root->next; > > efi_memreserve_root->next = __pa(rsv); > > > > Signed-off-by: Qian Cai > > Acked-by: Catalin Marinas \ I don't see the patch and I wasn't cc'ed