Commit 8a23cd2d authored by Maitreya29's avatar Maitreya29 Committed by arnavpuranik
Browse files

{net, kernel}: Guard proc_dointvec_minmax_bpf_restricted and nuke void *priv from cpuset_fork

parent 27c32884
......@@ -2159,7 +2159,7 @@ static void cpuset_bind(struct cgroup_subsys_state *root_css)
* which could have been changed by cpuset just after it inherits the
* state from the parent and before it sits on the cgroup's task list.
void cpuset_fork(struct task_struct *task, void *priv)
void cpuset_fork(struct task_struct *task)
if (task_css_is_root(task, cpuset_cgrp_id))
......@@ -255,6 +255,7 @@ static int proc_dointvec_minmax_bpf_enable(struct ctl_table *table, int write,
return ret;
static int
proc_dointvec_minmax_bpf_restricted(struct ctl_table *table, int write,
void __user *buffer, size_t *lenp,
......@@ -265,6 +266,7 @@ proc_dointvec_minmax_bpf_restricted(struct ctl_table *table, int write,
return proc_dointvec_minmax(table, write, buffer, lenp, ppos);
# endif
static int
proc_dolongvec_minmax_bpf_restricted(struct ctl_table *table, int write,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment