Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1636893ybb; Thu, 9 Apr 2020 06:14:34 -0700 (PDT) X-Google-Smtp-Source: APiQypKVQ6VKPWiK4JtxzzexLgii0d/NQCMfXdNkpUlBwqKg0XvkiKRksIwHXu3zaQLfLI7eCqWo X-Received: by 2002:a37:8cc1:: with SMTP id o184mr12229670qkd.187.1586438073860; Thu, 09 Apr 2020 06:14:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586438073; cv=none; d=google.com; s=arc-20160816; b=s74IQYqFA13DlT4IHxvDOZjLg+Jhibhbf0hp0s2sgz5C4SJ/Lev+Nnh8yO9ab9nEHq z9OrJWUAl7IOma3/4d6qcek1VAYmKgS+cuIMEIlKjptR0i3pe1hvQj1LXvIM2tZVRNIl 1o3e4/RFIZ5s2EejlM3EHDC9VFaqgYl+ghk4cKWz0vA0aMiVdo8iTYTqozdx4j3ar/jV qXEyoFOSAXx3CHoZwb99lGW2cxUhBA9g5r17IdIgdybyOzqEd92E5Wo2/X6KW/2+7DKW edvXidzDrKVqKkqpp/ddCvSPCDzy4aiqFJ4tH2tzg4GD13lbG58jySUWqSVy8O/rEQGz A+1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:ironport-sdr :ironport-sdr; bh=jVUt6mLwi2HLNigtwBT1wklD21APQtccSJqvuWhCTeQ=; b=UMtXDZeWU0jOqOVQc9l8+tfPS7Y3z9ukIRTtUuOS+wFzGru/tzKjpPOVLMcvwSknyD f5cGR9HsXPWivFDxMbBru0EKJQ4KWNih6rOwoAWNXO/CObgQb/1c1yzf6/raMrw/zDL4 wNnAtQ5wQAt4TzCFmXZgH1yHajV/nCBN2dT1GeSgGADj1WwMdkBwhGFKhJj/K5Hvn0RH lS2FHhxCAEFrLHHG1rJJembvnQSxMx8PRP9KwlA2RtL6VgfaOF58k9skaaiDp944QPpV u7gha8jUVGN4k5A7LoDmc8JwQ0ltJEcWbbMonlWkOR6YaVcTX2Cq1yBYgB5K8XHmBlNk vAXw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d32si5391739qve.13.2020.04.09.06.14.15; Thu, 09 Apr 2020 06:14:33 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726594AbgDIMgW (ORCPT + 99 others); Thu, 9 Apr 2020 08:36:22 -0400 Received: from mga02.intel.com ([134.134.136.20]:15362 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725970AbgDIMgW (ORCPT ); Thu, 9 Apr 2020 08:36:22 -0400 IronPort-SDR: U1cjUZrrUJVeo79R3yhmcD9o0zbhRwzWNCdiw5WIn5taYYupLWbnqOM6dGZQvQxXxM1XuHPRtO IwfVkUJEuJdA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Apr 2020 05:36:22 -0700 IronPort-SDR: JHmvK/8heplCA/1OkTxw8zcPViPkWtbLJkh2Q/88MdeEzo4LOa19MJFYnJUvQe+zpxjxTgeLzV ydMzzR1C2XPw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,362,1580803200"; d="scan'208";a="398553773" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga004.jf.intel.com with ESMTP; 09 Apr 2020 05:36:20 -0700 Received: from andy by smile with local (Exim 4.93) (envelope-from ) id 1jMWPu-00GxF6-Oe; Thu, 09 Apr 2020 15:36:22 +0300 Date: Thu, 9 Apr 2020 15:36:22 +0300 From: Andy Shevchenko To: Oliver Graute Cc: Marco Felsch , dmitry.torokhov@gmail.com, Oliver Graute , Greg Kroah-Hartman , Sasha Levin , Philipp Zabel , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] Input: edt-ft5x06 - fix crash on EDT EP0110M09 Message-ID: <20200409123622.GA3676135@smile.fi.intel.com> References: <1586424425-27038-1-git-send-email-oliver.graute@gmail.com> <20200409105253.qvezbikpbnrkig52@pengutronix.de> <20200409120242.GA17410@portage> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200409120242.GA17410@portage> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 09, 2020 at 02:02:42PM +0200, Oliver Graute wrote: > On 09/04/20, Marco Felsch wrote: > > Hi Oliver, > > > > thanks for your patch. > > > > On 20-04-09 11:27, Oliver Graute wrote: > > > From: Oliver Graute > > > > ... > > > > > drivers/input/touchscreen/edt-ft5x06.c | 4 ---- > > > 1 file changed, 4 deletions(-) > > > > > > diff --git a/drivers/input/touchscreen/edt-ft5x06.c b/drivers/input/touchscreen/edt-ft5x06.c > > > index 06aa8ba0b6d7..6fbc87d041a1 100644 > > > --- a/drivers/input/touchscreen/edt-ft5x06.c > > > +++ b/drivers/input/touchscreen/edt-ft5x06.c > > > @@ -819,10 +819,6 @@ static int edt_ft5x06_ts_identify(struct i2c_client *client, > > > * to have garbage in there > > > */ > > > memset(rdbuf, 0, sizeof(rdbuf)); > > > - error = edt_ft5x06_ts_readwrite(client, 1, "\xBB", > > > - EDT_NAME_LEN - 1, rdbuf); > > > - if (error) > > > - return error; > > > > > > I don't see how this call can corrupt the stack.. > > I admit that this is strange. The patch fixed my problems so I posted > it. Still interested in the root-cause. I'm wondering how you nailed down to this function? Have you able to use kASAN? By the way, what I?C controller behind this? Maybe the bug in its driver? -- With Best Regards, Andy Shevchenko