Received: by 10.223.164.202 with SMTP id h10csp4071585wrb; Mon, 20 Nov 2017 09:23:49 -0800 (PST) X-Google-Smtp-Source: AGs4zMYLT/g9vgZMx09u7oTd4ibvQ+4dB2bBr2tQfMg1f2jQNIVwqz7ijTwfZvPXUx0JGF5Wz9vw X-Received: by 10.101.70.11 with SMTP id v11mr14057142pgq.306.1511198629853; Mon, 20 Nov 2017 09:23:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511198629; cv=none; d=google.com; s=arc-20160816; b=tU6jatRrzXhjU74ppvmvL822x4lsUR2gnqA3+5h9whMu2EsByD+IomTcCWQeWRQgS4 blTuMmHTYW0LwXJRLSLkE4xoqfYnHWWmgedqb7nxGXVX/cEOoDCcd7tL+OP41K18XQug JjM2v4g0kysiIhXGPDfzj/9tZ4sud0rqtwIAJHwn7S6UtMOM4N0TOzkGXylLrVLfR+t+ 8dcMknhLZJ05FPILWV7jtCm40TESVFQPUnnHmM7laa0HWuheTOpEuIHXg84ASag314vg cZBww0EKjJX+fS1iTvMlQcE4JMi0n5c8X/P/tnPdMXfY4/eRyk3ocnOyyp6g2JARYik4 zVaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:arc-authentication-results; bh=OJS9Vs7+cOChCigiY4ARjHKiwnqnIx4CBIGUL65vGUk=; b=IPg+pwqHkP6sSjYkaA2eqSFiHt1x+kvijaVMd+rUU/7jVsp38ldNluIpOa9LT7sUrm yu5H9sQsPEWY7Uk7XziscYpV/1DNf2uXaKtI7+tvdg4tOSb6XlirEpU4+GxA0LZ8Ipf/ 3dIxDjgABEdO92PgsquU1eox0FTvBa8IqRwEDncIoC0gBOrW/SZXatZX046E9gX35Aun svpn8zaQZNfDC6V0Su1JLqt1NBFb0UVDN/OIFuDYpaVsntaZWEFSY061OrF9cyNAL+YC SV4W49U4MYFZMjMzi+fTqj2ffq3KEjJn9KKEC+UhVUUIj1bsovUMz+RE5RXXIUOXT5oG SwdA== 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 p17si8750747pgc.553.2017.11.20.09.23.38; Mon, 20 Nov 2017 09:23:49 -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 S1751977AbdKTRWp convert rfc822-to-8bit (ORCPT + 67 others); Mon, 20 Nov 2017 12:22:45 -0500 Received: from mga02.intel.com ([134.134.136.20]:37568 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751820AbdKTRWl (ORCPT ); Mon, 20 Nov 2017 12:22:41 -0500 Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Nov 2017 09:22:39 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,428,1505804400"; d="scan'208";a="3955759" Received: from orsmsx107.amr.corp.intel.com ([10.22.240.5]) by FMSMGA003.fm.intel.com with ESMTP; 20 Nov 2017 09:22:38 -0800 Received: from orsmsx162.amr.corp.intel.com (10.22.240.85) by ORSMSX107.amr.corp.intel.com (10.22.240.5) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 20 Nov 2017 09:22:38 -0800 Received: from orsmsx110.amr.corp.intel.com ([169.254.10.163]) by ORSMSX162.amr.corp.intel.com ([169.254.3.44]) with mapi id 14.03.0319.002; Mon, 20 Nov 2017 09:22:37 -0800 From: "Schmauss, Erik" To: "alexander.levin@verizon.com" CC: "Moore, Robert" , "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" , "Wysocki, Rafael J" Subject: RE: [PATCH AUTOSEL for 4.9 01/56] ACPICA: Resources: Not a valid resource if buffer length too long Thread-Topic: [PATCH AUTOSEL for 4.9 01/56] ACPICA: Resources: Not a valid resource if buffer length too long Thread-Index: AQHTXbvPAbrXT0QhSUGatiV3eK8okKMVlDVggAB1YYD//6J9AIACetQAgAVgGZA= Date: Mon, 20 Nov 2017 17:22:37 +0000 Message-ID: References: <20171115024521.5884-1-alexander.levin@verizon.com> <94F2FBAB4432B54E8AACC7DFDE6C92E37E619757@ORSMSX110.amr.corp.intel.com> <20171115163859.o5cpk374sim6g3eu@sasha-lappy> <20171117005621.fjvh7iud4qipl3dn@sasha-lappy> In-Reply-To: <20171117005621.fjvh7iud4qipl3dn@sasha-lappy> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiY2QyYzYxMjgtMzY0Ni00OGFmLTkzOGItNzBhODExNTA3MGNkIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6IkpRSUpxOVJ1bkxLeFlvQ1wvamRHNnNKYTltU3Y3UG5TRitTamlkYWdnRzBBPSJ9 x-ctpclassification: CTP_IC dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.22.254.139] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: alexander.levin@verizon.com [mailto:alexander.levin@verizon.com] > Sent: Thursday, November 16, 2017 4:56 PM > To: Schmauss, Erik > Cc: Moore, Robert ; linux-kernel@vger.kernel.org; > stable@vger.kernel.org; Wysocki, Rafael J > Subject: RE: [PATCH AUTOSEL for 4.9 01/56] ACPICA: Resources: Not a valid > resource if buffer length too long > > On Wed, Nov 15, 2017 at 05:05:21PM +0000, Schmauss, Erik wrote: > > > > > >> -----Original Message----- > >> From: alexander.levin@verizon.com > >> [mailto:alexander.levin@verizon.com] > >> Sent: Wednesday, November 15, 2017 8:39 AM > >> To: Moore, Robert > >> Cc: linux-kernel@vger.kernel.org; stable@vger.kernel.org; Wysocki, > >> Rafael J ; Schmauss, Erik > >> > >> Subject: RE: [PATCH AUTOSEL for 4.9 01/56] ACPICA: Resources: Not a > >> valid resource if buffer length too long > >> > >> On Wed, Nov 15, 2017 at 03:39:22PM +0000, Moore, Robert wrote: > >> >> -----Original Message----- > >> >> From: alexander.levin@verizon.com > >> >> [mailto:alexander.levin@verizon.com] > >> >> Sent: Tuesday, November 14, 2017 6:46 PM > >> >> To: linux-kernel@vger.kernel.org; stable@vger.kernel.org > >> >> Cc: Moore, Robert ; Zheng, Lv > >> >> ; Wysocki, Rafael J > >> >> ; alexander.levin@verizon.com > >> >> Subject: [PATCH AUTOSEL for 4.9 01/56] ACPICA: Resources: Not a > >> >> valid resource if buffer length too long > >> >> > >> >> From: Bob Moore > >> >> > >> >> [ Upstream commit 57707a9a7780fab426b8ae9b4c7b65b912a748b3 ] > >> >> > >> >> ACPICA commit 9f76de2d249b18804e35fb55d14b1c2604d627a1 > >> >> ACPICA commit b2e89d72ef1e9deefd63c3fd1dee90f893575b3a > >> >> ACPICA commit 23b5bbe6d78afd3c5abf3adb91a1b098a3000b2e > >> >> > >> >> The declared buffer length must be the same as the length of the > >> >> byte initializer list, otherwise not a valid resource descriptor. > >> [snip] > >> > >> >[Moore, Robert] > >> > > >> >Please explain what you are doing here. > >> > >> Proposing this commit for the 4.9 LTS tree. > > > >What problem are you trying to solve with this change? Are you seeing ACPI > errors? If so what are they? > > Not seeing an actual problem myself. Was this patch supposed to fix a problem > or just deal with a theoretical scenario? > This was supposed to fix issues with our AML disassembler to parse a strange corner in the ASL test suite. I believe this was due to the end tag contains a checksum byte that ACPICA and other ACPI implementations ignore. We thought this was useful in the test suite because we test the disassembler by comparing normally compiled AML with AML that has been compiled, disassembled, and re-compiled. Without this change, the endtag checksum would be over-written to 0 rather than the existing value. I believe this change broke a few things such as the execution of ConcatResTemplate. We concluded to not use this solution and alter the test suite instead because this endtag byte is usually ignored anyway. To answer your question, this was to deal with a theoretical scenario. Erik > -- > > Thanks, > Sasha From 1584311986906242367@xxx Fri Nov 17 11:20:51 +0000 2017 X-GM-THRID: 1584098975829671593 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread