summaryrefslogtreecommitdiff
path: root/include/linux/compiler-gcc.h
diff options
context:
space:
mode:
authorSahitya Tummala <stummala@codeaurora.org>2017-02-03 13:24:19 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2017-02-15 20:22:41 -0800
commitae92a00f0279a73f17cd25a33cba3641f6f0133f (patch)
treed688bfa36993c070a9b55ad1cb1d956cb51fa2ad /include/linux/compiler-gcc.h
parent3ba1a36ad812171629b91f5a49e486b2529c22a2 (diff)
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>
Diffstat (limited to 'include/linux/compiler-gcc.h')
0 files changed, 0 insertions, 0 deletions