summaryrefslogtreecommitdiff
path: root/arch/s390
diff options
context:
space:
mode:
authorIlya Leoshkevich <iii@linux.ibm.com>2023-05-04 17:40:20 +0300
committerAlexander Gordeev <agordeev@linux.ibm.com>2023-05-17 16:20:17 +0300
commited40866ec7d328b3dfb70db7e2011640a16202c3 (patch)
tree9f1caad9748ab439a8508d7d11873d3c595febf2 /arch/s390
parent2862a2fdfae875888e3c1c3634e3422e01d98147 (diff)
downloadlinux-ed40866ec7d328b3dfb70db7e2011640a16202c3.tar.xz
statfs: enforce statfs[64] structure initialization
s390's struct statfs and struct statfs64 contain padding, which field-by-field copying does not set. Initialize the respective structs with zeros before filling them and copying them to userspace, like it's already done for the compat versions of these structs. Found by KMSAN. [agordeev@linux.ibm.com: fixed typo in patch description] Acked-by: Heiko Carstens <hca@linux.ibm.com> Cc: stable@vger.kernel.org # v4.14+ Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Link: https://lore.kernel.org/r/20230504144021.808932-2-iii@linux.ibm.com Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Diffstat (limited to 'arch/s390')
0 files changed, 0 insertions, 0 deletions