]> www.infradead.org Git - users/jedix/linux-maple.git/commit
qed: Correct doorbell configuration for !4Kb pages
authorRam Amrani <Ram.Amrani@cavium.com>
Tue, 9 May 2017 12:07:50 +0000 (15:07 +0300)
committerChuck Anderson <chuck.anderson@oracle.com>
Tue, 19 Sep 2017 05:32:06 +0000 (22:32 -0700)
commit9afe3628c5a5a1d4fb01f37a77007fc2ce2f0f9d
tree555c16db9a8e96eeb523e2795e1aa73eacf92865
parent6ca775a6f9c4079a1adef9dd9453bc3d43531ca8
qed: Correct doorbell configuration for !4Kb pages

Orabug: 26783820

When configuring the doorbell DPI address, driver aligns the start
address to 4KB [HW-pages] instead of host PAGE_SIZE.
As a result, RoCE applications might receive addresses which are
unaligned to pages [when PAGE_SIZE > 4KB], which is a security risk.

Fixes: 51ff17251c9c ("qed: Add support for RoCE hw init")
Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
[ Upstream commit a82dadbce47395747824971db08a128130786fdc ]
Signed-off-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
drivers/net/ethernet/qlogic/qed/qed_dev.c