linux/arch/arm64/include/asm
AKASHI Takahiro 1f65c13efe arm64: avoid multiple evaluation of ptr in get_user/put_user()
get_user() is defined as a function macro in arm64, and trace_get_user()
calls it as followed:
     get_user(ch, ptr++);
Since the second parameter occurs twice in the definition, 'ptr++' is
unexpectedly evaluated twice and trace_get_user() will generate a bogus
string from user-provided one. As a result, some ftrace sysfs operations,
like "echo FUNCNAME > set_ftrace_filter," hit this case and eventually fail.
This patch fixes the issue both in get_user() and put_user().

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
[catalin.marinas@arm.com: added __user type annotation and s/optr/__p/]
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2013-09-25 16:42:21 +01:00
..
xen arm64/xen: introduce asm/xen header files on arm64 2013-06-07 10:39:45 +00:00
Kbuild arm64: compiling issue, need add include/asm/vga.h file 2013-04-25 17:45:47 +01:00
arch_timer.h Merge branch 'timers/clockevents-next' of git://git.linaro.org/people/dlezcano/clockevents into timers/core 2013-08-21 14:59:23 +02:00
asm-offsets.h
assembler.h arm64: debug: fix mdscr.ss check when enabling debug exceptions 2013-05-17 18:24:19 +01:00
atomic.h
barrier.h
bitops.h arm64: klib: Optimised atomic bitops 2013-03-21 17:39:31 +00:00
cache.h
cacheflush.h arm64: Remove __flush_dcache_page() 2013-06-07 17:58:30 +01:00
cachetype.h
cmpxchg.h arm64: Define cmpxchg64 and cmpxchg64_local for outside use 2013-04-23 11:47:26 +01:00
compat.h arm64: Fix compat types affecting struct compat_stat 2013-04-25 17:45:50 +01:00
compiler.h
cputable.h
cputype.h arm64: Add defines for APM ARMv8 implementation 2013-06-20 17:03:59 +01:00
debug-monitors.h arm64: add '#ifdef CONFIG_COMPAT' for aarch32_break_handler() 2013-07-19 15:49:43 +01:00
device.h arm64: device: add iommu pointer to device archdata 2013-06-11 18:15:55 +01:00
dma-mapping.h arm64: Provide default implementation for dma_{alloc,free}_attrs 2013-06-07 17:57:23 +01:00
elf.h Move the EM_ARM and EM_AARCH64 definitions to uapi/linux/elf-em.h 2013-09-02 16:35:50 +01:00
esr.h arm64: add explicit symbols to ESR_EL1 decoding 2013-04-17 15:58:25 +01:00
exception.h arm64: Use irqchip_init() for interrupt controller initialisation 2013-03-26 16:02:23 +00:00
exec.h
fb.h
fpsimd.h
fpsimdmacros.h
futex.h
hardirq.h arm64: Use irqchip_init() for interrupt controller initialisation 2013-03-26 16:02:23 +00:00
hugetlb.h ARM64: mm: HugeTLB support. 2013-06-14 09:52:40 +01:00
hw_breakpoint.h
hwcap.h arm64: Widen hwcap to be 64 bit 2013-09-20 09:56:07 +01:00
hypervisor.h arm64/xen: introduce asm/xen header files on arm64 2013-06-07 10:39:45 +00:00
io.h arm64/xen: implement ioremap_cached on arm64 2013-06-07 10:39:50 +00:00
irq.h arm64: Use irqchip_init() for interrupt controller initialisation 2013-03-26 16:02:23 +00:00
irqflags.h
kvm_arm.h arm64: KVM: EL2 register definitions 2013-06-07 14:03:32 +01:00
kvm_asm.h arm64: KVM: perform save/restore of PAR_EL1 2013-08-09 13:19:28 +01:00
kvm_coproc.h arm64: KVM: 32bit handling of coprocessor traps 2013-06-12 16:42:16 +01:00
kvm_emulate.h arm64: KVM: 32bit conditional execution emulation 2013-06-12 16:42:15 +01:00
kvm_host.h arm64: KVM: use 'int' instead of 'u32' for variable 'target' in kvm_host.h. 2013-08-09 13:42:43 +01:00
kvm_mmio.h arm64: KVM: MMIO access backend 2013-06-07 14:03:38 +01:00
kvm_mmu.h arm64: KVM: architecture specific MMU backend 2013-06-07 14:03:35 +01:00
kvm_psci.h arm64: KVM: PSCI implementation 2013-06-12 16:40:32 +01:00
linkage.h
memblock.h
memory.h arm64: KVM: define HYP and Stage-2 translation page flags 2013-06-07 14:03:31 +01:00
mmu.h
mmu_context.h arm64: mm: don't bother invalidating the icache in switch_mm 2013-06-07 18:00:11 +01:00
module.h
neon.h arm64: add support for kernel mode NEON 2013-08-20 12:12:26 +01:00
page.h
perf_event.h
pgalloc.h
pgtable-2level-hwdef.h
pgtable-2level-types.h ARM64: include: asm: include "asm/types.h" in "pgtable-2level-types.h" and "pgtable-3level-types.h" 2013-08-22 11:44:41 +01:00
pgtable-3level-hwdef.h
pgtable-3level-types.h ARM64: include: asm: include "asm/types.h" in "pgtable-2level-types.h" and "pgtable-3level-types.h" 2013-08-22 11:44:41 +01:00
pgtable-hwdef.h arm64: mm: permit use of tagged pointers at EL0 2013-09-03 10:18:02 +01:00
pgtable.h Main features: 2013-07-03 10:31:38 -07:00
pmu.h
proc-fns.h
processor.h
prom.h
psci.h
ptrace.h arm64: debug: consolidate software breakpoint handlers 2013-06-12 11:23:02 +01:00
shmparam.h
sigcontext.h
signal32.h
smp.h
smp_plat.h arm64: kernel: initialise cpu_logical_map from the DT 2013-03-20 17:26:24 +00:00
sparsemem.h
spinlock.h arm64: spinlock: retry trylock operation if strex fails on free lock 2013-06-07 17:58:31 +01:00
spinlock_types.h
stacktrace.h
stat.h
string.h arm64: klib: Optimised string functions 2013-03-21 17:39:30 +00:00
sync_bitops.h arm64/xen: introduce asm/xen header files on arm64 2013-06-07 10:39:45 +00:00
syscall.h
syscalls.h
system_misc.h arm64: use common reboot infrastructure 2013-07-19 15:57:08 +01:00
thread_info.h arm64: Change kernel stack size to 16K 2013-07-26 13:37:29 +01:00
timex.h arm64: kernel: compiling issue, need delete read_current_timer() 2013-06-10 17:58:20 +01:00
tlb.h Fix TLB gather virtual address range invalidation corner cases 2013-08-16 08:52:46 -07:00
tlbflush.h ARM64: mm: THP support. 2013-06-14 09:52:41 +01:00
traps.h
uaccess.h arm64: avoid multiple evaluation of ptr in get_user/put_user() 2013-09-25 16:42:21 +01:00
ucontext.h arm64: fix padding computation in struct ucontext 2013-03-18 10:42:16 +00:00
unistd.h
unistd32.h unify compat fanotify_mark(2), switch to COMPAT_SYSCALL_DEFINE 2013-05-09 13:46:38 -04:00
vdso.h
vdso_datapage.h
virt.h arm64: virt: ensure visibility of __boot_cpu_mode 2013-07-23 11:00:24 +01:00