Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2422182ybi; Sun, 28 Jul 2019 08:41:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqyz6KLM3rDJqJ8npmg+v2Md0wNKW6DaReEjeN4LoZm6ttdgkH2cR2NYRG/h9y4YIGrKr5AY X-Received: by 2002:a63:290:: with SMTP id 138mr9337835pgc.402.1564328483698; Sun, 28 Jul 2019 08:41:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564328483; cv=none; d=google.com; s=arc-20160816; b=ORSjxcQTfjvm4eA6cvda3nocVGg+1Ep0KuHRrg4xw1FQ7LK/B4YoS29/2ONeepQSfd ak0q00whaL6KE/iFwIg2DHMCf4t7wgiIYXZBT271HPcTUL3oNua5yYGBi7eF/PWJxpws xrdhNw97EkcUPbS5BTuCcIgxmgQ7CLRKfVBOXjZnGfWoBrI8zqjxqBdR7ANrt0xcpFpo WhU5WAMk6Al2y3Yh1o4X3/lz+t5HoqBQhzA/bBVTMW0KuELpvOCf3wIwydVdktwzZ+u3 +vLgGty5sremE9EOCcwbPnB8e16YnZxJI7zTBOmHwcWQ1qQe3Fc3ev3PeHFKAs6FoQAa 1HVg== 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:dkim-signature; bh=JsmJFSasm3/qX/CxHywClkCnue/9JSM6dKSqMXkOsHE=; b=yp7m/ypwxP9UmWnW/4Dj8zuHr7wQ2APcl/ZkFm7xijhzYp2fMPyOSDkDLChwQ60PLb dsYgB9doz3Ll0Nts9dNYow9TQzGj5AIiHLGgW7rLqCFiR2xE/Ou1BcQ2JIVKywtZNdND AoHzzXaKW42OdKSqGfmVlQ4GUpcmUExOtG7xXbLUSMGh1zRq0WkVV+FZIhp5NQNcNupM XpmtzuI25wr4AcBRu0/9IVqnSOr1WBskxCkrBCkTcPz9UsbUpdsNwE6cnRpBemrJ1gqN W0Naq8fLKolts+JELP3odtSQdLzjw4EayBBs+TCWZrGXTSRX/Ta8TtBn9zieLNIv20BG VAww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KPFxmdKq; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w2si24186634pfi.183.2019.07.28.08.41.08; Sun, 28 Jul 2019 08:41:23 -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; dkim=pass header.i=@kernel.org header.s=default header.b=KPFxmdKq; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726134AbfG1Piq (ORCPT + 99 others); Sun, 28 Jul 2019 11:38:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:47772 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726082AbfG1Pip (ORCPT ); Sun, 28 Jul 2019 11:38:45 -0400 Received: from localhost (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B2D022075E; Sun, 28 Jul 2019 15:38:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564328325; bh=2O8OS/mVeg0GkWhVKPx2kspWI8Wf5ayhG+FJwWamPos=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KPFxmdKq/aklh/bQD5Y0muvUgMwaI5iVrTVwscrhmrMJ+zjqVPUCL3aBQGABCNrPq 30+BhEBXK1aL7FexsCzazWsvnXbV3ViNYIF3WW2PzWM7XiTwpB68Z2avoOfyZyENgR dk7gpoRGh2pQnQ8wIhrHV93gxqAo7G2DtYffvhQU= Date: Sun, 28 Jul 2019 11:38:43 -0400 From: Sasha Levin To: Jonathan Cameron Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Young Xiao <92siuyang@gmail.com>, Alexandru Ardelean , Jonathan Cameron , linux-iio@vger.kernel.org Subject: Re: [PATCH AUTOSEL 4.14 19/60] iio:core: Fix bug in length of event info_mask and catch unhandled bits set in masks. Message-ID: <20190728153843.GH8637@sasha-vm> References: <20190719041109.18262-1-sashal@kernel.org> <20190719041109.18262-19-sashal@kernel.org> <20190721182643.3fd0515b@archlinux> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20190721182643.3fd0515b@archlinux> 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, Jul 21, 2019 at 06:27:02PM +0100, Jonathan Cameron wrote: >On Fri, 19 Jul 2019 00:10:28 -0400 >Sasha Levin wrote: > >> From: Young Xiao <92siuyang@gmail.com> >> >> [ Upstream commit 936d3e536dcf88ce80d27bdb637009b13dba6d8c ] >> >> The incorrect limit for the for_each_set_bit loop was noticed whilst fixing >> this other case. Note that as we only have 3 possible entries a the moment >> and the value was set to 4, the bug would not have any effect currently. >> It will bite fairly soon though, so best fix it now. >> >> See commit ef4b4856593f ("iio:core: Fix bug in length of event info_mask and >> catch unhandled bits set in masks.") for details. >> >> Signed-off-by: Young Xiao <92siuyang@gmail.com> >> Reviewed-by: Alexandru Ardelean >> Signed-off-by: Jonathan Cameron >> Signed-off-by: Sasha Levin > >As the patch states, this bug doesn't have any impact. It would only >be triggered by a buggy driver setting a bit in that mask that makes no >sense. > >So it's good to fix in upstream, but debatable if it's worth porting back >to stable. > >I don't have a strong opinion on this one and again, it should do no >harm. I'll drop it then, thanks! -- Thanks, Sasha