Skip to contentSkip to conversation

arm64: sysreg: Drag linux/kconfig.h to work around vdso build issue

PATCH Applied Marc Zyngier 3 participants 4 messages May 23, 2025 – May 30, 2025

Subsystems (2)
lore
Share & tools
lore

Marc Zyngier

author maintainer
#0 lore raw

PATCH 1/1 arm64: sysreg: Drag linux/kconfig.h to work around vdso build issue

Broonie reports that fed55f49fad18 ("arm64: errata: Work around AmpereOne's erratum AC04_CPU_23") breaks one of the vdso selftests (vdso_test_chacha) as it indirectly drags asm/sysreg.h.

It is rather unfortunate (and worrying) that userspace gets built with non-UAPI headers. In any case, paper over the issue by dragging linux/kconfig.h in asm/sysreg.h. It is the right thing to do, at least from the kernel perspective.

Fixes fed55f49fad18 ("arm64: errata: Work around AmpereOne's erratum AC04_CPU_23")
Cc D Scott Phillips <[email protected]>
Cc Catalin Marinas <[email protected]>
Cc Oliver Upton <[email protected]>
Cc Will Deacon <[email protected]>
---
 arch/arm64/include/asm/sysreg.h | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/include/asm/sysreg.h +1 -0
index cd853801a8f7b..f1bb0d10c39a3 100644
@@ -12,6 +12,7 @@
 #include <linux/bits.h>
 #include <linux/stringify.h>
 #include <linux/kasan-tags.h>
+#include <linux/kconfig.h>
 
 #include <asm/gpr-num.h>
 
Signature · 1 line
2.39.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Marc Zyngier

Broonie reports that fed55f49fad18 ("arm64: errata: Work around AmpereOne's erratum AC04_CPU_23") breaks one of the vdso selftests (vdso_test_chacha) as it indirectly drags asm/sysreg.h.

It is rather unfortunate (and worrying) that userspace gets built with non-UAPI headers. In any case, paper over the issue by dragging linux/kconfig.h in asm/sysreg.h. It is the right thing to do, at least from the kernel perspective.

Quoted 8 lines
Fixes fed55f49fad18 ("arm64: errata: Work around AmpereOne's erratum AC04_CPU_23")
Cc D Scott Phillips <[email protected]>
Cc Catalin Marinas <[email protected]>
Cc Oliver Upton <[email protected]>
Cc Will Deacon <[email protected]>
Signature · 2 lines
Thanks,
Oliver
maintainer Acked-by on v1 1/1
#2 lore raw
In reply to Marc Zyngier
Quoted 26 lines · Marc Zyngier

Broonie reports that fed55f49fad18 ("arm64: errata: Work around AmpereOne's erratum AC04_CPU_23") breaks one of the vdso selftests (vdso_test_chacha) as it indirectly drags asm/sysreg.h.

It is rather unfortunate (and worrying) that userspace gets built with non-UAPI headers. In any case, paper over the issue by dragging linux/kconfig.h in asm/sysreg.h. It is the right thing to do, at least from the kernel perspective.

Fixes fed55f49fad18 ("arm64: errata: Work around AmpereOne's erratum AC04_CPU_23")
Cc D Scott Phillips <[email protected]>
Cc Catalin Marinas <[email protected]>
Cc Oliver Upton <[email protected]>
Cc Will Deacon <[email protected]>
---
 arch/arm64/include/asm/sysreg.h | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/include/asm/sysreg.h +0 -0
index cd853801a8f7b..f1bb0d10c39a3 100644

arch/arm64/include/asm/sysreg.h line 17

Quoted 6 lines
arch/arm64/include/asm/sysreg.h +1 -0
@@ -12,6 +12,7 @@
 #include <linux/bits.h>
 #include <linux/stringify.h>
 #include <linux/kasan-tags.h>
+#include <linux/kconfig.h>
 
 #include <asm/gpr-num.h>

Marc, it will be quickest for you to take this as you also took the AC04_CPU_23 workaround:

Will

author maintainer Applied
#3 lore raw
In reply to Marc Zyngier
Quoted 10 lines · Marc Zyngier

Broonie reports that fed55f49fad18 ("arm64: errata: Work around AmpereOne's erratum AC04_CPU_23") breaks one of the vdso selftests (vdso_test_chacha) as it indirectly drags asm/sysreg.h.

It is rather unfortunate (and worrying) that userspace gets built with non-UAPI headers. In any case, paper over the issue by dragging linux/kconfig.h in asm/sysreg.h. It is the right thing to do, at least from the kernel perspective.

[...]

Applied to next, thanks!

[1/1] arm64: sysreg: Drag linux/kconfig.h to work around vdso build issue

      commit: 94d889713d8b8e3bb78e19a1bbe76e36e34e8113

Cheers,

	M.
Signature · 1 line
Without deviation from the norm, progress is not possible.