From: Edward Shishkin <edward@namesys.com>
To: Peter van Hardenberg <pvh@uvic.ca>
Cc: reiserfs-list@namesys.com
Subject: Re: Reiser4 Pseudo Directory Segfault
Date: Thu, 15 Dec 2005 22:33:08 +0300 [thread overview]
Message-ID: <43A1C4F4.9090102@namesys.com> (raw)
In-Reply-To: <200512142139.15315.pvh@uvic.ca>
[-- Attachment #1: Type: text/plain, Size: 476 bytes --]
Peter van Hardenberg wrote:
>How to produce the error:
>
>$ chmod +w "file/...."
>$ touch file/..../newattr
>Segmentation fault.
>
>
What the basic setup (kernel, patches) do you use?
Indeed, in the old one the problem exists, because init_pseudo()
does not care about missed regular plugin, so the attached patch
fixes the problem.
Thanks,
Edward.
>We tried setting "dir_eperm" on the pseudo directory plugin's create member.
>Why didn't this fix it?
>
>-pvh
>
>
>
[-- Attachment #2: create_pseudo_fix.diff --]
[-- Type: text/x-diff, Size: 347 bytes --]
--- inode_ops.c~ 2005-10-06 21:54:52.000000000 +0400
+++ inode_ops.c 2005-12-15 21:56:55.927839866 +0300
@@ -90,6 +90,8 @@
memset(&data, 0, sizeof data);
data.mode = S_IFREG | mode;
+ if (!inode_regular_plugin(parent))
+ return -EINVAL;
data.id = inode_regular_plugin(parent)->id;
return invoke_create_method(parent, dentry, &data);
}
next prev parent reply other threads:[~2005-12-15 19:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-15 5:39 Reiser4 Pseudo Directory Segfault Peter van Hardenberg
2005-12-15 19:33 ` Edward Shishkin [this message]
2005-12-18 0:37 ` Peter van Hardenberg
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=43A1C4F4.9090102@namesys.com \
--to=edward@namesys.com \
--cc=pvh@uvic.ca \
--cc=reiserfs-list@namesys.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.