Commit da29c9dd authored by Chaitanya Kulkarni's avatar Chaitanya Kulkarni Committed by Yang Yingliang
Browse files

nvme-core: don't use NVME_NSID_ALL for command effects and supported log

mainline inclusion
from mainline-5.9-rc7
commit 46d2613e
category: bugfix
bugzilla: 167363
CVE: NA

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

In the function nvme_get_effects_log() it uses NVME_NSID_ALL which has
namespace scope. The command effect log page is controller specific.

Replace NVME_NSID_ALL with 0x00 which specifies the controller scope
instead of namespace scope.

Fixes: 84fef62d ("nvme: check admin passthru command effects")
Link: https://bugzilla.kernel.org/show_bug.cgi?id=209287


Reported-by: default avatarHuai-Cheng Kuo <hh81478072@gmail.com>
Signed-off-by: default avatarChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>

Conflicts:
	drivers/nvme/host/core.c
	[ Feature commit be93e87e("nvme: support for multiple
	  Command Sets Supported and Effects log pages") is not applied. ]

Signed-off-by: default avatarZhihao Cheng <chengzhihao1@huawei.com>
Reviewed-by: default avatarHou Tao <houtao1@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 902a53aa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment