Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751635AbdFHHbL convert rfc822-to-8bit (ORCPT ); Thu, 8 Jun 2017 03:31:11 -0400 Received: from mga05.intel.com ([192.55.52.43]:59720 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751035AbdFHHbJ (ORCPT ); Thu, 8 Jun 2017 03:31:09 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.39,313,1493708400"; d="scan'208";a="110604178" From: "Zheng, Lv" To: Seraphime Kirkovski , "Moore, Robert" CC: "devel@acpica.org" , "afael.j.wysocki@intel.com" , "linux-acpi@vger.kernel.org" , "Wysocki, Rafael J" , "lenb@kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] acpi: acpica: dsutils: fixanoff-by-one index Thread-Topic: [PATCH] acpi: acpica: dsutils: fixanoff-by-one index Thread-Index: AQHS37IVUa/ZsGPp1UyyZyY6dBVCNaIai7ZA Date: Thu, 8 Jun 2017 07:31:04 +0000 Message-ID: <1AE640813FDE7649BE1B193DEA596E886CECB52A@SHSMSX101.ccr.corp.intel.com> References: <94F2FBAB4432B54E8AACC7DFDE6C92E37E5BF38C@ORSMSX110.amr.corp.intel.com> <20170607171814.zjvrikbjonp5n3gd@macchiaveli> In-Reply-To: <20170607171814.zjvrikbjonp5n3gd@macchiaveli> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMGQ1YTNkM2QtMzJhMi00N2VjLWJiOTAtNTgzMWFkNTJmODcwIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6ImVkWXNYRmpnQ3lsMG9nektRXC8yMmhOS3JseVR4Y1ZMXC8zNkNMTmdRSzk1az0ifQ== x-ctpclassification: CTP_IC dlp-product: dlpe-windows dlp-version: 10.0.102.7 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2077 Lines: 46 Hi, > From: Seraphime Kirkovski > > On Wed, Jun 07, 2017 at 03:14:46PM +0000, Moore, Robert wrote: > > I believe that the rationale for this is that at that point in the code, it is *guaranteed* that > there is at least one operand; therefore the -1 would always be valid. > > > > In the end, we just deleted that call to > > acpi_db_display_argument_object. Yes, the AcpiDbDisplayArgumentObject() invocation itself here is not proper. It can mess up debugging messages. In debugging console, AcpiDbDisplayArgumentObject() can be enabled to display stacked objects. In single step mode, it dumps stacked objects on the debugging console for each step. It means AcpiDbDisplayArgumentObject() should be invoked for each AcpiDsObjStackPush(). There are only 2 AcpiDsObjStackPush() invocations. Both of them have have already been paired with AcpiDbDisplayArgumentObject() in AcpiDsCreateOperand(). This isolated AcpiDbDisplayArgumentObject() tries to find back missing stacked object debugging information. ACPI_DEBUG_PRINT((ACPI_DB_DISPATCH, "Argument previously created, already stacked\n")); However there won't be such a missing object as all operands are created via AcpiDsCreateOperand(). Finally this invocation only generates redundant debugging logs on console: ArgObj: 00ADA610 Integer 0000000000000000 ArgObj: 00ADA4F0 Integer 00000000FFFF00FF ArgObj: 00ADA4F0 Integer 00000000FFFF00FF <= redundant log generated by this line ArgObj: 00ADA580 Integer 0000000000000000 ResultObj: 00ADA710 Integer 0000000000000000 So we just removed it. > > I don't know if this change has made it into Linux yet. > > > The latest rc actually produces the UBSAN splat in my previous message. > So I suppose, I have some buggy hardware/firmware. It's in recent ACPICA release and hasn't been merged by Linux upstream. It's still in community review list: https://patchwork.kernel.org/project/linux-acpi/list/ named as: [33/53] ACPICA: Dispatcher: Remove unnecessary call to debugger You'll see it merged in the next 1-2 RCs if everything works smoothly. Thanks Lv