linux-kernel-test/arch/s390
Eric W. Biederman 1448c721e4 compat: sync compat_stats with statfs.
This was found by inspection while tracking a similar
bug in compat_statfs64, that has been fixed in mainline
since decemeber.

- This fixes a bug where not all of the f_spare fields
  were cleared on mips and s390.
- Add the f_flags field to struct compat_statfs
- Copy f_flags to userspace in case someone cares.
- Use __clear_user to copy the f_spare field to userspace
  to ensure that all of the elements of f_spare are cleared.
  On some architectures f_spare is has 5 ints and on some
  architectures f_spare only has 4 ints.  Which makes
  the previous technique of clearing each int individually
  broken.

I don't expect anyone actually uses the old statfs system
call anymore but if they do let them benefit from having
the compat and the native version working the same.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2011-10-28 14:58:53 +02:00
..
appldata [S390] mm: add ZONE_DMA to 31-bit config again 2011-05-26 09:48:25 +02:00
boot [S390] fix s390 assembler code alignments 2011-07-24 10:48:21 +02:00
crypto crypto: s390 - support hardware accelerated SHA-224 2011-07-04 20:06:01 +08:00
hypfs treewide: remove extra semicolons 2011-04-10 17:01:05 +02:00
include/asm compat: sync compat_stats with statfs. 2011-10-28 14:58:53 +02:00
kernel [S390] kvm: fix address mode switching 2011-09-20 17:07:34 +02:00
kvm [S390] kvm: extension capability for new address space layout 2011-09-20 17:07:34 +02:00
lib [S390] fix s390 assembler code alignments 2011-07-24 10:48:21 +02:00
math-emu s390: change to new flag variable 2011-03-17 14:02:57 +01:00
mm [S390] gmap: always up mmap_sem properly 2011-09-26 16:40:50 +02:00
oprofile Merge branch 'master' into for-next 2011-07-11 14:15:55 +02:00
defconfig [S390] Update default configuration 2011-01-12 09:55:24 +01:00
Kbuild [S390] standardize Kbuild rules 2010-10-25 16:10:14 +02:00
Kconfig Merge branch 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6 2011-08-04 06:35:51 -10:00
Kconfig.debug [S390] Write protect module text and RO data 2011-03-15 17:08:23 +01:00
Makefile [S390] remove redundant stack check option 2011-03-15 17:08:22 +01:00