All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/3] vdso: Reject absolute relocations during build
@ 2025-06-11  9:22 ` Thomas Weißschuh
  0 siblings, 0 replies; 30+ messages in thread
From: Thomas Weißschuh @ 2025-06-11  9:22 UTC (permalink / raw)
  To: Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti,
	Nathan Chancellor, Nick Desaulniers, Bill Wendling, Justin Stitt,
	Andy Lutomirski, Thomas Gleixner, Vincenzo Frascino
  Cc: linux-riscv, linux-kernel, llvm, Thomas Weißschuh

The compiler can emit absolute relocations in vDSO code,
which are invalid in vDSO code.
Detect them at compile-time.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
---
Changes in v3:
- Drop already applied bugfix for arm64
- Disable LTO for the riscv vDSO, as it is incompatible
- Link to v2: https://lore.kernel.org/r/20250430-vdso-absolute-reloc-v2-0-5efcc3bc4b26@linutronix.de

Changes in v2:
- Link to openend (invalid) GCC bug containing more explanations
- Refine commit messages
- Don't fail on commit absolute relocations in debug info
- Link to v1: https://lore.kernel.org/r/20250429-vdso-absolute-reloc-v1-0-987a0afd10b5@linutronix.de

---
Thomas Weißschuh (3):
      riscv: vdso: Deduplicate CFLAGS_REMOVE_* variables
      riscv: vdso: Disable LTO for the vDSO
      vdso: Reject absolute relocations during build

 arch/riscv/kernel/vdso/Makefile | 7 ++++---
 lib/vdso/Makefile.include       | 6 ++++++
 2 files changed, 10 insertions(+), 3 deletions(-)
---
base-commit: 13a2ea925ad717de32b5aeaaccda62ed26146d9f
change-id: 20250428-vdso-absolute-reloc-a226293c1761

Best regards,
-- 
Thomas Weißschuh <thomas.weissschuh@linutronix.de>


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

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

end of thread, other threads:[~2025-06-23  7:26 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-11  9:22 [PATCH v3 0/3] vdso: Reject absolute relocations during build Thomas Weißschuh
2025-06-11  9:22 ` Thomas Weißschuh
2025-06-11  9:22 ` [PATCH v3 1/3] riscv: vdso: Deduplicate CFLAGS_REMOVE_* variables Thomas Weißschuh
2025-06-11  9:22   ` Thomas Weißschuh
2025-06-11 18:40   ` Nathan Chancellor
2025-06-11 18:40     ` Nathan Chancellor
2025-06-12  8:13     ` Alexandre Ghiti
2025-06-12  8:13       ` Alexandre Ghiti
2025-06-11  9:22 ` [PATCH v3 2/3] riscv: vdso: Disable LTO for the vDSO Thomas Weißschuh
2025-06-11  9:22   ` Thomas Weißschuh
2025-06-11 18:41   ` Nathan Chancellor
2025-06-11 18:41     ` Nathan Chancellor
2025-06-11  9:22 ` [PATCH v3 3/3] vdso: Reject absolute relocations during build Thomas Weißschuh
2025-06-11  9:22   ` Thomas Weißschuh
2025-06-11 18:57   ` Nathan Chancellor
2025-06-11 18:57     ` Nathan Chancellor
2025-06-12  5:48     ` Thomas Weißschuh
2025-06-12  5:48       ` Thomas Weißschuh
2025-06-12  8:31   ` Alexandre Ghiti
2025-06-12  8:31     ` Alexandre Ghiti
2025-06-12 14:21     ` Thomas Weißschuh
2025-06-12 14:21       ` Thomas Weißschuh
2025-06-21 15:42       ` Thomas Gleixner
2025-06-21 15:42         ` Thomas Gleixner
2025-06-23  7:25         ` Thomas Weißschuh
2025-06-23  7:25           ` Thomas Weißschuh
2025-06-12 20:05     ` Palmer Dabbelt
2025-06-12 20:05       ` Palmer Dabbelt
2025-06-13  1:08       ` Jessica Clarke
2025-06-13  1:08         ` Jessica Clarke

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.