diff options
| author | Amit Daniel Kachhap <[email protected]> | 2021-09-17 11:28:11 +0530 |
|---|---|---|
| committer | Will Deacon <[email protected]> | 2021-09-29 16:44:20 +0100 |
| commit | f5b650f887f30dda15a8d524249e48a407544126 (patch) | |
| tree | 2517a37700d7e3cba760fd3270e4161bf15cfc77 /lib/test_fortify/write_overflow-memcpy.c | |
| parent | 5816b3e6577eaa676ceb00a848f0fd65fe2adc29 (diff) | |
arm64/traps: Avoid unnecessary kernel/user pointer conversion
Annotating a pointer from kernel to __user and then back again requires
an extra __force annotation to silent sparse warning. In call_undef_hook()
this unnecessary complexity can be avoided by modifying the intermediate
user pointer to unsigned long.
This way there is no inter-changeable use of user and kernel pointers
and the code is consistent.
Note: This patch adds no functional changes to code.
Cc: Catalin Marinas <[email protected]>
Cc: Will Deacon <[email protected]>
Signed-off-by: Amit Daniel Kachhap <[email protected]>
Acked-by: Mark Rutland <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions