diff options
author | SeongJae Park <sj@kernel.org> | 2021-11-20 03:43:52 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-11-20 21:35:54 +0300 |
commit | d78f3853f831eee46c6dbe726debf3be9e9c0d05 (patch) | |
tree | 93b109b0e3045af3b997ca7c2b09fcddeab65310 /scripts/gdb/linux/utils.py | |
parent | db7a347b26fe05d2e8c115bb24dfd908d0252bc3 (diff) | |
download | linux-d78f3853f831eee46c6dbe726debf3be9e9c0d05.tar.xz |
mm/damon/dbgfs: fix missed use of damon_dbgfs_lock
DAMON debugfs is supposed to protect dbgfs_ctxs, dbgfs_nr_ctxs, and
dbgfs_dirs using damon_dbgfs_lock. However, some of the code is
accessing the variables without the protection. This fixes it by
protecting all such accesses.
Link: https://lkml.kernel.org/r/20211110145758.16558-3-sj@kernel.org
Fixes: 75c1c2b53c78 ("mm/damon/dbgfs: support multiple contexts")
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions