Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 906242

Summary: qla4xxx: iscsiadm crashes during discovery if module has not been loaded
Product: Red Hat Enterprise Linux 6 Reporter: Bruno Goncalves <bgoncalv>
Component: iscsi-initiator-utilsAssignee: Chris Leech <cleech>
Status: CLOSED ERRATA QA Contact: Martin Hoyer <mhoyer>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4CC: agrover, cleech, coughlan
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: iscsi-initiator-utiliscsi-initiator-utils-6.2.0.873-15.el6s-6.2.0.873-15.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1040343 (view as bug list) Environment:
Last Closed: 2016-05-10 21:23:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1040343, 1268411    

Description Bruno Goncalves 2013-01-31 09:52:20 UTC
Description of problem:
iscsiadm is not able to discovery target portal using qla4xxx interface if the module is not loaded.

It crashes when qla4xxx module is being loaded.

iscsi: registered transport (qla4xxx)
qla4xxx 0000:05:04.1: PCI INT B -> GSI 107 (level, low) -> IRQ 107
qla4xxx 0000:05:04.1: Found an ISP4022, irq 107, iobase 0xffffc9000037c000
scsi5 : qla4xxx
qla4xxx 0000:05:04.1: Configuring PCI space...
qla4xxx 0000:05:04.1: Configuring PCI space...
qla4xxx 0000:05:04.1: Configuring NVRAM ...
qla4xxx 0000:05:04.1: Starting firmware ...
qla4xxx 0000:05:04.1: 5 firmware IOCBs available (224).
qla4xxx 0000:05:04.1: Initializing firmware..
qla4xxx 0000:05:04.1: qla4xxx_isr_decode_mailbox: LINK UP
scsi5: AEN 8029, mbox_sts[2]=0003, mbox_sts[3]=0005
qla4xxx 0000:05:04.1: 5 firmware IOCBs available (224).
qla4xxx 0000:05:04.1: qla4xxx_request_irqs: irq 107 attached
 QLogic iSCSI HBA Driver version: 5.03.00.00.06.04-k2
  QLogic ISP4022 @ 0000:05:04.1, host#=5, fw=03.00.01.53
qla4xxx 0000:05:04.1: get_fw_boot_info: Get FW boot info for 0x4022 func 1
qla4xxx 0000:05:04.1: qla4xxx_probe_adapter: No iSCSI boot target configured
qla4xxx 0000:05:04.1: qla4xxx_get_fwddb_entry: DDB[0] MB0 4000 Tot 0 Next 0 State 0000 ConnErr 00000000 0.0.0.0 :3260 ""
qla4xxx 0000:05:04.1: qla4xxx_get_fwddb_entry: DDB[0] MB0 4000 Tot 0 Next 0 State 0000 ConnErr 00000000 0.0.0.0 :3260 ""
QLogic iSCSI HBA Driver
iscsiadm[2662]: segfault at 48 ip 0000000000422ba2 sp 00007fffa0ba30e0 error 4
qla4xxx 0000:05:04.1: qla4xxx_get_fwddb_entry: DDB[0] MB0 4000 Tot 1 Next 0 State 0002 ConnErr 00000000 10.16.41.222 :3260 ""
 in iscsiadm[400000+65000]
qla4xxx 0000:05:04.1: scsi5: qla4xxx_unblock_ddb: ddb[0] unblock user space session



Version-Release number of selected component (if applicable):
rpm -q iscsi-initiator-utils
iscsi-initiator-utils-6.2.0.873-2.el6.x86_64

uname -r
2.6.32-356.el6.x86_64

modinfo qla4xxx
filename:       /lib/modules/2.6.32-356.el6.x86_64/kernel/drivers/scsi/qla4xxx/qla4xxx.ko
version:        5.03.00.00.06.04-k2

How reproducible:
100%

Steps to Reproduce:
1. iscsiadm -m iface
default tcp,<empty>,<empty>,<empty>,<empty>
iser iser,<empty>,<empty>,<empty>,<empty>
qla4xxx.00:c0:dd:08:76:18.ipv4.0 qla4xxx,00:c0:dd:08:76:18,<empty>,<empty>,<empty>

2. rmmod qla4xxx

3. iscsiadm -m discovery -I qla4xxx.00:c0:dd:08:76:18.ipv4.0 -p na3170b.lab.bos.redhat.com -t st
Starting iscsid:                                           [  OK  ]
iscsiadm: Host5: Link Up.

Segmentation fault (core dumped)

Comment 1 Bruno Goncalves 2013-01-31 10:18:38 UTC
It is not a regression as it was also reproduced on RHEL6.3

iscsi-initiator-utils-6.2.0.872-41.el6.x86_64

modinfo qla4xxx
filename:       /lib/modules/2.6.32-279.el6.x86_64/kernel/drivers/scsi/qla4xxx/qla4xxx.ko
version:        5.02.00.00.06.03-k4

Comment 2 RHEL Program Management 2013-02-04 06:47:48 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 4 RHEL Program Management 2013-10-14 04:20:18 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 6 Chris Leech 2015-10-28 23:51:02 UTC
should be the same as bz 1040343 which was fixed for el7

Comment 9 Martin Hoyer 2015-12-16 13:33:35 UTC
Not reproducible anymore with iscsi-initiator-utils-6.2.0.873-15.el6

Comment 11 errata-xmlrpc 2016-05-10 21:23:40 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-0833.html