TEE fix2 for v6.17
Hello arm-soc maintainers,
Please pull this fix in the TEE subsystem.
Thanks,
Jens
The following changes since commit 8f5ae30d69d7543eee0d70083daf4de8fe15d585:
Linux 6.17-rc1 (2025-08-10 19:41:16 +0300)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/jenswi/linux-tee.git tags/tee-shm-register-fix-for-v6.17
for you to fetch changes up to d5cf5b37064b1699d946e8b7ab4ac7d7d101814c:
tee: fix register_shm_helper() (2025-09-22 08:47:00 +0200)
----------------------------------------------------------------
TEE fix2 for v6.17
Fixing incorrect error handling for a call to iov_iter_extract_pages().
----------------------------------------------------------------
Jens Wiklander (1):
tee: fix register_shm_helper()
drivers/tee/tee_shm.c | 8 ++++++++ 1 file changed, 8 insertions(+)
This pull request was applied to soc/soc.git (for-next) by Arnd Bergmann <[email protected]>:
Hello:
This pull request was applied to soc/soc.git (for-next) by Arnd Bergmann <[email protected]>:
Quoted 8 lines · On Wed, 24 Sep 2025 10:34:04 +0200 you wrote:
Hello arm-soc maintainers,
Please pull this fix in the TEE subsystem.
Thanks,
Jens[...]
Here is the summary with links:
- [GIT,PULL] TEE fix2 for v6.17
https://git.kernel.org/soc/soc/c/0a8c31049107
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
Quoted 9 lines · On Thu, Sep 25, 2025, at 00:10, [email protected] wrote:
Hello:
This pull request was applied to soc/soc.git (for-next) by Arnd Bergmann <[email protected]>:
Quoted 3 lines · On Wed, 24 Sep 2025 10:34:04 +0200 you wrote:
Hello arm-soc maintainers,
Please pull this fix in the TEE subsystem.
Hi Jens,
I saw this just after I sent what I expected to be my final pull request for 6.17, and that is now merged.
I applied it for 6.18 for now as it appears that this is not a recent regressen, but I could still send another pull request with just this one patch if you think it's urgent enough. Can you clarify whether the NULL pointer reference that gets fixed here can normally only be triggered by root-owned processes or also by normal users?
Arnd
Hi Arnd,
Quoted 17 lines · Arnd Bergmann
Quoted 9 lines · On Thu, Sep 25, 2025, at 00:10, [email protected] wrote:
Hello:
This pull request was applied to soc/soc.git (for-next) by Arnd Bergmann <[email protected]>:
Quoted 3 lines · On Wed, 24 Sep 2025 10:34:04 +0200 you wrote:
Hello arm-soc maintainers,
Please pull this fix in the TEE subsystem.
Hi Jens,
I saw this just after I sent what I expected to be my final pull request for 6.17, and that is now merged.
Quoted 6 lines
I applied it for 6.18 for now as it appears that this is not a recent regressen, but I could still send another pull request with just this one patch if you think it's urgent enough. Can you clarify whether the NULL pointer reference that gets fixed here can normally only be triggered by root-owned processes or also by normal users?
It can also be triggered by normal users if they can open the tee device. It's expected that users who need to open the tee device belong to a special tee-client group or such. This is what it looks like in our test setup:
$ id uid=102(test) gid=104(test) groups=103(teeclnt),104(test) $ ls -l /dev/tee* crw-rw---- 1 root teeclnt 245, 0 Sep 25 06:49 /dev/tee0 crw-rw---- 1 root tee 245, 16 Sep 25 06:49 /dev/teepriv0
Where the test user has enough permissions to run the test suite.
I don't think it's that urgent.
Cheers,
Jens