Skip to content

Commit f554416

Browse files
zx2c4mpe
authored andcommitted
powerpc/vdso: allow r30 in vDSO code generation of getrandom
For gettimeofday, -ffixed-r30 was passed to work around a bug in Go code, where the vDSO trampoline forgot to save and restore this register across function calls. But Go requires a different trampoline for every call, and there's no reason that new Go code needs to be broken and add more bugs. So remove -ffixed-r30 for getrandom. Fixes: 8072b39 ("powerpc/vdso: Wire up getrandom() vDSO implementation on VDSO64") Signed-off-by: Jason A. Donenfeld <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://msgid.link/[email protected]
1 parent ad46e8f commit f554416

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: arch/powerpc/kernel/vdso/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ endif
2222

2323
ifneq ($(c-getrandom-y),)
2424
CFLAGS_vgetrandom-32.o += -include $(c-getrandom-y)
25-
CFLAGS_vgetrandom-64.o += -include $(c-getrandom-y) $(call cc-option, -ffixed-r30)
25+
CFLAGS_vgetrandom-64.o += -include $(c-getrandom-y)
2626
endif
2727

2828
# Build rules

0 commit comments

Comments
 (0)