summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core
diff options
context:
space:
mode:
authorMoni Shoua2018-11-08 20:10:12 +0100
committerLeon Romanovsky2018-11-12 21:21:01 +0100
commit032080ab43ac02cf7446b3954ace7ccce1abcad6 (patch)
treee12a406c1e3a26fccc8f07f0a611865b728d87fb /drivers/net/ethernet/mellanox/mlx5/core
parentnet/mlx5: Enumerate page fault types (diff)
downloadkernel-qcow2-linux-032080ab43ac02cf7446b3954ace7ccce1abcad6.tar.gz
kernel-qcow2-linux-032080ab43ac02cf7446b3954ace7ccce1abcad6.tar.xz
kernel-qcow2-linux-032080ab43ac02cf7446b3954ace7ccce1abcad6.zip
IB/mlx5: Lock QP during page fault handling
When page fault event for a WQE arrives, the event data contains the resource (e.g. QP) number which will later be used by the page fault handler to retrieve the resource. Meanwhile, another context can destroy the resource and cause use-after-free. To avoid that, take a reference on the resource when handler starts and release it when it ends. Page fault events for RDMA operations don't need to be protected because the driver doesn't need to access the QP in the page fault handler. Fixes: d9aaed838765 ("{net,IB}/mlx5: Refactor page fault handling") Signed-off-by: Moni Shoua <monis@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core')
0 files changed, 0 insertions, 0 deletions