diff options
| author | Jisheng Zhang <[email protected]> | 2025-04-10 07:05:23 +0000 |
|---|---|---|
| committer | Palmer Dabbelt <[email protected]> | 2025-05-08 17:01:00 +0000 |
| commit | 19500c6dbc5c348564a6513c801ab0889300565a (patch) | |
| tree | 0b34eb90f8aa7fe292aaae4b42040419b99250f7 /lib/crypto/mpi/mpi-cmp.c | |
| parent | riscv: save the SR_SUM status over switches (diff) | |
| download | kernel-19500c6dbc5c348564a6513c801ab0889300565a.tar.gz kernel-19500c6dbc5c348564a6513c801ab0889300565a.zip | |
riscv: implement user_access_begin() and families
Currently, when a function like strncpy_from_user() is called,
the userspace access protection is disabled and enabled
for every word read.
By implementing user_access_begin() and families, the protection
is disabled at the beginning of the copy and enabled at the end.
The __inttype macro is borrowed from x86 implementation.
Signed-off-by: Jisheng Zhang <[email protected]>
Signed-off-by: Cyril Bur <[email protected]>
Reviewed-by: Alexandre Ghiti <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions
