aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
diff options
context:
space:
mode:
authorMichael Jeanson <[email protected]>2025-02-19 20:53:26 +0000
committerIngo Molnar <[email protected]>2025-02-21 13:21:02 +0000
commitdc0a241ceaf3b7df6f1a7658b020c92682b75bfc (patch)
tree2019cf9195d235456ef28aedd2988ae8c7be36a0 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
parentsched: Compact RSEQ concurrency IDs with reduced threads and affinity (diff)
downloadkernel-dc0a241ceaf3b7df6f1a7658b020c92682b75bfc.tar.gz
kernel-dc0a241ceaf3b7df6f1a7658b020c92682b75bfc.zip
rseq: Fix rseq registration with CONFIG_DEBUG_RSEQ
With CONFIG_DEBUG_RSEQ=y, at rseq registration the read-only fields are copied from user-space, if this copy fails the syscall returns -EFAULT and the registration should not be activated - but it erroneously is. Move the activation of the registration after the copy of the fields to fix this bug. Fixes: 7d5265ffcd8b ("rseq: Validate read-only fields under DEBUG_RSEQ config") Signed-off-by: Michael Jeanson <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Reviewed-by: Mathieu Desnoyers <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions