This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [BZ 16372] fixing tst-longjmp_chk2 on ia64
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Mike Frysinger <vapier at gentoo dot org>
- Cc: "H.J. Lu" <hjl dot tools at gmail dot com>, libc-alpha at sourceware dot org
- Date: Fri, 27 Dec 2013 12:22:08 +0100
- Subject: Re: [BZ 16372] fixing tst-longjmp_chk2 on ia64
- Authentication-results: sourceware.org; auth=none
- References: <201312270316 dot 31023 dot vapier at gentoo dot org>
Mike Frysinger <vapier@gentoo.org> writes:
> i was going through the outstanding ia64 test failures when i came across tst-
> longjmp_chk2. that test is designed to make sure the longjmp fortify logic
> handles signal stacks correctly which the current ia64 code does not. to
> implement this, you have to call sigaltstack from asm code, and my ia64 skills
> are bad :).
>
> here's what i've got so far:
> #define CHECK_RSP(reg) \
> /* First see if target stack is within current one. */ \
> cmp.ltu p0, p8 = reg, r12; \
> (p8) br.cond.dpnt .Lok;; \
> \
> /* Maybe it's an alternative signal stack. */ \
> adds r34 = -sizeSS, r12; \
How did you allocate the space for the stack_t?
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."