ref: 5851d6fe391a1169d595721dd33afe77165bd84b
parent: 6d4540130cbcd79ee11747037735db6c5f812821
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Apr 7 18:07:22 EDT 2025
kernel: fix noted() checks for all archs Theres a potential race allowing to set arbitrary regs/flags, when the user-space Ureg struct is in a shared segment. Then another process could modify the flags after our check passed. The right way todo it is to use setregisters(), which copies first and then adjusts flags. And all later checks use the kernel-copy of the Ureg, ignoring the user-space one.