32-bit userspace ABI: introduce ARCH_32BIT_OFF_T config option
All new 32-bit architectures should have 64-bit userspace off_t type, but existing architectures has 32-bit ones. To enforce the rule, new config option is added to arch/Kconfig that defaults ARCH_32BIT_OFF_T to be disabled for new 32-bit architectures. All existing 32-bit architectures enable it explicitly. New option affects force_o_largefile() behaviour. Namely, if userspace off_t is 64-bits long, we have no reason to reject user to open big files. Note that even if architectures has only 64-bit off_t in the kernel (arc, c6x, h8300, hexagon, nios2, openrisc, and unicore32), a libc may use 32-bit off_t, and therefore want to limit the file size to 4GB unless specified differently in the open flags. Signed-off-by:Yury Norov <ynorov@caviumnetworks.com> Acked-by:
Arnd Bergmann <arnd@arndb.de> Signed-off-by:
Yury Norov <ynorov@marvell.com> Signed-off-by:
Arnd Bergmann <arnd@arndb.de>
Showing
- arch/Kconfig 10 additions, 0 deletionsarch/Kconfig
- arch/arc/Kconfig 1 addition, 0 deletionsarch/arc/Kconfig
- arch/arm/Kconfig 1 addition, 0 deletionsarch/arm/Kconfig
- arch/c6x/Kconfig 1 addition, 0 deletionsarch/c6x/Kconfig
- arch/csky/Kconfig 1 addition, 0 deletionsarch/csky/Kconfig
- arch/h8300/Kconfig 1 addition, 0 deletionsarch/h8300/Kconfig
- arch/hexagon/Kconfig 1 addition, 0 deletionsarch/hexagon/Kconfig
- arch/m68k/Kconfig 1 addition, 0 deletionsarch/m68k/Kconfig
- arch/microblaze/Kconfig 1 addition, 0 deletionsarch/microblaze/Kconfig
- arch/mips/Kconfig 1 addition, 0 deletionsarch/mips/Kconfig
- arch/nds32/Kconfig 1 addition, 0 deletionsarch/nds32/Kconfig
- arch/nios2/Kconfig 1 addition, 0 deletionsarch/nios2/Kconfig
- arch/openrisc/Kconfig 1 addition, 0 deletionsarch/openrisc/Kconfig
- arch/parisc/Kconfig 1 addition, 0 deletionsarch/parisc/Kconfig
- arch/powerpc/Kconfig 1 addition, 0 deletionsarch/powerpc/Kconfig
- arch/riscv/Kconfig 1 addition, 0 deletionsarch/riscv/Kconfig
- arch/sh/Kconfig 1 addition, 0 deletionsarch/sh/Kconfig
- arch/sparc/Kconfig 1 addition, 0 deletionsarch/sparc/Kconfig
- arch/unicore32/Kconfig 1 addition, 0 deletionsarch/unicore32/Kconfig
- arch/x86/Kconfig 1 addition, 0 deletionsarch/x86/Kconfig
Loading
Please register or sign in to comment