From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5799386329 for ; Thu, 23 Apr 2026 17:23:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776965029; cv=none; b=jCKVt/RxtjfMp8vvjcwo1Z5C2a9ZVpbxfLwMQJRBjVWNH5uBmE5XzZWMvTz3qz3+EC9fT5ya5aga+IaBJGoGU9oBUgF0gntZNqbdJUZiwWawsUCdfVhSjWSK4MBSf+oAiSosOJmXrn8UvyXrYkwVtZYRcnfNSlhgaAr/FcE2Ps4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776965029; c=relaxed/simple; bh=PBeU3E1iY6sycfyztxSJMPW0WRRpkbfBh6dm8PLuH3Y=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=FFsMM4B9RI9Xqng2d+9AJbhEurx0uoBqu2erKAXGahOMySiB/dobXMXC1+v3olywz25XY/nWNx/Irkj28RnowMhFqa7IMWi4ro5QB2/PjQRcNbQuY8FmILhuSVrdMtlI4izx/ZKKVSEsvFmffHtKPJ4DKwsQvVp3fhCMFsCsz3c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=axPiaa2W; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="axPiaa2W" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 613FCC2BCAF; Thu, 23 Apr 2026 17:23:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1776965029; bh=PBeU3E1iY6sycfyztxSJMPW0WRRpkbfBh6dm8PLuH3Y=; h=From:Subject:Date:To:Cc:From; b=axPiaa2W3QYjE2pfu+nW6DAUUtZiOUiNXCB7p3Ed9Ko0V6pFweAK/5IOYDAl44LD6 ry27AkcvZbSVaXAvSFoR+qkfpTlDaciA+2DDBX3TY5B05dJEjFsan6GqT0MoPyPA2H XEvSUtsS9HVVZDW2k0JJpLLravkx2nm80lgki7oxDuFPnN51DAmB6LMDR2VtcU+F0h 8jsjEHLr4pYBhrQBUh7VJQn5a82MOmXYfwiYPkeAqXfbo6zMRvMjFq4VzkX+YKTM6m kVqswg7tRFbwL2Xl/q1uI3jmSGaYiWlix6u8Bkug/kGbXOW+JPpSTislvHKInCssOU lx9cXOj6abZhw== From: Sudeep Holla Subject: [PATCH 0/8] firmware: arm_ffa: Fix cleanup, notification, and discovery paths Date: Thu, 23 Apr 2026 18:22:50 +0100 Message-Id: <20260423-ffa_fixes-v1-0-61189661affe@kernel.org> 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 X-B4-Tracking: v=1; b=H4sIAG5V6mkC/yXMwQ5FMBSE4VeRs9akWizuq4hIMeVYuNKDSMS7K 5Zf5s+cJAgMoV9yUsDOwv85IksT6kY3D1DcR5PRptS5scp713g+ICp3vbVeA6bQFPsl4B1iXtW fZWsndOtzQNd1A79pojRtAAAA X-Change-ID: 20260423-ffa_fixes-4ad33f0ee250 To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Jens Wiklander , Sudeep Holla , Sebastian Ene X-Mailer: b4 0.15.2 Hi all, This series fixes a set of issues in the FF-A driver around init cleanup, framework notification handling, v1.0 notifier lifetime, and partition discovery. The fixes are all small and localized, but together they tighten a few important paths: - fix the early init unwind path when RX buffer allocation fails - align the stored RX/TX buffer size with the size actually mapped to firmware - ensure the framework notification handler always releases the RX buffer correctly - validate framework notification payload bounds before copying data out of the shared RX buffer - fix the partition lookup used for sched-recv callback registration - unregister the FF-A v1.0 bus notifier during teardown - bound the register-based partition discovery copies against the caller buffer - reject FF-A driver registration without an ID table This is the outcome of the self-initiated review of the entire driver following the oversight of Sashiko’s review on one of the patches that was merged. https://sashiko.dev/#/patchset/20260402113939.930221-1-sebastianene@google.com Signed-off-by: Sudeep Holla --- Sudeep Holla (8): firmware: arm_ffa: Check for NULL FF-A ID table while driver registration firmware: arm_ffa: Skip free_pages on RX buffer alloc failure firmware: arm_ffa: Align RxTx buffer size before mapping firmware: arm_ffa: Fix Rx buffer release in fwk notification handler firmware: arm_ffa: Validate framework notification payload bounds firmware: arm_ffa: Unregister v1.0 bus notifier on teardown firmware: arm_ffa: Fix sched-recv callback partition lookup firmware: arm_ffa: Bound PARTITION_INFO_GET_REGS copies drivers/firmware/arm_ffa/bus.c | 4 +- drivers/firmware/arm_ffa/driver.c | 79 ++++++++++++++++++++++++++++----------- 2 files changed, 60 insertions(+), 23 deletions(-) --- base-commit: 2e68039281932e6dc37718a1ea7cbb8e2cda42e6 change-id: 20260423-ffa_fixes-4ad33f0ee250 -- Regards, Sudeep