lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date:   Sat, 21 May 2022 22:04:44 +0800
From:   Zheyu Ma <zheyuma97@...il.com>
To:     vbhakta@...are.com, pv-drivers@...are.com, jejb@...ux.ibm.com,
        "Martin K. Petersen" <martin.petersen@...cle.com>
Cc:     linux-scsi <linux-scsi@...r.kernel.org>,
        Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: [BUG] scsi: vmw_pvscsi: got a warning when failing at probe

Hello,

I found a bug in the vmw_pvscsi driver.
When the driver fails to allocate the host, I get the following warning:

[   22.759652] VMware PVSCSI driver - version 1.0.7.0-k
[   22.766883] vmw_pvscsi: using 64bit dma
[   22.767357] vmw_pvscsi 0000:00:05.0: vmw_pvscsi: PVSCSI_CMD_CONFIG
failed. hostStatus = 0x1a, scsiStatus = 0x2
[   22.767859] vmw_pvscsi: max_id: 16
[   22.768029] vmw_pvscsi: setting ring_pages to 8
[   22.768263] vmw_pvscsi: failed to allocate host
[   22.768491] ------------[ cut here ]------------
[   22.768767] Trying to free already-free IRQ 21
[   22.769001] WARNING: CPU: 0 PID: 336 at kernel/irq/manage.c:1861
free_irq+0x3a4/0x7c0
[   22.771363] RIP: 0010:free_irq+0x3a4/0x7c0
[   22.775533] Call Trace:
[   22.775662]  <TASK>
[   22.775780]  pvscsi_shutdown_intr+0x50/0x70 [vmw_pvscsi]
[   22.776053]  pvscsi_probe+0x2b3/0xe50 [vmw_pvscsi]

The driver's error handling code should be refined.

Zheyu Ma

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ