| From 7b0b019a3bc706f2925e65d67d5f5050fac36102 Mon Sep 17 00:00:00 2001 |
| From: Wenpeng Liang <liangwenpeng@huawei.com> |
| Date: Mon, 6 Jan 2020 20:21:10 +0800 |
| Subject: [PATCH] RDMA/hns: Avoid printing address of mtt page |
| |
| commit eca44507c3e908b7362696a4d6a11d90371334c6 upstream. |
| |
| 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: Paul Gortmaker <paul.gortmaker@windriver.com> |
| |
| diff --git a/drivers/infiniband/hw/hns/hns_roce_mr.c b/drivers/infiniband/hw/hns/hns_roce_mr.c |
| index 6110ec408626..c68527f77418 100644 |
| --- a/drivers/infiniband/hw/hns/hns_roce_mr.c |
| +++ b/drivers/infiniband/hw/hns/hns_roce_mr.c |
| @@ -1018,8 +1018,8 @@ int hns_roce_ib_umem_write_mtt(struct hns_roce_dev *hr_dev, |
| if (!(npage % (1 << (mtt->page_shift - PAGE_SHIFT)))) { |
| if (page_addr & ((1 << mtt->page_shift) - 1)) { |
| dev_err(dev, |
| - "page_addr 0x%llx is not page_shift %d alignment!\n", |
| - page_addr, mtt->page_shift); |
| + "page_addr is not page_shift %d alignment!\n", |
| + mtt->page_shift); |
| ret = -EINVAL; |
| goto out; |
| } |
| -- |
| 2.7.4 |
| |