From: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
To: Clifford Wolf <clifford@clifford.at>
Cc: kosaki.motohiro@jp.fujitsu.com, serge@hallyn.com,
lkml <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] rlim in proc/<pid>/status (2nd rev.)
Date: Wed, 16 Jan 2008 16:33:12 +0900 [thread overview]
Message-ID: <20080116163045.11C8.KOSAKI.MOTOHIRO@jp.fujitsu.com> (raw)
In-Reply-To: <20080116070346.GA24106@clifford.at>
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_NLIMITS; 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
next prev parent reply other threads:[~2008-01-16 7:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-15 10:06 [PATCH] rlim in proc/<pid>/status Clifford Wolf
2008-01-15 10:47 ` KOSAKI Motohiro
2008-01-15 12:15 ` Clifford Wolf
2008-01-15 20:36 ` [PATCH] " serge
2008-01-16 7:03 ` [PATCH] rlim in proc/<pid>/status (2nd rev.) Clifford Wolf
2008-01-16 7:33 ` KOSAKI Motohiro [this message]
2008-01-16 10:04 ` Clifford Wolf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080116163045.11C8.KOSAKI.MOTOHIRO@jp.fujitsu.com \
--to=kosaki.motohiro@jp.fujitsu.com \
--cc=clifford@clifford.at \
--cc=linux-kernel@vger.kernel.org \
--cc=serge@hallyn.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®