net: llc: use correct size for sysctl timeout entries
authorSasha Levin <sasha.levin@oracle.com>
Sat, 24 Jan 2015 01:47:00 +0000 (20:47 -0500)
committerDanny Wood <danwood76@gmail.com>
Tue, 29 Jan 2019 13:07:48 +0000 (13:07 +0000)
commit8c35b1bea8a6239d2df4b6c83ab6bef5bbba11e2
treed56dee6c7cb41fbdd500ec0680571e80f5c5b71d
parent146b325abb4e71533e6dbaa4a867a858aba2d5d8
net: llc: use correct size for sysctl timeout entries

commit 6b8d9117ccb4f81b1244aafa7bc70ef8fa45fc49 upstream.

The timeout entries are sizeof(int) rather than sizeof(long), which
means that when they were getting read we'd also leak kernel memory
to userspace along with the timeout values.

Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/llc/sysctl_net_llc.c