[PATCH 0/8] firmware: arm_ffa: Fix cleanup, notification, and discovery paths
From: Sudeep Holla
Date: Thu Apr 23 2026 - 13:24:11 EST
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@xxxxxxxxxx
Signed-off-by: Sudeep Holla <sudeep.holla@xxxxxxxxxx>
---
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