From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758273AbZLKNyr (ORCPT ); Fri, 11 Dec 2009 08:54:47 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757920AbZLKNym (ORCPT ); Fri, 11 Dec 2009 08:54:42 -0500 Received: from mx1.redhat.com ([209.132.183.28]:35597 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757853AbZLKNyl (ORCPT ); Fri, 11 Dec 2009 08:54:41 -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.232302055@linutronix.de> References: <20091210004703.232302055@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 , Oleg Nesterov Subject: Re: [patch 6/9] signal: Fix racy access to __task_cred in kill_pid_info_as_uid() Date: Fri, 11 Dec 2009 13:53:47 +0000 Message-ID: <13441.1260539627@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thomas Gleixner wrote: > kill_pid_info_as_uid() accesses __task_cred() without being in a RCU > read side critical section. tasklist_lock is not protecting that when > CONFIG_TREE_PREEMPT_RCU=y. > > Convert the whole tasklist_lock section to rcu and use > lock_task_sighand to prevent the exit race. > > Signed-off-by: Thomas Gleixner Acked-by: David Howells