Prior to 15.0, when handling a new iSCSI connection request, ctld would validate the TargetName in a case-insensitive fashion. That's because port_find_in_pg used strcasecmp in stable/14. But ever since 15.0 (git 4b1aac931465f39c5c26bfa1d5539a428d340f20) the match has been case-sensitive instead. That change removed strcasecmp, replacing it by the C++ STL's find method on std::unordered_map. The change in behavior was unintentional Original discussion: https://lists.freebsd.org/archives/dev-commits-src-all/2026-April/071225.html .
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=eb837cb8b2073c09bafaf3318f5bb103827b2bca commit eb837cb8b2073c09bafaf3318f5bb103827b2bca Author: Johan Söllvander <js@FreeBSD.org> AuthorDate: 2026-04-24 07:44:43 +0000 Commit: Johan Söllvander <js@FreeBSD.org> CommitDate: 2026-04-24 07:44:43 +0000 ctld: normalize iSCSI TargetName on login Case-insensitive TargetName matching on logins was accidentally removed, let's fix that by normalizing TargetName again according to RFC 3722. PR: 294522 Fixes: 4b1aac931465f39c5c26bfa1d5539a428d340f20 Sponsored by: ConnectWise MFC after: 1 week Reviewed by: asomers, jhb Approved by: asomers (mentor) Differential Revision: https://reviews.freebsd.org/D56469 usr.sbin/ctld/login.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
A commit in branch stable/15 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=0baae6223a6350215d7b11264e59408362b15a19 commit 0baae6223a6350215d7b11264e59408362b15a19 Author: Johan Söllvander <js@FreeBSD.org> AuthorDate: 2026-04-24 07:44:43 +0000 Commit: Johan Söllvander <js@FreeBSD.org> CommitDate: 2026-05-01 05:52:40 +0000 ctld: normalize iSCSI TargetName on login Case-insensitive TargetName matching on logins was accidentally removed, let's fix that by normalizing TargetName again according to RFC 3722. PR: 294522 Fixes: 4b1aac931465f39c5c26bfa1d5539a428d340f20 Sponsored by: ConnectWise Reviewed by: asomers, jhb Approved by: asomers (mentor) Differential Revision: https://reviews.freebsd.org/D56469 (cherry picked from commit eb837cb8b2073c09bafaf3318f5bb103827b2bca) usr.sbin/ctld/login.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
A commit in branch releng/15.1 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=379805b29732c4160fbbd6d109e9a5a1585d8e6f commit 379805b29732c4160fbbd6d109e9a5a1585d8e6f Author: Johan Söllvander <js@FreeBSD.org> AuthorDate: 2026-04-24 07:44:43 +0000 Commit: Colin Percival <cperciva@FreeBSD.org> CommitDate: 2026-05-12 19:00:43 +0000 ctld: normalize iSCSI TargetName on login Case-insensitive TargetName matching on logins was accidentally removed, let's fix that by normalizing TargetName again according to RFC 3722. Approved by: re (cperciva) PR: 294522 Fixes: 4b1aac931465f39c5c26bfa1d5539a428d340f20 Sponsored by: ConnectWise Reviewed by: asomers, jhb Approved by: asomers (mentor) Differential Revision: https://reviews.freebsd.org/D56469 (cherry picked from commit eb837cb8b2073c09bafaf3318f5bb103827b2bca) (cherry picked from commit 0baae6223a6350215d7b11264e59408362b15a19) usr.sbin/ctld/login.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)