generic compat_sys_ustat
Due to a different size of ino_t ustat needs a compat handler, but currently only x86 and mips provide one. Add a generic compat_sys_ustat and switch all architectures over to it. Instead of doing various user copy hacks compat_sys_ustat just reimplements sys_ustat as it's trivial. This was suggested by Arnd Bergmann. Found by Eric Sandeen when running xfstests/017 on ppc64, which causes stack smashing warnings on RHEL/Fedora due to the too large amount of data writen by the syscall. Signed-off-by:Christoph Hellwig <hch@lst.de> Signed-off-by:
Al Viro <viro@zeniv.linux.org.uk>
Showing
- arch/ia64/ia32/ia32_entry.S 1 addition, 1 deletionarch/ia64/ia32/ia32_entry.S
- arch/mips/kernel/linux32.c 0 additions, 34 deletionsarch/mips/kernel/linux32.c
- arch/mips/kernel/scall64-n32.S 1 addition, 1 deletionarch/mips/kernel/scall64-n32.S
- arch/mips/kernel/scall64-o32.S 1 addition, 1 deletionarch/mips/kernel/scall64-o32.S
- arch/parisc/kernel/syscall_table.S 1 addition, 1 deletionarch/parisc/kernel/syscall_table.S
- arch/powerpc/include/asm/systbl.h 1 addition, 1 deletionarch/powerpc/include/asm/systbl.h
- arch/s390/kernel/compat_wrapper.S 1 addition, 1 deletionarch/s390/kernel/compat_wrapper.S
- arch/x86/ia32/ia32entry.S 1 addition, 1 deletionarch/x86/ia32/ia32entry.S
- arch/x86/ia32/sys_ia32.c 0 additions, 22 deletionsarch/x86/ia32/sys_ia32.c
- arch/x86/include/asm/ia32.h 0 additions, 7 deletionsarch/x86/include/asm/ia32.h
- arch/x86/include/asm/sys_ia32.h 0 additions, 2 deletionsarch/x86/include/asm/sys_ia32.h
- fs/compat.c 28 additions, 0 deletionsfs/compat.c
- include/linux/compat.h 8 additions, 0 deletionsinclude/linux/compat.h
Loading
Please register or sign in to comment