Re: [PATCH v2] net: fix uninit value error in __sys_sendmmsg

2020-09-14 Thread Anant Thazhemadam
On 13/09/20 4:33 pm, Anant Thazhemadam wrote: > The crash report indicated that there was a local variable; > iovstack.i@__sys_sendmmsg created at: > ___sys_sendmsg net/socket.c:2388 [inline] > __sys_sendmmsg+0x6db/0xc90 net/socket.c:2480 > > that was left uninitialized. > > Initializing t

Re: [PATCH v2] net: fix uninit value error in __sys_sendmmsg

2020-09-13 Thread David Miller
From: Anant Thazhemadam Date: Sun, 13 Sep 2020 16:33:13 +0530 > diff --git a/net/socket.c b/net/socket.c > index 0c0144604f81..1e6f9b54982c 100644 > --- a/net/socket.c > +++ b/net/socket.c > @@ -2398,6 +2398,7 @@ static int ___sys_sendmsg(struct socket *sock, struct > user_msghdr __user *msg, >

[PATCH v2] net: fix uninit value error in __sys_sendmmsg

2020-09-13 Thread Anant Thazhemadam
The crash report indicated that there was a local variable; iovstack.i@__sys_sendmmsg created at: ___sys_sendmsg net/socket.c:2388 [inline] __sys_sendmmsg+0x6db/0xc90 net/socket.c:2480 that was left uninitialized. Initializing this stack to 0s prevents this bug from happening. Since the me