summaryrefslogtreecommitdiff
path: root/lib/crc7.c
diff options
context:
space:
mode:
authorTodd Kjos <tkjos@android.com>2017-06-29 22:02:09 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-07-17 15:48:24 +0300
commit5f2f63696c552081bc90fb0ef80c94def33ba421 (patch)
treea6c978d72bd33ee727ad7bde2716883d02a7c6eb /lib/crc7.c
parent2c1838dc6817dd28cf24ba0c57cc8693be9bbfc5 (diff)
downloadlinux-5f2f63696c552081bc90fb0ef80c94def33ba421.tar.xz
binder: protect against stale pointers in print_binder_transaction
When printing transactions there were several race conditions that could cause a stale pointer to be deferenced. Fixed by reading the pointer once and using it if valid (which is safe). The transaction buffer also needed protection via proc lock, so it is only printed if we are holding the correct lock. Signed-off-by: Todd Kjos <tkjos@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/crc7.c')
0 files changed, 0 insertions, 0 deletions