Skip to content

Commit 91b7a0f

Browse files
committed
Merge tag 'core-urgent-2021-05-15' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 stack randomization fix from Ingo Molnar: "Fix an assembly constraint that affected LLVM up to version 12" * tag 'core-urgent-2021-05-15' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: stack: Replace "o" output with "r" input constraint
2 parents a414741 + 2515dd6 commit 91b7a0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/randomize_kstack.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ void *__builtin_alloca(size_t size);
3838
u32 offset = raw_cpu_read(kstack_offset); \
3939
u8 *ptr = __builtin_alloca(KSTACK_OFFSET_MAX(offset)); \
4040
/* Keep allocation even after "ptr" loses scope. */ \
41-
asm volatile("" : "=o"(*ptr) :: "memory"); \
41+
asm volatile("" :: "r"(ptr) : "memory"); \
4242
} \
4343
} while (0)
4444

0 commit comments

Comments
 (0)