* [PATCH] btrfs: Check error of btrfs_iget() in btrfs_search_path_in_tree_user()
[not found] <cover.1528076364.git.misono.tomohiro@jp.fujitsu.com>
@ 2018-06-04 7:41 ` Misono Tomohiro
2018-06-05 14:10 ` David Sterba
0 siblings, 1 reply; 2+ messages in thread
From: Misono Tomohiro @ 2018-06-04 7:41 UTC (permalink / raw)
To: linux-btrfs, David Sterba
Signed-off-by: Misono Tomohiro <misono.tomohiro@jp.fujitsu.com>
---
Hi david,
It seems that v8 patch I sent last week is missed and commit in misc-next
tree is also a bit updated from v7, so I resend the fix as a separate patch.
Please fold this patch to current misc-next (head is the commit to be fixed:
"btrfs: Add unprivileged version of ino_lookup ioctl").
Thanks,
Tomohiro Misono
fs/btrfs/ioctl.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index d29992f7dc63..5556e9ea2a4b 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -2438,6 +2438,10 @@ static int btrfs_search_path_in_tree_user(struct inode *inode,
}
temp_inode = btrfs_iget(sb, &key2, root, NULL);
+ if (IS_ERR(temp_inode)) {
+ ret = PTR_ERR(temp_inode);
+ goto out;
+ }
ret = inode_permission(temp_inode, MAY_READ | MAY_EXEC);
iput(temp_inode);
if (ret) {
--
2.14.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] btrfs: Check error of btrfs_iget() in btrfs_search_path_in_tree_user()
2018-06-04 7:41 ` [PATCH] btrfs: Check error of btrfs_iget() in btrfs_search_path_in_tree_user() Misono Tomohiro
@ 2018-06-05 14:10 ` David Sterba
0 siblings, 0 replies; 2+ messages in thread
From: David Sterba @ 2018-06-05 14:10 UTC (permalink / raw)
To: Misono Tomohiro; +Cc: linux-btrfs, David Sterba
On Mon, Jun 04, 2018 at 04:41:07PM +0900, Misono Tomohiro wrote:
> Signed-off-by: Misono Tomohiro <misono.tomohiro@jp.fujitsu.com>
> ---
>
> Hi david,
>
> It seems that v8 patch I sent last week is missed and commit in misc-next
> tree is also a bit updated from v7, so I resend the fix as a separate patch.
>
> Please fold this patch to current misc-next (head is the commit to be fixed:
> "btrfs: Add unprivileged version of ino_lookup ioctl").
Somehow it got lost on the way to the pull request branch, there were
several other things to fix in the patch so I forgot that one. This also
means I cannot fold it so it needs to be separate, based on this patch.
Thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-06-05 14:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <cover.1528076364.git.misono.tomohiro@jp.fujitsu.com>
2018-06-04 7:41 ` [PATCH] btrfs: Check error of btrfs_iget() in btrfs_search_path_in_tree_user() Misono Tomohiro
2018-06-05 14:10 ` David Sterba
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.