Re: [PATCH] scsi: target: Verify the iSCSI ISID is NUL-terminated

From: Yuanhe Shu

Date: Mon Oct 26 2026 - 08:52:37 EST


Sashiko is right. get_unaligned_be64() reads the first 8 bytes
unconditionally, and the NUL check alone does not bound that when
fewer than 8 bytes remain in the descriptor.

v2 requires 8 bytes to remain after the separator, in addition to
the NUL, so every consumer stays inside the descriptor.

v2: https://lore.kernel.org/r/20261026124138.2708365-1-xiangzao@xxxxxxxxxxxxxxxxx/

--
Yuanhe