Target-devel archive mirror
 help / color / mirror / Atom feed
From: "Martin K. Petersen" <martin.petersen@oracle.com>
To: linux-scsi@vger.kernel.org, target-devel@vger.kernel.org,
	Naohiro Aota <naohiro.aota@wdc.com>
Cc: "Martin K . Petersen" <martin.petersen@oracle.com>
Subject: Re: [PATCH] scsi: target: pscsi: fix bio_put for error case
Date: Thu, 15 Feb 2024 15:39:23 -0500	[thread overview]
Message-ID: <170802930853.3317154.11654161867497729133.b4-ty@oracle.com> (raw)
In-Reply-To: <20240214144356.101814-1-naohiro.aota@wdc.com>

On Wed, 14 Feb 2024 23:43:56 +0900, Naohiro Aota wrote:

> As of commit 066ff571011d ("block: turn bio_kmalloc into a simple kmalloc
> wrapper"), a bio allocated by bio_kmalloc() must be freed by bio_uninit()
> and kfree(). That is not done properly for the error case, hitting WARN and
> NULL pointer dereference in bio_free().
> 
> 

Applied to 6.8/scsi-fixes, thanks!

[1/1] scsi: target: pscsi: fix bio_put for error case
      https://git.kernel.org/mkp/scsi/c/de959094eb21

-- 
Martin K. Petersen	Oracle Linux Engineering

      parent reply	other threads:[~2024-02-15 20:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-14 14:43 [PATCH] scsi: target: pscsi: fix bio_put for error case Naohiro Aota
2024-02-15  5:24 ` Christoph Hellwig
2024-02-15 11:33 ` Johannes Thumshirn
2024-02-15 20:39 ` 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=170802930853.3317154.11654161867497729133.b4-ty@oracle.com \
    --to=martin.petersen@oracle.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=naohiro.aota@wdc.com \
    --cc=target-devel@vger.kernel.org \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).