Stefan Metzmacher 8c8d0f7ac8 cifs: always initialize struct msghdr smb_msg completely
[ Upstream commit bedc8f76b3539ac4f952114b316bcc2251e808ce ]

So far we were just lucky because the uninitialized members
of struct msghdr are not used by default on a SOCK_STREAM tcp
socket.

But as new things like msg_ubuf and sg_from_iter where added
recently, we should play on the safe side and avoid potention
problems in future.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Cc: stable@vger.kernel.org
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-09-28 11:04:08 +02:00
..
2020-10-29 09:57:28 +01:00
2020-12-02 08:49:45 +01:00
2019-09-26 16:37:43 -05:00
2020-11-05 11:43:21 +01:00
2019-09-24 23:31:32 -05:00
2019-09-23 23:28:59 -05:00