From: Lai Jiangshan Date: Mon, 6 Jul 2009 08:10:23 +0000 (+0800) Subject: tracing/workqueues: Add refcnt to struct cpu_workqueue_stats X-Git-Tag: v2.6.32-rc1~718^2~85 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a35780005eb256eb5ec83ffcc802967295887a45;p=pandora-kernel.git tracing/workqueues: Add refcnt to struct cpu_workqueue_stats The stat entries can be freed when the stat file is being read. The worse is, the ptr can be freed immediately after it's returned from workqueue_stat_start/next(). Add a refcnt to struct cpu_workqueue_stats to avoid use-after-free. Signed-off-by: Lai Jiangshan Signed-off-by: Li Zefan Acked-by: Frederic Weisbecker Cc: Steven Rostedt LKML-Reference: <4A51B16F.6010608@cn.fujitsu.com> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed