| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
("permanently undefined")
ok deraadt@ kettenis@
|
|
|
|
|
|
|
|
|
|
|
| |
some of these functions were returning. That makes the +1word address
a fairly strong and easily located gadget. Put a hard-trap
instruction after the syscall. This remains a gadget for 'terminal
system' calls (such as execve), but hey that's why we have pledge w/o
"exec" throughout the tree.
Quite surprisingly, hppa's delay-slot load of SYS_exit makes it the
safest of the bunch, not that this helps anyone.
ok kettenis
|
|
|
|
| |
ok kettenis
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
problems as 64-bit models. For the syscall instruction issue, add nop;nop
after swi 0, in preparation for jumping over a speculation barrier here later.
|
|
|
|
| |
ok kettenis@
|
|
|
|
|
|
| |
Necessary (but perhaps not suffcient) to build large binaries on arm.
ok guenther@
|
|
|
|
|
|
|
|
|
|
| |
sections as extern hidden arrays of indefinite size, so that the compiler
(well, clang) doesn't believe it knows the exact contents and thus optimize
things into infinite loops. Actually set the symbols to be in the sections
and insert the leading and trailing values via __asm().
Problem pointed out by patrick@
testing and ok kettenis@
|
|
|
|
|
|
| |
AEABI-like.
ok tom@, jsg@
|
|
|
|
|
|
|
| |
unecessary code from the normal startup code and do some general cleanup to
make the code more readable.
ok guenther@, jsg@
|
|
|
|
|
|
|
| |
with strong symbols in ld.so don't do what we need, so put definitions back
in crt0 and make ld.so update __progname like it does environ.
report and testing patrick@ jsg@
|
|
|
|
|
|
|
|
|
|
|
| |
move their definitions and initialization in static links to libc.a
Make crt0 always invoke a new func _csu_finish() in libc to process the auxv
and to either register the ld.so cleanup function (in dynamic links) or
initialize environ and __progname and do MC_DISABLE_KBIND (in static links).
In libc, get pagesize from auxv; cache that between getpagesize() and
sysconf(_SC_PAGESIZE)
ok mpi@ "good time" deraadt@
|
|
|
|
|
| |
With much assistance from miod@
ok deraadt@@
|
|
|
|
|
|
| |
the md_init.h files.
Worked out with and ok miod@; ok matthew@
|
|
|
|
|
|
|
| |
invocations. This allows us to use the compiler builtin define __PIC__ to check
for PIC/PIEness rather than passing -DPIC. Simplifies PIE work a lot.
ok matthew@, conceptually ok kurt@
|
| |
|
|
|