linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm64: sysreg: Drag linux/kconfig.h to work around vdso build issue
@ 2025-05-23 17:02 Marc Zyngier
  2025-05-23 18:12 ` Oliver Upton
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Marc Zyngier @ 2025-05-23 17:02 UTC (permalink / raw)
  To: linux-arm-kernel, kvmarm
  Cc: Mark Brown, D Scott Phillips, Catalin Marinas, Oliver Upton,
	Will Deacon

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.

Reported-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Fixes: fed55f49fad18 ("arm64: errata: Work around AmpereOne's erratum AC04_CPU_23")
Link: https://lore.kernel.org/r/aDCDGZ-G-nCP3hJI@finisterre.sirena.org.uk
Cc: D Scott Phillips <scott@os.amperecomputing.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Oliver Upton <oliver.upton@linux.dev>
Cc: Will Deacon <will@kernel.org>
---
 arch/arm64/include/asm/sysreg.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h
index cd853801a8f7b..f1bb0d10c39a3 100644
--- a/arch/arm64/include/asm/sysreg.h
+++ b/arch/arm64/include/asm/sysreg.h
@@ -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>
 
-- 
2.39.2



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] arm64: sysreg: Drag linux/kconfig.h to work around vdso build issue
  2025-05-23 17:02 [PATCH] arm64: sysreg: Drag linux/kconfig.h to work around vdso build issue Marc Zyngier
@ 2025-05-23 18:12 ` Oliver Upton
  2025-05-27 13:15 ` Will Deacon
  2025-05-30  9:27 ` Marc Zyngier
  2 siblings, 0 replies; 4+ messages in thread
From: Oliver Upton @ 2025-05-23 18:12 UTC (permalink / raw)
  To: Marc Zyngier
  Cc: linux-arm-kernel, kvmarm, Mark Brown, D Scott Phillips,
	Catalin Marinas, Will Deacon

On Fri, May 23, 2025 at 06:02:08PM +0100, Marc Zyngier wrote:
> 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.
> 
> Reported-by: Mark Brown <broonie@kernel.org>
> Signed-off-by: Marc Zyngier <maz@kernel.org>
> Fixes: fed55f49fad18 ("arm64: errata: Work around AmpereOne's erratum AC04_CPU_23")
> Link: https://lore.kernel.org/r/aDCDGZ-G-nCP3hJI@finisterre.sirena.org.uk
> Cc: D Scott Phillips <scott@os.amperecomputing.com>
> Cc: Catalin Marinas <catalin.marinas@arm.com>
> Cc: Oliver Upton <oliver.upton@linux.dev>
> Cc: Will Deacon <will@kernel.org>

Reviewed-by: Oliver Upton <oliver.upton@linux.dev>

-- 
Thanks,
Oliver


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] arm64: sysreg: Drag linux/kconfig.h to work around vdso build issue
  2025-05-23 17:02 [PATCH] arm64: sysreg: Drag linux/kconfig.h to work around vdso build issue Marc Zyngier
  2025-05-23 18:12 ` Oliver Upton
@ 2025-05-27 13:15 ` Will Deacon
  2025-05-30  9:27 ` Marc Zyngier
  2 siblings, 0 replies; 4+ messages in thread
From: Will Deacon @ 2025-05-27 13:15 UTC (permalink / raw)
  To: Marc Zyngier
  Cc: linux-arm-kernel, kvmarm, Mark Brown, D Scott Phillips,
	Catalin Marinas, Oliver Upton

On Fri, May 23, 2025 at 06:02:08PM +0100, Marc Zyngier wrote:
> 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.
> 
> Reported-by: Mark Brown <broonie@kernel.org>
> Signed-off-by: Marc Zyngier <maz@kernel.org>
> Fixes: fed55f49fad18 ("arm64: errata: Work around AmpereOne's erratum AC04_CPU_23")
> Link: https://lore.kernel.org/r/aDCDGZ-G-nCP3hJI@finisterre.sirena.org.uk
> Cc: D Scott Phillips <scott@os.amperecomputing.com>
> Cc: Catalin Marinas <catalin.marinas@arm.com>
> Cc: Oliver Upton <oliver.upton@linux.dev>
> Cc: Will Deacon <will@kernel.org>
> ---
>  arch/arm64/include/asm/sysreg.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h
> index cd853801a8f7b..f1bb0d10c39a3 100644
> --- a/arch/arm64/include/asm/sysreg.h
> +++ b/arch/arm64/include/asm/sysreg.h
> @@ -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:

Acked-by: Will Deacon <will@kernel.org>

Will


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] arm64: sysreg: Drag linux/kconfig.h to work around vdso build issue
  2025-05-23 17:02 [PATCH] arm64: sysreg: Drag linux/kconfig.h to work around vdso build issue Marc Zyngier
  2025-05-23 18:12 ` Oliver Upton
  2025-05-27 13:15 ` Will Deacon
@ 2025-05-30  9:27 ` Marc Zyngier
  2 siblings, 0 replies; 4+ messages in thread
From: Marc Zyngier @ 2025-05-30  9:27 UTC (permalink / raw)
  To: linux-arm-kernel, kvmarm, Marc Zyngier
  Cc: Mark Brown, D Scott Phillips, Catalin Marinas, Oliver Upton,
	Will Deacon

On Fri, 23 May 2025 18:02:08 +0100, Marc Zyngier wrote:
> 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.
-- 
Without deviation from the norm, progress is not possible.




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-05-30  9:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-23 17:02 [PATCH] arm64: sysreg: Drag linux/kconfig.h to work around vdso build issue Marc Zyngier
2025-05-23 18:12 ` Oliver Upton
2025-05-27 13:15 ` Will Deacon
2025-05-30  9:27 ` Marc Zyngier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).