1
0
Fork 0
alistair23-linux/arch/nds32/include/asm
Linus Torvalds 96d4f267e4 Remove 'type' argument from access_ok() function
Nobody has actually used the type (VERIFY_READ vs VERIFY_WRITE) argument
of the user address range verification function since we got rid of the
old racy i386-only code to walk page tables by hand.

It existed because the original 80386 would not honor the write protect
bit when in kernel mode, so you had to do COW by hand before doing any
user access.  But we haven't supported that in a long time, and these
days the 'type' argument is a purely historical artifact.

A discussion about extending 'user_access_begin()' to do the range
checking resulted this patch, because there is no way we're going to
move the old VERIFY_xyz interface to that model.  And it's best done at
the end of the merge window when I've done most of my merges, so let's
just get this done once and for all.

This patch was mostly done with a sed-script, with manual fix-ups for
the cases that weren't of the trivial 'access_ok(VERIFY_xyz' form.

There were a couple of notable cases:

 - csky still had the old "verify_area()" name as an alias.

 - the iter_iov code had magical hardcoded knowledge of the actual
   values of VERIFY_{READ,WRITE} (not that they mattered, since nothing
   really used it)

 - microblaze used the type argument for a debug printout

but other than those oddities this should be a total no-op patch.

I tried to fix up all architectures, did fairly extensive grepping for
access_ok() uses, and the changes are trivial, but I may have missed
something.  Any missed conversion should be trivially fixable, though.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2019-01-03 18:57:57 -08:00
..
Kbuild nds32: Perf porting 2018-11-06 18:01:40 +08:00
assembler.h
barrier.h nds32: Atomic operations 2018-02-22 10:44:32 +08:00
bitfield.h nds32: support hardware prefetcher 2018-11-22 18:13:51 +08:00
cache.h nds32: Cache and TLB routines 2018-02-22 10:44:32 +08:00
cache_info.h nds32: Cache and TLB routines 2018-02-22 10:44:32 +08:00
cacheflush.h nds32: To implement these icache invalidation APIs since nds32 cores don't snoop 2018-07-03 11:11:56 +08:00
current.h nds32: Process management 2018-02-22 10:44:32 +08:00
delay.h nds32: Miscellaneous header files 2018-02-22 10:44:34 +08:00
elf.h nds32: support denormalized result through FP emulator 2018-11-22 18:13:27 +08:00
fixmap.h nds32: MMU definitions 2018-02-22 10:44:31 +08:00
fpu.h nds32: support denormalized result through FP emulator 2018-11-22 18:13:27 +08:00
fpuemu.h nds32: Support FP emulation 2018-11-22 18:13:21 +08:00
ftrace.h nds32/ftrace: Support dynamic function tracer 2018-09-04 14:45:18 +08:00
futex.h Remove 'type' argument from access_ok() function 2019-01-03 18:57:57 -08:00
highmem.h nds32: MMU definitions 2018-02-22 10:44:31 +08:00
io.h nds32: Fix the unknown type u8 issue. 2018-05-23 13:26:21 +08:00
irqflags.h nds32: IRQ handling 2018-02-22 10:44:32 +08:00
l2_cache.h nds32: L2 cache support 2018-02-22 10:44:34 +08:00
linkage.h nds32: Miscellaneous header files 2018-02-22 10:44:34 +08:00
memory.h nds32: MMU definitions 2018-02-22 10:44:31 +08:00
mmu.h nds32: MMU definitions 2018-02-22 10:44:31 +08:00
mmu_context.h nds32: Cache and TLB routines 2018-02-22 10:44:32 +08:00
module.h nds32: Loadable modules 2018-02-22 10:44:34 +08:00
nds32.h nds32: Add macro definition for offset of lp register on stack 2018-09-04 14:45:19 +08:00
nds32_fpu_inst.h nds32: Support FP emulation 2018-11-22 18:13:21 +08:00
page.h nds32: Fix the symbols undefined issue by exporting them. 2018-05-23 13:26:20 +08:00
perf_event.h nds32: Perf porting 2018-11-06 18:01:40 +08:00
pgalloc.h nds32: MMU definitions 2018-02-22 10:44:31 +08:00
pgtable.h mm: make the __PAGETABLE_PxD_FOLDED defines non-empty 2018-11-02 08:31:52 +01:00
pmu.h nds32: Perf porting 2018-11-06 18:01:40 +08:00
proc-fns.h nds32: Cache and TLB routines 2018-02-22 10:44:32 +08:00
processor.h nds32: nds32 FPU port 2018-11-22 18:13:13 +08:00
ptrace.h nds32: Exception handling 2018-02-22 10:44:31 +08:00
sfp-machine.h nds32: Support FP emulation 2018-11-22 18:13:21 +08:00
shmparam.h nds32: MMU definitions 2018-02-22 10:44:31 +08:00
stacktrace.h nds32: Perf porting 2018-11-06 18:01:40 +08:00
string.h nds32: Library functions 2018-02-22 10:44:33 +08:00
suspend.h nds32: Power management for nds32 2018-11-06 18:01:41 +08:00
swab.h nds32: Library functions 2018-02-22 10:44:33 +08:00
syscall.h nds32: System calls handling 2018-02-22 10:44:33 +08:00
syscalls.h nds32: support denormalized result through FP emulator 2018-11-22 18:13:27 +08:00
thread_info.h nds32: Process management 2018-02-22 10:44:32 +08:00
tlb.h nds32: Cache and TLB routines 2018-02-22 10:44:32 +08:00
tlbflush.h nds32: Cache and TLB routines 2018-02-22 10:44:32 +08:00
uaccess.h Remove 'type' argument from access_ok() function 2019-01-03 18:57:57 -08:00
unistd.h nds32: System calls handling 2018-02-22 10:44:33 +08:00
vdso.h nds32: VDSO support 2018-02-22 10:44:33 +08:00
vdso_datapage.h nds32: VDSO support 2018-02-22 10:44:33 +08:00
vdso_timer_info.h nds32: VDSO support 2018-02-22 10:44:33 +08:00