affs: initialize fsdata in affs_truncate()
stable inclusion from stable-v5.10.166 commit 39ab0fc4984285851048716e7f85ef8b11cabf11 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I7TH9O Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=39ab0fc4984285851048716e7f85ef8b11cabf11 -------------------------------- [ Upstream commit eef034ac ] When aops->write_begin() does not initialize fsdata, KMSAN may report an error passing the latter to aops->write_end(). Fix this by unconditionally initializing fsdata. Fixes: f2b6a16e ("fs: affs convert to new aops") Suggested-by: NEric Biggers <ebiggers@kernel.org> Signed-off-by: NAlexander Potapenko <glider@google.com> Reviewed-by: NDavid Sterba <dsterba@suse.com> Signed-off-by: NDavid Sterba <dsterba@suse.com> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: Nsanglipeng <sanglipeng1@jd.com>
Showing
想要评论请 注册 或 登录