[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <yq135jrls0p.fsf@ca-mkp.ca.oracle.com>
Date: Tue, 08 Mar 2022 22:33:03 -0500
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: Jianglei Nie <niejianglei2021@....com>
Cc: hare@...e.de, jejb@...ux.ibm.com, martin.petersen@...cle.com,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] scsi: libfc: Fix use after free in fc_exch_abts_resp()
Jianglei,
> fc_exch_release(ep) will decrease the ep's reference count. When the
> reference count reaches zero, it is freed. But ep is still used in the
> following code, which will lead to a use after free.
Applied to 5.18/scsi-staging, thanks!
--
Martin K. Petersen Oracle Linux Engineering
Powered by blists - more mailing lists