Bug 545786 - tgtadm segfaults upon "tgtadm --mode connection --op delete"
Summary: tgtadm segfaults upon "tgtadm --mode connection --op delete"
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: scsi-target-utils
Version: 5.3
Hardware: x86_64
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Mike Christie
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On: 511002
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-09 11:32 UTC by RHEL Program Management
Modified: 2013-01-11 02:38 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-01-26 10:19:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2010:0067 0 normal SHIPPED_LIVE scsi-target-utils bug fix and enhancement update 2010-01-26 10:19:26 UTC

Description RHEL Program Management 2009-12-09 11:32:32 UTC
This bug has been copied from bug #511002 and has been proposed
to be backported to 5.4 z-stream (EUS).

Comment 7 michal novacek 2010-01-15 15:46:51 UTC
---scsi-target-utils-0.0-5.20080917snap.el5 

with ongoing i/o from the client.

$ tgt-admin --show
	Target 1: iqn.2001-04.com.dell-pe-sc1435-01-1
		System information:
			Driver: iscsi
			State: ready
		I_T nexus information:
			I_T nexus: 1
				Initiator: iqn.1994-05.com.redhat:b74171af9987
				Connection: 0
					IP Address: 192.168.122.152
	...
$ tgtadm --mode connection --op delete --tid=1 --sid=1 --cid=0
	Segmentation fault
$ tail /var/log/messages
	...
	Jan 15 09:56:17 dell-pe-sc1435-01 kernel: tgtd[23268]: segfault at 0000000000000000 rip 0000000000000000 rsp 00007fffe61a4178 error 14
	Jan 15 09:56:17 dell-pe-sc1435-01 tgtd: conn_close_force(197) close 1 0 
	Jan 15 09:56:17 dell-pe-sc1435-01 tgtd: conn_close(88) connection closed 0x12cb3d08 1 
	Jan 15 09:56:18 dell-pe-sc1435-01 kernel: tgtadm[26467]: segfault at 0000000002613040 rip 0000000000401eb0 rsp 00007fffa3c93a00 error 4



----scsi-target-utils-0.0-6.20091205snap.el5_4.1

with ongoing i/o on client

$ tgt-admin --show
	Target 1: iqn.2001-04.com.dell-pe-sc1435-01-1
		System information:
			Driver: iscsi
			State: ready
		I_T nexus information:
			I_T nexus: 1
				Initiator: iqn.1994-05.com.redhat:b74171af9987
				Connection: 0
					IP Address: 192.168.122.152
$ tgtadm --mode connection --op delete --tid=1 --sid=1 --cid=0
$ tgtadm --mode connection --op delete --tid=1 --sid=2 --cid=0
# tgt-admin --show
Target 1: iqn.2001-04.com.dell-pe-sc1435-01-5
    System information:
        Driver: iscsi
        State: ready
    I_T nexus information:
        I_T nexus: 3
            Initiator: iqn.1994-05.com.redhat:b74171af9987
            Connection: 0
                IP Address: 192.168.122.152
...
$ tail /var/log/messages 
Jan 15 10:40:26 dell-pe-sc1435-01 tgtd: conn_close_force(233) close 1 0 
Jan 15 10:40:26 dell-pe-sc1435-01 tgtd: conn_close(100) connection closed, 0x17edd198 1 
Jan 15 10:40:26 dell-pe-sc1435-01 tgtd: conn_close(106) sesson 0x17edd430 1 
Jan 15 10:40:55 dell-pe-sc1435-01 tgtd: conn_close_force(233) close 2 0 
Jan 15 10:40:55 dell-pe-sc1435-01 tgtd: conn_close(100) connection closed, 0x17edd198 1 
Jan 15 10:40:55 dell-pe-sc1435-01 tgtd: conn_close(106) sesson 0x17edd400 1 

on iscsi client, there is connection recovery:
$ tail /var/log/messages
Jan 15 16:41:14 localhost iscsid: conn 0 login rejected: initiator error - target not found (02/03)
Jan 15 16:42:51 localhost kernel:  connection1:0: detected conn error (1011)
Jan 15 16:42:52 localhost iscsid: Kernel reported iSCSI connection 1:0 error (1011) state (3)
Jan 15 16:42:55 localhost iscsid: connection1:0 is operational after recovery (1 attempts)
Jan 15 16:43:20 localhost kernel:  connection1:0: detected conn error (1011)
Jan 15 16:43:21 localhost iscsid: Kernel reported iSCSI connection 1:0 error (1011) state (3)
Jan 15 16:43:24 localhost iscsid: connection1:0 is operational after recovery (1 attempts)
...

Comment 9 errata-xmlrpc 2010-01-26 10:19:33 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2010-0067.html


Note You need to log in before you can comment on or make changes to this bug.