]> git.baikalelectronics.ru Git - kernel.git/commit
mm/damon/vaddr: hide kernel pointer from damon_va_three_regions() failure log
authorSeongJae Park <sj@kernel.org>
Fri, 14 Jan 2022 22:10:47 +0000 (14:10 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 15 Jan 2022 14:30:33 +0000 (16:30 +0200)
commitcf59b27430f5c2eb4802ab09e2664a6ea8cb85f5
treea2010d80ce1cc4e351121aaee92acb700b03b370
parentfa3adb34a09e2355cbb5a4dfaa8f8398e9ca9bf2
mm/damon/vaddr: hide kernel pointer from damon_va_three_regions() failure log

The failure log message for 'damon_va_three_regions()' prints the target
id, which is a 'struct pid' pointer in the case.  To avoid exposing the
kernel pointer via the log, this makes the log to use the index of the
target in the context's targets list instead.

Link: https://lkml.kernel.org/r/20211229131016.23641-4-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/damon/vaddr.c