linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Martin K. Petersen" <martin.petersen@oracle.com>
To: Igor Pylypiv <ipylypiv@google.com>,
	"James E.J. Bottomley" <jejb@linux.ibm.com>,
	Jack Wang <jinpu.wang@cloud.ionos.com>
Cc: "Martin K . Petersen" <martin.petersen@oracle.com>,
	Viswas G <Viswas.G@microchip.com>,
	Changyuan Lyu <changyuanl@google.com>,
	linux-scsi@vger.kernel.org,
	Vishakha Channapattan <vishakhavc@google.com>,
	Ruksar Devadi <Ruksar.devadi@microchip.com>
Subject: Re: [PATCH] scsi: pm80xx: Do not call scsi_remove_host() in pm8001_alloc()
Date: Thu,  2 Dec 2021 22:03:11 -0500	[thread overview]
Message-ID: <163850057786.29121.3572131363494831341.b4-ty@oracle.com> (raw)
In-Reply-To: <20211201041627.1592487-1-ipylypiv@google.com>

On Tue, 30 Nov 2021 20:16:27 -0800, Igor Pylypiv wrote:

> Calling scsi_remove_host() before scsi_add_host() results in a crash:
> 
>  BUG: kernel NULL pointer dereference, address: 0000000000000108
>  RIP: 0010:device_del+0x63/0x440
>  Call Trace:
>   device_unregister+0x17/0x60
>   scsi_remove_host+0xee/0x2a0
>   pm8001_pci_probe+0x6ef/0x1b90 [pm80xx]
>   local_pci_probe+0x3f/0x90
> 
> [...]

Applied to 5.16/scsi-fixes, thanks!

[1/1] scsi: pm80xx: Do not call scsi_remove_host() in pm8001_alloc()
      https://git.kernel.org/mkp/scsi/c/653926205741

-- 
Martin K. Petersen	Oracle Linux Engineering

      parent reply	other threads:[~2021-12-03  3:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-01  4:16 [PATCH] scsi: pm80xx: Do not call scsi_remove_host() in pm8001_alloc() Igor Pylypiv
2021-12-02  8:17 ` Jinpu Wang
2021-12-03  3:03 ` Martin K. Petersen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=163850057786.29121.3572131363494831341.b4-ty@oracle.com \
    --to=martin.petersen@oracle.com \
    --cc=Ruksar.devadi@microchip.com \
    --cc=Viswas.G@microchip.com \
    --cc=changyuanl@google.com \
    --cc=ipylypiv@google.com \
    --cc=jejb@linux.ibm.com \
    --cc=jinpu.wang@cloud.ionos.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=vishakhavc@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).