diff options
author | Brandon Bergren <bdragon@FreeBSD.org> | 2020-08-06 17:49:19 +0000 |
---|---|---|
committer | Brandon Bergren <bdragon@FreeBSD.org> | 2020-08-06 17:49:19 +0000 |
commit | e039e3d1d2075c7f5ad596e6c7a3453775b691d0 (patch) | |
tree | e4058f6265ee89f3233d991c2644d8c204c62a05 /sys/cam/ctl | |
parent | 9f9cc3f989bbdf66323a4df2fee08473ea8d9071 (diff) | |
download | src-e039e3d1d2075c7f5ad596e6c7a3453775b691d0.tar.gz src-e039e3d1d2075c7f5ad596e6c7a3453775b691d0.zip |
[POWERPC] Fix ppc64 makecontext() parameter overflow handling.
On ELFv2, the overflow parameters in the stack frame are at a different offset
from sp than ELFv1. Adjust code to use the correct offset in all cases.
This had resulted in argv[8] and up being copied to the incorrect address
in the new context's initial stack frame.
This is not necessarily the only bug in this function, I need to do a full
review still and ensure the rest of the math is sane for ELFv2 stack frames.
Reported by: pherde (Probably. My notes are a bit unclear.)
Reviewed by: jhibbits (in irc)
Sponsored by: Tag1 Consulting, Inc.
Notes
Notes:
svn path=/head/; revision=363972
Diffstat (limited to 'sys/cam/ctl')
0 files changed, 0 insertions, 0 deletions