projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
622db5b
)
RDMA/hns: Avoid printing address of mtt page
author
Wenpeng Liang
<liangwenpeng@huawei.com>
Mon, 6 Jan 2020 12:21:10 +0000
(20:21 +0800)
committer
Jason Gunthorpe
<jgg@mellanox.com>
Tue, 7 Jan 2020 20:26:32 +0000
(16:26 -0400)
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>
drivers/infiniband/hw/hns/hns_roce_mr.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/hns/hns_roce_mr.c
b/drivers/infiniband/hw/hns/hns_roce_mr.c
index
9ad1917
..
9576556
100644
(file)
--- a/
drivers/infiniband/hw/hns/hns_roce_mr.c
+++ b/
drivers/infiniband/hw/hns/hns_roce_mr.c
@@
-1064,8
+1064,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;
}