Re: [PATCH] perf: kmaps: enforce usage of kmaps to protect futher bugs.
From: Ingo Molnar
Date: Fri Apr 03 2015 - 04:50:08 EST
* Wang Nan <wangnan0@xxxxxxxxxx> wrote:
> This patch add checkings on every place where uses map__kmap and get
> kmaps from struct kmap. Error messages are added at map__kmap to warn
> invalud accessing of kmap (for the case of !map->dso->kernel, kmap(map)
> is not exists at all). Also, introduces map__kmaps() to warn
> uninitialized kmaps.
> Signed-off-by: Wang Nan <wangnan0@xxxxxxxxxx>
Reviewed-by: Ingo Molnar <mingo@xxxxxxxxxx>
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/