linux-stable/arch/riscv
Yury Norov 942fa985e9 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>
2019-02-19 10:10:05 +01:00
..
boot RISC-V: Build flat and compressed kernel images 2018-11-20 05:19:09 -08:00
configs RISC-V: defconfig: Enable RISC-V SBI earlycon support 2018-12-17 10:23:46 -08:00
include Fix a handful of audit-related issue 2019-01-07 08:45:47 -08:00
kernel Fix a handful of audit-related issue 2019-01-07 08:45:47 -08:00
lib RISC-V: lib: minor asm cleanup 2018-12-21 08:17:02 -08:00
mm mm: remove include/linux/bootmem.h 2018-10-31 08:54:16 -07:00
Kconfig 32-bit userspace ABI: introduce ARCH_32BIT_OFF_T config option 2019-02-19 10:10:05 +01:00
Kconfig.debug RISC-V: Remove EARLY_PRINTK support 2018-12-17 10:23:46 -08:00
Makefile RISC-V: Build flat and compressed kernel images 2018-11-20 05:19:09 -08:00