Received: by 10.223.185.116 with SMTP id b49csp2407513wrg; Mon, 12 Feb 2018 09:04:13 -0800 (PST) X-Google-Smtp-Source: AH8x225eD3cNDknd1C9cvS/kgZhqjecCsyamDNqzcBUZCLN1nvhR12D9Uo3yKDCmpXuzDeTpTzXp X-Received: by 10.98.79.194 with SMTP id f63mr11596603pfj.28.1518455053045; Mon, 12 Feb 2018 09:04:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518455052; cv=none; d=google.com; s=arc-20160816; b=YjK3T2CWLApXRJqzW0tx2+wN6MSRuojZZhLOcLOe0dda+PSDPK8ZpWLX06ij6g348l aJ+lCSAKbxaKRUgrXSAGcKCpuNmA/Clj97+mTsch0cJLl8TKo5ZvMQ29+Ked8olQXb6/ hwQskcbn6RRRg/02OEuM9ZsN7HDQSffzfg0eHKaAvEmhpz1kfVXy2Qoa0bOIbw5GLtqO /rcDgdhg7BxDOfH0npARKMhCL3lEoCBHG8oi4u1ABSjeveZFy0P0M6l24iKPd+lulzfN tSSx3b65PG8NdynljWQ6Gf95pA3DL5RBnAR+W/YsLjZxamwHmwdKW6+E9BfLDVpm20rX BL3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:dkim-signature :arc-authentication-results; bh=iA1ed/spMqiebzt+AGYpHA3fOi82n4yf4/fexRlfmDI=; b=tI41/eJf2avj+7UDkjLK6t0tDmLPYe8V3dkKArodpjzgbG7QsZj91T3y22B+bFJm1l iXXzCszQQM0NQXTKuYHwcouSMyM+ZrcklIRy5C9jJtOSRI6sk0AVpmz0TQmUlA80a7vT aiyyF7f400IsXohkv49EzCXXH68qcCLqayYCNo/n8MjIsjRs7j928dCsnTpM8Ks3wRqK GV+EPqE5rWhWBm9FU6II8CjhiTJNGpMroICbsKE+Z7MJXatbAMMUgohrpxM4dxBZNjtN 1hNhQhBFIgrK9Kgy8P/Rq80u4REd1dzjq35Vudvy9qaYYZoqP/WBjpaFNdCBZjlJjaQG qzrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=ZZ5zNDr2; dkim=fail header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=a2kmDC8v; 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=fb.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i6-v6si2835586plt.26.2018.02.12.09.03.29; Mon, 12 Feb 2018 09:04:12 -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=@fb.com header.s=facebook header.b=ZZ5zNDr2; dkim=fail header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=a2kmDC8v; 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=fb.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752558AbeBLRCE (ORCPT + 99 others); Mon, 12 Feb 2018 12:02:04 -0500 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:10589 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751318AbeBLRCB (ORCPT ); Mon, 12 Feb 2018 12:02:01 -0500 Received: from pps.filterd (m0109333.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w1CH08Vl011259; Mon, 12 Feb 2018 09:01:36 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=facebook; bh=iA1ed/spMqiebzt+AGYpHA3fOi82n4yf4/fexRlfmDI=; b=ZZ5zNDr2sLljAZQLfWiffJbWVO5fYmqvOxtIXWnVovPFkuw7fUo8MtxYj7bHtT/FU8dR LJF8KAZYG2ckmI1TLKapNWGOHVAu8S4jKnVTvaWTQtLAgMO93NmAGaJPZgZJquK2F07i QSODjKZUdWhgDmkw6+Z84hhO5I835IkYO+E= Received: from mail.thefacebook.com ([199.201.64.23]) by mx0a-00082601.pphosted.com with ESMTP id 2g3cr58jvf-9 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 12 Feb 2018 09:01:34 -0800 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (192.168.54.28) by o365-in.thefacebook.com (192.168.16.14) with Microsoft SMTP Server (TLS) id 14.3.361.1; Mon, 12 Feb 2018 09:00:54 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.onmicrosoft.com; s=selector1-fb-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=iA1ed/spMqiebzt+AGYpHA3fOi82n4yf4/fexRlfmDI=; b=a2kmDC8v37ip2WFEutZPiU+870t7NHppM5XLO1iYBybPfI5EeW/fp7OEJAJsBqtPG0ovfqinESwi6lXjy285iaIaWPqiqpWwE9fBEfqryZlEOhIRos4DirIRGvblvoQZ4OeRz7opCYYWyoHAvQFAqdSeeCSD/oQhdrzRJ1xFXnM= Received: from MacBook-Pro-52.local (2620:10d:c090:200::7:3305) by DM5PR15MB1833.namprd15.prod.outlook.com (10.174.247.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.485.10; Mon, 12 Feb 2018 17:00:35 +0000 Subject: Re: [kmemleak] unreferenced object 0xcd9c1a80 (size 192): To: Alexei Starovoitov , Daniel Borkmann CC: Mathieu Malaterre , Alexei Starovoitov , LKML References: <3fa5958d-c14e-56bd-de49-84fc43db4b32@fb.com> <609d04c4-f947-ede5-3c4f-28eaf0b14745@iogearbox.net> <20180212155556.5glgl6qorvuwvubs@ast-mbp.dhcp.thefacebook.com> From: Yonghong Song Message-ID: <60461de5-e0d4-9186-4345-2e03b6501c26@fb.com> Date: Mon, 12 Feb 2018 09:00:24 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20180212155556.5glgl6qorvuwvubs@ast-mbp.dhcp.thefacebook.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [2620:10d:c090:200::7:3305] X-ClientProxiedBy: MWHPR1201CA0013.namprd12.prod.outlook.com (10.174.253.23) To DM5PR15MB1833.namprd15.prod.outlook.com (10.174.247.10) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5554bc5e-652c-451c-8c6b-08d5723a22a0 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603307)(7153060)(7193020);SRVR:DM5PR15MB1833; X-Microsoft-Exchange-Diagnostics: 1;DM5PR15MB1833;3:KokDqj1JFTlba2/OB0Su3029GfgzgXY1lMFPKDtDxA49wdfvJFuA7BAI8SBWqbmEvJAe8dxAM2uNoPrFrRhdkop7SEFRgvcfZ2EIn+kXCXjr1HNFB3Acdpf8NMOzQ937IduuymzNcR+LUT/n8KXFnHNCANPv84wT636vXJPIPESTNVUeyphhf/MFra8M0Nd3aM0NMkUXzZ5YA3TyobcKvTnr20/bCrD44JnMP2kIdn5NTsFpq5en/iGHnY75byQl;25:XdlQY0PKB1NgM4/VVdHmE8UOd/a/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+WX8ptIy9PXw/ea7cEzJ9quQycjSeT2DNcDqfkL5rUiWvgN93swNe3r0x0nVJYvC;4:KZOGf/gVsjHiE0SUaLZ0mLn4EbYJ6tXdXvR9OYqXfAeuUOO8PIfP1Nhl7VgdV0ePo0xZhQ4oOnZ9V67MrdJ4HX0afnZmRumhp3X9m3pTQBJTQJzJioBvJSq/GXJxkuT93U1MGV5vySF41Ue51qrgMHGZ68gUubvihPTdJ8JR5DdPuP7lrwrdjRXi1D4ecyU39JNm1XrmWmzYYFrqIQ6kGdnvpImBz+jpCkOUMDnSf2sweesBjyp7gH2T3f8O1/DqoLd/LP5IksiYLGaPW92iF253Kok1OE7P6tcQpVrH4RpTAg2YKNIyNY+yTjYL9hgUHqQxrFxPC2MZppyo9xZqD7Psiv+xlIA+u2s4pi9jTQ0= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192374486261705)(85827821059158); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040501)(2401047)(8121501046)(5005006)(3231101)(11241501184)(944501161)(3002001)(10201501046)(93006095)(93001095)(6041288)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011);SRVR:DM5PR15MB1833;BCL:0;PCL:0;RULEID:;SRVR:DM5PR15MB1833; X-Forefront-PRVS: 0581B5AB35 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(39860400002)(396003)(366004)(346002)(376002)(39380400002)(199004)(189003)(81166006)(23676004)(36756003)(86362001)(106356001)(6116002)(47776003)(31696002)(97736004)(105586002)(64126003)(8676002)(68736007)(50466002)(65806001)(8936002)(52146003)(65956001)(6246003)(31686004)(52116002)(81156014)(2486003)(478600001)(76176011)(52396003)(2950100002)(386003)(65826007)(6506007)(186003)(5660300001)(58126008)(16526019)(59450400001)(54906003)(7736002)(305945005)(53546011)(4326008)(53936002)(83506002)(229853002)(6486002)(39060400002)(6512007)(67846002)(2870700001)(2906002)(6666003)(93886005)(316002)(110136005)(25786009)(42262002)(505234006);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR15MB1833;H:MacBook-Pro-52.local;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; Received-SPF: None (protection.outlook.com: fb.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtETTVQUjE1TUIxODMzOzIzOmdCNlFoOHBuakRncm9zdjBSZ0FoSXRHQjg5?= =?utf-8?B?ZHc0YjJDRDFxOFpMM2dMTGJid0pmUHRNZE5GWjByQXRGU09QQ2d3M1VuVjhV?= =?utf-8?B?UGQ3c2pzNFR2MFYwandoSkVrck5TNTNSSUpmQjhrS2FvVVhvRjFqM1pmRSs0?= =?utf-8?B?UUtjTDg0bVExZUpVQ0E2NEIvSEtqUE14SFdIWVVVeHhiTUMrR3poQVlLcWpV?= =?utf-8?B?WmhBVkpnU3JSblJVVFhZUnovNmJpbVBha0ZTYS9rajQvZ09UcmVqdVNYTFFQ?= =?utf-8?B?TWhVdVdhT2QzaDZNWCtMY29PaUtiYmRTYWMwOVNDSzNEeVZXa0VBeWt6K3lS?= =?utf-8?B?eVhneEdvTDFsak9JNGxwd010U0t2TkVBL2MwOHgvMVgyOWVWWmJoWmphMHht?= =?utf-8?B?R0QvdEtLZTg2MWJCWU9RYWxpaUxGby91MzdVak5oTXBOSkhpbVVrWjRBRW9R?= =?utf-8?B?b09SNkhJQUF5aEJUZG1Fd0h3aTEvSXk4TFNqbDRlZzFxUnpPc3hPdkdHZUVo?= =?utf-8?B?SUx2L1B4T2E2RjFCL2ZPOW9zSzR0dlI4VmRqdXBnVHBqaUhRcEhjK2gxSzVC?= =?utf-8?B?U2dEN0NieVlZOC95RFpQOG8vVEszQmNSVG80ZUIwK096NElpVm04VXNKM2cy?= =?utf-8?B?ZGpXOXlVMC81M3htcVV0aWFudWIwMUh2MWM2RTVoRlQ3K3dDY2FOaTRTNGI0?= =?utf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6Zp2JGJr5lqG0MK/0lOymleHX5vLpUj2y64b9fHGiAtUGGL73GTotIuKqnrJ1yQ=;7:bUM/4dazMDe038VcQiavUhcBCf2C0D0MJJa9ap6xINeg/HmYTZZeMoMjQc+7jUWEBc5l2RE75CZsTU0WCfOhZTnJQeCj/eEQt49oaJXEqb+uyjpoOj8cbJEWoBxLIbSOHOnROiG6PLR2fRLo1QtWL+sW2unyTu4iqpxkz5BAIAcR4nKcnBYQP8ASQwrWTr4yR3f8R0rPceyXCNJVMQIY02Ky7Z6OLXbRsJ3XozkmQg/aEwEOpH6w/k/lhJaadj7e SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;DM5PR15MB1833;20:2qptxXoNhyi19Odl5bpgRQSm7O13yuH8VFD/7jsyy/S1LOqzGMLq6FoDWD2pQcty0co1ddAVdkjNaQe7nRUhNcBO5f18081O63GNCnoVdJHwaKIXXtz21E9MI0+E3dY/aBc+k+7lwGZBbgYFCJo4cqLFVxFrJO43vu1WzE06DqQ= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Feb 2018 17:00:35.1628 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5554bc5e-652c-451c-8c6b-08d5723a22a0 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR15MB1833 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-02-12_07:,, signatures=0 X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/12/18 7:55 AM, Alexei Starovoitov wrote: > On Mon, Feb 12, 2018 at 09:28:33AM +0100, Daniel Borkmann wrote: >> On 02/12/2018 06:47 AM, Yonghong Song wrote: >>> On 2/11/18 11:18 AM, Mathieu Malaterre wrote: >>>> On Sun, Feb 11, 2018 at 5:54 PM, Alexei Starovoitov >>>> wrote: >>>>> On Sun, Feb 11, 2018 at 7:24 AM, Mathieu Malaterre wrote: >>>>>> Alexei, >>>>>> >>>>>> Could you please comment on why I am seeing those memleaks being >>>>>> reported on my ppc32 system ? Should they be marked as false positive >>>>>> ? >>>>>> >>>>>> System is Mac Mini G4, git/master (4.15.0+), ppc. >>>>>> >>>>>> Thanks for your time >>>>>> >>>>>> $ dmesg >>>>>> ... >>>>>> [ 1281.504173] kmemleak: 36 new suspected memory leaks (see >>>>>> /sys/kernel/debug/kmemleak) >>>>>> >>>>>> Where: >>>>>> >>>>>> # cat /sys/kernel/debug/kmemleak >>>>>> unreferenced object 0xdee25000 (size 192): >>>>>>    comm "systemd", pid 1, jiffies 4294894348 (age 1438.580s) >>>>>>    hex dump (first 32 bytes): >>>>>>      c0 56 2f 88 00 00 00 00 00 00 00 0b 00 00 00 0c  .V/............. >>>>>>      00 00 00 08 00 00 00 01 00 00 00 01 00 00 00 01  ................ >>>>>>    backtrace: >>>>>>      [<6c69baf5>] trie_alloc+0xb0/0x150 >>>>>>      [] SyS_bpf+0x288/0x1458 >>>>>>      [<82182f53>] ret_from_syscall+0x0/0x38 >>>>>> unreferenced object 0xdee25900 (size 192): >>>>>>    comm "systemd", pid 1, jiffies 4294894540 (age 1437.812s) >>>>>>    hex dump (first 32 bytes): >>>>>>      c0 56 2f 88 00 00 00 00 00 00 00 0b 00 00 00 08  .V/............. >>>>>>      00 00 00 08 00 00 00 01 00 00 00 01 00 00 00 01  ................ >>>>>>    backtrace: >>>>>>      [<6c69baf5>] trie_alloc+0xb0/0x150 >>>>>>      [] SyS_bpf+0x288/0x1458 >>>>>>      [<82182f53>] ret_from_syscall+0x0/0x38 >>>>> >>>>> hmm. looks real. Is there a reproducer? >>>>> Yonghong, lpm map not cleaning after itself? >>>> >>>> Not really. I simply boot up my machine and wait for the first kmemleak scan. >>> >>> I am not able to reproduce the issue. Tried with latest net-next on FC26 with kmemleak on. I only got this one after bootup, >>> 'cat /sys/kernel/debug/kmemleak' or >>> 'echo scan > /sys/kernel/debug/kmemleak >>>  cat /sys/kernel/debug/kmemleak': >>> >>> unreferenced object 0xffff99701a7386e0 (size 32): >>>   comm "mount", pid 1856, jiffies 4294669263 (age 98.440s) >>>   hex dump (first 32 bytes): >>>     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................ >>>     00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................ >>>   backtrace: >>>     [<000000004668ec00>] security_sb_parse_opts_str+0x36/0x50 >>>     [<00000000a9807d2b>] parse_security_options+0x3d/0x60 >>>     [<00000000cc1e1d58>] btrfs_mount_root+0x139/0x720 >>>     [<00000000bdc4f1a3>] mount_fs+0x30/0x150 >>>     [<00000000f189f1bd>] vfs_kern_mount.part.26+0x54/0x100 >>>     [<0000000093ae5db7>] btrfs_mount+0x184/0x914 >>>     [<00000000bdc4f1a3>] mount_fs+0x30/0x150 >>>     [<00000000f189f1bd>] vfs_kern_mount.part.26+0x54/0x100 >>>     [<000000003b67b9fc>] do_mount+0x5b9/0xc70 >>>     [<00000000de4073a0>] SyS_mount+0x80/0xd0 >>>     [<00000000fc5a968a>] do_syscall_64+0x5d/0x110 >>>     [<000000003d61f5fc>] entry_SYSCALL_64_after_hwframe+0x21/0x86 >>>     [<00000000458a6ffa>] 0xffffffffffffffff >>> >>> Not sure whether the above is a true issue or not. >>> >>> However, by inspecting the code, I do find the trie_free in lpm_trie.c >>> may have missed freeing the trie memory. >>> >>> The change likes below should work: >>> -bash-4.2$ git diff >>> diff --git a/kernel/bpf/lpm_trie.c b/kernel/bpf/lpm_trie.c >>> index 7b469d1..cecb259 100644 >>> --- a/kernel/bpf/lpm_trie.c >>> +++ b/kernel/bpf/lpm_trie.c >>> @@ -589,6 +589,7 @@ static void trie_free(struct bpf_map *map) >>> >>>  unlock: >>>         raw_spin_unlock(&trie->lock); >>> +       kfree(trie); > > also looks like trie_free() is missing > synchronize_rcu() + rcu_barrier() > it doesn't wait for parallel lookup/update/delete to complete > before freeing the elements. Thanks, Alexei. I will address this in the patch as well.