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>
-
mentioned in commit 57c76293
-
mentioned in commit c8adc3f8
-
mentioned in commit 9d1efccf
-
mentioned in commit aaf23697
-
mentioned in commit 4a383b82
-
mentioned in commit 498558ff
-
mentioned in commit ff4f9827
-
mentioned in commit 225415d2
-
mentioned in commit e9db8c2d
-
mentioned in commit b9fbafb9
-
mentioned in commit c1c399fc
-
mentioned in commit bc3ca3cf
-
mentioned in commit 1345c86f
-
mentioned in commit 57eb9dba
-
mentioned in commit 47721805
-
mentioned in commit 115a0a1e
-
mentioned in commit 2f4cc62d
-
mentioned in commit 5ee60074
-
mentioned in commit a3085e58
-
mentioned in commit 7a9ea5e9
-
mentioned in commit 0c2c28f9
-
mentioned in commit eb702f57
-
mentioned in commit d8e957b3
-
mentioned in commit 0019bfc3
-
mentioned in commit 1d4bd5c0
-
mentioned in commit a01460a6
-
mentioned in commit c679b642
-
mentioned in commit 3dda6c62
-
mentioned in commit 4de98dfd
-
mentioned in commit 707fb21c
-
mentioned in commit 031f9c5d
-
mentioned in commit 2f59b1fd
-
mentioned in commit 91602af3
-
mentioned in commit 6bb74bff
-
mentioned in commit adc5f808
-
mentioned in commit 89d2b2bb
-
mentioned in commit 5a2b57db
-
mentioned in commit 1e6351e1