]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
9p: acl: fix uninitialized iattr access
authorDominique Martinet <dominique.martinet@cea.fr>
Fri, 7 Sep 2018 15:10:57 +0000 (00:10 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Jul 2019 07:56:35 +0000 (09:56 +0200)
commit1275a5cf02a39ae48ae4ae770a43f56e3317f750
treeaa1043e363e0c46a2cef48de941e2f145791f159
parent87451738cb176c7d41988fde6c2ec40b2c5a7b65
9p: acl: fix uninitialized iattr access

[ Upstream commit e02a53d92e197706cad1627bd84705d4aa20a145 ]

iattr is passed to v9fs_vfs_setattr_dotl which does send various
values from iattr over the wire, even if it tells the server to
only look at iattr.ia_valid fields this could leak some stack data.

Link: http://lkml.kernel.org/r/1536339057-21974-2-git-send-email-asmadeus@codewreck.org
Addresses-Coverity-ID: 1195601 ("Uninitalized scalar variable")
Signed-off-by: Dominique Martinet <dominique.martinet@cea.fr>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/9p/acl.c