Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp6319163iog; Thu, 23 Jun 2022 16:41:21 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vBBxcrRXVyowou79dBN0CMMJmsHSU53JDaz0t9Wr/Y7ATlYRZ2/Hs1zX0fls0hhdS7MCEz X-Received: by 2002:a17:907:7202:b0:722:e4d6:2e17 with SMTP id dr2-20020a170907720200b00722e4d62e17mr10422794ejc.434.1656027681486; Thu, 23 Jun 2022 16:41:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656027681; cv=none; d=google.com; s=arc-20160816; b=XL0NF8o32aMdesJf4Dluu+xzP0URBJD2uZAk7l22ZxwE2gT6R2jH/++HOoOBgRX8g0 /gOmPlHdt21aBCySzr6sVrOgBwxaYpYfyPhvcG0PFb29B3vBhGyQ8uq1WB43lFCvjmgm hwrQTY6IhMB2HUdiX2otHIGWDqX6lJq/Gl+vfO7QBGFciW8n6gY2mz9KCVdaU0xn2YuH CrViUUkvTiyWtQUQP87aQ2tTvmFK0nt8dncc/eCSfe2T7vypXcr0NRvFpwMNgT6YGWtu ieHTaY5mYXa5vvcBiIgeQqOogW2NkFU7V3gIXZBZvVYgg+LD0U2l+YxiOGLlUzndd65E A6ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=heSJ8jzY3pZhIPVQZKO6qwVJfpfmlxuwEG6zr2DoHY4=; b=saP1ZY/pji/AU8/rJLCkZ9LULT04kE7p8fb61bidME1AKYvJjkZs2/JGShUezl6qJW TlebtuamT8Wv0P/tuR/lnSjifBvf5LZutwBV4p2MD+loEt9083Blb9+QFnV4CdmyV4Q5 8H/bPGhlldOEfA05GL91tlWouwLoVJ8szdQmIjT7RSy+E6zoUt2/D9G5jZbl+1BaEVtJ LVGVKLf9QJctBORLHKDBSKRaIgGKn7pJDWDCe44L6nXHkrD5pQnfPpaz+bwzgFgOK4iA 4tlBJozuBVzc++dpDQs7Jf0RBaLVHzT1kMYr5J1tss19oCPDQx8TFtAtoulJVoLHVlUh O8ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=tjTzGh3N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o3-20020a056402038300b0043576dc1cd6si1114660edv.66.2022.06.23.16.40.47; Thu, 23 Jun 2022 16:41:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=tjTzGh3N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230383AbiFWX3h (ORCPT + 99 others); Thu, 23 Jun 2022 19:29:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229493AbiFWX3g (ORCPT ); Thu, 23 Jun 2022 19:29:36 -0400 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B54C35AB3; Thu, 23 Jun 2022 16:29:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1656026976; x=1687562976; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=heSJ8jzY3pZhIPVQZKO6qwVJfpfmlxuwEG6zr2DoHY4=; b=tjTzGh3NdQ5vuEsazKl7hi6qd+6eMfP//s0JEwPAibeUIx6PuRzBqeGH eV7zQIeLkzrmEV47aVjjJIhOhS/li66uBU7ghLeuPSYXJtjN3isjKCwdB 9ZQP3A07kTc2eN9t7NkwzrJgowZhfd5KWVtskJ2OS3uKA3Rxg1OZFltn6 4=; Received: from unknown (HELO ironmsg03-sd.qualcomm.com) ([10.53.140.143]) by alexa-out-sd-01.qualcomm.com with ESMTP; 23 Jun 2022 16:29:35 -0700 X-QCInternal: smtphost Received: from nasanex01b.na.qualcomm.com ([10.46.141.250]) by ironmsg03-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2022 16:29:33 -0700 Received: from quicinc.com (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Thu, 23 Jun 2022 16:29:33 -0700 Date: Thu, 23 Jun 2022 16:29:31 -0700 From: Guru Das Srinagesh To: Aidan MacDonald CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH 02/49] regmap-irq: Fix offset/index mismatch in read_sub_irq_data() Message-ID: <20220623232931.GA21400@quicinc.com> References: <20220620200644.1961936-1-aidanmacdonald.0x0@gmail.com> <20220620200644.1961936-3-aidanmacdonald.0x0@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20220620200644.1961936-3-aidanmacdonald.0x0@gmail.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01b.na.qualcomm.com (10.46.141.250) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 20, 2022 at 09:05:57PM +0100, Aidan MacDonald wrote: > We need to divide the sub-irq status register offset by register > stride to get an index for the status buffer to avoid an out of > bounds write when the register stride is greater than 1. > > Fixes: a2d21848d921 ("regmap: regmap-irq: Add main status register support") > Signed-off-by: Aidan MacDonald Reviewed-by: Guru Das Srinagesh