Re: [PATCH] TOMOYO: Protect find_task_by_vpid() with RCU.

From: James Morris
Date: Thu Feb 25 2010 - 17:23:05 EST


On Thu, 25 Feb 2010, Tetsuo Handa wrote:

> I see. Explanation is in commit d4581a239a40319205762b76c01eb6363f277efa
> "sys: Fix missing rcu protection for __task_cred() access".
> Thus, I think below comment should be sufficient.
> --------------------
> [PATCH] TOMOYO: Protect find_task_by_vpid() with RCU.
>
> Holding tasklist_lock is no longer sufficient for find_task_by_vpid().
> Explicit rcu_read_lock() is required.

Applied to
git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6#next

The audit code still looks like it needs to be updated.

--
James Morris
<jmorris@xxxxxxxxx>
--
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/