public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: arekm@pld-linux.org, linux-kernel@vger.kernel.org,
	viro@parcelfarce.linux.theplanet.co.uk, jmorris@redhat.com,
	sds@epoch.ncsc.mil
Cc: Manfred Spraul <manfred@colorfullife.com>
Subject: Re: 2.6.0-test9 and sleeping function called from invalid context
Date: Sat, 25 Oct 2003 22:49:50 -0700	[thread overview]
Message-ID: <20031025224950.001b4055.akpm@osdl.org> (raw)
In-Reply-To: <20031025185055.4d9273ae.akpm@osdl.org>

Andrew Morton <akpm@osdl.org> wrote:
>
> but the wider question would be: is the SELinux
>  d_instantiate callout allowed to sleep?  A quick audit seems to indicate
>  that it's OK, but only by luck I think.

proc_pid_lookup() calls d_add->d_instantiate under task->proc_lock, so
inode_doinit_with_dentry() is called under spinlock on this path as well.

Manfred, is there any particular reason why proc_pid_lookup()'s d_add is
inside the lock?


  reply	other threads:[~2003-10-26  5:48 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-25 22:45 2.6.0-test9 and sleeping function called from invalid context Arkadiusz Miskiewicz
2003-10-26  1:50 ` Andrew Morton
2003-10-26  5:49   ` Andrew Morton [this message]
2003-10-26  8:26     ` viro
2003-10-26  8:41       ` Andrew Morton
2003-10-26  9:41         ` viro
2003-10-26 11:03         ` Manfred Spraul
2003-10-26 17:26           ` Manfred Spraul
2003-10-27 13:52     ` Stephen Smalley

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=20031025224950.001b4055.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=arekm@pld-linux.org \
    --cc=jmorris@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=manfred@colorfullife.com \
    --cc=sds@epoch.ncsc.mil \
    --cc=viro@parcelfarce.linux.theplanet.co.uk \
    /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