Re: [PATCH -next] firmware: imx: secure-enclave: avoid casting userspace pointers

From: Frank . Li

Date: Mon Jun 01 2026 - 12:09:29 EST


From: Frank Li <Frank.Li@xxxxxxx>


On Thu, 07 May 2026 12:24:03 +0530, Pankaj Gupta wrote:
> Sparse reports warnings where userspace pointers are cast to kernel
> pointers, dropping the '__user' address space annotation.
>
> In the ioctl and write paths, the transmit message header was validated
> by casting userspace buffers directly to struct se_msg_hdr. Fix this by
> validating the header using the kernel copy obtained via memdup_user()
> instead.
>
> [...]

Applied, thanks!

[1/1] firmware: imx: secure-enclave: avoid casting userspace pointers
commit: 29fcae80c944312d1fa5dfb433a57ecaabdaf967

squash to prevous commit

Best regards,
--
Frank Li <Frank.Li@xxxxxxx>