summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2008-02-24 18:03:56 +0000
committeralc <alc@FreeBSD.org>2008-02-24 18:03:56 +0000
commitc69581f28f1b37e64e8db470518170a857d59199 (patch)
treebf88a6f3148e00e3e78d7f29806699b3ff5a8843 /usr.bin
parent9ba4f3d00623bf0256e4a363444823519f9fb8b1 (diff)
downloadFreeBSD-src-c69581f28f1b37e64e8db470518170a857d59199.zip
FreeBSD-src-c69581f28f1b37e64e8db470518170a857d59199.tar.gz
Correct a long-standing error in vm_object_deallocate(). Specifically,
only anonymous default (OBJT_DEFAULT) and swap (OBJT_SWAP) objects should ever have OBJ_ONEMAPPING set. However, vm_object_deallocate() was setting it on device (OBJT_DEVICE) objects. As a result, vm_object_page_remove() could be called on a device object and if that occurred pmap_remove_all() would be called on the device object's pages. However, a device object's pages are fictitious, and fictitious pages do not have an initialized pv list (struct md_page). To date, fictitious pages have been allocated from zeroed memory, effectively hiding this problem. Now, however, the conversion of rotting diagnostics to invariants in the amd64 and i386 pmaps has revealed the problem. Specifically, assertion failures have occurred during the initialization phase of the X server on some hardware. MFC after: 1 week Discussed with: Kostik Belousov Reported by: Michiel Boland
Diffstat (limited to 'usr.bin')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud