]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Wed, 23 Aug 2017 01:43:23 +0000 (18:43 -0700)
commit07ab6a696f12a3484cf8bb37af88c24506345d12
tree6283d4bca0f2749894552eac2f90502bf43d19e9
parentf2a9588ae7c883c1a70ff9375aeb80c084e69f18
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.

Signed-off-by: Martijn Coenen <maco@android.com>
Cc: stable <stable@vger.kernel.org> # 4.11+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/uapi/linux/android/binder.h