Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753858Ab0HSPHY (ORCPT ); Thu, 19 Aug 2010 11:07:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:6958 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752304Ab0HSPHW (ORCPT ); Thu, 19 Aug 2010 11:07:22 -0400 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: <20100819220338.5FD5.A69D9226@jp.fujitsu.com> References: <20100819220338.5FD5.A69D9226@jp.fujitsu.com> To: KOSAKI Motohiro Cc: dhowells@redhat.com, "Paul E. McKenney" , LKML , linux-mm , Andrew Morton , David Rientjes , KAMEZAWA Hiroyuki Subject: Re: oom: __task_cred() need rcu_read_lock() Date: Thu, 19 Aug 2010 16:06:34 +0100 Message-ID: <7682.1282230394@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 583 Lines: 15 KOSAKI Motohiro wrote: > dump_tasks() can call __task_cred() safely because we are holding > tasklist_lock. but rcu lock validator don't have enough knowledge and > it makes following annoying warning. No, it can't. The tasklist_lock is not protection against the creds changing on another CPU. David -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/