Commit 157f4fbf authored by Sreekanth Reddy's avatar Sreekanth Reddy Committed by Li Lingfeng
Browse files

scsi: mpt3sas: Fix use-after-free warning

mainline inclusion
from mainline-v6.0-rc5
commit 991df3dd
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/I9LKDT
CVE: CVE-2022-48695

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

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

Fix the following use-after-free warning which is observed during
controller reset:

refcount_t: underflow; use-after-free.
WARNING: CPU: 23 PID: 5399 at lib/refcount.c:28 refcount_warn_saturate+0xa6/0xf0

Link: https://lore.kernel.org/r/20220906134908.1039-2-sreekanth.reddy@broadcom.com


Signed-off-by: default avatarSreekanth Reddy <sreekanth.reddy@broadcom.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>

Conflicts:
  drivers/scsi/mpt3sas/mpt3sas_scsih.c
[Commit 9e73ed2e add fw_events_cleanup in
_scsih_fw_event_cleanup_queue().]
Signed-off-by: default avatarLi Lingfeng <lilingfeng3@huawei.com>
parent 48d72040
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment