android: binder: More offset validation
authorArve Hjønnevåg <arve@android.com>
Wed, 10 Feb 2016 05:05:32 +0000 (21:05 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Feb 2016 04:06:46 +0000 (20:06 -0800)
commit212265e5ad726ed7fd2ec7d61d36d9e0b0d3e655
treebd7f5e7eb7b39c304e9e907e0240c7d65ea694e0
parent46d83a8782e73468c9f744d859fbb6af4d53c520
android: binder: More offset validation

Make sure offsets don't point to overlapping flat_binder_object
structs.

Cc: Colin Cross <ccross@android.com>
Cc: Arve Hjønnevåg <arve@android.com>
Cc: Dmitry Shmidt <dimitrysh@google.com>
Cc: Rom Lemarchand <romlem@google.com>
Cc: Serban Constantinescu <serban.constantinescu@arm.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Android Kernel Team <kernel-team@android.com>
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binder.c