diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2021-05-15 19:00:35 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-05-15 19:00:35 +0200 |
commit | 91b7a0f0637c14ce0d252111cf9bca3830e16593 (patch) | |
tree | da7d03ef17f7334fca273c3767f37126054a092a /include | |
parent | Merge branch 'akpm' (patches from Andrew) (diff) | |
parent | stack: Replace "o" output with "r" input constraint (diff) | |
download | linux-91b7a0f0637c14ce0d252111cf9bca3830e16593.tar.xz linux-91b7a0f0637c14ce0d252111cf9bca3830e16593.zip |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/randomize_kstack.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/randomize_kstack.h b/include/linux/randomize_kstack.h index fd80fab663a9..bebc911161b6 100644 --- a/include/linux/randomize_kstack.h +++ b/include/linux/randomize_kstack.h @@ -38,7 +38,7 @@ void *__builtin_alloca(size_t size); u32 offset = raw_cpu_read(kstack_offset); \ u8 *ptr = __builtin_alloca(KSTACK_OFFSET_MAX(offset)); \ /* Keep allocation even after "ptr" loses scope. */ \ - asm volatile("" : "=o"(*ptr) :: "memory"); \ + asm volatile("" :: "r"(ptr) : "memory"); \ } \ } while (0) |