Eric Dumazet f4f82c52a0 scsi: iscsi_tcp: restrict to TCP sockets
Nothing prevents iscsi_sw_tcp_conn_bind() to receive file descriptor
pointing to non TCP socket (af_unix for example).

Return -EINVAL if this is attempted, instead of crashing the kernel.

Fixes: 7ba247138907 ("[SCSI] open-iscsi/linux-iscsi-5 Initiator: Initiator code")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Lee Duncan <lduncan@suse.com>
Cc: Chris Leech <cleech@redhat.com>
Cc: Mike Christie <michael.christie@oracle.com>
Cc: "James E.J. Bottomley" <jejb@linux.ibm.com>
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
Cc: open-iscsi@googlegroups.com
Cc: linux-scsi@vger.kernel.org
Reviewed-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-09-17 17:46:13 +01:00
..
2023-04-26 16:07:23 -07:00
2023-04-27 11:53:57 -07:00
2023-04-27 16:36:55 -07:00
2023-09-05 12:37:28 -07:00
2023-09-09 12:01:33 -07:00
2023-09-02 08:25:19 +01:00
2023-05-31 19:59:26 -04:00
2023-09-02 08:25:19 +01:00
2023-09-02 08:25:19 +01:00
2023-09-02 08:25:19 +01:00
2023-05-26 13:52:19 -07:00
2023-04-18 23:01:23 -04:00
2022-06-27 22:56:21 -04:00
2022-02-22 21:11:02 -05:00
2023-09-09 12:01:33 -07:00
2022-05-08 14:28:18 -04:00
2023-09-09 12:01:33 -07:00
2023-04-27 11:53:57 -07:00
2021-12-22 23:41:13 -05:00
2023-06-30 11:57:07 -07:00
2023-05-31 11:36:40 -04:00