Author: pschweitzer
Date: Wed Sep 13 11:53:56 2017
New Revision: 75833
URL:
http://svn.reactos.org/svn/reactos?rev=75833&view=rev
Log:
[KMTESTS:MM]
Add a test that shows that MDLs issued by Cc for paging IOs are not in the correct state
(nor correctly allocated)
CORE-13769
Modified:
trunk/rostests/kmtests/ntos_mm/NtCreateSection_drv.c
Modified: trunk/rostests/kmtests/ntos_mm/NtCreateSection_drv.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/kmtests/ntos_mm/NtCreateS…
==============================================================================
--- trunk/rostests/kmtests/ntos_mm/NtCreateSection_drv.c [iso-8859-1] (original)
+++ trunk/rostests/kmtests/ntos_mm/NtCreateSection_drv.c [iso-8859-1] Wed Sep 13 11:53:56
2017
@@ -381,6 +381,14 @@
}
else
{
+ PMDL Mdl;
+
+ Mdl = Irp->MdlAddress;
+ ok(Mdl != NULL, "Null pointer for MDL!\n");
+ ok((Mdl->MdlFlags & MDL_PAGES_LOCKED) != 0, "MDL not
locked\n");
+ ok((Mdl->MdlFlags & MDL_SOURCE_IS_NONPAGED_POOL) == 0, "MDL
from non paged\n");
+ ok((Irp->Flags & IRP_PAGING_IO) != 0, "Non paging
IO\n");
+
Status = STATUS_SUCCESS;
}