Home
last modified time | relevance | path

Searched refs:altstack (Results 1 – 3 of 3) sorted by relevance

/linux-6.1.9/tools/testing/selftests/x86/
Dsigaltstack.c89 static void test_sigaltstack(void *altstack, unsigned long size) in test_sigaltstack() argument
91 if (setup_altstack(altstack, size)) in test_sigaltstack()
113 void *altstack; in main() local
117 altstack = mmap(NULL, at_minstack_size + SIGSTKSZ, PROT_READ | PROT_WRITE, in main()
119 if (altstack == MAP_FAILED) in main()
123 test_sigaltstack(altstack, ENFORCED_MINSIGSTKSZ + 1); in main()
125 test_sigaltstack(altstack, at_minstack_size + SIGSTKSZ); in main()
Damx.c423 void *altstack; in alloc_altstack() local
425 altstack = mmap(NULL, size, PROT_READ | PROT_WRITE, in alloc_altstack()
428 if (altstack == MAP_FAILED) in alloc_altstack()
431 return altstack; in alloc_altstack()
460 void *altstack; in test_dynamic_sigaltstack() local
477 altstack = alloc_altstack(enough_size); in test_dynamic_sigaltstack()
486 setup_altstack(altstack, small_size, SUCCESS_EXPECTED); in test_dynamic_sigaltstack()
495 setup_altstack(altstack, enough_size, SUCCESS_EXPECTED); in test_dynamic_sigaltstack()
505 setup_altstack(altstack, small_size, FAIL_EXPECTED); in test_dynamic_sigaltstack()
/linux-6.1.9/Documentation/x86/
Dxstate.rst53 sigaltstack(2) results in -ENOMEM if the requested altstack is too small