freebsd-dev/sys/mips/mips
Conrad Meyer 4ae224c663 Revert r240317 to prevent leaking pmap entries
Subsequent to r240317, kmem_free() was replaced with kva_free() (r254025).
kva_free() releases the KVA allocation for the mapped region, but no longer
clears the pmap (pagetable) entries.

An affected pmap_unmapdev operation would leave the still-pmap'd VA space
free for allocation by other KVA consumers.  However, this bug easily
avoided notice for ~7 years because most devices (1) never call
pmap_unmapdev and (2) on amd64, mostly fit within the DMAP and do not need
KVA allocations.  Other affected arch are less popular: i386, MIPS, and
PowerPC.  Arm64, arm32, and riscv are not affected.

Reported by:	Don Morris <dgmorris AT earthlink.net>
Submitted by:	Don Morris (amd64 part)
Reviewed by:	kib, markj, Don (!amd64 parts)
MFC after:	I don't intend to, but you might want to
Sponsored by:	Dell Isilon
Differential Revision:	https://reviews.freebsd.org/D25689
2020-07-16 23:29:26 +00:00
..
autoconf.c
bcopy.S
bus_space_generic.c Remove support for the now very old SiByte MIPS platform. It's not 2018-12-19 22:54:03 +00:00
busdma_machdep.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
cache_mipsNN.c
cache.c
cpu.c Print CPU informtion later in boot. 2020-05-20 21:16:54 +00:00
db_disasm.c
db_interface.c
db_trace.c
dump_machdep.c
elf_machdep.c [PowerPC][Book-E] Fix missing load base in elf_cpu_parse_dynamic(). 2020-03-18 02:58:18 +00:00
elf_trampoline.c Delete unneeded #include <sys/inflate.h> from sys/mips. 2019-05-23 05:17:18 +00:00
exception.S
fp.S
freebsd32_machdep.c Merge freebsd32_exec_setregs() into exec_setregs() on MIPS. 2020-05-20 19:51:39 +00:00
gdb_machdep.c
genassym.c Various fixes to TLS for MIPS. 2020-06-12 21:21:18 +00:00
in_cksum.c
inckern.S
intr_machdep.c
libkern_machdep.c
locore.S
machdep.c [PowerPC] More relocation fixes 2020-06-21 03:39:26 +00:00
mem.c
minidump_machdep.c Display the approximate space needed when a minidump fails due to lack 2019-06-30 03:14:04 +00:00
mips_pic.c
mp_machdep.c
mpboot.S
nexus.c
octeon_cop2_swtch.S
octeon_cop2.c
ofw_machdep.c
pm_machdep.c Various fixes to TLS for MIPS. 2020-06-12 21:21:18 +00:00
pmap.c Revert r240317 to prevent leaking pmap entries 2020-07-16 23:29:26 +00:00
ptrace_machdep.c Regularize my copyright notice 2019-12-04 16:56:11 +00:00
sc_machdep.c sc(4) md bits: stop setting sc->kbd entirely 2019-12-30 02:07:55 +00:00
stack_machdep.c Reimplement stack capture of running threads on i386 and amd64. 2020-01-31 15:43:33 +00:00
stdatomic.c
support.S copystr(9): Move to deprecate (attempt #2) 2020-05-25 16:40:48 +00:00
swtch.S Various fixes to TLS for MIPS. 2020-06-12 21:21:18 +00:00
sys_machdep.c Various fixes to TLS for MIPS. 2020-06-12 21:21:18 +00:00
tick.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
tlb.c [mips] remove check that is always false (unsinged < 0) 2019-01-25 19:58:56 +00:00
trap.c Various fixes to TLS for MIPS. 2020-06-12 21:21:18 +00:00
uio_machdep.c
uma_machdep.c
vm_machdep.c Various fixes to TLS for MIPS. 2020-06-12 21:21:18 +00:00