summaryrefslogtreecommitdiff
path: root/security/min_addr.c
diff options
context:
space:
mode:
authorTodd Kjos <tkjos@google.com>2021-11-30 21:51:51 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-12-03 16:29:39 +0300
commit656e01f3ab54afe71bed066996fc2640881e1220 (patch)
treeb8ec47d2e341a8def888f2b65dbf864b8502124c /security/min_addr.c
parent6d98eb95b450a75adb4516a1d33652dc78d2b20c (diff)
downloadlinux-656e01f3ab54afe71bed066996fc2640881e1220.tar.xz
binder: read pre-translated fds from sender buffer
This patch is to prepare for an up coming patch where we read pre-translated fds from the sender buffer and translate them before copying them to the target. It does not change run time. The patch adds two new parameters to binder_translate_fd_array() to hold the sender buffer and sender buffer parent. These parameters let us call copy_from_user() directly from the sender instead of using binder_alloc_copy_from_buffer() to copy from the target. Also the patch adds some new alignment checks. Previously the alignment checks would have been done in a different place, but this lets us print more useful error messages. Reviewed-by: Martijn Coenen <maco@android.com> Acked-by: Christian Brauner <christian.brauner@ubuntu.com> Signed-off-by: Todd Kjos <tkjos@google.com> Link: https://lore.kernel.org/r/20211130185152.437403-4-tkjos@google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'security/min_addr.c')
0 files changed, 0 insertions, 0 deletions