From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751350AbdJEPCj (ORCPT ); Thu, 5 Oct 2017 11:02:39 -0400 Received: from esa7.dell-outbound.iphmx.com ([68.232.153.96]:49088 "EHLO esa7.dell-outbound.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750965AbdJEPCh (ORCPT ); Thu, 5 Oct 2017 11:02:37 -0400 From: X-LoopCount0: from 10.166.132.169 X-IronPort-AV: E=Sophos;i="5.42,481,1500958800"; d="scan'208";a="1040423615" X-DLP: DLP_GlobalPCIDSS To: CC: , , , , , , , , , Subject: RE: [PATCH v4 04/14] platform/x86: dell-wmi: increase severity of some failures Thread-Topic: [PATCH v4 04/14] platform/x86: dell-wmi: increase severity of some failures Thread-Index: AQHTPWLwlbOqrcUg8EqdO95y55qNEqLVDHeAgABOeWA= Date: Thu, 5 Oct 2017 15:02:25 +0000 Message-ID: <720fa15b9c6840e79452186ccbdd50ce@ausx13mpc120.AMER.DELL.COM> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.143.18.86] Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by nfs id v95F2k8S002608 > -----Original Message----- > From: Andy Shevchenko [mailto:andy.shevchenko@gmail.com] > Sent: Thursday, October 5, 2017 12:21 AM > To: Limonciello, Mario > Cc: dvhart@infradead.org; LKML ; Platform Driver > ; Andy Lutomirski ; > quasisec@google.com; Pali Rohár ; Rafael J. Wysocki > ; mjg59@google.com; Christoph Hellwig ; > Greg KH > Subject: Re: [PATCH v4 04/14] platform/x86: dell-wmi: increase severity of some > failures > > On Thu, Oct 5, 2017 at 1:48 AM, Mario Limonciello > wrote: > > There is a lot of error checking in place for the format of the WMI > > descriptor buffer, but some of the potentially raised issues should > > be considered critical failures. > > > > If the buffer size or header don't match, this is a good indication > > that the buffer format changed in a way that the rest of the data > > should not be relied upon. > > > > For the remaining data set vectors, continue to notate a warning > > in undefined results, but as those are fields that the descriptor > > intended to refer to other applications, don't fail if they're new > > values. > > > - if (strncmp(obj->string.pointer, "DELL WMI", 8) != 0) > > - dev_warn(&wdev->dev, "Dell descriptor buffer has invalid signature > (%8ph)\n", > > + if (strncmp(obj->string.pointer, "DELL WMI", 8) != 0) { > > + dev_err(&wdev->dev, "Dell descriptor buffer has invalid signature > (%8ph)\n", > > A nit: ping-pong programming detected. > Looks like current patch 2 should go at least after this one. > > > -- I'll re-order them, but either way both patches are touching these lines in some way.