Commit 191d18c0 authored by Guo Zhi's avatar Guo Zhi Committed by Jinjiang Tu
Browse files

scsi: advansys: Fix kernel pointer leak

stable inclusion
from stable-v4.19.218
commit f5a0ba4a9b5e70e7b2f767636d26523f9d1ac59d
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/I9FNFA
CVE: CVE-2021-47216

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=f5a0ba4a9b5e70e7b2f767636d26523f9d1ac59d

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

[ Upstream commit d4996c6e ]

Pointers should be printed with %p or %px rather than cast to 'unsigned
long' and printed with %lx.

Change %lx to %p to print the hashed pointer.

Link: https://lore.kernel.org/r/20210929122538.1158235-1-qtxuning1999@sjtu.edu.cn


Signed-off-by: default avatarGuo Zhi <qtxuning1999@sjtu.edu.cn>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarJinjiang Tu <tujinjiang@huawei.com>
parent 3fc54ba0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment