diff options
| author | Selvin Xavier <selvin.xavier@broadcom.com> | 2026-07-21 04:54:40 -0700 |
|---|---|---|
| committer | Leon Romanovsky <leonro@nvidia.com> | 2026-07-22 12:20:51 -0400 |
| commit | 9b66c9af7172ffcf727214fa0ebe9a5e1ed6eb16 (patch) | |
| tree | 3e0cf3375bf0d08cf6c9d2da19c6d60f993a02a1 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 0e8e94c15091041ea8910cbfcade5a9c7cfe3f90 (diff) | |
RDMA/bnxt_re: Clear VM_MAYWRITE on DBR/toggle page mmap
bnxt_re_mmap() rejects VM_WRITE for the DBR_PAGE and TOGGLE_PAGE mmap
flags, but a read-only mapping can still retain VM_MAYWRITE. nd later
be upgraded with mprotect(PROT_WRITE). This can bypass the write check
that only runs at mmap time.
Clear VM_MAYWRITE before vm_insert_page() in the shared DBR/toggle-page
branch, matching the existing policy that userspace writes are not
expected for these pages.
Fixes: ea222485788208 ("RDMA/bnxt_re: Update alloc_page uapi for pacing")
Suggested-by: Yousef Alhouseen <alhouseenyousef@gmail.com>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Link: https://patch.msgid.link/20260721115440.24021-5-selvin.xavier@broadcom.com
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
