Re: oom: __task_cred() need rcu_read_lock()

From: David Howells
Date: Thu Aug 19 2010 - 11:07:27 EST


KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx> wrote:

> dump_tasks() can call __task_cred() safely because we are holding
> tasklist_lock. but rcu lock validator don't have enough knowledge and
> it makes following annoying warning.

No, it can't. The tasklist_lock is not protection against the creds changing
on another CPU.

David
--
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/