Lines Matching full:shadow
3 * This program test's basic kernel shadow stack support. It enables shadow
5 * Makefile doesn't compile with shadow stack support, so it doesn't rely on
7 * special glibc shadow stack support (longjmp(), swapcontext(), etc). Just
85 * For use in inline enablement of shadow stack.
87 * The program can't return from the point where shadow stack gets enabled
88 * because there will be no address on the shadow stack. So it can't use
146 /* Switch back to original shadow stack */ in try_shstk()
157 printf("[FAIL]\tError creating shadow stack: %d\n", errno); in test_shstk_pivot()
171 /* Read shadow stack, test if it's zero to not get read optimized out */ in test_shstk_faults()
204 /* Corrupt shadow stack */ in violate_ss()
205 printf("[INFO]\tCorrupting shadow stack\n"); in violate_ss()
211 printf("[INFO]\tGenerated shadow stack violation successfully\n"); in segv_handler()
215 /* Fix shadow stack */ in segv_handler()
261 /* Fix shadow stack */ in test_access_fix_handler()
409 /* mprotect a shadow stack as read only */ in test_mprotect()
423 * The shadow stack was reset above to resolve the fault, make the new one in test_mprotect()
547 * This tests whether mmap will place other mappings in a shadow stack's guard
550 * 2. Map a shadow stack in the middle of the known empty area.
552 * direction, filling any gaps until it encounters the shadow stack's
554 * 4. When a mapping lands below the shadow stack from step 2, then all
556 * looked at the shadow stack gaps.
638 * shadow stack enabled, so disable shadow stack before siglongjmp(). in segv_gp_handler()
791 printf("[SKIP]\tCould not enable Shadow stack\n"); in main()
797 printf("[FAIL]\tDisabling shadow stack failed\n"); in main()
801 printf("[SKIP]\tCould not re-enable Shadow stack\n"); in main()
837 printf("[FAIL]\tShadow shadow stack gup\n"); in main()
843 printf("[FAIL]\tShadow shadow mprotect test\n"); in main()
874 * Disable shadow stack before the function returns, or there will be a in main()
875 * shadow stack violation. in main()
879 printf("[FAIL]\tDisabling shadow stack failed\n"); in main()