Re: + procfs-directory-entry-cleanup.patch added to -mm tree

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alexey Dobriyan
Date: Tuesday, May 22, 2007 - 10:43 am

On Sun, May 20, 2007 at 08:41:02PM -0700, akpm@linux-foundation.org wrote:


This should add race because new PDE for directory will be glued to tree
with NULL ->proc_iops and, at least, vfs_getattr() doesn't check for
NULL ->i_op.

I've tried to reproduce this scenario with udelay() inserted before
S_ISDIR checks in proc_register() but got some panic while in X,
so no cookie for me. Maybe it's impossible, indeed.

Anyway, this patch + moving ->proc_fops and ->proc_iops initialization
before gluing is OK with me.

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: + procfs-directory-entry-cleanup.patch added to -mm tree, Alexey Dobriyan, (Tue May 22, 10:43 am)
Re: + procfs-directory-entry-cleanup.patch added to -mm tree, Alexey Dobriyan, (Tue May 22, 1:16 pm)