Re: [PATCH 1/2] statfs: Enforce statfs[64] structure intialization

From: Andrew Morton
Date: Thu May 11 2023 - 23:45:25 EST


On Thu, 4 May 2023 16:40:20 +0200 Ilya Leoshkevich <iii@xxxxxxxxxxxxx> wrote:

> 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.
>

Reviewed-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>