All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Martin K. Petersen" <martin.petersen@oracle.com>
To: Lv Yunlong <lyl2019@mail.ustc.edu.cn>,
	jejb@linux.ibm.com, Kai.Makisara@kolumbus.fi
Cc: "Martin K . Petersen" <martin.petersen@oracle.com>,
	linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org
Subject: Re: [PATCH] scsi: Fix a use after free in st_open
Date: Mon, 15 Mar 2021 23:13:57 -0400	[thread overview]
Message-ID: <161586434245.11995.9802602851023582228.b4-ty@oracle.com> (raw)
In-Reply-To: <20210311064636.10522-1-lyl2019@mail.ustc.edu.cn>

On Wed, 10 Mar 2021 22:46:36 -0800, Lv Yunlong wrote:

> In st_open, if STp->in_use is true, STp will be freed by
> scsi_tape_put(). However, STp is still used by DEBC_printk()
> after. It is better to DEBC_printk() before scsi_tape_put().

Applied to 5.12/scsi-fixes, thanks!

[1/1] scsi: Fix a use after free in st_open
      https://git.kernel.org/mkp/scsi/c/c8c165dea4c8

-- 
Martin K. Petersen	Oracle Linux Engineering

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

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-11  6:46 [PATCH] scsi: Fix a use after free in st_open Lv Yunlong
2021-03-11 18:10 ` "Kai Mäkisara (Kolumbus)"
2021-03-16  3:13 ` 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=161586434245.11995.9802602851023582228.b4-ty@oracle.com \
    --to=martin.petersen@oracle.com \
    --cc=Kai.Makisara@kolumbus.fi \
    --cc=jejb@linux.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=lyl2019@mail.ustc.edu.cn \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.