/freebsd-13-stable/contrib/bmake/unit-tests/ |
H A D | opt-m-include-dir.mk | 6 # The .../canary.mk special argument starts searching in the current 8 # directory that contains a file called canary.mk. 12 # steps up in the directory hierarchy, serving as the canary file. 14 # Next to the canary file, there is opt-m-step3.mk. This file is found 23 CANARY_FILE:= ${.PARSEFILE:R}.tmp/sub/opt-m-canary.mk 44 .MAKEFLAGS: -m .../opt-m-canary.mk 47 # canary file does not exist.
|
/freebsd-13-stable/lib/libc/gen/ |
H A D | auxv.c | 72 static char *canary, *pagesizes, *execpath; variable 95 canary = (char *)(aux->a_un.a_ptr); 180 canary = (char *)(aux->a_un.a_ptr); 264 if (canary != NULL && canary_len >= buflen) { 265 memcpy(buf, canary, buflen); 266 memset(canary, 0, canary_len); 267 canary = NULL;
|
/freebsd-13-stable/sys/contrib/libsodium/src/libsodium/sodium/ |
H A D | utils.c | 85 static unsigned char canary[CANARY_SIZE]; variable 354 randombytes_buf(canary, sizeof canary); 499 canary_ptr = ((unsigned char *) ptr) - sizeof canary; 532 if (page_size <= sizeof canary || page_size < sizeof unprotected_size) { 535 size_with_canary = (sizeof canary) + size; 544 memcpy(unprotected_ptr + unprotected_size, canary, sizeof canary); 550 user_ptr = canary_ptr + sizeof canary; 551 memcpy(canary_ptr, canary, sizeo [all...] |
/freebsd-13-stable/sys/compat/cloudabi32/ |
H A D | cloudabi32_module.c | 69 void *argdata, *canary, *pid; local 84 /* Store canary for stack smashing protection. */ 87 canary = (void *)*stack_base; 88 error = copyout(canarybuf, canary, sizeof(canarybuf)); 124 PTR(CLOUDABI_AT_CANARY, canary),
|
/freebsd-13-stable/sys/compat/cloudabi64/ |
H A D | cloudabi64_module.c | 69 void *argdata, *canary, *pid; local 84 /* Store canary for stack smashing protection. */ 87 canary = (void *)*stack_base; 88 error = copyout(canarybuf, canary, sizeof(canarybuf)); 124 PTR(CLOUDABI_AT_CANARY, canary),
|
/freebsd-13-stable/sys/powerpc/powerpc/ |
H A D | elf_common.c | 75 if (imgp->canary != 0) { 76 AUXARGS_ENTRY_PTR(pos, AT_OLD_CANARY, imgp->canary);
|
/freebsd-13-stable/sys/arm64/linux/ |
H A D | linux_sysvec.c | 191 AUXARGS_ENTRY_PTR(pos, LINUX_AT_RANDOM, imgp->canary); 229 char canary[LINUX_AT_RANDOM_LEN]; local 253 /* Prepare the canary for SSP. */ 254 arc4rand(canary, sizeof(canary), 0); 255 destp -= roundup(sizeof(canary), sizeof(void *)); 256 imgp->canary = (void *)destp; 257 error = copyout(canary, imgp->canary, sizeof(canary)); [all...] |
/freebsd-13-stable/sys/sys/ |
H A D | imgact.h | 86 void *canary; member in struct:image_params
|
/freebsd-13-stable/sys/amd64/linux/ |
H A D | linux_sysvec.c | 282 AUXARGS_ENTRY_PTR(pos, LINUX_AT_RANDOM, imgp->canary); 326 char canary[LINUX_AT_RANDOM_LEN]; local 349 /* Prepare the canary for SSP. */ 350 arc4rand(canary, sizeof(canary), 0); 351 destp -= roundup(sizeof(canary), sizeof(void *)); 352 imgp->canary = (void *)destp; 353 error = copyout(canary, imgp->canary, sizeof(canary)); [all...] |
/freebsd-13-stable/sys/i386/linux/ |
H A D | linux_sysvec.c | 235 AUXARGS_ENTRY_PTR(pos, LINUX_AT_RANDOM, imgp->canary); 276 char canary[LINUX_AT_RANDOM_LEN]; local 305 /* Prepare the canary for SSP. */ 306 arc4rand(canary, sizeof(canary), 0); 307 destp -= roundup(sizeof(canary), sizeof(void *)); 308 imgp->canary = (void *)destp; 309 error = copyout(canary, imgp->canary, sizeof(canary)); [all...] |
/freebsd-13-stable/sys/amd64/linux32/ |
H A D | linux32_sysvec.c | 230 AUXARGS_ENTRY(pos, LINUX_AT_RANDOM, PTROUT(imgp->canary)); 744 char canary[LINUX_AT_RANDOM_LEN]; local 765 /* Prepare the canary for SSP. */ 766 arc4rand(canary, sizeof(canary), 0); 767 destp -= roundup(sizeof(canary), sizeof(uint32_t)); 768 imgp->canary = (void *)destp; 769 error = copyout(canary, imgp->canary, sizeof(canary)); [all...] |
/freebsd-13-stable/sys/kern/ |
H A D | kern_exec.c | 1576 char canary[sizeof(long) * 8]; local 1622 * Prepare the canary for SSP. 1624 arc4rand(canary, sizeof(canary), 0); 1625 destp -= sizeof(canary); 1626 imgp->canary = (void *)destp; 1627 error = copyout(canary, imgp->canary, sizeof(canary)); 1630 imgp->canarylen = sizeof(canary); [all...] |
H A D | imgact_elf.c | 1374 if (imgp->canary != 0) { 1375 AUXARGS_ENTRY_PTR(pos, AT_CANARY, imgp->canary);
|
/freebsd-13-stable/sys/compat/freebsd32/ |
H A D | freebsd32_misc.c | 3363 char canary[sizeof(long) * 8]; local 3409 * Prepare the canary for SSP. 3411 arc4rand(canary, sizeof(canary), 0); 3412 destp -= sizeof(canary); 3413 imgp->canary = (void *)destp; 3414 error = copyout(canary, imgp->canary, sizeof(canary)); 3417 imgp->canarylen = sizeof(canary); [all...] |
/freebsd-13-stable/sys/dev/xen/netback/ |
H A D | netback_unit_tests.c | 2023 uint16_t canary = 6859; local 2045 req->gref = canary; 2046 req->id = canary; 2062 XNB_ASSERT(req->gref == canary); 2063 XNB_ASSERT(req->id == canary);
|