plan9fox/sys/src/cmd/acid
cinap_lenrek 4cb032442a acid: fix sysr1() stack corruption
the syscall stubs (for amd64) currently have a unconditional
spill of the first (register) argument to the stack.

sysr1 (and _nsec) are exceptional in that they do not
take any arguments, so the stub is writing unconditionally
to ther first argument slot on the stack.

i could avoid emiting the spill in the syscall stubs for
sysr1 but that would also break truss which assumes fixed
instruction sequence from stub start to the syscall number.

i'm not going to complicate the syscall stubs just for
sysr1 (_nsec is not used in 9front), but just add a dummy
argument to sysr1 definition that can receive the bogus
argument spill.
2014-09-22 23:07:59 +02:00
..
acid.h acid: make 'a' and 'A' format to have the same size as mach->szaddr 2014-02-09 22:43:09 +01:00
builtin.c acid: fix sysr1() stack corruption 2014-09-22 23:07:59 +02:00
dbg.y acid: fix memory corruption due to gc 2014-02-09 01:37:05 +01:00
dot.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
exec.c acid: fix memory corruption due to gc 2014-02-09 01:37:05 +01:00
expr.c acid: make 'a' and 'A' format to have the same size as mach->szaddr 2014-02-09 22:43:09 +01:00
lex.c acid: fix memory corruption due to gc 2014-02-09 01:37:05 +01:00
list.c acid: make 'a' and 'A' format to have the same size as mach->szaddr 2014-02-09 22:43:09 +01:00
main.c acid: make 'a' and 'A' format to have the same size as mach->szaddr 2014-02-09 22:43:09 +01:00
mkfile Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
print.c acid: fix memory leak in fundefs (from 9atom) 2014-02-02 03:17:48 -08:00
proc.c acid: fix format string bugs and comment line counting (from eriks patch/acid-nits patch) 2012-02-11 13:05:34 +01:00
util.c acid: make 'a' and 'A' format to have the same size as mach->szaddr 2014-02-09 22:43:09 +01:00