Home Home > GIT Browse > SLE12-SP3-AZURE
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2018-07-04 12:03:42 +0200
committerTakashi Iwai <tiwai@suse.de>2018-07-04 12:03:42 +0200
commit4f56444b96ef91a8aace0723826b464e10472c47 (patch)
tree9da5469d9b4b728deeb6fb3175563fde7f9387e2
parent5db076844a903a5ca433835de8e590b894694abc (diff)
sched/sysctl: Check user input value of sysctl_sched_time_avg
(bsc#1100089). suse-commit: cc47d169bcc76c9a4ca5b7de46bf91d1b8b4359e
-rw-r--r--kernel/sysctl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index e26178671a9e..8922f823955c 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -364,7 +364,8 @@ static struct ctl_table kern_table[] = {
.data = &sysctl_sched_time_avg,
.maxlen = sizeof(unsigned int),
.mode = 0644,
- .proc_handler = proc_dointvec,
+ .proc_handler = proc_dointvec_minmax,
+ .extra1 = &one,
},
{
.procname = "sched_shares_window_ns",