mirror of
https://github.com/opnsense/src.git
synced 2026-03-19 09:13:43 -04:00
Close a race involving the OEA64 scratchpage. When the scratch page's physical address is changed, there is a brief window during which its PTE is invalid. Since moea64_set_scratchpage_pa() does not and cannot hold the page table lock, it was possible for another CPU to insert a new PTE into the scratch page's PTEG slot during this interval, corrupting both mappings. Solve this by creating a new flag, LPTE_LOCKED, such that moea64_pte_insert will avoid claiming locked PTEG slots even if they are invalid. This change also incorporates some additional paranoia added to solve things I thought might be this bug. Reported by: linimon |
||
|---|---|---|
| .. | ||
| _bus.h | ||
| _inttypes.h | ||
| _limits.h | ||
| _stdint.h | ||
| _types.h | ||
| altivec.h | ||
| asm.h | ||
| atomic.h | ||
| bat.h | ||
| bootinfo.h | ||
| bus.h | ||
| bus_dma.h | ||
| clock.h | ||
| cpu.h | ||
| cpufunc.h | ||
| db_machdep.h | ||
| dbdma.h | ||
| elf.h | ||
| endian.h | ||
| exec.h | ||
| float.h | ||
| floatingpoint.h | ||
| fpu.h | ||
| frame.h | ||
| gdb_machdep.h | ||
| hid.h | ||
| ieee.h | ||
| ieeefp.h | ||
| in_cksum.h | ||
| intr.h | ||
| intr_machdep.h | ||
| kdb.h | ||
| limits.h | ||
| md_var.h | ||
| memdev.h | ||
| metadata.h | ||
| mmuvar.h | ||
| mutex.h | ||
| ocpbus.h | ||
| ofw_machdep.h | ||
| openpicreg.h | ||
| openpicvar.h | ||
| param.h | ||
| pcb.h | ||
| pcpu.h | ||
| pio.h | ||
| platform.h | ||
| platformvar.h | ||
| pmap.h | ||
| pmc_mdep.h | ||
| proc.h | ||
| profile.h | ||
| psl.h | ||
| pte.h | ||
| ptrace.h | ||
| reg.h | ||
| reloc.h | ||
| resource.h | ||
| runq.h | ||
| sc_machdep.h | ||
| setjmp.h | ||
| sf_buf.h | ||
| sigframe.h | ||
| signal.h | ||
| smp.h | ||
| spr.h | ||
| sr.h | ||
| stack.h | ||
| stdarg.h | ||
| sysarch.h | ||
| tlb.h | ||
| trap.h | ||
| trap_aim.h | ||
| trap_booke.h | ||
| ucontext.h | ||
| varargs.h | ||
| vm.h | ||
| vmparam.h | ||