Skip to content

Commit 40ff214

Browse files
andreas-schwabmpe
authored andcommitted
asm-generic: compat: fix compat_arg_u64() and compat_arg_u64_dual()
The macros are defined backwards. This affects the following compat syscalls: - compat_sys_truncate64() - compat_sys_ftruncate64() - compat_sys_fallocate() - compat_sys_sync_file_range() - compat_sys_fadvise64_64() - compat_sys_readahead() - compat_sys_pread64() - compat_sys_pwrite64() Fixes: 43d5de2 ("asm-generic: compat: Support BE for long long args in 32-bit ABIs") Signed-off-by: Andreas Schwab <[email protected]> [mpe: Add list of affected syscalls] Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 2153fc9 commit 40ff214

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/asm-generic/compat.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#endif
1616

1717
#ifndef compat_arg_u64
18-
#ifdef CONFIG_CPU_BIG_ENDIAN
18+
#ifndef CONFIG_CPU_BIG_ENDIAN
1919
#define compat_arg_u64(name) u32 name##_lo, u32 name##_hi
2020
#define compat_arg_u64_dual(name) u32, name##_lo, u32, name##_hi
2121
#else

0 commit comments

Comments
 (0)