Re: [PATCH next] fs/9p: fix uaf in in v9fs_stat2inode_dotl

From: Breno Leitao
Date: Wed Feb 28 2024 - 05:33:31 EST


On Fri, Feb 02, 2024 at 08:15:31PM +0800, Lizhi Xu wrote:
> The incorrect logical order of accessing the st object code in v9fs_fid_iget_dotl
> is causing this uaf.
>
> Fixes: 724a08450f74 ("fs/9p: simplify iget to remove unnecessary paths")
> Reported-and-tested-by: syzbot+7a3d75905ea1a830dbe5@xxxxxxxxxxxxxxxxxxxxxxxxx
> Signed-off-by: Lizhi Xu <lizhi.xu@xxxxxxxxxxxxx>

Tested-by: Breno Leitao <leitao@xxxxxxxxxx>