System crashed with error - RIP: iscsi_check_tmf_restrictions+0x139/0x160 [libiscsi]

Solution Verified - Updated -

Issue

  • While running sg_reset, the system got crashed with following call traces:

    sd 7:0:0:0: Power-on or device reset occurred
    sd 7:0:1:0: Power-on or device reset occurred
    sd 7:0:2:0: Power-on or device reset occurred
    sd 7:0:3:0: Power-on or device reset occurred
    sd 7:0:4:0: Power-on or device reset occurred
    BUG: unable to handle kernel NULL pointer dereference at 0000000000000000
    PGD 3006b0d067 P4D 3006b0d067 PUD 2ff3894067 PMD 0
    Oops: 0000 [#1] SMP NOPTI
    Modules linked in: iw_cxgb4 
    [...]
    CPU: 57 PID: 15328 Comm: kworker/u128:1 Kdump: loaded Not tainted 4.17.0-rc4 #2
    Hardware name: Supermicro H8QGL/H8QGL, BIOS 3.5        12/19/2013
    Workqueue: iscsi_q_7 iscsi_xmitworker [libiscsi]
    RIP: 0010:iscsi_check_tmf_restrictions+0x139/0x160 [libiscsi]
    [...]
    Call Trace:
     iscsi_prep_scsi_cmd_pdu+0x2c/0x770 [libiscsi]
     ? iscsi_tcp_task_xmit+0xba/0x290 [libiscsi_tcp]
     iscsi_xmitworker+0x180/0x3e0 [libiscsi]
     ? move_linked_works+0x6f/0xa0
     process_one_work+0x158/0x360
     worker_thread+0x47/0x3e0
     kthread+0xf8/0x130
     ? max_active_store+0x80/0x80
     ? kthread_bind+0x10/0x10
     ret_from_fork+0x22/0x40
    Code: 50 89 04 24 31 c0 e8 67 89 17 f5 e9 11 ff ff ff 48 8b 45 00 8b 55 0c 41 89 f0 44 8b 4d 1c 48 c7 c7 3f 50 78 c0 41 bc f3 ff ff ff <0f> b6 08 48 8b 03 89 14 24 48 c7 c2 88 45 78 c0 48 83 c0 50 48
    RIP: iscsi_check_tmf_restrictions+0x139/0x160 [libiscsi] RSP: ffffb0b8e07b3d60
    CR2: 0000000000000000
    
  • This issue was not seen while using open-iscsi package, but it was reproducible only while using RHEL 7.5 provided iscsi-initiator-utils rpm.

Environment

  • Red Hat Enterprise Linux 7.5
  • iSCSI

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In