Re: [PATCH v2 4/4] selftest/x86/signal: Include test cases for validating sigaltstack

Borislav Petkov
2020-11-27T17:32:35Z

On Thu, Nov 19, 2020 at 11:02:37AM -0800, Chang S. Bae wrote:
> +static void test_sigaltstack(void *altstack, unsigned long size)
> +{
> + if (setup_altstack(altstack, size))
> + err(1, "sigaltstack()");
> +
> + sigalrm_expected = (size > at_minstack_size) ? true : false;
> +
> + sethandler(SIGSEGV, sigsegv, 0);
> + sethandler(SIGALRM, sigalrm, SA_ONSTACK);
> +
> + if (sigsetjmp(jmpbuf, 1) == 0) {
> + printf("[RUN]\tTest an %s sigaltstack\n",

[RUN] Test an enough sigaltstack

That's not english, pls try again.

[OK] SIGALRM signal expectedly delivered.

What is "expectedly delivered"?

--
Regards/Gruss,
Boris.

SUSE Software Solutions Germany GmbH, GF: Felix Imendörffer, HRB 36809, AG Nürnberg