Re: [PATCH v2] arm64/traps: Avoid unnecessary kernel/user pointer conversion

From: Will Deacon
Date: Wed Sep 29 2021 - 13:48:37 EST


On Fri, 17 Sep 2021 11:28:11 +0530, Amit Daniel Kachhap wrote:
> 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.
>
> [...]

Applied to arm64 (for-next/misc), thanks!

[1/1] arm64/traps: Avoid unnecessary kernel/user pointer conversion
https://git.kernel.org/arm64/c/f5b650f887f3

Cheers,
--
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev