Received: by 10.192.165.156 with SMTP id m28csp415770imm; Fri, 13 Apr 2018 01:11:53 -0700 (PDT) X-Google-Smtp-Source: AIpwx48KMhEjRSGHZy9F5zU7++EstyEu0uLgvljIS6Vdo+ohvLTZXJtQV0lbMoMIjCWeAMzCldZm X-Received: by 2002:a17:902:1007:: with SMTP id b7-v6mr4300570pla.205.1523607113899; Fri, 13 Apr 2018 01:11:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523607113; cv=none; d=google.com; s=arc-20160816; b=HeT03FR7tJJAvTkxC9rnuU3/VzfL/OiEzNgr77pHEsQJY3tChT+TeKkxLhV0uNwsIo UI7YzGksQNBkqmzBLPQtKUUAkbefGI5g24KeZ3NaMwH4GaSPl/kaknG8ZzzTFrTBrjNm StkTeGVAos9iM0PYc40cg5reGOXhol8C7HuFasL8Idts/zX9EtIwGl/3OennXhOGAuEx cYL45eOisHsVaeYe/wj5s/JGbGYxWa6Jhkply8TQE0ZeHDZLQbmRUMOcrwMFx+n0IUtn zCoNzu+Fm8XN1O7Zw5qH0pyiGhAoM5CLfmlLiKOaJHmMiH0ivulSHBkKkqkuia6yY/IZ Q0QQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:mime-version:user-agent:date:message-id :subject:from:cc:to:dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=ZoWRhNglJA2vIc5XDXO+/s+AtRF7DEH5CKLSVo5M8V4=; b=oRH93H5oYgyzAmVRfEnLScLDUDygIa/Sp7/CIM3rJ/O7VMUz7L8wj5DpRPSD6h1DXy D2yzK2nYFLDFYy8gz/E8kLD0NflLZ6+aqLWrJQO7TyOIhMET2hzK7C2CN7cptmBT+ec3 +r7IpWpBVsjAq9KAxodeRVR8TfvJKnOV/6rO4d6+bClvcvw6SF2TqF4C+VQKbhDzpR3l 0veu7o7uzBzGzo3kkejhb3DVEoroGLtP0jdVIS8Gm8/eet2yod6x6l0G8H/eoU1qRIeV a15H3q+EAFlqQYxLrYP8iEnSFLxJmJZJVm8734qlfkMw1rMO+sOgdLrCzkN6gZfSdBPW IwFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=P7HOu8sR; dkim=pass header.i=@codeaurora.org header.s=default header.b=P7HOu8sR; 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 f1si3528022pgq.806.2018.04.13.01.11.22; Fri, 13 Apr 2018 01:11:53 -0700 (PDT) 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=@codeaurora.org header.s=default header.b=P7HOu8sR; dkim=pass header.i=@codeaurora.org header.s=default header.b=P7HOu8sR; 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 S1753179AbeDMHcH (ORCPT + 99 others); Fri, 13 Apr 2018 03:32:07 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:51676 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750713AbeDMHcF (ORCPT ); Fri, 13 Apr 2018 03:32:05 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 7318160F6C; Fri, 13 Apr 2018 07:32:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523604725; bh=xasWFV8Qe04C58OuwIuY/VXYvIH5uBrDVaDqGhaAB8M=; h=To:Cc:From:Subject:Date:From; b=P7HOu8sRT4eZlWUa46FU/nhGmsswfLh+hXcDsNOnHZr+8Zbdps0Sh1weHmbbiC5e+ Yiwfc/KLITJPKrzSD9ePm9zFfe4Vns58y5gHlNDxUWsqsTT48tdrxbGmf8M4FiqYlF KfJD5k/Jl1KDXZNpXvfs6cM3/7/DXZbChBdAtVlo= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from [10.204.78.252] (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: gkohli@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 3F6EC60BFA; Fri, 13 Apr 2018 07:32:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523604725; bh=xasWFV8Qe04C58OuwIuY/VXYvIH5uBrDVaDqGhaAB8M=; h=To:Cc:From:Subject:Date:From; b=P7HOu8sRT4eZlWUa46FU/nhGmsswfLh+hXcDsNOnHZr+8Zbdps0Sh1weHmbbiC5e+ Yiwfc/KLITJPKrzSD9ePm9zFfe4Vns58y5gHlNDxUWsqsTT48tdrxbGmf8M4FiqYlF KfJD5k/Jl1KDXZNpXvfs6cM3/7/DXZbChBdAtVlo= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 3F6EC60BFA Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=gkohli@codeaurora.org To: tj@kernel.org, nborisov@suse.com, akpm@linux-foundation.org, linux-kernel@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org From: "Kohli, Gaurav" Subject: Query:Regarding percpu_counter debug object destroy Message-ID: <0754201b-2051-3f1c-7a09-ed1be96a0260@codeaurora.org> Date: Fri, 13 Apr 2018 13:02:00 +0530 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi , I have checked below code and it seems we are calling debug_object_free twice, ideally we should deactivate and later we have to destroy. 1st call -> percpu_counter_destroy->debug_percpu_counter_deactivate -> debug_object_free 2nd call -> debug_object_free static bool percpu_counter_fixup_free(void *addr, enum debug_obj_state state) { struct percpu_counter *fbc = addr; switch (state) { case ODEBUG_STATE_ACTIVE: percpu_counter_destroy(fbc); -> first call debug_object_free(fbc, &percpu_counter_debug_descr); 2nd call return true; default: return false; } } We are seeing one issue, where one list contain garbage data in obj_hash, just before element of that is percpu_counter but still not sure as it is very difficult to reproduce. Can some one please review above code or can we remove one instance of debug_object_free from above code. Regards Gaurav -- Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.