From patchwork Fri Jan 6 09:39:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudeep Holla X-Patchwork-Id: 13091201 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0D8DCC3DA7A for ; Fri, 6 Jan 2023 09:40:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=xeMAt2t87jKXdNio55yQUcO0VCIr0K6iu5Wkk10xdU8=; b=ZcE6WZSH6zKzCp bKFaSbRsV7Rvy/aQL+VBMlO3BWKMoTS3ApopUedwxD8jgVyok9Iu3XKVQjQUZPn1mun7KncEN+Ri0 2kKWAiqiFslqxK9q//H5UVIGif1RZ/lm2MbzPfx/AwCFEd6Exm+GhDp2dI2eTikURvzmmoRsHMowX khVh1oTIjkpSrNUbC7Z4y6lpPrkmrx4swPyeVOHsnwVZqUnwkCQpIV6ToPujKY9tAp0c7sZyt0snV DR7AoQUHUJJsFH7aatYqgk6CkQqaFzlxsvR0utrnGHyV3gMaXmU2BryGaZhjWQ1ZbvWTFYd4ESgP0 XWZJpSYtg2cEwKz1blyQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pDjCI-0078xL-Ie; Fri, 06 Jan 2023 09:39:34 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pDjCE-0078u9-W5 for linux-arm-kernel@lists.infradead.org; Fri, 06 Jan 2023 09:39:32 +0000 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 213E011FB; Fri, 6 Jan 2023 01:40:05 -0800 (PST) Received: from usa.arm.com (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 8DDD43F23F; Fri, 6 Jan 2023 01:39:20 -0800 (PST) From: Sudeep Holla To: ARM SoC Team , SoC Team , ALKML Cc: Sudeep Holla , Arnd Bergmann , Cristian Marussi , Olof Johansson Subject: [GIT PULL] firmware: arm_scmi: Fixes for v6.2 Date: Fri, 6 Jan 2023 09:39:09 +0000 Message-Id: <20230106093909.652657-1-sudeep.holla@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230106_013931_114032_BFD911E1 X-CRM114-Status: UNSURE ( 7.95 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi ARM SoC Team, Please pull ! Regards, Sudeep -->8 The following changes since commit 1b929c02afd37871d5afb9d498426f83432e71c2: Linux 6.2-rc1 (2022-12-25 13:41:39 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git tags/scmi-fixes-6.2 for you to fetch changes up to e325285de2cd82fbdcc4df8898e4c6a597674816: firmware: arm_scmi: Fix virtio channels cleanup on shutdown (2023-01-03 16:50:44 +0000) ---------------------------------------------------------------- Arm SCMI fixes for v6.2 Few fixes addressing: 1. Possible compromise with the shorter message size from a misbheaving SCMI platform firmware. The shmem accesses are now hardened to handle the same in fetch_notification and fetch_response. 2. Possible unsafe locking scenario which is solved by calling virtio_break_device() before getting hold of vioch->lock. 3. Possible stale error status reported from a previous message being used again as it is not cleared. ---------------------------------------------------------------- Cristian Marussi (4): firmware: arm_scmi: Clear stale xfer->hdr.status firmware: arm_scmi: Harden shared memory access in fetch_response firmware: arm_scmi: Harden shared memory access in fetch_notification firmware: arm_scmi: Fix virtio channels cleanup on shutdown drivers/firmware/arm_scmi/driver.c | 2 ++ drivers/firmware/arm_scmi/shmem.c | 9 ++++++--- drivers/firmware/arm_scmi/virtio.c | 7 ++++++- 3 files changed, 14 insertions(+), 4 deletions(-)