freebsd-dev/sys/powerpc/powerpc
Justin Hibbits 76ff03aef7 powerpc: Fix copyin/copyout race condition
It's possible for a context switch, and CPU migration, to occur between
fetching the PCPU context and extracting the pc_curpcb.  This can cause
the fault handler to be installed for the wrong thread, leading to a
panic in copyin()/copyout().  Since curthread is already in %r13, just
use that directly, as GPRs are migrated, so there is no migration race
risk.
2020-12-30 23:45:44 +01:00
..
altivec.c powerpc: Simplify _nodrop variants of FPU and vector register saves 2020-03-13 01:27:37 +00:00
autoconf.c
bus_machdep.c [PowerPC] bus_space cleanup part 2: Convert to c99 initializers. 2020-09-13 21:34:32 +00:00
busdma_machdep.c Refine the busdma template interface. Provide tools for filling in fields 2020-09-14 05:58:12 +00:00
clock.c [PowerPC] Implement VDSO timebase access on powerpc* 2020-09-08 03:00:31 +00:00
copyinout.c powerpc: Optimize copyinstr() to avoid repeatedly mapping user strings 2020-12-30 23:45:35 +01:00
cpu_subr64.S Add CFI start/end proc directives to arm64, i386, and ppc 2020-12-05 00:33:28 +00:00
cpu.c [PowerPC] Make PPC 970 PMC SPRs the standard ones 2020-11-05 14:15:50 +00:00
db_disasm.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
db_hwwatch.c
db_interface.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
db_trace.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
dump_machdep.c
elf32_machdep.c random(4) FenestrasX: Push root seed version to arc4random(3) 2020-10-10 21:52:00 +00:00
elf64_machdep.c random(4) FenestrasX: Push root seed version to arc4random(3) 2020-10-10 21:52:00 +00:00
elf_common.c [PowerPC] Make new auxv format default 2020-08-24 13:40:35 +00:00
exec_machdep.c [PowerPC] Floating-point exception trap followup 2020-12-13 03:58:43 +00:00
fpu.c [PowerPC] Floating-point exception trap followup 2020-12-13 03:58:43 +00:00
gdb_machdep.c [PPC] Handle qOffsets packet 2019-12-16 13:17:39 +00:00
genassym.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
in_cksum.c [PowerPC64LE] Use correct in_masks table on LE to fix checksumming 2020-09-15 20:47:33 +00:00
interrupt.c [PowerPC] Move pmc_hook out of critical section 2020-09-01 11:30:39 +00:00
intr_machdep.c [PowerPC] Add root_pic assertion. 2020-09-08 22:42:41 +00:00
iommu_if.m
machdep.c [PowerPC] More relocation fixes 2020-06-21 03:39:26 +00:00
mem.c Add the MEM_EXTRACT_PADDR ioctl to /dev/mem. 2020-09-02 18:12:47 +00:00
minidump_machdep.c Avoid dump_avail[] redefinition. 2020-10-14 22:51:40 +00:00
mp_machdep.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
nexus.c [PowerPC64LE] Bus space prep for LE 2020-09-13 21:22:39 +00:00
openpic.c [PowerPC] Remove unused openpic_set_priority(). 2020-09-01 01:57:56 +00:00
pic_if.m powerpc: Add opaque 'private data' to interrupt vectors 2019-01-12 22:05:42 +00:00
platform_if.m powerpc: Fix the NUMA domain list on powernv 2020-01-18 01:26:54 +00:00
platform.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
pmap_dispatch.c [PowerPC] Don't overwrite vm.pmap sysctl node 2020-11-17 11:36:31 +00:00
ptrace_machdep.c powerpc/ptrace: Give ptrace(2) access to SPE registers when available 2019-11-22 04:34:46 +00:00
sc_machdep.c sc(4) md bits: stop setting sc->kbd entirely 2019-12-30 02:07:55 +00:00
setjmp.S Add CFI start/end proc directives to arm64, i386, and ppc 2020-12-05 00:33:28 +00:00
sigcode32.S
sigcode64.S [PowerPC] Save a dword in the powerpc64 signal trampoline 2020-01-17 23:41:35 +00:00
stack_machdep.c Reimplement stack capture of running threads on i386 and amd64. 2020-01-31 15:43:33 +00:00
support.S powerpc: Fix copyin/copyout race condition 2020-12-30 23:45:44 +01:00
swtch32.S Add CFI start/end proc directives to arm64, i386, and ppc 2020-12-05 00:33:28 +00:00
swtch64.S Add CFI start/end proc directives to arm64, i386, and ppc 2020-12-05 00:33:28 +00:00
syncicache.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
sys_machdep.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
trap.c [POWERPC] print uprintf_signal 'type' field in hex 2020-11-20 18:52:37 +00:00
uio_machdep.c
uma_machdep.c Tidy up the #includes. Recent changes, such as the introduction of 2020-11-02 19:20:06 +00:00
vm_machdep.c amd64 KPTI: add control from procctl(2). 2019-03-16 11:44:33 +00:00