[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230504144021.808932-1-iii@linux.ibm.com>
Date: Thu, 4 May 2023 16:40:19 +0200
From: Ilya Leoshkevich <iii@...ux.ibm.com>
To: Al Viro <viro@...iv.linux.org.uk>,
Andrew Morton <akpm@...ux-foundation.org>
Cc: linux-kernel@...r.kernel.org, Heiko Carstens <hca@...ux.ibm.com>,
Vasily Gorbik <gor@...ux.ibm.com>,
Alexander Gordeev <agordeev@...ux.ibm.com>,
Ilya Leoshkevich <iii@...ux.ibm.com>
Subject: [PATCH 0/2] statfs: Enforce statfs[64] structure intialization
This series fixes copying of uninitialized memory to userspace by
do_statfs_native() and do_statfs64() on s390.
Patch 1 fixes the problem by making the code similar to
put_compat_statfs() and put_compat_statfs64().
Patch 2 gets rid of the padding which caused the issue; even though it
may be considered redundant, it documents that s390 de-facto has an
extra f_spare array element.
Ilya Leoshkevich (2):
statfs: Enforce statfs[64] structure intialization
s390/uapi: Cover statfs padding by growing f_spare
arch/s390/include/asm/compat.h | 2 +-
arch/s390/include/uapi/asm/statfs.h | 4 ++--
fs/statfs.c | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
--
2.40.1
Powered by blists - more mailing lists