aboutsummaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorMathias Krause <[email protected]>2012-08-15 11:31:56 +0000
committerDavid S. Miller <[email protected]>2012-08-15 21:36:31 -0700
commit2d8a041b7bfe1097af21441cb77d6af95f4f4680 (patch)
tree5196f6e5691d8de3915bbb11ed84dd54ca6302c8 /net/unix/af_unix.c
parent7b07f8eb75aa3097cdfd4f6eac3da49db787381d (diff)
ipvs: fix info leak in getsockopt(IP_VS_SO_GET_TIMEOUT)
If at least one of CONFIG_IP_VS_PROTO_TCP or CONFIG_IP_VS_PROTO_UDP is not set, __ip_vs_get_timeouts() does not fully initialize the structure that gets copied to userland and that for leaks up to 12 bytes of kernel stack. Add an explicit memset(0) before passing the structure to __ip_vs_get_timeouts() to avoid the info leak. Signed-off-by: Mathias Krause <[email protected]> Cc: Wensong Zhang <[email protected]> Cc: Simon Horman <[email protected]> Cc: Julian Anastasov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions