Commit d7baf9e3 authored by Justin Tee's avatar Justin Tee Committed by Ye Bin
Browse files

scsi: lpfc: Release hbalock before calling lpfc_worker_wake_up()

mainline inclusion
from mainline-v6.9-rc2
commit ded20192dff31c91cef2a04f7e20e60e9bb887d3
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/I9U211
CVE: CVE-2024-36924

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ded20192dff31c91cef2a04f7e20e60e9bb887d3



--------------------------------

lpfc_worker_wake_up() calls the lpfc_work_done() routine, which takes the
hbalock.  Thus, lpfc_worker_wake_up() should not be called while holding the
hbalock to avoid potential deadlock.

Signed-off-by: default avatarJustin Tee <justin.tee@broadcom.com>
Link: https://lore.kernel.org/r/20240305200503.57317-7-justintee8345@gmail.com


Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Conflicts:
	drivers/scsi/lpfc/lpfc_hbadisc.c
	drivers/scsi/lpfc/lpfc_sli.c
[fix context diff]
Signed-off-by: default avatarYe Bin <yebin@huaweicloud.com>
parent d2901c3f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment