mm-kfence-print-disabling-or-re-enabling-message.patch removed from -mm tree
The quilt patch titled
Subject: mm/kfence: print disabling or re-enabling message
has been removed from the -mm tree. Its filename was
mm-kfence-print-disabling-or-re-enabling-message.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Jackie Liu <[email protected]>
Subject: mm/kfence: print disabling or re-enabling message
Date: Wed, 18 May 2022 15:31:05 +0800
By printing information, we can friendly prompt the status change information of kfence by dmesg and record by syslog.
Also, set kfence_enabled to false only when needed.
Signed-off-by Jackie Liu <[email protected]>
Co-developed-by Marco Elver <[email protected]>
Signed-off-by Marco Elver <[email protected]>
Reviewed-by Marco Elver <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/kfence/core.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
mm/kfence/core.c renamed from mm/kfence/core.c~mm-kfence-print-disabling-or-re-enabling-message +5 -1
@@ -69,8 +69,11 @@ static int param_set_sample_interval(conif (ret <0 )return ret; -if (!num)/* Using 0 to indicate KFENCE is disabled. */ +/* Using 0 to indicate KFENCE is disabled. */ +if (!num &&READ_ONCE (kfence_enabled)) { +pr_info ("disabled\n" );WRITE_ONCE (kfence_enabled, false); + } *((unsigned long *)kp->arg) = num;
@@ -898,6 +901,7 @@ static int kfence_enable_late(void)WRITE_ONCE (kfence_enabled, true);queue_delayed_work (system_unbound_wq, &kfence_timer,0 ); +pr_info ("re-enabled\n" );return 0 ; }
_
Patches currently in -mm which might be from [email protected] are