freebsd-nq/sys
Mark Johnston 150d384e5c Fix a use-after-free in swp_pager_meta_free().
This was introduced in r326329 and explains the crashes mentioned in
the commit log message for r339934.  In particular, on INVARIANTS
kernels, UMA trashing causes the loop to exit early, leaving swap
blocks behind when they should have been freed.  After r336984 this
became more problematic since new anonymous mappings were more
likely to reuse swapped-out subranges of existing VM objects, so faults
would trigger pageins of freed memory rather than returning zeroed
pages.

Reviewed by:	kib
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D17897
2018-11-07 23:28:11 +00:00
..
amd64 Add the KUBSAN options to the arm64 and amd64 GENERIC kernel config files. 2018-11-06 17:47:58 +00:00
arm Add a KPI for the delay while spinning on a spin lock. 2018-11-05 21:34:17 +00:00
arm64 Drop the legacy ELF brandinfo for the old rtld from arm64 and riscv. 2018-11-07 18:28:55 +00:00
bsm
cam Only assert locked for many async events. 2018-11-05 18:47:29 +00:00
cddl 9952 Block size change during zfs receive drops spill block 2018-11-03 03:10:06 +00:00
compat Regen after r340221: allow pointer return types. 2018-11-07 16:56:07 +00:00
conf newvers.sh: avoid regenerating vers.c if content unchanged 2018-11-07 20:36:57 +00:00
contrib MFV: r339981 2018-11-02 22:50:13 +00:00
crypto rijndael (AES): Avoid leaking sensitive data on kernel stack 2018-10-26 20:53:01 +00:00
ddb ddb: Enable 'thread <address>' 2018-10-20 20:45:49 +00:00
dev Sometimes the complete split packet may be queued too early and the 2018-11-07 08:25:44 +00:00
dts Revert r339421 due to unintended files included to commit. 2018-10-18 15:17:58 +00:00
fs Change nfs_advlock() so that the NFSVOPUNLOCK() is mostly done at the end. 2018-11-06 22:50:50 +00:00
gdb
geom Revert r340187, it breaks EOD (end-of-device) detection logic. Turns out, 2018-11-07 16:28:09 +00:00
gnu
i386 Add a custom implementation of cpu_lock_delay() for x86. 2018-11-05 22:54:03 +00:00
isa Reapply, with minor tweaks, r338025, from the original commit: 2018-09-26 17:12:14 +00:00
kern Enable non-executable stacks by default on RISC-V. 2018-11-07 18:32:02 +00:00
kgssapi
libkern mcount: tidy up ANSIfication 2018-10-20 22:39:35 +00:00
mips Add a KPI for the delay while spinning on a spin lock. 2018-11-05 21:34:17 +00:00
modules Retire CLANG_NO_IAS34 2018-11-01 23:11:47 +00:00
net Fix rxcsum issue introduced in r338838 2018-11-07 19:31:48 +00:00
net80211
netgraph Make ng_pptpgre(8) netgraph node be able to restore order for packets 2018-11-04 19:10:44 +00:00
netinet Don't use a function when neither INET nor INET6 are defined. 2018-11-06 12:55:03 +00:00
netinet6 Remove redundant checks for a NULL lbgroup table. 2018-11-01 15:52:49 +00:00
netipsec Add sadb_x_sa2 extension to SADB_ACQUIRE requests. 2018-10-21 14:19:16 +00:00
netpfil pf: Fix build if INVARIANTS is not set 2018-11-02 19:23:50 +00:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed Introduce and use sgid_index in CM requests in ibcore. 2018-09-09 07:20:15 +00:00
opencrypto Add sha224 to the authctx union. 2018-10-23 18:07:37 +00:00
powerpc powerpc/atomic: Loosen the memory barrier on atomic_load_acq_*() 2018-11-07 01:42:00 +00:00
riscv Drop the legacy ELF brandinfo for the old rtld from arm64 and riscv. 2018-11-07 18:28:55 +00:00
rpc
security Add const to input-only char * arguments. 2018-11-02 20:50:22 +00:00
sparc64 Add a KPI for the delay while spinning on a spin lock. 2018-11-05 21:34:17 +00:00
sys Handle the DT_MIPS_RLD_MAP_REL dynamic tag in RTLD 2018-11-07 15:04:41 +00:00
teken Implement ECMA-48 "REP", some Linuxen have started emitting them recently. 2018-10-21 08:29:36 +00:00
tests
tools embed_mfs.sh: replace some compound statements with conventional ifs 2018-11-02 21:07:06 +00:00
ufs Make vop_symlink take a const target path. 2018-11-02 14:42:36 +00:00
vm Fix a use-after-free in swp_pager_meta_free(). 2018-11-07 23:28:11 +00:00
x86 Add a custom implementation of cpu_lock_delay() for x86. 2018-11-05 22:54:03 +00:00
xdr
xen xen: legacy PVH fixes for the new interrupt count 2018-09-13 07:14:11 +00:00
Makefile