aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorSerban Constantinescu <serban.constantinescu@arm.com>2013-07-04 10:54:46 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-23 14:37:22 -0700
commitec35e852dc9de9809f88ff397d7a611208880f9f (patch)
tree09b2de8fae602093ff786bb5aa90226771be0c89 /scripts/patch-kernel
parentstaging: android: binder: fix BC_FREE_BUFFER ioctl declaration (diff)
staging: android: binder: fix alignment issues
The Android userspace aligns the data written to the binder buffers to 4bytes. Thus for 32bit platforms or 64bit platforms running an 32bit Android userspace we can have a buffer looking like this: platform buffer(binder_cmd pointer) size 32/32 32b 32b 8B 64/32 32b 64b 12B 64/64 32b 64b 12B Thus the kernel needs to check that the buffer size is aligned to 4bytes not to (void *) that will be 8bytes on 64bit machines. The change does not affect existing 32bit ABI. Signed-off-by: Serban Constantinescu <serban.constantinescu@arm.com> Acked-by: Arve Hjønnevåg <arve@android.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions