aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/atom.c
diff options
context:
space:
mode:
authorThomas Weißschuh <[email protected]>2025-08-21 07:56:44 +0000
committerCatalin Marinas <[email protected]>2025-09-03 11:07:23 +0000
commit9a6d3ff10f7f538835cae4799562004ee46922c5 (patch)
tree0c5d7895dfe33e4f99c9b4b4cad3f622bf2bd53a /drivers/gpu/drm/amd/amdgpu/atom.c
parentkselftest/arm64: Don't open code SVE_PT_SIZE() in fp-ptrace (diff)
downloadkernel-9a6d3ff10f7f538835cae4799562004ee46922c5.tar.gz
kernel-9a6d3ff10f7f538835cae4799562004ee46922c5.zip
arm64: uapi: Provide correct __BITS_PER_LONG for the compat vDSO
The generic vDSO library uses the UAPI headers. On arm64 __BITS_PER_LONG is always '64' even when used from the compat vDSO. In that case __GENMASK() does an illegal bitshift, invoking undefined behaviour. Change __BITS_PER_LONG to also work when used from the comapt vDSO. To not confuse real userspace, only do this when building the kernel. Reported-by: John Stultz <[email protected]> Closes: https://lore.kernel.org/lkml/CANDhNCqvKOc9JgphQwr0eDyJiyG4oLFS9R8rSFvU0fpurrJFDg@mail.gmail.com/ Fixes: cd3557a7618b ("vdso/gettimeofday: Add support for auxiliary clocks") Signed-off-by: Thomas Weißschuh <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Tested-by: John Stultz <[email protected]> Link: https://lore.kernel.org/r/20250821-vdso-arm64-compat-bitsperlong-v1-1-700bcabe7732@linutronix.de Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/atom.c')
0 files changed, 0 insertions, 0 deletions