Skip to content

Commit 26f8dd2

Browse files
committed
Revert "fs/9p: fix uaf in in v9fs_stat2inode_dotl"
This reverts commit 11763a8. This is a requirement to revert commit 724a084 ("fs/9p: simplify iget to remove unnecessary paths"), see that revert for details. Fixes: 724a084 ("fs/9p: simplify iget to remove unnecessary paths") Reported-by: Will Deacon <[email protected]> Link: https://lkml.kernel.org/r/20240923100508.GA32066@willie-the-truck Cc: [email protected] # v6.9+ Message-ID: <[email protected]> Signed-off-by: Dominique Martinet <[email protected]>
1 parent fedd062 commit 26f8dd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/9p/vfs_inode_dotl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ struct inode *v9fs_fid_iget_dotl(struct super_block *sb, struct p9_fid *fid)
7878

7979
retval = v9fs_init_inode(v9ses, inode, &fid->qid,
8080
st->st_mode, new_decode_dev(st->st_rdev));
81-
v9fs_stat2inode_dotl(st, inode, 0);
8281
kfree(st);
8382
if (retval)
8483
goto error;
8584

85+
v9fs_stat2inode_dotl(st, inode, 0);
8686
v9fs_set_netfs_context(inode);
8787
v9fs_cache_inode_get_cookie(inode);
8888
retval = v9fs_get_acl(inode, fid);

0 commit comments

Comments
 (0)