freebsd-dev/sys
Mark Johnston 70e68b19a4 Handle trashed queue pointers in vm_page_acquire_unlocked().
vm_page_acquire_unlocked() relies on type-stability of vm_page
structures and assumes that the listq linkage pointers always point to a
vm_page or are NULL.  QUEUE_MACRO_DEBUG_TRASH breaks that assumption, so
add an explicit check for a trashed queue pointer before dereferencing.

Reported and tested by:	pho
Reviewed by:	kib
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D24472
2020-04-20 14:45:17 +00:00
..
amd64 vmm(4): Bump VM_MAX_MEMMAPS for vmgenid 2020-04-19 23:53:47 +00:00
arm Convert arm's physmem interface to MI code 2020-04-19 00:12:30 +00:00
arm64 Convert arm's physmem interface to MI code 2020-04-19 00:12:30 +00:00
bsm vfs: add realpathat syscall 2020-02-20 16:58:19 +00:00
cam Don't try to copyout() to a kernel buffer. 2020-04-17 18:19:13 +00:00
cddl Make ZFS depend on xdr.ko only. It doesn't need kernel RPC. 2020-04-17 06:05:08 +00:00
compat Implement aligned LinuxKPI types for u16, u32 and u64. 2020-04-20 14:03:05 +00:00
conf RISC-V: use physmem to manage physical memory 2020-04-19 00:18:16 +00:00
contrib Convert ipfilter to the new routing KPI. 2020-04-19 17:01:17 +00:00
crypto Use crypto_contiguous_subsegment(). 2020-04-15 21:05:38 +00:00
ddb Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
dev snd_hda: whitespace and style(9) cleanups 2020-04-19 17:53:44 +00:00
dts allwinner: aw_thermal: Cope with DTS changes 2020-04-14 19:05:17 +00:00
fs Replace all instances of the typedef mbuf_t with "struct mbuf *". 2020-04-17 21:17:51 +00:00
gdb Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
geom Mark eli_metadata_crypto_supported inline. 2020-04-15 18:27:28 +00:00
gnu dts: Import DTS from Linux 5.6 2020-04-14 18:57:00 +00:00
i386 Convert canary, execpathp, and pagesizes to pointers. 2020-04-16 21:53:17 +00:00
isa sc(4) md bits: stop setting sc->kbd entirely 2019-12-30 02:07:55 +00:00
kern Convert arm's physmem interface to MI code 2020-04-19 00:12:30 +00:00
kgssapi Remove support for Kernel GSS algorithms deprecated in r348875. 2020-04-10 23:08:41 +00:00
libkern Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
mips Use the right type for 64-bit coprocessor registers. 2020-04-17 18:24:47 +00:00
modules More fixes to build the kernel with a compiler that defaults to -fno-common 2020-04-18 12:54:40 +00:00
net bridge: Simplify mac address generation 2020-04-18 08:00:58 +00:00
net80211 Fix -Wvoid-pointer-to-enum-cast warnings. 2020-04-15 18:15:58 +00:00
netgraph Substitute le_read_supported_status with le_read_supported_states. 2020-04-20 13:44:14 +00:00
netinet Avoid calling protocol drain routines more than once per reclamation event. 2020-04-16 20:17:24 +00:00
netinet6 Fix lookup key generation in fib6_check_urpf(). 2020-04-19 07:27:12 +00:00
netipsec Refactor driver and consumer interfaces for OCF (in-kernel crypto). 2020-03-27 18:25:23 +00:00
netpfil pf: Improve ioctl() input validation 2020-04-19 16:10:20 +00:00
netsmb Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
nfs Re-organize the NFS file handle affinity code for the NFS server. 2020-04-14 00:01:26 +00:00
nfsclient
nfsserver
nlm Remove the old NFS lock device driver that uses Giant. 2020-04-09 14:44:46 +00:00
ofed Convert OFED rtable interactions to the new routing KPI. 2020-04-15 13:06:55 +00:00
opencrypto Avoid checking pointers that are never NULL. 2020-04-02 17:22:16 +00:00
powerpc Convert canary, execpathp, and pagesizes to pointers. 2020-04-16 21:53:17 +00:00
riscv RISC-V: provide the correct value for kernstart 2020-04-19 00:34:49 +00:00
rpc Split XDR into separate kernel module. Make krpc depend on xdr. 2020-04-17 06:04:20 +00:00
security audit_canon_path_vp: don't panic if cdir == NULL 2020-04-17 02:09:31 +00:00
sys Convert arm's physmem interface to MI code 2020-04-19 00:12:30 +00:00
teken
tests Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
tools vfs: stop null checking routines in vop wrappers 2020-01-26 00:41:38 +00:00
ufs ufs: apply suspension for non-forced rw unmounts. 2020-04-10 01:24:16 +00:00
vm Handle trashed queue pointers in vm_page_acquire_unlocked(). 2020-04-20 14:45:17 +00:00
x86 Improve TSC calibration logic. 2020-04-15 22:28:51 +00:00
xdr Split XDR into separate kernel module. Make krpc depend on xdr. 2020-04-17 06:04:20 +00:00
xen Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (16 of many) 2020-02-25 19:04:39 +00:00
Makefile Remove sparc64 kernel support 2020-02-03 17:35:11 +00:00