diff options
author | Moni Shoua <monis@mellanox.com> | 2019-03-19 11:24:36 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-04-17 08:39:52 +0200 |
commit | e0e77b23a73d07d5cb9ad1ba970c420e7883e9d0 (patch) | |
tree | ca174ef16aebc36e4d71dbbb0fa60314c75e7de7 /scripts/gdb/linux/utils.py | |
parent | 6b3b09cd4daa81bab35375f54c4548dea930c238 (diff) |
IB/mlx5: Reset access mask when looping inside page fault handler
commit 1abe186ed8a6593069bc122da55fc684383fdc1c upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions