Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp11013360imu; Thu, 6 Dec 2018 10:06:34 -0800 (PST) X-Google-Smtp-Source: AFSGD/V3qBXnvbU6gzwj5IWHOb/s7RU2IFKMh8Cn+yo/DOnBDOo1OSy+zifqE72ZHNFNP2fY9SN7 X-Received: by 2002:a63:902:: with SMTP id 2mr23314770pgj.219.1544119594671; Thu, 06 Dec 2018 10:06:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544119594; cv=none; d=google.com; s=arc-20160816; b=MLqSu4myHghKXpldou67vI/HfYB9zPyBIAO7g5u53Dk5+Yr77IwBUv+b6LwTO12b46 zfCY1khKFLpRuRTSoly0g277/K+qFu/T4HES3gmSLSlVPbWSAZIP1W3zFaG38dj6oYKw +bhfGWhpltUd1Qdvv2SI17/tvVF6FT8HzuUvtWEi5+iXhR159ijQnNxqPst67JZmKZZr BHMojCjEDWMT74Uy+3pdHcz+nIdB2Xg2dfKRCHXT3WIbdR9MTe/2pHZM2Qgnc2Gp9vqv uVAS/Wc9IP9t55jRrF9Pgt+/gg42T+anCW5JA6ENbMjvPkEqEOoSaxSjJORbLW0Eo3l9 SMAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=zVOpL0NfchsniwdFRvegjJVwORCVUuQmot4ItJiNh9Q=; b=zylGZXBZ+pgxBE9bzzgyzMvKuPlX61b4Tw4BRo55yI37BtLOqwSoFY9xI++qToUw63 HeHKBQThFLnQFGjXXOHL0ngfnk9jiMYlXD/r+bfg/wGukeA8kv20hc/cO4UAJtAGn4Zv zHeFVhk4S8hh2F+gRFAn+NrVYdoTmmVdBD3j7LSlQg0jnLEdCHzE7LpG2WzGGAnJNNQC vnUL1uHdZFoaanLI/E+C3+OuPaQdtSnW2ezzOSWdITmx70yS+LCaFg7xAz1VP5pSPvNb nhZL8PX6XBYou8pacvJy4+AfIr9KKsrc/AuncQaA+XsF8QqgpClksKy4+f4YK4Cma6Nx 0vFA== ARC-Authentication-Results: i=1; mx.google.com; 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 ce19si766871plb.13.2018.12.06.10.06.13; Thu, 06 Dec 2018 10:06: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; 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 S1726044AbeLFSFG (ORCPT + 99 others); Thu, 6 Dec 2018 13:05:06 -0500 Received: from mout.gmx.net ([212.227.15.15]:44903 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725921AbeLFSFG (ORCPT ); Thu, 6 Dec 2018 13:05:06 -0500 Received: from dhcp-41-57.bos.redhat.com ([66.187.233.206]) by mail.gmx.com (mrgmx001 [212.227.17.184]) with ESMTPSA (Nemesis) id 0MLvGW-1gYHwI0GWS-007n1o; Thu, 06 Dec 2018 19:05:02 +0100 Message-ID: <1544119499.12945.48.camel@gmx.us> Subject: Re: [RESEND PATCH] efi: let kmemleak ignore false positives From: Qian Cai To: Ard Biesheuvel , Catalin Marinas Cc: Andrew Morton , Marc Zyngier , linux-efi , Linux Kernel Mailing List Date: Thu, 06 Dec 2018 13:04:59 -0500 In-Reply-To: References: <1543517152-23969-1-git-send-email-cai@gmx.us> <20181206161633.36292-1-cai@gmx.us> <20181206175958.GS54495@arrakis.emea.arm.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6 (3.22.6-10.el7) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:7VKPPBiG3CdBXBSn1uAA4wiJnNVhLlXhWNMll1RJziBSbNu5sa3 SkDrNjIV3/8BRg2GbN/n3KbzZiKfE6GPRZvMNT/uq3p2F8iZ0ZAStdDx8s1h8QGbAz0LA4q uMa6VXIBo8TqZGAENJkQFBbTf0uYFJQ9Xu0OW2vt+MzAobbRxo+/P7VXJ3svHDQ1S8sZcj3 ZAdywapQE+OURxdgV23nw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Air/+UXhmig=:WZyPYsTAYO0NyUZ0qpPo26 7iwtge4Qajfoyi/yJ2X0iqx0zA/BEyMR9x/hAR0Jmuia8k4wPTb/PFYFg1sucr6mcrSXSySD8 L2OfIQmpgvYhCrWZ6hfIN78dayw0OgDibTwhj+qNWzEU8UtidZE/0TeqUbw77f//+yqxekD22 G2JpSsqu/wv8e6PzfVX24DYUNiQ1KPhgEsRV7IbjsRSy47KlhfPc66eFujMEsfA08ma+d3qIC T0k3shucWAIw0Y00POOftEDdRjO5EEUJbSxxPtHbxdMOWPkQftyFaPpZGUngo5D7GFlXpRYbc DmSLe+ih3Tg3J5xQIeU4sOWNTRtOX5QIr3r1dGzU1lmVR15ZuOse5gxNqWaWnzDsNdhseMCi9 V1/mCd1Rw2Sux1ssrwKDQNc/8GLh2k6UCjJM59F2ORhGmUAaI6E7nXI8TSJr7A1BtQm9/FQOb OokbAjVVvloVpDZjcnJEt8/+KjJp0QA6IXYsf8eH2NXXxeQvPvV1bYwIddY+7S1XeZQMIagfU 7xdjarHCExJVqa42rBB2bdI5OOgxsYMDvMYkVFT0c/YaBULxUSFGgCZ+Yi9ch539txH65u7vO kc7J9S+Q8zUWEEq3jjHOz3qmqsP7Sx73l2iGrG8dEgatOIMjKoKM0O2pQ9UXoHEwQeEMt230M BSTEqt6fy5oaaptPJ/dA4Kg9z4hcBntgIwNjRiCbcgrsf/DN3D3y4aHt+IKiL6SLy8tJUzYcf gf6vIwcdzpgZm/tNAkA1FuYdaBcj79y9ZkwKUpN6rvDVX68/iN7jvIkanI+km/padO3sCjp+9 SoZrNohoq6XKf7x6GmYXllillQfZ92IT5HrZ1HrgEvPVgOWsb7Atf3KvfkyNMw0hC3Z4esvVK TrbqJmJZGw8I2HqG0nAw1ZoDnUT75mQRo+4qjji71oOdoJ5NGiZCwQj9ZCBkja Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2018-12-06 at 19:01 +0100, Ard Biesheuvel wrote: > 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 That is strange. Please see, https://lore.kernel.org/lkml/1543517152-23969-1-git-send-email-cai@gmx.us/