Bug 28637 - crashes in iscsiadm
Summary: crashes in iscsiadm
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 8
Hardware: All Linux
Priority: Normal critical
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA8-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2021-03-24 15:12 CET by Nicolas Lécureuil
Modified: 2021-04-12 22:02 CEST (History)
3 users (show)

See Also:
Source RPM: open-iscsi-2.1.3-872.20.mga8.src.rpm
CVE:
Status comment:


Attachments

Description Nicolas Lécureuil 2021-03-24 15:12:26 CET
crashes in iscsiadm


kernel: iscsiadm[745769]: segfault at 1004355 ip 0000000000405190 sp 00007ffe452c03a0 error 4 in iscsiadm[404000+3f000]
kernel: Code: 43 08 48 89 18 e8 a0 f7 ff ff 48 89 df 48 8d 84 24 e0 00 00 00 48 8b 1b 48 39 c7 75 dd 48 8b 9c 24 f0 00 00 00 4c 39 f3 74 2d <48> 8b 13 48 8b 43 08 48 89 df 48 89 42 08 48 89 10 48 c7 43 08 00
kernel: audit: type=1701 audit(1616425233.553:2058): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=745769 comm="iscsiadm" exe="/usr/sbin/iscsiadm" sig=11 res=1
libvirtd[745699]: internal error: Child process (/usr/sbin/iscsiadm --mode node --portal 10.0.0.1:3260,1 --target iqn.2021-03.com.example:nas:lun --op update --name node.session.auth.authmethod --value CHAP) unexpected fatal signal 11
libvirtd[745699]: internal error: Failed to update 'node.session.auth.authmethod' of node mode for target 'iqn.2021-03.com.example:nas:lun'
libvirtd[745699]: End of file while reading data: Input/output error
Comment 1 Nicolas Lécureuil 2021-03-24 15:13:10 CET
reported on irc by rtp.

Assignee: bugsquad => qa-bugs

Comment 2 Nicolas Lécureuil 2021-03-24 15:13:49 CET
fixed package pushed in mga8:

src:
    - open-iscsi-2.1.3-872.20.1.mga8
Comment 4 Thomas Andrews 2021-04-09 16:13:44 CEST
Reaching all the way back to Mageia 3 and bug 10527 for a testing procedure on this one, modified a bit, since from appearances that was from the time when Mageia was shifting over to systemd, and some of Claire's commands were "redirected."

Got a list of packages from http://madb.mageia.org/tools/listRpmsForQaBug/bugnum/28637/application/0 Fortunately, there was one there. (That isn't always the case)

Installed the current packages in a virtualbox guest, started the service, tried a few options for the iscsiadm command. No crashes, but everything but the -h option referred me to the -h option. Clearly, I am out of my depth to try to reproduce the crash.

Stopped the service, rebooted just on general principles, then repeated my version of Claire's test:

# systemctl status open-iscsi
● open-iscsi.service - Open iSCSI Daemon
     Loaded: loaded (/usr/lib/systemd/system/open-iscsi.service; disabled; vendor preset: >
     Active: inactive (dead)
# systemctl start open-iscsi
# systemctl status open-iscsi
● open-iscsi.service - Open iSCSI Daemon
     Loaded: loaded (/usr/lib/systemd/system/open-iscsi.service; disabled; vendor preset: >
     Active: active (running) since Fri 2021-04-09 10:04:13 EDT; 25s ago
    Process: 6143 ExecStartPre=/usr/sbin/modprobe -q iscsi_tcp (code=exited, status=0/SUCC>
    Process: 6155 ExecStart=/sbin/iscsid (code=exited, status=0/SUCCESS)
      Tasks: 2 (limit: 4697)
     Memory: 3.6M
        CPU: 24ms
     CGroup: /system.slice/open-iscsi.service
             ├─6157 /sbin/iscsid
             └─6158 /sbin/iscsid

Apr 09 10:04:13 localhost.localdomain systemd[1]: Starting Open iSCSI Daemon...
Apr 09 10:04:13 localhost.localdomain iscsid[6155]: iSCSI logger with pid=6157 started!
Apr 09 10:04:13 localhost.localdomain systemd[1]: Started Open iSCSI Daemon.
Apr 09 10:04:13 localhost.localdomain iscsid[6157]: iSCSI daemon with pid=6158 started!
# lsmod | grep isc
iscsi_tcp              28672  0
libiscsi_tcp           36864  1 iscsi_tcp
libiscsi               73728  2 libiscsi_tcp,iscsi_tcp
scsi_transport_iscsi   139264  4 libiscsi_tcp,iscsi_tcp,libiscsi
binfmt_misc            24576  1

Since that was good enough for Claire, it's good enough for me. Giving this a 64-bit OK, and Validating. Still needs an advisory.

Keywords: (none) => validated_update
CC: (none) => andrewsfarm, sysadmin-bugs
Whiteboard: (none) => MGA8-64-OK

Comment 5 Thomas Andrews 2021-04-09 16:16:21 CEST
Blast! Did not mention that I used the list of packages from http://madb.mageia.org/tools/listRpmsForQaBug/bugnum/28637/application/0 in qarepo to get the update, and there were no installation issues.
Comment 6 Aurelien Oudelet 2021-04-12 16:50:36 CEST
Advisory:
========================

Updated open-iscsi packages fix bugs:

The updated open-iscsi packages fix crash in iscsiadm tool.

References:
https://bugs.mageia.org/show_bug.cgi?id=28637
https://github.com/open-iscsi/open-iscsi/commit/76a5ebf955702f676a5ea5f7b43bb8fb436edc40.patch
https://github.com/open-iscsi/open-iscsi/commit/b24f8ff48e2285e42d151f73e464531c49a9509e.patch
========================

Updated packages in 8/core/updates_testing:
========================
lib(64)iscsi0-devel-2.1.3-872.20.1.mga8
lib(64)openiscsiusr0-2.1.3-872.20.1.mga8
open-iscsi-2.1.3-872.20.1.mga8

SRPMs from
========================
open-iscsi-2.1.3-872.20.1.mga8.src.rpm

Keywords: (none) => advisory
Source RPM: (none) => open-iscsi-2.1.3-872.20.mga8.src.rpm
CC: (none) => ouaurelien

Comment 7 Mageia Robot 2021-04-12 22:02:07 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2021-0071.html

Resolution: (none) => FIXED
Status: NEW => RESOLVED


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