From 9bf77d7a4552a45e78aa0b1d60e00dfc33caa518 Mon Sep 17 00:00:00 2001 From: Sultan Alsawaf Date: Fri, 13 Nov 2020 23:16:42 -0800 Subject: [PATCH] mm: vmpressure: Don't export tunables to userspace Userspace could change these tunables and make Simple LMK function poorly. Don't export them. Reported-by: attack11 Signed-off-by: Sultan Alsawaf --- mm/vmpressure.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/mm/vmpressure.c b/mm/vmpressure.c index 58b72c0322af..42e53afaf893 100755 --- a/mm/vmpressure.c +++ b/mm/vmpressure.c @@ -37,13 +37,9 @@ static const unsigned int vmpressure_level_med = 60; static const unsigned int vmpressure_level_critical = 95; static unsigned long vmpressure_scale_max = 100; -module_param_named(vmpressure_scale_max, vmpressure_scale_max, - ulong, 0644); /* vmpressure values >= this will be scaled based on allocstalls */ static unsigned long allocstall_threshold = 70; -module_param_named(allocstall_threshold, allocstall_threshold, - ulong, 0644); static struct vmpressure global_vmpressure; static BLOCKING_NOTIFIER_HEAD(vmpressure_notifier);