summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorTiwei Bie <tiwei.btw@antgroup.com>2026-03-03 07:52:24 +0800
committerJohannes Berg <johannes.berg@intel.com>2026-03-21 10:42:24 +0100
commitcd4126d48f7f61928c18498629ca19a0f846d0c4 (patch)
treee75efe2b40e8cef6ff88392aeb07c311e131ed9f /tools/lib/python
parent102331b66bcaf1f41f50b9c4cd5c36e46bafa9f3 (diff)
um: Fix pte_read() and pte_exec() for kernel mappings
The pte_read() and pte_exec() helpers are only used during the TLB sync to determine the read/exec permissions for mmap. However, for kernel mappings, they will always return 0. This leads to kern_map() having to unconditionally set the exec flag to 1 and the read flag unexpectedly always being 0. Remove the unnecessary check for the _PAGE_USER bit in these helpers to ensure that the kernel mapping permissions can be correctly determined. Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com> Link: https://patch.msgid.link/20260302235224.1915380-3-tiwei.btw@antgroup.com Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions