In the Linux kernel, the following vulnerability has been resolved:
nfs: Fix KMSAN warning in decode_getfattr_attrs()
Fix the following KMSAN warning:
CPU: 1 UID: 0 PID: 7651 Comm: cp Tainted: G B
Tainted: [B]=BAD_PAGE
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009)
==========================================================================================================BUG: KMSAN: uninit-value in decode_getfattr_attrs+0x2d6d/0x2f90decode_getfattr_attrs+0x2d6d/0x2f90decode_getfattr_generic+0x806/0xb00nfs4_xdr_dec_getattr+0x1de/0x240rpcauth_unwrap_resp_decode+0xab/0x100rpcauth_unwrap_resp+0x95/0xc0call_decode+0x4ff/0xb50__rpc_execute+0x57b/0x19d0rpc_execute+0x368/0x5e0rpc_run_task+0xcfe/0xee0nfs4_proc_getattr+0x5b5/0x990__nfs_revalidate_inode+0x477/0xd00nfs_access_get_cached+0x1021/0x1cc0nfs_do_access+0x9f/0xae0nfs_permission+0x1e4/0x8c0inode_permission+0x356/0x6c0link_path_walk+0x958/0x1330path_lookupat+0xce/0x6b0filename_lookup+0x23e/0x770vfs_statx+0xe7/0x970vfs_fstatat+0x1f2/0x2c0__se_sys_newfstatat+0x67/0x880__x64_sys_newfstatat+0xbd/0x120x64_sys_call+0x1826/0x3cf0do_syscall_64+0xd0/0x1b0entry_SYSCALL_64_after_hwframe+0x77/0x7f
The KMSAN warning is triggered in decode_getfattr_attrs(), when calling
decode_attr_mdsthreshold(). It appears that fattr->mdsthreshold is not
initialized.
Fix the issue by initializing fattr->mdsthreshold to NULL in
nfs_fattr_init().