Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp187851rdb; Wed, 21 Feb 2024 23:54:44 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXY/GySjT6pkzFAQ8gHc99KMDMEsssbATSv5YPTnM1iC0Lj8jfjksugQiJjKAVavRP+HycfIE735fVUVIFTi+he5+9Wek+WllROtrH8Gg== X-Google-Smtp-Source: AGHT+IGXM2Mb5gLjHnhNMCeUBRFXsJdSAse4Jc1k3gyUDPJRbUGGnf/YIEgCKDa/OELv2pzyW+be X-Received: by 2002:a37:e113:0:b0:787:8168:ed72 with SMTP id c19-20020a37e113000000b007878168ed72mr6345831qkm.60.1708588484603; Wed, 21 Feb 2024 23:54:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708588484; cv=pass; d=google.com; s=arc-20160816; b=ODuacWSRGNsoS7m25i99xvBrWBdNp68gh3HZ9x2rKs5WrKgQ+Oaf3ebJ+RM37iT2Eb 3n7zXdYZ5ceoApm3/l2UTRJISQBFVXhMzpf8BYkMESdpjVerrHKYfX37bYCLjaglRukd L1nut1yAwkLyX90jWPGs8IeqlyX85C/KtFyCt4sabzdIdflAMDQHAhvByMHLH1lbzs0F /K8KKggsDwXYl9S/npJnThYzVej8twmsqgjt5ftDG3GnZaiMAozZX+RUBOXmOViPnS+2 pahB+Rn7HeIu7r6YGtN0Q7+TJQD0sx4zLD10nwMuyGroQvpLRYKf+y8Y1J0ZaKSFLJg0 nLdQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=QLPZZMM8lid7qB5eBaM/ORv6ocFRilJYpGDJUybBUgM=; fh=kCJPIzsQmimdc7+8SG+BugLBnz9x1X0ze1in3z4JeMg=; b=FXASLLk0dsTU/zUZAYJ017KCqZIczAq2kUMacnrqa0uj9fkzvQyYU2U1COzRhu5wSG twaF2vZMFStLkfLoHybzoCoBdVVYXKFSHkuJEBxEHS7A8qYvIbg6w3edlZnrC00xe6KZ OyUZ0bF0xCVilqlGGUVZ4613lp7fvZLj9lW2ofA/pZAg9MUusDKxuS6Cx3hWUKSlME4K 7XLGMNFgWYRf7WawANBcLpn1fpQXHFADu2+i5wEe2zg6q4vYVUYaY3GGxZK1V/KcQbes 2i8+nsPpEg2cbEhIx68CZCQTghdbuplGeEjRYYgbFfhnEg2MnTh4N9oLMIkSXOAJvoAr vcNQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-76032-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76032-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id bj14-20020a05620a190e00b007873fb9461dsi13707380qkb.261.2024.02.21.23.54.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 23:54:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76032-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-76032-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76032-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 5F68C1C231A3 for ; Thu, 22 Feb 2024 07:54:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4ED2F179B8; Thu, 22 Feb 2024 07:54:37 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BA45C179AA for ; Thu, 22 Feb 2024 07:54:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708588476; cv=none; b=g3udGpawrQLcU+3xGlKcRhweGJLU3kfZ2S4xsDJXpZDgiipPkNS5gm+PQfR1BheRMRo8lOJjrVeAAo/YzsjPFByNV8EomSXA32Wgveh+0tloNnSF+4kDQMKSQ76DatMbaTPV2zNLM1UVwylbfAuTl8n3g6maA8WLCcYTmpttVzk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708588476; c=relaxed/simple; bh=Sz/VJNKLM3xWaRfZ346t8Q+I3e0N0tL+uXnohDmAUyg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=bxEtfEml47wWD+RXo0BTLTLbINI8VGvrTNfbVNORIwutlBX/QHOz/wL+Tk+aLeQvwgObKZJHPR7BreHvunA54qTg9f0T2MjHIV94e8166nxI2Yoku6pYzvZ04GnRsFxg+nqE5jXfgaD/Al/vV9vsJYO8c29Pzbwo89uWyKy43vo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 268E91007; Wed, 21 Feb 2024 23:55:11 -0800 (PST) Received: from usa.arm.com (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 267D43F762; Wed, 21 Feb 2024 23:54:32 -0800 (PST) From: Sudeep Holla To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Cristian Marussi Cc: Sudeep Holla Subject: Re: [PATCH] firmware: arm_scmi: Rework Clock domains info lookups Date: Thu, 22 Feb 2024 07:54:24 +0000 Message-ID: <170858826800.106333.5043612997177254784.b4-ty@arm.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240110120916.2482603-1-cristian.marussi@arm.com> References: <20240110120916.2482603-1-cristian.marussi@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit On Wed, 10 Jan 2024 12:09:16 +0000, Cristian Marussi wrote: > Accessing Clock domains descriptors by the index from the SCMI drivers > can potentially lead to out-of-bound violations if the SCMI drivers > misbehaves. > > Use a common helper to check the consistency of such accesses. > > > [...] Applied to sudeep.holla/linux (for-next/scmi/updates), thanks! [1/1] firmware: arm_scmi: Rework Clock domains info lookups https://git.kernel.org/sudeep.holla/c/dea893a66cd5 -- Regards, Sudeep