]> git.ipfire.org Git - thirdparty/kernel/stable.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)
commit1abe186ed8a6593069bc122da55fc684383fdc1c
treee72d2040a57a70dcb5285b5395b549047599f268
parentd0294344470e6b52d097aa7369173f32d11f2f52
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: 7bdf65d411c1 ("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