On Tue, Aug 23, 2022 at 10:23:26AM +0200, Jens Wiklander wrote:
Moves the access_ok() check for valid memory range from user space from the function tee_shm_register() to tee_ioctl_shm_register(). With this we error out early before anything is done that must be undone on error.
Fixes: 578c349570d2 ("tee: add overflow check in register_shm_helper()") Cc: stable@vger.kernel.org # 5.10 Reported-by: Pavel Machek pavel@denx.de Signed-off-by: Jens Wiklander jens.wiklander@linaro.org
Hi,
This patch targets the 5.10.y release to take care of a recently introduced issue there.
Thanks, now queued up.
greg k-h