Skip to content

statfs: Enforce statfs[64] structure intialization

Ilya Leoshkevich lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2statfs: Enforce statfs[64] structure intializationfs/statfs.c+2 -21 reply
2/2s390/uapi: Cover statfs padding by growing f_sparearch/s390/include/asm/compat.h arch/s390/include/uapi/asm/statfs.h+3 -30 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchHeiko CarstensAndrew Morton
1/2A-b R-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [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(-)
Signature · 1 line
2.40.1