Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2403593imm; Mon, 24 Sep 2018 03:54:26 -0700 (PDT) X-Google-Smtp-Source: ACcGV61UDZy1EzJOfspbhyp8cKOXP9Q7JAIIPtSscIVloS8Zce5U6vEcdlNd/DFJyr627AhfwVNu X-Received: by 2002:a63:2218:: with SMTP id i24-v6mr9123511pgi.238.1537786466654; Mon, 24 Sep 2018 03:54:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537786466; cv=none; d=google.com; s=arc-20160816; b=MxkzteYKdGmp4KePkHMhZ/FEzN1/YEiRLVvW8OjRzx/mwPF3/ajjoH2ZcIvKz9GGYS DhA0kqw33t1zUCDBjAfhd3Xj0QlBTISucZm0J9hzKnWK11/nlRjSEnu2vT0ELjQ9O6rr 1HiktM6Se2c2Tx7e6Jr8hkT99IRZxETGvLFbqgp7ZUYxoTpLh5/oD0dJExszMjwVuN/7 hB5P4Hr8QXJjvxjYqsysDIIpBQj6WafG9126qfr+7itAadSTa5q3J3xGtAoyTnhZcGCA LVoQUgIsP8pd3Q8wBqHpt/mCwTSzP7xI+v6wxhhH4SB2CyTelgBfcEDBp306Xw+YucNs /8hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=k2s/yi5IKjTD0v9ri+FIdUSe3RNyEXlPLKgOLHyARhg=; b=kj0hR0OeXwaqmBko1thpGDCt3EGV/ZSZvmpwXTflzI5aFbiTY4Wtkw9I0heDzuHQQ0 /yO7DzT/ay+Rf9YEuuRSFE+UoeSvtbddOl/Dl21Lb4T08TQpad4DU7fsFKfykqRiV8AT 03uMprFtWS1WA5ZY7Yt7cjSVWfUdPyzI2soX4iVJP7Sc/McZGDtKSik2B/zsqjn2ejBB 6lAP/pQV0HszuTCzu4/8PIt9AQspLFjKpNTTsOZ/CCzqq7UK7DPX0GmRAN8+n6lLWVQP lIV4FfwB6xTh/cYDrKEBwKzCsNZ1M5OfbksfUJ4FfEpKTlFTYp/ebqaf+pseiEEDDiJc tu8g== 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 g92-v6si10770100plg.445.2018.09.24.03.54.11; Mon, 24 Sep 2018 03:54:26 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728517AbeIXQyl (ORCPT + 99 others); Mon, 24 Sep 2018 12:54:41 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:48180 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726133AbeIXQyl (ORCPT ); Mon, 24 Sep 2018 12:54:41 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 8F7A01057; Mon, 24 Sep 2018 10:53:11 +0000 (UTC) Date: Mon, 24 Sep 2018 12:53:07 +0200 From: Greg Kroah-Hartman To: "Winkler, Tomas" 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() Message-ID: <20180924105307.GB16476@kroah.com> References: <20180903224304.15989-1-tomas.winkler@intel.com> <20180903224304.15989-2-tomas.winkler@intel.com> <20180913123553.GJ2268@kroah.com> <5B8DA87D05A7694D9FA63FD143655C1B9D9B4CF9@hasmsx108.ger.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5B8DA87D05A7694D9FA63FD143655C1B9D9B4CF9@hasmsx108.ger.corp.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Sep 23, 2018 at 05:49:02AM +0000, Winkler, Tomas wrote: > > > > 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 for all of these, now queued up. greg k-h