From: yuchao0@huawei.com (Chao Yu) Date: Fri, 15 Feb 2019 10:13:19 +0800 Subject: [PATCH v2] staging: erofs: fix memleak of inode's shared xattr array In-Reply-To: References: <20190214064636.30039-1-shengyong1@huawei.com> Message-ID: <4a0a443e-2895-d22f-8dee-bc5e40c31481@huawei.com> On 2019/2/14 15:10, Gao Xiang wrote: > > > On 2019/2/14 14:46, Sheng Yong wrote: >> If it fails to read a shared xattr page, the inode's shared xattr array >> is not freed. The next time the inode's xattr is accessed, the previously >> allocated array is leaked. Nice catch! >> >> Signed-off-by: Sheng Yong > > LGTM, > > Fixes: b17500a0fdba ("staging: erofs: introduce xattr & acl support") > Cc: # 4.19+ > Reviewed-by: Gao Xiang Reviewed-by: Chao Yu Thanks, > > [and there is also another race condition in it, but different root cause. > let me fix it later independently...] > > Thanks, > Gao Xiang > > . >