android: binder: add padding to binder_fd_array_object.
authorMartijn Coenen <maco@android.com>
Tue, 7 Mar 2017 14:54:56 +0000 (15:54 +0100)
committerAmit Pundir <amit.pundir@linaro.org>
Mon, 10 Apr 2017 07:42:16 +0000 (13:12 +0530)
commit687c683aa63d21d39fe9f8e309d63c040569b1a5
tree70fe38c3d3c8a4e27b11217389c3641b90b01118
parent0ffb1bdf34dfb31ff27af0fef8e4d8dea97d8ae5
android: binder: add padding to binder_fd_array_object.

binder_fd_array_object starts with a 4-byte header,
followed by a few fields that are 8 bytes when
ANDROID_BINDER_IPC_32BIT=N.

This can cause alignment issues in a 64-bit kernel
with a 32-bit userspace, as on x86_32 an 8-byte primitive
may be aligned to a 4-byte address. Pad with a __u32
to fix this.

Change-Id: I4374ed2cc3ccd3c6a1474cb7209b53ebfd91077b
Signed-off-by: Martijn Coenen <maco@android.com>
include/uapi/linux/android/binder.h