System crash after direct call to sd_open() from emcp function

Solution Unverified - Updated -

Issue

  • System crash after direct call to sd_open() from emcp function:
[4985235.104943] WARNING: CPU: 2 PID: 27087 at lib/kobject.c:581 kobject_get+0x50/0x80
[4985235.104967] BUG: unable to handle kernel paging request at 0000000074010070
[4985235.105313] IP: [<ffffffff89f8fddd>] strnlen+0xd/0x40
[4985235.105639] PGD 0 
[4985235.105956] Oops: 0000 [#1] SMP 
....
[4985235.110336] CPU: 2 PID: 27087 Comm: kworker/u128:0 Kdump: loaded Tainted: P           OE  ------------   3.10.0-1160.el7.x86_64 #1
[4985235.111321] Hardware name: HPE ProLiant DL560 Gen10/ProLiant DL560 Gen10, BIOS U34 03/09/2020
[4985235.111846] Workqueue: scsi_wq_7 fc_scsi_scan_rport [scsi_transport_fc]
[4985235.112356] task: ffff8f1a19672100 ti: ffff8ee7e4888000 task.ti: ffff8ee7e4888000
[4985235.112876] RIP: 0010:[<ffffffff89f8fddd>]  [<ffffffff89f8fddd>] strnlen+0xd/0x40
....
[4985235.120134] Call Trace:
[4985235.120711]  [<ffffffff89f91b8b>] string.isra.7+0x3b/0xf0
[4985235.121290]  [<ffffffff89f932a1>] vsnprintf+0x201/0x6a0
[4985235.121869]  [<ffffffff89f9374d>] vscnprintf+0xd/0x30
[4985235.122469]  [<ffffffff89c9de2b>] vprintk_emit+0x11b/0x510
[4985235.123064]  [<ffffffff89c9e489>] ? vprintk_default+0x29/0x40
[4985235.123650]  [<ffffffff89f88830>] ? kobject_get+0x50/0x80
[4985235.124210]  [<ffffffff89c9e23f>] vprintk+0x1f/0x30
[4985235.124793]  [<ffffffff89c9b1cf>] __warn+0x7f/0x100
[4985235.125368]  [<ffffffff89c9b2af>] warn_slowpath_fmt+0x5f/0x80
[4985235.125943]  [<ffffffff89de3a2f>] ? pcpu_chunk_relocate+0x1f/0x40
[4985235.126505]  [<ffffffff89f88830>] kobject_get+0x50/0x80
[4985235.127083]  [<ffffffff8a0b5a97>] get_device+0x17/0x30
[4985235.127650]  [<ffffffff8a0e2cbc>] scsi_device_get+0x2c/0x60
[4985235.128213]  [<ffffffffc04025fa>] scsi_disk_get.isra.31+0x2a/0x60 [sd_mod]
[4985235.128774]  [<ffffffffc0402829>] sd_open+0x29/0x1b0 [sd_mod]
[4985235.129314]  [<ffffffffc104da4c>] emcp_native_bdops_open.isra.11+0x3c/0x70 [emcp]
[4985235.129854]  [<ffffffffc10518e3>] emcp_reenable_io+0x2f3/0x440 [emcp]
[4985235.130407]  [<ffffffffc10505bd>] ? EmsDeviceIdClose+0x2d/0x30 [emcp]
[4985235.130984]  [<ffffffffc1058a81>] ? EmcpLnxIsPowerDevConfigured+0x91/0xa0 [emcp]
[4985235.131540]  [<ffffffffc10652a7>] emcp_add_common.constprop.30+0x607/0x7a0 [emcp]
[4985235.132057]  [<ffffffff89ccd417>] ? async_synchronize_cookie_domain+0xb7/0x150
[4985235.132563]  [<ffffffff89cc6d10>] ? wake_up_atomic_t+0x30/0x30
[4985235.133057]  [<ffffffffc1068603>] emcp_add+0x193/0x300 [emcp]
[4985235.133563]  [<ffffffffc10687bc>] emcp_chg_device_notify+0x4c/0x60 [emcp]
[4985235.134044]  [<ffffffff8a38eb6f>] notifier_call_chain+0x4f/0x70
[4985235.134510]  [<ffffffff89ccbfdd>] __blocking_notifier_call_chain+0x4d/0x70
[4985235.134967]  [<ffffffff89ccc016>] blocking_notifier_call_chain+0x16/0x20
[4985235.135411]  [<ffffffff8a0baeb4>] driver_bound+0x84/0x100
[4985235.135839]  [<ffffffff8a0bb1c4>] driver_probe_device+0xd4/0x3e0
[4985235.136258]  [<ffffffff8a0bb4d0>] ? driver_probe_device+0x3e0/0x3e0
[4985235.136672]  [<ffffffff8a0bb513>] __device_attach+0x43/0x50
[4985235.137056]  [<ffffffff8a0b8e35>] bus_for_each_drv+0x75/0xc0
[4985235.137452]  [<ffffffff8a0baff0>] device_attach+0x90/0xb0
[4985235.137833]  [<ffffffff8a0ba218>] bus_probe_device+0x98/0xd0
[4985235.138207]  [<ffffffff8a0b7abf>] device_add+0x4ff/0x7c0
[4985235.138578]  [<ffffffff8a0c665c>] ? __pm_runtime_resume+0x5c/0x90
[4985235.138946]  [<ffffffff8a0f2b2c>] scsi_sysfs_add_sdev+0x8c/0x290
[4985235.139318]  [<ffffffff8a0efbce>] scsi_probe_and_add_lun+0xc4e/0xe50
[4985235.139672]  [<ffffffff8a0f0182>] scsi_report_lun_scan+0x3b2/0x540
[4985235.140023]  [<ffffffff8a0c665c>] ? __pm_runtime_resume+0x5c/0x90
[4985235.140372]  [<ffffffff8a0f0741>] __scsi_scan_target+0x121/0x260
[4985235.140716]  [<ffffffff8a0f0998>] scsi_scan_target+0x118/0x130
[4985235.141060]  [<ffffffffc02e0f2b>] fc_scsi_scan_rport+0xbb/0xc0 [scsi_transport_fc]
....

Environment

  • Red Hat Enterprise Linux 7
  • EMC PowerPath

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content