projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3292739
)
net/sysctl: use cpumask_parse in flow_limit_cpu_sysctl
author
Christoph Hellwig
<hch@lst.de>
Wed, 3 Jun 2020 05:52:34 +0000
(07:52 +0200)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Mon, 8 Jun 2020 14:13:56 +0000
(10:13 -0400)
cpumask_parse_user works on __user pointers, so this is wrong now.
Fixes: 32927393dc1c ("sysctl: pass kernel pointers to ->proc_handler")
Reported-by: build test robot <lkp@intel.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
net/core/sysctl_net_core.c
patch
|
blob
|
history
diff --git
a/net/core/sysctl_net_core.c
b/net/core/sysctl_net_core.c
index 0ddb13a6282b009f3e229bc1a5f64fe740a163a1..d14d049af52ae759dbec05d44c234e0c244b3727 100644
(file)
--- a/
net/core/sysctl_net_core.c
+++ b/
net/core/sysctl_net_core.c
@@
-126,7
+126,7
@@
static int flow_limit_cpu_sysctl(struct ctl_table *table, int write,
return -ENOMEM;
if (write) {
- ret = cpumask_parse
_user(buffer, *lenp
, mask);
+ ret = cpumask_parse
(buffer
, mask);
if (ret)
goto done;