]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
shared shadow vm object invalidation regression test
authorRyan Libby <rlibby@FreeBSD.org>
Wed, 7 Apr 2021 19:39:05 +0000 (12:39 -0700)
committerRyan Libby <rlibby@FreeBSD.org>
Wed, 7 Apr 2021 19:39:05 +0000 (12:39 -0700)
commit13d4f96130b64b42f74dfc484305b08c4da54669
treea5c2dd1432810c04f63c07d5c49e96f0506acd86
parent2b1d0c0087a907fe9944b96c6313711865f9674a
shared shadow vm object invalidation regression test

Add a regression test for a scenario where a shadow vm object is shared
by multiple mappings.  If a page COW occurs through one of the mappings,
then the virtual-to-physical mapping may become invalidated.

This tests the scenario from CVE-2021-29626 which was fixed by
982693bb729badac4e65ecd59772979f2849a2b2.

Reviewed by: markj
Sponsored by: Dell EMC Isilon
tests/sys/vm/Makefile
tests/sys/vm/shared_shadow_inval_test.c [new file with mode: 0644]