Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1298963

Re: [PATCH 2/2] 32-bit ABI: introduce ARCH_32BIT_OFF_T config option

From Thomas Gleixner <tglx@linutronix.de>
Newsgroups linux.kernel
Subject Re: [PATCH 2/2] 32-bit ABI: introduce ARCH_32BIT_OFF_T config option
Date 2015-12-29 13:00 +0100
Message-ID <qL16z-8ud-3@gated-at.bofh.it> (permalink)
References <qKYLo-6Xt-7@gated-at.bofh.it> <qKYV3-71t-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, 29 Dec 2015, Yury Norov wrote:

> All new 32-bit architectures should have 64-bit off_t type, but existing
> architectures has 32-bit ones.
> 
> To handle it, new config option is added to arch/Kconfig that defaults
> ARCH_32BIT_OFF_T to be disabled for non-64 bit architectures. All existing
> 32-bit architectures enable it explicitly here.
> 
> New option affects force_o_largefile() behaviour. Namely, if 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, metag, nios2, openrisc, tile32 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.

For the x86 part: Acked-by: Thomas Gleixner <tglx@linutronix.de>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH v2 0/2] ABI: handle 32-bit off_t for 32-bit and compat ABIs Yury Norov <ynorov@caviumnetworks.com> - 2015-12-29 10:30 +0100
  [PATCH 2/2] 32-bit ABI: introduce ARCH_32BIT_OFF_T config option Yury Norov <ynorov@caviumnetworks.com> - 2015-12-29 10:40 +0100
    Re: [PATCH 2/2] 32-bit ABI: introduce ARCH_32BIT_OFF_T config option Arnd Bergmann <arnd@arndb.de> - 2015-12-29 12:10 +0100
      Re: [PATCH 2/2] 32-bit ABI: introduce ARCH_32BIT_OFF_T config option Yury Norov <ynorov@caviumnetworks.com> - 2015-12-29 12:50 +0100
        Re: [PATCH 2/2] 32-bit ABI: introduce ARCH_32BIT_OFF_T config option Arnd Bergmann <arnd@arndb.de> - 2015-12-29 15:00 +0100
    Re: [PATCH 2/2] 32-bit ABI: introduce ARCH_32BIT_OFF_T config  option Thomas Gleixner <tglx@linutronix.de> - 2015-12-29 13:00 +0100

csiph-web