diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2020-03-13 09:31:27 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2020-03-13 09:31:27 +0000 |
commit | 3dd873d5712775c0f8f07378b93f5270bf0f4ef6 (patch) | |
tree | edf42e35ea95c1842f599ffebbfefc2096aa2d82 /lib/csu | |
parent | 87f4e84920fae5bab9dcc347f162a069b18ace3b (diff) |
Anthony Steinhauser reports that 32-bit arm cpus have the same speculation
problems as 64-bit models. To resolve the syscall speculation, as a first
step "nop; nop" was added after all occurances of the syscall ("swi 0")
instruction. Then the kernel was changed to jump over the 2 extra instructions.
In this final step, those pair of nops are converted into the speculation-blocking
sequence ("dsb nsh; isb").
Don't try to build through these multiple steps, use a snapshot instead.
Packages matching the new ABI will be out in a while...
ok kettenis
Diffstat (limited to 'lib/csu')
-rw-r--r-- | lib/csu/arm/md_init.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/csu/arm/md_init.h b/lib/csu/arm/md_init.h index c8d7ad57e4a..283b5e3baf8 100644 --- a/lib/csu/arm/md_init.h +++ b/lib/csu/arm/md_init.h @@ -1,4 +1,4 @@ -/* $OpenBSD: md_init.h,v 1.13 2020/03/11 13:09:29 deraadt Exp $ */ +/* $OpenBSD: md_init.h,v 1.14 2020/03/13 09:31:26 deraadt Exp $ */ /*- * Copyright (c) 2001 Ross Harvey @@ -157,6 +157,6 @@ "_dl_exit: \n" \ " mov r12, #1 \n" \ " swi #0 \n" \ - " nop \n" \ - " nop \n" \ + " dsb nsh \n" \ + " isb \n" \ ".previous"); |