Page MenuHomeFreeBSD

Avoid locking, manipulating vm_map for bogus address lookup
Changes PlannedPublic

Authored by dougm on Jun 8 2019, 9:10 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 20 2023, 2:53 AM
Unknown Object (File)
Sep 11 2023, 4:55 AM
Unknown Object (File)
Aug 27 2023, 6:58 AM
Unknown Object (File)
Jun 4 2023, 5:44 PM
Subscribers
None

Details

Reviewers
alc
kib
markj
Summary

vm_map_lookup is sometimes called with a vaddr argument outside the bounds of the vm_map. Detect that, and return KERN_INVALID_ADDRESS, without locking and altering the map.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

This revision is now accepted and ready to land.Jun 8 2019, 9:20 PM

alc has demanded evidence that this test will be triggered in enough cases to justify its cost, so it will sit here until I can present such evidence.