1
0
Fork 0
alistair23-linux/arch
Linus Torvalds 3beff76b54 x86: use proper parentheses around new uaccess macro argument uses
__get_kernel_nofault() didn't have the parentheses around the use of
'src' and 'dst' macro arguments, making the casts potentially do the
wrong thing.

The parentheses aren't necessary with the current very limited use in
mm/access.c, but it's bad form, and future use-cases might have very
unexpected errors as a result.

Do the same for unsafe_copy_loop() while at it, although in that case it
is an entirely internal x86 uaccess helper macro that isn't used
anywhere else and any other use would be invalid anyway.

Fixes: fa94111d94 ("x86: use non-set_fs based maccess routines")
Cc: Christoph Hellwig <hch@lst.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-06-09 10:39:33 -07:00
..
alpha mmap locking API: convert mmap_sem API comments 2020-06-09 09:39:14 -07:00
arc mmap locking API: convert mmap_sem comments 2020-06-09 09:39:14 -07:00
arm mmap locking API: convert mmap_sem comments 2020-06-09 09:39:14 -07:00
arm64 mmap locking API: convert mmap_sem call sites missed by coccinelle 2020-06-09 09:39:14 -07:00
c6x mm: consolidate pte_index() and pte_offset_*() definitions 2020-06-09 09:39:14 -07:00
csky mmap locking API: use coccinelle to convert mmap_sem rwsem call sites 2020-06-09 09:39:14 -07:00
h8300 mm: introduce include/linux/pgtable.h 2020-06-09 09:39:13 -07:00
hexagon mmap locking API: use coccinelle to convert mmap_sem rwsem call sites 2020-06-09 09:39:14 -07:00
ia64 mmap locking API: convert mmap_sem comments 2020-06-09 09:39:14 -07:00
m68k mmap locking API: convert mmap_sem API comments 2020-06-09 09:39:14 -07:00
microblaze mmap locking API: convert mmap_sem comments 2020-06-09 09:39:14 -07:00
mips mmap locking API: convert mmap_sem API comments 2020-06-09 09:39:14 -07:00
nds32 mmap locking API: convert mmap_sem comments 2020-06-09 09:39:14 -07:00
nios2 mmap locking API: convert mmap_sem API comments 2020-06-09 09:39:14 -07:00
openrisc mmap locking API: convert mmap_sem API comments 2020-06-09 09:39:14 -07:00
parisc maccess: always use strict semantics for probe_kernel_read 2020-06-09 09:39:15 -07:00
powerpc mmap locking API: convert mmap_sem comments 2020-06-09 09:39:14 -07:00
riscv mmap locking API: convert mmap_sem comments 2020-06-09 09:39:14 -07:00
s390 mmap locking API: convert mmap_sem comments 2020-06-09 09:39:14 -07:00
sh mmap locking API: convert mmap_sem comments 2020-06-09 09:39:14 -07:00
sparc mmap locking API: convert mmap_sem comments 2020-06-09 09:39:14 -07:00
um maccess: always use strict semantics for probe_kernel_read 2020-06-09 09:39:15 -07:00
unicore32 mmap locking API: convert mmap_sem comments 2020-06-09 09:39:14 -07:00
x86 x86: use proper parentheses around new uaccess macro argument uses 2020-06-09 10:39:33 -07:00
xtensa mmap locking API: convert mmap_sem API comments 2020-06-09 09:39:14 -07:00
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
Kconfig scs: Remove references to asm/scs.h from core code 2020-05-18 17:47:45 +01:00