aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorNick Desaulniers <ndesaulniers@google.com>2017-03-01 13:59:09 -0800
committerRichard Chang <dickchang@google.com>2017-04-24 18:23:07 +0000
commit931db7e568f84c2d710162ea11ac30b3949cf674 (patch)
tree9cbefcbf5c909d40ca190018734214974aded04b /net/lapb/lapb_timer.c
parent301e848245d2877ff16051962f340faedd7e5bcf (diff)
BACKPORT: uio: fix potential use after free issue when accessing debug_buffer
The variable debug_buffer is a global variable which is allocated and free'd when open/close is called on debugfs file - "/sys/kernel/debug/rmt_storage/info". The current code doesn't have locks to handle concurrent accesses to the above file. This results into use after free issue when debug_buffer is accessed by two threads at the same time. Fix this by adding a mutex lock to protect this global variable. Change-Id: I6bc3f0ae2d7fca3ca9fe8561612f5863b6c3268a Signed-off-by: Sahitya Tummala <stummala@codeaurora.org> Bug: 33845464
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions