Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759084AbYAPHdS (ORCPT ); Wed, 16 Jan 2008 02:33:18 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752753AbYAPHdJ (ORCPT ); Wed, 16 Jan 2008 02:33:09 -0500 Received: from fgwmail7.fujitsu.co.jp ([192.51.44.37]:46538 "EHLO fgwmail7.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752180AbYAPHdI (ORCPT ); Wed, 16 Jan 2008 02:33:08 -0500 Date: Wed, 16 Jan 2008 16:33:12 +0900 From: KOSAKI Motohiro To: Clifford Wolf Subject: Re: [PATCH] rlim in proc//status (2nd rev.) Cc: kosaki.motohiro@jp.fujitsu.com, serge@hallyn.com, lkml In-Reply-To: <20080116070346.GA24106@clifford.at> References: <20080115203659.GA5404@vino.hallyn.com> <20080116070346.GA24106@clifford.at> Message-Id: <20080116163045.11C8.KOSAKI.MOTOHIRO@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.42 [ja] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 686 Lines: 27 Hi Clifford, > +static inline char *task_rlim(struct task_struct *p, char *buffer) > +{ > + unsigned long flags; > + struct rlimit rlim[RLIM_NLIMITS]; > + int i; > + > + rcu_read_lock(); > + if (lock_task_sighand(p, &flags)) { > + for (i=0; i + rlim[i] = p->signal->rlim[i]; > + unlock_task_sighand(p, &flags); > + } lock_task_sighand is possible return NULL? if so, rlim is uninitialized when NULL. - kosaki -- 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/