* [PATCH] Revert "debugfs: inode: debugfs_create_dir uses mode permission from parent"
@ 2018-06-11 9:28 Thomas Richter
2018-06-11 18:12 ` Laura Abbott
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Richter @ 2018-06-11 9:28 UTC (permalink / raw)
To: linux-kernel; +Cc: efault, Thomas Richter
This reverts commit 95cde3c59966f6371b6bcd9e4e2da2ba64ee9775.
It breaks the ioctl(KVM_CREATE_VM) interface.
Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
---
fs/debugfs/inode.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c
index a913b12fc7f8..13b01351dd1c 100644
--- a/fs/debugfs/inode.c
+++ b/fs/debugfs/inode.c
@@ -512,9 +512,7 @@ struct dentry *debugfs_create_dir(const char *name, struct dentry *parent)
if (unlikely(!inode))
return failed_creating(dentry);
- if (!parent)
- parent = debugfs_mount->mnt_root;
- inode->i_mode = S_IFDIR | ((d_inode(parent)->i_mode & 0770));
+ inode->i_mode = S_IFDIR | S_IRWXU | S_IRUGO | S_IXUGO;
inode->i_op = &simple_dir_inode_operations;
inode->i_fop = &simple_dir_operations;
--
2.14.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Revert "debugfs: inode: debugfs_create_dir uses mode permission from parent"
2018-06-11 9:28 [PATCH] Revert "debugfs: inode: debugfs_create_dir uses mode permission from parent" Thomas Richter
@ 2018-06-11 18:12 ` Laura Abbott
2018-06-12 2:37 ` Mike Galbraith
0 siblings, 1 reply; 3+ messages in thread
From: Laura Abbott @ 2018-06-11 18:12 UTC (permalink / raw)
To: Thomas Richter, linux-kernel; +Cc: efault
On 06/11/2018 02:28 AM, Thomas Richter wrote:
> This reverts commit 95cde3c59966f6371b6bcd9e4e2da2ba64ee9775.
> It breaks the ioctl(KVM_CREATE_VM) interface.
>
Can you elaborate a little more on how this breaks? Fedora has
gotten at least one report of a failure in this ioctl and
I'd like know if it's the same issue.
Thanks,
Laura
> Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
> ---
> fs/debugfs/inode.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c
> index a913b12fc7f8..13b01351dd1c 100644
> --- a/fs/debugfs/inode.c
> +++ b/fs/debugfs/inode.c
> @@ -512,9 +512,7 @@ struct dentry *debugfs_create_dir(const char *name, struct dentry *parent)
> if (unlikely(!inode))
> return failed_creating(dentry);
>
> - if (!parent)
> - parent = debugfs_mount->mnt_root;
> - inode->i_mode = S_IFDIR | ((d_inode(parent)->i_mode & 0770));
> + inode->i_mode = S_IFDIR | S_IRWXU | S_IRUGO | S_IXUGO;
> inode->i_op = &simple_dir_inode_operations;
> inode->i_fop = &simple_dir_operations;
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Revert "debugfs: inode: debugfs_create_dir uses mode permission from parent"
2018-06-11 18:12 ` Laura Abbott
@ 2018-06-12 2:37 ` Mike Galbraith
0 siblings, 0 replies; 3+ messages in thread
From: Mike Galbraith @ 2018-06-12 2:37 UTC (permalink / raw)
To: Laura Abbott, Thomas Richter, linux-kernel
On Mon, 2018-06-11 at 11:12 -0700, Laura Abbott wrote:
> On 06/11/2018 02:28 AM, Thomas Richter wrote:
> > This reverts commit 95cde3c59966f6371b6bcd9e4e2da2ba64ee9775.
> > It breaks the ioctl(KVM_CREATE_VM) interface.
> >
>
> Can you elaborate a little more on how this breaks? Fedora has
> gotten at least one report of a failure in this ioctl and
> I'd like know if it's the same issue.
What I reported is here https://lkml.org/lkml/2018/6/8/79
-Mike
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-06-12 2:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-11 9:28 [PATCH] Revert "debugfs: inode: debugfs_create_dir uses mode permission from parent" Thomas Richter
2018-06-11 18:12 ` Laura Abbott
2018-06-12 2:37 ` Mike Galbraith
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).