summaryrefslogtreecommitdiffstats
path: root/sys/arm/include
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2016-06-21 17:49:33 +0000
committerkib <kib@FreeBSD.org>2016-06-21 17:49:33 +0000
commit907f8ff806f5029a8d6bf65516539742dff59ddb (patch)
treeaae128bb7be590a4e5932a9f3331886af64947a3 /sys/arm/include
parent1f3d721c13e4003f60d682bc7ea691711c4b8f70 (diff)
downloadFreeBSD-src-907f8ff806f5029a8d6bf65516539742dff59ddb.zip
FreeBSD-src-907f8ff806f5029a8d6bf65516539742dff59ddb.tar.gz
The vmtotal sysctl handler marks active vm objects to calculate
statistics. Marking is done by setting the OBJ_ACTIVE flag. The flags change is locked, but the problem is that many parts of system assume that vm object initialization ensures that no other code could change the object, and thus performed lockless. The end result is corrupted flags in vm objects, most visible is spurious OBJ_DEAD flag, causing random hangs. Avoid the active object marking, instead provide equally inexact but immutable is_object_alive() definition for the object mapped state. Avoid iterating over the processes mappings altogether by using arguably improved definition of the paging thread as one which sleeps on the v_free_count. PR: 204764 Diagnosed by: pho Tested by: pho (previous version) Reviewed by: alc Sponsored by: The FreeBSD Foundation MFC after: 1 week Approved by: re (gjb)
Diffstat (limited to 'sys/arm/include')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud