aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strlcpy-src.c
diff options
context:
space:
mode:
authorEkansh Gupta <[email protected]>2023-05-23 16:25:48 +0100
committerGreg Kroah-Hartman <[email protected]>2023-05-29 15:09:50 +0100
commit3c7d0079a1831118ef232bd9c2f34d058a1f31c2 (patch)
tree53cd6948ff3955f0dadf35e7beb02758834f6211 /lib/test_fortify/write_overflow-strlcpy-src.c
parenta6e766dea0a22918735176e4af862d535962f11e (diff)
misc: fastrpc: Reassign memory ownership only for remote heap
The userspace map request for remote heap allocates CMA memory. The ownership of this memory needs to be reassigned to proper owners to allow access from the protection domain running on DSP. This reassigning of ownership is not correct if done for any other supported flags. When any other flag is requested from userspace, fastrpc is trying to reassign the ownership of memory and this reassignment is getting skipped for remote heap request which is incorrect. Add proper flag check to reassign the memory only if remote heap is requested. Fixes: 532ad70c6d44 ("misc: fastrpc: Add mmap request assigning for static PD pool") Cc: stable <[email protected]> Tested-by: Ekansh Gupta <[email protected]> Signed-off-by: Ekansh Gupta <[email protected]> Reviewed-by: Srinivas Kandagatla <[email protected]> Signed-off-by: Srinivas Kandagatla <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions