From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Howells Subject: Re: [patch 2/9] fs: Add missing rcu protection for __task_cred() in sys_ioprio_get Date: Fri, 11 Dec 2009 13:46:02 +0000 Message-ID: <13210.1260539162@redhat.com> References: <20091210004703.067454615@linutronix.de> <20091210001308.247025548@linutronix.de> Cc: dhowells@redhat.com, LKML , "Paul E. McKenney" , Dipankar Sarma , Ingo Molnar , Peter Zijlstra , Oleg Nesterov , Al Viro , James Morris , Andrew Morton , Linus Torvalds , linux-security-module@vger.kernel.org, linux-fsdevel@vger.kernel.org To: Thomas Gleixner Return-path: Received: from mx1.redhat.com ([209.132.183.28]:20046 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756295AbZLKNqw (ORCPT ); Fri, 11 Dec 2009 08:46:52 -0500 In-Reply-To: <20091210004703.067454615@linutronix.de> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Thomas Gleixner wrote: > sys_ioprio_get() accesses __task_cred() without being in a RCU read > side critical section. tasklist_lock is not protecting that when > CONFIG_TREE_PREEMPT_RCU=y. > > Add a rcu_read_lock/unlock() section around the code which accesses > __task_cred(). > > Signed-off-by: Thomas Gleixner Acked-by: David Howells