mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 18:09:56 +00:00
RDMA/hns: Avoid printing address of mtt page
[ Upstream commit eca44507c3 ]
Address of a page shouldn't be printed in case of security issues.
Link: https://lore.kernel.org/r/1578313276-29080-2-git-send-email-liweihang@huawei.com
Signed-off-by: Wenpeng Liang <liangwenpeng@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
5a2a529974
commit
9d89ff3d27
@@ -1062,8 +1062,8 @@ int hns_roce_ib_umem_write_mtt(struct hns_roce_dev *hr_dev,
|
|||||||
if (!(npage % (1 << (mtt->page_shift - PAGE_SHIFT)))) {
|
if (!(npage % (1 << (mtt->page_shift - PAGE_SHIFT)))) {
|
||||||
if (page_addr & ((1 << mtt->page_shift) - 1)) {
|
if (page_addr & ((1 << mtt->page_shift) - 1)) {
|
||||||
dev_err(dev,
|
dev_err(dev,
|
||||||
"page_addr 0x%llx is not page_shift %d alignment!\n",
|
"page_addr is not page_shift %d alignment!\n",
|
||||||
page_addr, mtt->page_shift);
|
mtt->page_shift);
|
||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user