linux/arch
Christoph Hellwig e43dce8a0b
fs: fix archiecture-specific compat_ftruncate64
The "small" argument to do_sys_ftruncate indicates if > 32-bit size
should be reject, but all the arch-specific compat ftruncate64
implementations get this wrong.  Merge do_sys_ftruncate and
ksys_ftruncate, replace the integer as boolean small flag with a
descriptive one about LFS semantics, and use it correctly in the
architecture-specific ftruncate64 implementations.

Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Fixes: 3dd681d944 ("arm64: 32-bit (compat) applications support")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://patch.msgid.link/20260323070205.2939118-2-hch@lst.de
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>
2026-03-23 12:41:57 +01:00
..
alpha alpha: add missing address argument in call to page_table_check_pte_clear() 2026-02-13 10:44:31 -08:00
arc mm.git review status for linus..mm-stable 2026-02-12 11:32:37 -08:00
arm ARM: clean up the memset64() C wrapper 2026-02-13 11:15:05 -08:00
arm64 fs: fix archiecture-specific compat_ftruncate64 2026-03-23 12:41:57 +01:00
csky arch, mm: consolidate initialization of SPARSE memory model 2026-01-26 20:02:18 -08:00
hexagon mm.git review status for linus..mm-stable 2026-02-12 11:32:37 -08:00
loongarch LoongArch changes for v7.0 2026-02-14 12:47:15 -08:00
m68k m68knommu: updates and fixes for v7.0 2026-02-15 19:45:00 -08:00
microblaze mm.git review status for linus..mm-stable 2026-02-12 11:32:37 -08:00
mips fs: fix archiecture-specific compat_ftruncate64 2026-03-23 12:41:57 +01:00
nios2 mm.git review status for linus..mm-stable 2026-02-12 11:32:37 -08:00
openrisc OpenRISC updates for 6.20 2026-02-12 14:04:43 -08:00
parisc fs: fix archiecture-specific compat_ftruncate64 2026-03-23 12:41:57 +01:00
powerpc fs: fix archiecture-specific compat_ftruncate64 2026-03-23 12:41:57 +01:00
riscv Loongarch: 2026-02-13 11:31:15 -08:00
s390 Loongarch: 2026-02-13 11:31:15 -08:00
sh sh: defconfig: remove CONFIG_LOGO_SUPERH_* 2026-02-14 11:09:46 +01:00
sparc fs: fix archiecture-specific compat_ftruncate64 2026-03-23 12:41:57 +01:00
um Just a very few minor things: 2026-02-13 11:24:38 -08:00
x86 fs: fix archiecture-specific compat_ftruncate64 2026-03-23 12:41:57 +01:00
xtensa mm.git review status for linus..mm-nonmm-stable 2026-02-12 12:13:01 -08:00
.gitignore
Kconfig sched: Move clock related paravirt code to kernel/sched 2026-01-12 15:39:14 +01:00