BACKPORT: binder: Set end of SG buffer area properly.
In case the target node requests a security context, the
extra_buffers_size is increased with the size of the security context.
But, that size is not available for use by regular scatter-gather
buffers; make sure the ending of that buffer is marked correctly.
Acked-by: Todd Kjos <firstname.lastname@example.org>
Fixes: ec74136ded79 ("binder: create node flag to request sender's security context")
Signed-off-by: Martijn Coenen <email@example.com>
Cc: firstname.lastname@example.org # 5.1+
Signed-off-by: Greg Kroah-Hartman <email@example.com>
(cherry picked from commit a56587065094fd96eb4c2b5ad65571daad32156d)
1 file changed