linux_dsm_epyc7002/arch/x86/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
..
crypto
e820
fpu x86/fpu: Don't export __kernel_fpu_{begin,end}() 2018-12-04 12:37:28 +01:00
numachip
trace Merge branch 'x86-cleanups-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2018-12-26 17:03:51 -08:00
uv x86/platform/uv: Provide is_early_uv_system() 2018-10-02 21:29:16 +02:00
xen x86/xen: fix pv boot 2018-11-09 08:16:55 +01:00
a.out-core.h
acenv.h
acpi.h x86/acpi, x86/boot: Take RSDP address for boot params if available 2018-10-10 10:44:22 +02:00
agp.h
alternative-asm.h Revert "x86/alternatives: Macrofy lock prefixes to work around GCC inlining bugs" 2018-12-19 12:00:04 +01:00
alternative.h Merge branch 'x86-cleanups-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2018-12-26 17:03:51 -08:00
amd_nb.h x86/amd_nb: Check vendor in AMD-only functions 2018-09-27 18:28:58 +02:00
apb_timer.h
apic_flat_64.h
apic.h x86/irq: Let interrupt handlers set kvm_cpu_l1tf_flush_l1d 2018-08-05 09:53:13 +02:00
apicdef.h
apm.h x86/apm: Don't access __preempt_count with zeroed fs 2018-07-16 17:59:57 +02:00
arch_hweight.h x86: Use POPCNT mnemonics in arch_hweight.h 2018-11-05 10:42:32 +01:00
archrandom.h
asm-offsets.h
asm-prototypes.h
asm.h Revert "x86/extable: Macrofy inline assembly code to work around GCC inlining bugs" 2018-12-19 11:59:47 +01:00
atomic64_32.h x86: Fix kernel-doc atomic.h warnings 2018-09-03 12:41:41 +02:00
atomic64_64.h x86/asm: 'Simplify' GEN_*_RMWcc() macros 2018-10-16 17:33:54 +02:00
atomic.h x86/asm: 'Simplify' GEN_*_RMWcc() macros 2018-10-16 17:33:54 +02:00
barrier.h x86/spectre_v1: Disable compiler optimizations over array_index_mask_nospec() 2018-06-21 16:00:21 +02:00
bios_ebda.h
bitops.h x86/asm: 'Simplify' GEN_*_RMWcc() macros 2018-10-16 17:33:54 +02:00
boot.h
bootparam_utils.h x86/boot: Clear RSDP address in boot_params for broken loaders 2018-12-03 11:56:37 +01:00
bug.h Revert "x86/bug: Macrofy the BUG table section handling, to work around GCC inlining bugs" 2018-12-19 12:00:00 +01:00
bugs.h
cache.h
cacheflush.h
cacheinfo.h x86/cpu: Get cache info and setup cache cpumap for Hygon Dhyana 2018-09-27 18:28:57 +02:00
calgary.h
ce4100.h
checksum_32.h Remove 'type' argument from access_ok() function 2019-01-03 18:57:57 -08:00
checksum_64.h
checksum.h
clocksource.h
cmdline.h
cmpxchg_32.h
cmpxchg_64.h locking/atomics/x86: Reduce arch_cmpxchg64*() instrumentation 2018-07-25 11:53:58 +02:00
cmpxchg.h x86: Fix various typos in comments 2018-12-03 10:49:13 +01:00
compat.h x86/compat: Adjust in_compat_syscall() to generic code under !COMPAT 2018-11-01 12:59:25 +01:00
cpu_device_id.h
cpu_entry_area.h x86/pti/64: Remove the SYSCALL64 entry trampoline 2018-09-12 21:33:53 +02:00
cpu.h
cpufeature.h Revert "x86/cpufeature: Macrofy inline assembly code to work around GCC inlining bugs" 2018-12-19 11:59:21 +01:00
cpufeatures.h * ARM: selftests improvements, large PUD support for HugeTLB, 2018-12-26 11:46:28 -08:00
cpumask.h
crash.h x86/headers: Fix -Wmissing-prototypes warning 2018-11-23 07:59:59 +01:00
current.h
debugreg.h x86/paravirt: Move the Xen-only pv_cpu_ops under the PARAVIRT_XXL umbrella 2018-09-03 16:50:36 +02:00
delay.h
desc_defs.h
desc.h x86/paravirt: Move the Xen-only pv_cpu_ops under the PARAVIRT_XXL umbrella 2018-09-03 16:50:36 +02:00
device.h
disabled-features.h x86/cpufeatures, x86/fault: Mark SMAP as disabled when configured out 2018-11-20 08:44:28 +01:00
div64.h
dma-direct.h
dma-mapping.h x86/pci-dma: switch the VIA 32-bit DMA quirk to use the struct device flag 2018-05-28 12:48:25 +02:00
dma.h
dmi.h x86: Don't include linux/irq.h from asm/hardirq.h 2018-08-05 09:53:13 +02:00
dwarf2.h
edac.h
efi.h Merge branch 'x86-fpu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2018-12-26 17:37:51 -08:00
elf.h Merge branch 'x86-asm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2018-10-23 15:24:22 +01:00
emergency-restart.h
entry_arch.h
error-injection.h
espfix.h
exec.h
extable.h x86/fault: Plumb error code and fault address through to fault handlers 2018-09-03 15:12:09 +02:00
fb.h
fixmap.h Merge branch 'x86-paravirt-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2018-10-23 17:54:58 +01:00
floppy.h
frame.h
fsgsbase.h x86/fsgsbase/64: Fix the base write helper functions 2018-12-18 14:26:09 +01:00
ftrace.h x86/compat: Adjust in_compat_syscall() to generic code under !COMPAT 2018-11-01 12:59:25 +01:00
futex.h x86/extable: Introduce _ASM_EXTABLE_UA for uaccess fixups 2018-09-03 15:12:09 +02:00
gart.h
genapic.h
geode.h
hardirq.h x86: Don't include linux/irq.h from asm/hardirq.h 2018-08-05 09:53:13 +02:00
highmem.h
hpet.h
hugetlb.h hugetlb: introduce generic version of huge_ptep_get 2018-10-26 16:26:34 -07:00
hw_breakpoint.h perf/hw_breakpoint: Remove default hw_breakpoint_arch_parse() 2018-06-26 09:07:58 +02:00
hw_irq.h x86/platform/uv/BAU: Add APIC idt entry 2018-03-28 10:40:55 +02:00
hyperv-tlfs.h x86/hyper-v: Add HvFlushGuestAddressList hypercall support 2018-12-21 11:28:39 +01:00
hypervisor.h
i8259.h x86: i8259: Add missing include file 2018-08-15 13:44:10 -07:00
ia32_unistd.h
ia32.h
imr.h
inat_types.h
inat.h
init.h
insn-eval.h
insn.h kprobes/x86: Prohibit probing on exception masking instructions 2018-05-13 19:52:55 +02:00
inst.h
intel_ds.h perf/x86/intel/ds: Handle PEBS overflow for fixed counters 2018-07-25 11:50:50 +02:00
intel_mid_vrtc.h x86: Convert x86_platform_ops to timespec64 2018-05-19 14:03:14 +02:00
intel_pconfig.h
intel_pmc_ipc.h
intel_pt.h perf/x86/intel/pt: add new capability for Intel PT 2018-12-21 11:28:33 +01:00
intel_punit_ipc.h
intel_scu_ipc.h
intel_telemetry.h
intel-family.h x86/cpu: Sanitize FAM6_ATOM naming 2018-10-02 10:14:32 +02:00
intel-mid.h x86/platform/intel-mid: Remove per platform code 2018-07-03 13:08:21 +02:00
invpcid.h
io_apic.h
io.h Merge branch 'x86-mm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2018-10-23 17:05:28 +01:00
iomap.h
iommu_table.h
iommu.h
iosf_mbi.h x86: baytrail/cherrytrail: Rework and move P-Unit PMIC bus semaphore code 2018-10-25 16:59:08 +02:00
ipi.h
irq_regs.h
irq_remapping.h iommu/vt-d: Relocate struct/function declarations to its header files 2018-09-25 14:33:43 +02:00
irq_vectors.h x86/vector: Remove the unused macro FPU_IRQ 2018-04-26 11:57:57 +02:00
irq_work.h x86/headers: Fix -Wmissing-prototypes warning 2018-11-23 07:59:59 +01:00
irq.h x86/headers: Fix -Wmissing-prototypes warning 2018-11-23 07:59:59 +01:00
irqdomain.h
irqflags.h x86/paravirt: Move the pv_irq_ops under the PARAVIRT_XXL umbrella 2018-09-03 16:50:36 +02:00
ist.h
jailhouse_para.h x86/jailhouse: Fix incorrect SPDX identifier 2018-04-23 10:17:28 +02:00
jump_label.h Revert "x86/jump-labels: Macrofy inline assembly code to work around GCC inlining bugs" 2018-12-19 11:58:10 +01:00
kasan.h
kaslr.h
kbdleds.h
Kbuild module: use relative references for __ksymtab entries 2018-08-22 10:52:47 -07:00
kdebug.h x86/process: Don't mix user/kernel regs in 64bit __show_regs() 2018-09-06 14:33:12 +02:00
kexec-bzimage64.h kexec_file,x86,powerpc: factor out kexec_file_ops functions 2018-04-13 17:10:27 -07:00
kexec.h treewide: remove current_text_addr 2018-10-31 08:54:12 -07:00
kgdb.h
kmap_types.h
kprobes.h kprobes/x86: Don't call the ->break_handler() in x86 kprobes 2018-06-21 12:33:13 +02:00
kvm_emulate.h x86/kvm: Add Hygon Dhyana support to KVM 2018-09-27 18:28:59 +02:00
kvm_host.h KVM: x86: Use jmp to invoke kvm_spurious_fault() from .fixup 2018-12-21 11:48:23 +01:00
kvm_page_track.h
kvm_para.h x86/headers: Fix -Wmissing-prototypes warning 2018-11-23 07:59:59 +01:00
kvmclock.h
linkage.h
livepatch.h
local64.h
local.h x86/asm: 'Simplify' GEN_*_RMWcc() macros 2018-10-16 17:33:54 +02:00
mach_timer.h
mach_traps.h
math_emu.h
mc146818rtc.h x86: Convert x86_platform_ops to timespec64 2018-05-19 14:03:14 +02:00
mce.h acpi/nfit, x86/mce: Validate a MCE's address before using it 2018-11-06 19:13:26 +01:00
mcsafe_test.h x86, nfit_test: Add unit test for memcpy_mcsafe() 2018-05-22 23:18:31 -07:00
mem_encrypt.h x86/mm: Add .bss..decrypted section to hold shared variables 2018-09-15 20:48:45 +02:00
microcode_amd.h
microcode_intel.h
microcode.h Merge branch 'x86-cleanups-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2018-04-02 15:16:43 -07:00
misc.h
mmconfig.h
mmu_context.h x86/paravirt: Move the Xen-only pv_mmu_ops under the PARAVIRT_XXL umbrella 2018-09-03 16:50:37 +02:00
mmu.h
mmx.h
mmzone_32.h
mmzone_64.h
mmzone.h
module.h
mpspec_def.h
mpspec.h
mpx.h signal/x86: Move mpx siginfo generation into do_bounds 2018-09-19 15:53:11 +02:00
mshyperv.h x86/hyper-v: Add HvFlushGuestAddressList hypercall support 2018-12-21 11:28:39 +01:00
msi.h
msidef.h
msr-index.h * ARM: selftests improvements, large PUD support for HugeTLB, 2018-12-26 11:46:28 -08:00
msr-trace.h
msr.h x86/paravirt: Move the Xen-only pv_cpu_ops under the PARAVIRT_XXL umbrella 2018-09-03 16:50:36 +02:00
mtrr.h
mwait.h
nmi.h
nops.h
nospec-branch.h x86/speculation: Add support for STIBP always-on preferred mode 2018-12-18 14:13:33 +01:00
numa_32.h
numa.h
olpc_ofw.h
olpc.h
orc_lookup.h
orc_types.h x86/unwind/orc: Detect the end of the stack 2018-06-21 16:34:56 +02:00
page_32_types.h x86/speculation/l1tf: Increase 32bit PAE __PHYSICAL_PAGE_SHIFT 2018-06-20 19:09:59 +02:00
page_32.h
page_64_types.h x86/mm: Move LDT remap out of KASLR region on 5-level paging 2018-11-06 21:35:11 +01:00
page_64.h Merge branch 'x86-mm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2018-04-02 15:45:30 -07:00
page_types.h x86/mm: Decouple dynamic __PHYSICAL_MASK from AMD SME 2018-06-06 13:38:01 +02:00
page.h
paravirt_types.h Revert "x86/paravirt: Work around GCC inlining bugs when compiling paravirt ops" 2018-12-19 11:59:55 +01:00
paravirt.h x86/headers: Fix -Wmissing-prototypes warning 2018-11-23 07:59:59 +01:00
parport.h
pat.h
pci_64.h
pci_x86.h PCI/ACPI: Allow ACPI to be built without CONFIG_PCI set 2018-12-20 10:19:49 +01:00
pci-direct.h PCI: Make early dump functionality generic 2018-06-29 20:06:07 -05:00
pci-functions.h
pci.h PCI: remove PCI_DMA_BUS_IS_PHYS 2018-05-07 07:15:41 +02:00
percpu.h x86/percpu: Fix this_cpu_read() 2018-10-14 11:11:22 +02:00
perf_event_p4.h
perf_event.h Merge branch 'x86/urgent' into x86/cache, to pick up dependent fix 2018-10-09 08:50:10 +02:00
pgalloc.h x86/mm: Validate kernel_physical_mapping_init() PTE population 2018-12-05 09:03:06 +01:00
pgtable_32_types.h x86/ldt: Define LDT_END_ADDR 2018-07-20 01:11:47 +02:00
pgtable_32.h Remove 'type' argument from access_ok() function 2019-01-03 18:57:57 -08:00
pgtable_64_types.h x86/mm: Fix guard hole handling 2018-12-11 11:19:24 +01:00
pgtable_64.h x86/mm: Expand static page table for fixmap space 2018-09-20 23:17:22 +02:00
pgtable_types.h x86/mm/pageattr: Introduce helper function to unmap EFI boot services 2018-11-30 09:10:30 +01:00
pgtable-2level_types.h x86/pgtable: Move two more functions from pgtable_64.h to pgtable.h 2018-07-20 01:11:42 +02:00
pgtable-2level.h Revert "x86/mm/legacy: Populate the user page-table with user pgd's" 2018-09-14 17:08:45 +02:00
pgtable-3level_types.h x86/paravirt: Move items in pv_info under PARAVIRT_XXL umbrella 2018-09-03 16:50:36 +02:00
pgtable-3level.h x86/pae: use 64 bit atomic xchg function in native_ptep_get_and_clear 2018-08-27 14:20:49 -04:00
pgtable-invert.h x86/speculation/l1tf: Exempt zeroed PTEs from inversion 2018-08-17 10:27:36 -07:00
pgtable.h Merge branch 'x86-paravirt-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2018-10-23 17:54:58 +01:00
pkeys.h powerpc updates for 4.18 2018-06-07 10:23:33 -07:00
platform_sst_audio.h
pm-trace.h
posix_types.h
preempt.h preempt: Move PREEMPT_NEED_RESCHED definition into arch code 2018-12-07 12:35:46 +00:00
probe_roms.h
processor-cyrix.h
processor-flags.h x86/mm/pti: Define X86_CR3_PTI_PCID_USER_BIT on x86_32 2018-07-20 01:11:44 +02:00
processor.h mm: make free_reserved_area() return "const char *" 2018-12-28 12:11:48 -08:00
prom.h
proto.h
pti.h x86/mm/pti: Introduce pti_finalize() 2018-07-20 01:11:45 +02:00
ptrace.h The biggest change here is the updates to kprobes 2018-10-30 09:49:56 -07:00
purgatory.h
pvclock-abi.h
pvclock.h x86: Convert x86_platform_ops to timespec64 2018-05-19 14:03:14 +02:00
qrwlock.h
qspinlock_paravirt.h locking/pvqspinlock/x86: Use LOCK_PREFIX in __pv_queued_spin_unlock() assembly code 2018-07-25 11:22:20 +02:00
qspinlock.h x86/qspinlock: Fix compile error 2018-11-04 00:54:34 +01:00
realmode.h
reboot_fixups.h
reboot.h x86/headers: Fix -Wmissing-prototypes warning 2018-11-23 07:59:59 +01:00
refcount.h Revert "x86/refcount: Work around GCC inlining bug" 2018-12-19 12:00:09 +01:00
required-features.h
resctrl_sched.h x86/resctrl: Rename the config option INTEL_RDT to RESCTRL 2018-11-22 20:16:19 +01:00
rio.h
rmwcc.h x86/asm: 'Simplify' GEN_*_RMWcc() macros 2018-10-16 17:33:54 +02:00
rwsem.h
seccomp.h
sections.h x86/pti/64: Remove the SYSCALL64 entry trampoline 2018-09-12 21:33:53 +02:00
segment.h Merge branch 'x86-paravirt-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2018-10-23 17:54:58 +01:00
serial.h
set_memory.h libnvdimm-for-4.19_dax-memory-failure 2018-08-25 18:43:59 -07:00
setup_arch.h
setup.h x86/kernel: Fix more -Wmissing-prototypes warnings 2018-12-08 12:24:35 +01:00
shmparam.h
sigcontext.h
sigframe.h
sighandling.h x86/headers: Fix -Wmissing-prototypes warning 2018-11-23 07:59:59 +01:00
signal.h x86/asm: Use CC_SET()/CC_OUT() in __gen_sigismember() 2018-08-30 13:02:31 +02:00
simd.h
smap.h
smp.h x86/headers: Fix -Wmissing-prototypes warning 2018-11-23 07:59:59 +01:00
sparsemem.h x86/mm: Stop pretending pgtable_l5_enabled is a variable 2018-05-19 11:56:57 +02:00
spec-ctrl.h x86/speculation: Prevent stale SPEC_CTRL msr content 2018-11-28 11:57:12 +01:00
special_insns.h x86/paravirt: Move the Xen-only pv_mmu_ops under the PARAVIRT_XXL umbrella 2018-09-03 16:50:37 +02:00
spinlock_types.h
spinlock.h
sta2x11.h
stackprotector.h Kbuild: rename CC_STACKPROTECTOR[_STRONG] config variables 2018-06-14 12:21:18 +09:00
stacktrace.h x86/dumpstack: Don't dump kernel memory based on usermode RIP 2018-08-31 17:08:22 +02:00
string_32.h
string_64.h x86/asm: Optimize memcpy_flushcache() 2018-09-10 15:17:12 +02:00
string.h
suspend_32.h x86-32/asm/power: Create stack frames in hibernate_asm_32.S 2018-10-03 11:56:33 +02:00
suspend_64.h
suspend.h x86, hibernate: Rename temp_level4_pgt to temp_pgt 2018-10-03 11:56:34 +02:00
svm.h KVM/x86: Use SVM assembly instruction mnemonics instead of .byte streams 2018-12-21 11:28:44 +01:00
swiotlb.h
switch_to.h x86/process: Consolidate and simplify switch_to_xtra() code 2018-11-28 11:57:11 +01:00
sync_bitops.h
sync_core.h
syscall_wrapper.h syscalls/x86: Adapt syscall_wrapper.h to the new syscall stub naming convention 2018-04-09 16:47:28 +02:00
syscall.h syscalls/x86: Unconditionally enable 'struct pt_regs' based syscalls on x86_64 2018-04-05 16:59:38 +02:00
syscalls.h syscalls/core, syscalls/x86: Clean up compat syscall stub naming convention 2018-04-09 16:47:28 +02:00
sysfb.h
tce.h
text-patching.h x86/alternatives, jumplabel: Use text_poke_early() before mm_init() 2018-07-20 00:02:38 +02:00
thread_info.h x86/thread_info: Remove _TIF_ALLWORK_MASK 2018-12-03 19:00:28 +01:00
time.h
timer.h
timex.h
tlb.h x86/mm/tlb: Add freed_tables argument to flush_tlb_mm_range 2018-10-09 16:51:12 +02:00
tlbbatch.h
tlbflush.h x86/speculation: Prepare for conditional IBPB in switch_mm() 2018-11-28 11:57:11 +01:00
topology.h x86/topology: Provide topology_smt_supported() 2018-06-21 14:20:57 +02:00
trace_clock.h
traps.h x86/kernel: Fix more -Wmissing-prototypes warnings 2018-12-08 12:24:35 +01:00
tsc.h x86/headers: Fix -Wmissing-prototypes warning 2018-11-23 07:59:59 +01:00
uaccess_32.h
uaccess_64.h x86/asm/memcpy_mcsafe: Fix copy_to_user_mcsafe() exception handling 2018-07-16 00:05:05 +02:00
uaccess.h Remove 'type' argument from access_ok() function 2019-01-03 18:57:57 -08:00
umip.h
unaligned.h
unistd.h y2038: utimes: Rework #ifdef guards for compat syscalls 2018-08-29 15:42:23 +02:00
unwind_hints.h x86/unwind/orc: Detect the end of the stack 2018-06-21 16:34:56 +02:00
unwind.h
uprobes.h
user32.h
user_32.h
user_64.h
user.h
vdso.h
vga.h
vgtod.h Merge branch 'x86-vdso-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2018-10-23 19:07:25 +01:00
virtext.h KVM updates for v4.20 2018-10-25 17:57:35 -07:00
vm86.h
vmx.h KVM: x86: Add Intel PT virtualization work mode 2018-12-21 11:28:34 +01:00
vsyscall.h
vvar.h
word-at-a-time.h
x86_init.h x86/boot: Mostly revert commit ae7e1238e6 ("Add ACPI RSDP address to setup_header") 2018-11-20 09:43:10 +01:00
xor_32.h
xor_64.h
xor_avx.h
xor.h