Re: [PATCH] IB/isert: reject login PDUs shorter than ISER_HEADERS_LEN

From: Jason Gunthorpe

Date: Fri Jun 05 2026 - 12:36:48 EST


On Tue, Jun 02, 2026 at 03:46:42PM -0400, Michael Bommarito wrote:
> @@ -1383,6 +1383,12 @@ isert_login_recv_done(struct ib_cq *cq, struct ib_wc *wc)
> ib_dma_sync_single_for_cpu(ib_dev, isert_conn->login_desc->dma_addr,
> ISER_RX_SIZE, DMA_FROM_DEVICE);
>
> + if (unlikely(wc->byte_len < ISER_HEADERS_LEN)) {
> + isert_err("login request length %u is too short\n",
> + wc->byte_len);
> + return;

I changed this to isert_dbg() since we don't want pre-auth log DOS
either.. Applied to for-rc

Thanks,
Jason