]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Reset access mask when looping inside page fault handler
authorMoni Shoua <monis@mellanox.com>
Tue, 19 Mar 2019 09:24:36 +0000 (11:24 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 27 Mar 2019 18:27:11 +0000 (15:27 -0300)
commit9df8eb69475c7e3b9d274da1be7011908c738cd9
treee72d2040a57a70dcb5285b5395b549047599f268
parentc718825feb3414a17c88634c16df9a333bcb4005
IB/mlx5: Reset access mask when looping inside page fault handler

If page-fault handler spans multiple MRs then the access mask needs to
be reset before each MR handling or otherwise write access will be
granted to mapped pages instead of read-only.

Cc: <stable@vger.kernel.org> # 3.19
Fixes: fa1d5b057620 ("IB/mlx5: Handle page faults")
Reported-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Moni Shoua <monis@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/odp.c