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 <fernandobouchet@gmail.com>
Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
fourteen
Sultan Alsawaf 4 years ago committed by Jenna
parent a704ba308e
commit 9bf77d7a45
  1. 4
      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);

Loading…
Cancel
Save