mm-damon-vaddr-hide-kernel-pointer-from-damon_va_three_regions-failure-log.patch removed from -mm tree
The patch titled
Subject: mm/damon/vaddr: hide kernel pointer from damon_va_three_regions() failure log
has been removed from the -mm tree. Its filename was
mm-damon-vaddr-hide-kernel-pointer-from-damon_va_three_regions-failure-log.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: SeongJae Park <[email protected]>
Subject: 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 commit makes the log to use the index of the target in the context's targets list instead.
---
mm/damon/vaddr.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
mm/damon/vaddr.c renamed from mm/damon/vaddr.c~mm-damon-vaddr-hide-kernel-pointer-from-damon_va_three_regions-failure-log +8 -2
@@ -232,13 +232,19 @@ static int damon_va_three_regions(structstatic void __damon_va_init_regions (struct damon_ctx *ctx,struct damon_target *t) { +struct damon_target *ti;struct damon_region *r;struct damon_addr_range regions[3 ];unsigned long sz =0 , nr_pieces; -int i; +int i, tidx =0 ;if (damon_va_three_regions (t, regions)) { -pr_debug ("Failed to get three regions of target %lu\n" , t->id); +damon_for_each_target (ti, ctx) { +if (ti == t) +break ; + tidx++; + } +pr_debug ("Failed to get three regions of %dth target\n" , tidx);return ; }
_
Patches currently in -mm which might be from [email protected] are