aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorTodd Kjos <[email protected]>2019-06-28 09:50:12 -0700
committerGreg Kroah-Hartman <[email protected]>2019-07-01 08:42:47 +0200
commitbb4a2e48d5100ed3ff614df158a636bca3c6bf9f (patch)
tree6ec6135c5266d2db45f834de382b5388fecde7c8 /tools/perf/util/scripting-engines/trace-event-python.c
parent25c7eabed5b219e975c8aee527ae202604d10911 (diff)
binder: return errors from buffer copy functions
The buffer copy functions assumed the caller would ensure correct alignment and that the memory to be copied was completely within the binder buffer. There have been a few cases discovered by syzkallar where a malformed transaction created by a user could violated the assumptions and resulted in a BUG_ON. The fix is to remove the BUG_ON and always return the error to be handled appropriately by the caller. Acked-by: Martijn Coenen <[email protected]> Reported-by: [email protected] Fixes: bde4a19fc04f ("binder: use userspace pointer as base of buffer space") Suggested-by: Dan Carpenter <[email protected]> Signed-off-by: Todd Kjos <[email protected]> Cc: stable <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions