[GIT PULL] firmware: arm_ffa: Fixes for v6.16
Sudeep Holla
sudeep.holla at arm.com
Mon Jun 9 03:52:07 PDT 2025
Hi ARM SoC Team,
Please pull !
Regards,
Sudeep
-->8
The following changes since commit 19272b37aa4f83ca52bdf9c16d5d81bdd1354494:
Linux 6.16-rc1 (2025-06-08 13:44:43 -0700)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git tags/ffa-fixes-6.16
for you to fetch changes up to 4c46a471be12216347ba707f8eadadbf5d68e698:
firmware: arm_ffa: Fix the missing entry in struct ffa_indirect_msg_hdr (2025-06-09 11:24:43 +0100)
----------------------------------------------------------------
Arm FF-A fixes for v6.16
Couple of fixes to address:
1. The safety and memory issues in the FF-A notification callback handler:
The fixes replaces a mutex with an rwlock to prevent sleeping in atomic
context, resolving kernel warnings. Memory allocation is moved outside
the lock to support this transition safely. Additionally, a memory leak
in the notifier unregistration path is fixed by properly freeing the
callback node.
2. The missing entry in struct ffa_indirect_msg_hdr:
The fix adds the missing 32 bit reserved entry in the structure as
required by the FF-A specification.
----------------------------------------------------------------
Sudeep Holla (3):
firmware: arm_ffa: Fix memory leak by freeing notifier callback node
firmware: arm_ffa: Move memory allocation outside the mutex locking
firmware: arm_ffa: Replace mutex with rwlock to avoid sleep in atomic context
Viresh Kumar (1):
firmware: arm_ffa: Fix the missing entry in struct ffa_indirect_msg_hdr
drivers/firmware/arm_ffa/driver.c | 71 ++++++++++++++++++++-------------------
include/linux/arm_ffa.h | 1 +
2 files changed, 37 insertions(+), 35 deletions(-)
More information about the linux-arm-kernel
mailing list