lkml.org 
[lkml]   [2021]   [Mar]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] scsi: Fix a use after free in st_open
Date
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

\
 
 \ /
  Last update: 2021-03-16 04:17    [W:0.053 / U:0.396 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site