ANDROID: binder: add padding to binder_fd_array_object.
authorMartijn Coenen <maco@android.com>
Fri, 28 Jul 2017 11:56:06 +0000 (13:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 9 Sep 2017 15:39:27 +0000 (17:39 +0200)
commit74ffccfed38ff8423d133adecfe859af5534a9d0
tree876f181c7bcdfb04e7c739f1a6190f74ea3fc5e1
parent68596cc2106016950eab542851e179e5401fa130
ANDROID: binder: add padding to binder_fd_array_object.

commit 5cdcf4c6a638591ec0e98c57404a19e7f9997567 upstream.

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.

Signed-off-by: Martijn Coenen <maco@android.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/uapi/linux/android/binder.h