Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1215382imm; Sat, 22 Sep 2018 22:50:49 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaQbgdRqpjrF5IV4O1rXcKIxACg/Xa675dO+ba37Z9tR55FriNWzqRllccwDPc9Ew6a98fH X-Received: by 2002:a62:6699:: with SMTP id s25-v6mr657692pfj.84.1537681849379; Sat, 22 Sep 2018 22:50:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537681849; cv=none; d=google.com; s=arc-20160816; b=Kb19Fm8p1lW0rQc+4hLtdLNDeHR+FZAeME5HEGn0oVlcpo+6ydhRIZTAULwM3Rw+IE mxx3MmSpwynu7IwbTOp8udqXUXE4Mn79nM07XK1xgnaan2wLng1wLujaK/P4N/b/JBuS Pg21EyvYDFKHWjT+vlASQ+desJK1INgP1qmoqr1ah9zMgU3tOp+julZkfA/sPlkhvXfu sPiOHomvj9WSmUnvAnIZi54ytecxZ1/tIISFyf/N5Yw/CpBglwff+RqM+2E18hWx6kMa yg4auGRtWn3hg1Gn8ZHcUG7w4bZV5NZ2AycS79N9PNRKykcGFTY+0cGnZcxULpAtYD60 jcmA== 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; bh=1wAFN9lBoWexHmzeniopQWW1wE1SYk7rf14wbT7NXVg=; b=gmHqjo8tFeUYSoWyyGSpqm1e8kc67WHI1g7lGnT6gMSJY61RBpMd9wmhilrePkyela 1PQEhJ3Du90PVzJPZnYmIAa0GYUVOEQcTimZvhbOoZEqkHvgpH9e8Angve6R9jAKRc0d IVGVEaNKgiAkFCTa++bAgRXZM7wSS0G+Nf0V314h5GfNYjYRbAXTDDLhZxGnf4jiStfy +ikaw26Df7DNuA9kOnqoHunudFHW9V2Sur3zOfoD/t06yYlLzBrDoihj7N/oEtToQykL qYODp64BIPLqbx+odmR6XO/5SN+F1ytATHmh15lEOA+nqO74SG5TpXD0Cq0/FCaagC9l R1Rw== 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 t13-v6si509579pfc.294.2018.09.22.22.50.34; Sat, 22 Sep 2018 22:50:49 -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 S1726061AbeIWLqm convert rfc822-to-8bit (ORCPT + 99 others); Sun, 23 Sep 2018 07:46:42 -0400 Received: from mga17.intel.com ([192.55.52.151]:28301 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725988AbeIWLqm (ORCPT ); Sun, 23 Sep 2018 07:46:42 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Sep 2018 22:50:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,291,1534834800"; d="scan'208";a="94072220" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga002.jf.intel.com with ESMTP; 22 Sep 2018 22:49:06 -0700 Received: from fmsmsx156.amr.corp.intel.com (10.18.116.74) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sat, 22 Sep 2018 22:49:06 -0700 Received: from lcsmsx153.ger.corp.intel.com (10.186.165.228) by fmsmsx156.amr.corp.intel.com (10.18.116.74) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sat, 22 Sep 2018 22:49:05 -0700 Received: from hasmsx108.ger.corp.intel.com ([169.254.9.242]) by LCSMSX153.ger.corp.intel.com ([169.254.8.230]) with mapi id 14.03.0319.002; Sun, 23 Sep 2018 08:49:03 +0300 From: "Winkler, Tomas" To: Greg Kroah-Hartman CC: "Usyskin, Alexander" , "linux-kernel@vger.kernel.org" , Dan Carpenter , "stable@vger.kernel.org" Subject: RE: [char-misc v4.4.y 2/2] mei: bus: type promotion bug in mei_nfc_if_version() Thread-Topic: [char-misc v4.4.y 2/2] mei: bus: type promotion bug in mei_nfc_if_version() Thread-Index: AQHUS15efZUfsgX14EOznlt0owXT76T9ZoOg Date: Sun, 23 Sep 2018 05:49:02 +0000 Message-ID: <5B8DA87D05A7694D9FA63FD143655C1B9D9B4CF9@hasmsx108.ger.corp.intel.com> References: <20180903224304.15989-1-tomas.winkler@intel.com> <20180903224304.15989-2-tomas.winkler@intel.com> <20180913123553.GJ2268@kroah.com> In-Reply-To: <20180913123553.GJ2268@kroah.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMTg0YTUxZGYtYTFlOC00MzllLTk0ZmItNWFjNWUyNTlkOGQyIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiZWxVZDc4ZG4wZ09qdWdcL09VS2FIeDVoZkNIUkhSejNKeWd2bThoV2Z2a09GU0hLbXQrZHZrVmo0R3RuckdFM28ifQ== dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [10.12.116.18] 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 > > On Tue, Sep 04, 2018 at 01:43:04AM +0300, Tomas Winkler wrote: > > From: Dan Carpenter > > > > commit b40b3e9358fbafff6a4ba0f4b9658f6617146f9c upstream > > > > We accidentally removed the check for negative returns without > > considering the issue of type promotion. > > The "if_version_length" variable is type size_t so if __mei_cl_recv() > > returns a negative then "bytes_recv" is type promoted to a high > > positive value and treated as success. > > > > Cc: # 4.4 > > I also need a version of this patch for 4.18.y, 4.14.y, and 4.9.y before I will > consider adding it to 4.4.y, as we do not want anyone to ever get a > regression moving to a new kernel. Right, I've started from the wrong end. Now I've posted the patches for the rest of the required long running versions. Thanks Tomas