Re: [PATCH] sysctl: don't read uninit memory in deprecated_sysctl_warning()

2017-06-29 Thread Andrew Morton
On Wed, 28 Jun 2017 17:00:37 +0200 Alexander Potapenko wrote: > Don't attempt to read the first two elements of name[] unless they > were actually copied from the userspace. > > This bug has been detected by KMSAN. Thanks. I already have the identical http://ozlabs.org/~akpm/mmots/broken-out/

[PATCH] sysctl: don't read uninit memory in deprecated_sysctl_warning()

2017-06-28 Thread Alexander Potapenko
Don't attempt to read the first two elements of name[] unless they were actually copied from the userspace. This bug has been detected by KMSAN. Signed-off-by: Alexander Potapenko --- kernel/sysctl_binary.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sysctl_binary