Commit bedc8f7
cifs: always initialize struct msghdr smb_msg completely
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>1 parent 17d3df3 commit bedc8f7
2 files changed
Lines changed: 4 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
702 | 702 | | |
703 | 703 | | |
704 | 704 | | |
705 | | - | |
706 | | - | |
707 | | - | |
708 | 705 | | |
709 | 706 | | |
710 | 707 | | |
| |||
760 | 757 | | |
761 | 758 | | |
762 | 759 | | |
763 | | - | |
| 760 | + | |
764 | 761 | | |
765 | 762 | | |
766 | 763 | | |
| |||
770 | 767 | | |
771 | 768 | | |
772 | 769 | | |
773 | | - | |
| 770 | + | |
774 | 771 | | |
775 | 772 | | |
776 | 773 | | |
777 | 774 | | |
778 | 775 | | |
779 | 776 | | |
780 | | - | |
781 | | - | |
782 | 777 | | |
783 | 778 | | |
784 | 779 | | |
| |||
788 | 783 | | |
789 | 784 | | |
790 | 785 | | |
791 | | - | |
| 786 | + | |
792 | 787 | | |
793 | 788 | | |
794 | 789 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | 197 | | |
202 | 198 | | |
203 | 199 | | |
| |||
309 | 305 | | |
310 | 306 | | |
311 | 307 | | |
312 | | - | |
| 308 | + | |
313 | 309 | | |
314 | 310 | | |
315 | 311 | | |
| |||
0 commit comments