]> git.proxmox.com Git - mirror_ubuntu-artful-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)
committerSeth Forshee <seth.forshee@canonical.com>
Sun, 10 Sep 2017 23:08:39 +0000 (18:08 -0500)
commitab0a85da9e15a9b23dcabc5ea1695bc1599f879c
treedf160ebe0662c1d2f5cd33b82f6080e7b1a1b59d
parentb07f054d3ec2cd342b39940ec4123f9f497501f5
ANDROID: binder: add padding to binder_fd_array_object.

BugLink: http://bugs.launchpad.net/bugs/1716284
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>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
include/uapi/linux/android/binder.h