lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Thu, 10 Dec 2009 12:02:15 +1100 (EST)
From:	James Morris <jmorris@...ei.org>
To:	Thomas Gleixner <tglx@...utronix.de>
cc:	LKML <linux-kernel@...r.kernel.org>,
	linux-security-module@...r.kernel.org,
	Peter Zijlstra <peterz@...radead.org>
Subject: Re: [PATCH] capabilities: Use RCU to protect task lookup in
 sys_capget

On Wed, 9 Dec 2009, Thomas Gleixner wrote:

> cap_get_target_pid() protects the task lookup with tasklist_lock.
> security_capget() is called under tasklist_lock as well but
> tasklist_lock does not protect anything there. The capabilities are
> protected by RCU already.
> 
> So tasklist_lock only protects the lookup and prevents the task going
> away, which can be done with rcu_read_lock() as well.
> 
> Signed-off-by: Thomas Gleixner <tglx@...utronix.de>


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


-- 
James Morris
<jmorris@...ei.org>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ