Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1393603
| From | Andy Lutomirski <luto@amacapital.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [tip:core/signals] selftests/sigaltstack: Add new testcase for sigaltstack(SS_ONSTACK|SS_AUTODISARM) |
| Date | 2016-05-03 18:50 +0200 |
| Message-ID | <ruLGi-33K-7@gated-at.bofh.it> (permalink) |
| References | <rnW3L-7VI-11@gated-at.bofh.it> <ruDpp-3Rg-25@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, May 3, 2016 at 12:50 AM, tip-bot for Stas Sergeev
<tipbot@zytor.com> wrote:
> Commit-ID: 19fd2868e3671b446b13d135a44363182bbd319a
> Gitweb: http://git.kernel.org/tip/19fd2868e3671b446b13d135a44363182bbd319a
> Author: Stas Sergeev <stsp@list.ru>
> AuthorDate: Thu, 14 Apr 2016 23:20:05 +0300
> Committer: Ingo Molnar <mingo@kernel.org>
> CommitDate: Tue, 3 May 2016 08:37:59 +0200
>
> selftests/sigaltstack: Add new testcase for sigaltstack(SS_ONSTACK|SS_AUTODISARM)
>
> This patch adds the test case for SS_AUTODISARM flag.
> The test-case tries to set SS_AUTODISARM flag and checks if
> the nested signal corrupts the stack after swapcontext().
> + stk.ss_sp = sstack;
> + stk.ss_size = SIGSTKSZ;
> + stk.ss_flags = SS_ONSTACK | SS_AUTODISARM;
> + err = sigaltstack(&stk, NULL);
> + if (err) {
> + perror("[FAIL]\tsigaltstack(SS_ONSTACK | SS_AUTODISARM)");
> + stk.ss_flags = SS_ONSTACK;
This code path here is wrong. I'll send a fix.
--Andy
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[tip:core/signals] selftests/sigaltstack: Add new testcase for sigaltstack(SS_ONSTACK|SS_AUTODISARM) tip-bot for Stas Sergeev <tipbot@zytor.com> - 2016-05-03 10:00 +0200 Re: [tip:core/signals] selftests/sigaltstack: Add new testcase for sigaltstack(SS_ONSTACK|SS_AUTODISARM) Andy Lutomirski <luto@amacapital.net> - 2016-05-03 18:50 +0200
csiph-web