Re: [PATCH] scsi: iscsi_tcp: restrict to TCP sockets

From: Mike Christie
Date: Fri Sep 15 2023 - 16:58:32 EST


On 9/15/23 12:11 PM, Eric Dumazet wrote:
> 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.
>

Reviewed-by: Mike Christie <michael.christie@xxxxxxxxxx>