aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/err.c
diff options
context:
space:
mode:
authorJohn David Anglin <[email protected]>2025-07-21 19:39:26 +0000
committerHelge Deller <[email protected]>2025-07-25 20:45:23 +0000
commit91428ca9320edbab1211851d82429d33b9cd73ef (patch)
treecf091dacf5df7457cc0a8803017e7f517b21e9df /rust/helpers/err.c
parentparisc: Update comments in make_insert_tlb (diff)
downloadkernel-91428ca9320edbab1211851d82429d33b9cd73ef.tar.gz
kernel-91428ca9320edbab1211851d82429d33b9cd73ef.zip
parisc: Check region is readable by user in raw_copy_from_user()
Because of the way the _PAGE_READ is handled in the parisc PTE, an access interruption is not generated when the kernel reads from a region where the _PAGE_READ is zero. The current code was written assuming read access faults would also occur in the kernel. This change adds user access checks to raw_copy_from_user(). The prober_user() define checks whether user code has read access to a virtual address. Note that page faults are not handled in the exception support for the probe instruction. For this reason, we precede the probe by a ldb access check. Signed-off-by: John David Anglin <[email protected]> Signed-off-by: Helge Deller <[email protected]> Cc: [email protected] # v5.12+
Diffstat (limited to 'rust/helpers/err.c')
0 files changed, 0 insertions, 0 deletions