Re: 2.6.0-test9 and sleeping function called from invalid context

From: Andrew Morton
Date: Sun Oct 26 2003 - 00:50:12 EST


Andrew Morton <akpm@xxxxxxxx> 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?

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/