]> git.baikalelectronics.ru Git - kernel.git/commit
binder: Return EFAULT if we fail BINDER_ENABLE_ONEWAY_SPAM_DETECTION
authorLuca Stefani <luca.stefani.ge1@gmail.com>
Thu, 6 May 2021 19:37:25 +0000 (21:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 May 2021 18:35:26 +0000 (20:35 +0200)
commit9b0c96773917abc0297b273df1c8a5937c1b77d5
tree9e8c30980790ac47fff4338d7a3a80a0e531fd8e
parentb4e7501bbcf0ad6f09f02bbafcb562cfd5d0b2dc
binder: Return EFAULT if we fail BINDER_ENABLE_ONEWAY_SPAM_DETECTION

All the other ioctl paths return EFAULT in case the
copy_from_user/copy_to_user call fails, make oneway spam detection
follow the same paradigm.

Fixes: f33e63eca4d2 ("binder: tell userspace to dump current backtrace when detected oneway spamming")
Acked-by: Todd Kjos <tkjos@google.com>
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Luca Stefani <luca.stefani.ge1@gmail.com>
Link: https://lore.kernel.org/r/20210506193726.45118-1-luca.stefani.ge1@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binder.c