From 20bd5e8a9c072db7f1ddcca5e083414cbb8c5a09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Fri, 16 Aug 2024 09:07:14 +0200 Subject: [PATCH] [NTOS:MM] Allow not providing MMDBG_COPY_UNSAFE in MmDbgCopyMemory Replace an assert by a log, as this works most of the times. --- ntoskrnl/mm/ARM3/mmdbg.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ntoskrnl/mm/ARM3/mmdbg.c b/ntoskrnl/mm/ARM3/mmdbg.c index c47b8cfe156..316b43e1df8 100644 --- a/ntoskrnl/mm/ARM3/mmdbg.c +++ b/ntoskrnl/mm/ARM3/mmdbg.c @@ -132,7 +132,15 @@ MmDbgCopyMemory(IN ULONG64 Address, PVOID CopyDestination, CopySource; /* No local kernel debugging support yet, so don't worry about locking */ - ASSERT(Flags & MMDBG_COPY_UNSAFE); + if (!(Flags & MMDBG_COPY_UNSAFE)) + { + static BOOLEAN Warned = FALSE; + if (!Warned) + { + KdpDprintf("MmDbgCopyMemory: not providing MMDBG_COPY_UNSAFE is UNIMPLEMENTED\n"); + Warned = TRUE; + } + } /* We only handle 1, 2, 4 and 8 byte requests */ if ((Size != 1) &&