From owner-freebsd-standards@FreeBSD.ORG Thu Jan 3 13:20:00 2013 Return-Path: Delivered-To: freebsd-standards@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id D95937E6 for ; Thu, 3 Jan 2013 13:20:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id BD3A07DF for ; Thu, 3 Jan 2013 13:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id r03DK0fW047925 for ; Thu, 3 Jan 2013 13:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id r03DK0c8047921; Thu, 3 Jan 2013 13:20:00 GMT (envelope-from gnats) Resent-Date: Thu, 3 Jan 2013 13:20:00 GMT Resent-Message-Id: <201301031320.r03DK0c8047921@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-standards@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Asiris Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id CF9E4692 for ; Thu, 3 Jan 2013 13:16:13 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id C19027B3 for ; Thu, 3 Jan 2013 13:16:13 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r03DGD8O054349 for ; Thu, 3 Jan 2013 13:16:13 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r03DGDRv054348; Thu, 3 Jan 2013 13:16:13 GMT (envelope-from nobody) Message-Id: <201301031316.r03DGDRv054348@red.freebsd.org> Date: Thu, 3 Jan 2013 13:16:13 GMT From: Asiris To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: standards/174938: Problem statement: iSCSI target failure X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2013 13:20:00 -0000 >Number: 174938 >Category: standards >Synopsis: Problem statement: iSCSI target failure >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-standards >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jan 03 13:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Asiris >Release: NAS4Free 9.1.0.1 (revision 531) >Organization: Disc Soft Ltd >Environment: FreeBSD nas4free.local 9.1-RC3 FreeBSD 9.1-RC3 #0 r243187M: Sat Nov 17 21:59:26 JST 2012 root@nas4free.local:/usr/obj/nas4free/usr/src/sys/NAS4FREE-amd64 amd64 >Description: Problem statement: iSCSI target failure Conditions: - FreeNAS 0.7.2 (or/and NAS4Free 9.1.0.1 (revision 531) behaves the same way) - iSCSI target: istgt - the DVD-ROM target created with istgt - the iSCSI initiator creates the session with istgt target - the iSCSI initiator claims the MaxRecvDataSegmentLength=8192 while the session parameter negotiation stage - the iSCSI initiator issues the SET MODE(10) SCSI command with allocation length 0xFFF0 bytes - the istgt immideately aborts the TCP connection (sends FIN) - the istgt logfile contains the messages: freenas istgt[1365]: istgt_lu_dvd.c:3339:istgt_lu_dvd_execute: ***ERROR*** data_alloc_len(8192) too small freenas istgt[1365]: istgt_lu.c:2283:istgt_lu_execute: ***ERROR*** LU2: lu_dvd_execute() failed freenas istgt[1365]: istgt_iscsi.c:3118:istgt_iscsi_op_scsi: ***ERROR*** lu_execute() failed freenas istgt[1365]: istgt_iscsi.c:4400:istgt_iscsi_execute: ***ERROR*** iscsi_op_scsi() failed If the iSCSI initiator claims the MaxRecvDataSegmentLength=65536, the problem disappears. But the small iSCSI segments is not acceptable at all for some iSCSI initiators (e.g. embedded systems with limited amount of memory). >How-To-Repeat: Use embedded systems with limited amount of memory, or simulate MaxRecvDataSegmentLength=8192 >Fix: It is necessary to define at whom the buffer less, and to use with a smaller size >Release-Note: >Audit-Trail: >Unformatted: