From: Eugene Crosser Date: Fri, 11 Dec 2015 11:27:50 +0000 (+0100) Subject: iucv: prevent information leak in iucv_message X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0506eb01f70bd4d7e999c11488a6a892e01c42e2;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git iucv: prevent information leak in iucv_message Initialize storage for the future IUCV header that will be included in the transmitted packet. Some of the header fields are unused with HiperSockets transport, and will contain data left from some other functions. Signed-off-by: Eugene Crosser Signed-off-by: Ursula Braun Reviewed-by: Thomas Richter Signed-off-by: David S. Miller --- diff --git a/net/iucv/af_iucv.c b/net/iucv/af_iucv.c index 3ea4c98d94dc..5bc473b01a00 100644 --- a/net/iucv/af_iucv.c +++ b/net/iucv/af_iucv.c @@ -1031,7 +1031,7 @@ static int iucv_sock_sendmsg(struct socket *sock, struct msghdr *msg, struct sock *sk = sock->sk; struct iucv_sock *iucv = iucv_sk(sk); struct sk_buff *skb; - struct iucv_message txmsg; + struct iucv_message txmsg = {0}; struct cmsghdr *cmsg; int cmsg_done; long timeo;