From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758121AbZLKNq4 (ORCPT ); Fri, 11 Dec 2009 08:46:56 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757677AbZLKNqx (ORCPT ); Fri, 11 Dec 2009 08:46:53 -0500 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 Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <20091210004703.067454615@linutronix.de> References: <20091210004703.067454615@linutronix.de> <20091210001308.247025548@linutronix.de> To: Thomas Gleixner 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 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> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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