UPSTREAM: 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.
Bug: 254441685
Fixes: a7dc1e6f99df ("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>
(cherry picked from commit ced081a436d21a7d34d4d42acb85058f9cf423f2)
Signed-off-by:
Lee Jones <joneslee@google.com>
Change-Id: I5f54cc7505300f106c04ac81da33d8046704f377
Loading
Please register or sign in to comment