kfence-zero-guard-page-after-out-of-bounds-access.patch removed from -mm tree
The patch titled
Subject: kfence: zero guard page after out-of-bounds access
has been removed from the -mm tree. Its filename was
kfence-zero-guard-page-after-out-of-bounds-access.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Marco Elver <[email protected]>
Subject: kfence: zero guard page after out-of-bounds access
After an out-of-bounds accesses, zero the guard page before re-protecting in kfence_guarded_free(). On one hand this helps make the failure mode of subsequent out-of-bounds accesses more deterministic, but could also prevent certain information leaks.
Signed-off-by Marco Elver <[email protected]>
Cc Dmitry Vyukov <[email protected]>
Cc Andrey Konovalov <[email protected]>
Cc Jann Horn <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/kfence/core.c | 1 + 1 file changed, 1 insertion(+)
mm/kfence/core.c renamed from mm/kfence/core.c~kfence-zero-guard-page-after-out-of-bounds-access +1 -0
@@ -372,6 +372,7 @@ static void kfence_guarded_free(void *ad/* Restore page protection if there was an OOB access. */ if (meta->unprotected_page) { +memzero_explicit ((void *)ALIGN_DOWN (meta->unprotected_page,PAGE_SIZE ),PAGE_SIZE );kfence_protect (meta->unprotected_page); meta->unprotected_page =0 ; }
_
Patches currently in -mm which might be from [email protected] are