/freebsd/lib/libsys/ |
H A D | mmap.2 | 4 .\" Redistribution and use in source and binary forms, with or without 22 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 43 system call causes the pages starting at 55 Any such extension beyond the end of the mapped object will be zero-filled. 85 is non-zero, it is used as a hint to the system. 102 .Bl -tag -width PROT_WRITE -compact 104 Pages may not be accessed. 106 Pages may be read. 108 Pages may be written. [all …]
|
/freebsd/share/man/man9/ |
H A D | memguard.9 | 4 .\" Redistribution and use in source and binary forms, with or without 19 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 to help detect tamper-after-free scenarios. 59 can guard all allocations larger than 61 and can guard a random fraction of all allocations. 65 To use 69 .Bd -literal -offset indent 76 variable at run-time: 77 .Bd -literal -offset indent [all …]
|
/freebsd/sys/vm/ |
H A D | vm_glue.c | 1 /*- 2 * SPDX-License-Identifier: (BSD-3-Clause AND MIT-CMU) 8 * The Mach Operating System project at Carnegie-Mellon University. 10 * Redistribution and use in source and binary forms, with or without 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 * Copyright (c) 1987, 1990 Carnegie-Mellon University. 38 * Permission to use, copy, modify and distribute this software and 44 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" 46 * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. [all …]
|
H A D | memguard.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 8 * Redistribution and use in source and binary forms, with or without 23 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 33 * which provides ElectricFence-style memory barrier protection on 34 * objects being allocated, and is used to detect tampering-after-free 90 if (error != 0 || req->newptr == NULL) in memguard_sysctl_desc() 132 &memguard_fail_pgs, 0, "MemGuard failures due to lack of pages"); 141 "\t0x001 - add guard pages around each allocation\n" [all …]
|
H A D | vm_map.c | 1 /*- 2 * SPDX-License-Identifier: (BSD-3-Clause AND MIT-CMU) 8 * The Mach Operating System project at Carnegie-Mellon University. 10 * Redistribution and use in source and binary forms, with or without 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * OUT OF THE USE O 4685 vm_size_t grow_amount, guard, max_grow, sgp; vm_map_growstack() local [all...] |
/freebsd/sys/riscv/include/ |
H A D | param.h | 1 /*- 8 * Redistribution and use in source and binary forms, with or without 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * Machine dependent constants for RISC-V. 39 #define STACKALIGNBYTES (16 - 1) 69 #define ALIGNED_POINTER(p, t) ((((u_long)(p)) & (sizeof(t) - 1)) == 0) 72 * CACHE_LINE_SIZE is the compile-time maximum cache line size for an 80 #define PAGE_MASK (PAGE_SIZE - 1) 85 #define KSTACK_PAGES 4 /* pages of kernel stack (with pcb) */ [all …]
|
/freebsd/sys/arm64/include/ |
H A D | param.h | 1 /*- 8 * Redistribution and use in source and binary forms, with or without 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 43 #define STACKALIGNBYTES (16 - 1) 76 #define ALIGNED_POINTER(p, t) ((((u_long)(p)) & (sizeof(t) - 1)) == 0) 79 * CACHE_LINE_SIZE is the compile-time maximum cache line size for an 96 #define PAGE_MASK (PAGE_SIZE - 1) 104 #define KSTACK_PAGES 4 /* pages of kernel stack (with pcb) */ 108 #define KSTACK_GUARD_PAGES 1 /* pages of kstack guard; 0 disables */
|
/freebsd/sys/i386/include/ |
H A D | param.h | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 10 * Redistribution and use in source and binary forms, with or without 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 77 * CACHE_LINE_SIZE is the compile-time maximum cache line size for an 85 #define PAGE_MASK (PAGE_SIZE - 1) 90 /* Number of PDEs in page directory, 2048 for PAE, 1024 for non-PAE */ 94 #define PDRMASK (NBPDR - 1) 104 #define IOPAGES 2 /* pages of i/o permission bitmap */ [all …]
|
/freebsd/usr.bin/systat/ |
H A D | proc.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 6 * Redistribution and use in source and binary forms, with or without 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 48 uint32_t swapped; /* in pages */ 65 uint32_t pages; member 83 uname = user_from_uid(pu[idx]->uid, 0); in display_proc_line() 84 swapbytes = ptoa(pu[idx]->pages); in display_proc_line() 86 snprintf(buf, sizeof(buf), "%6d %-10s %-10.10s", pu[idx]->pid, uname, in display_proc_line() [all …]
|
/freebsd/sys/amd64/include/ |
H A D | param.h | 1 /*- 2 * SPDX-License-Identifier: BSD-4-Clause 12 * Redistribution and use in source and binary forms, with or without 20 * 3. All advertising materials mentioning features or use of this software 34 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 37 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 83 * CACHE_LINE_SIZE is the compile-time maximum cache line size for an 94 #define PAGE_MASK (PAGE_SIZE-1) 100 #define PDRMASK (NBPDR-1) 106 #define PDPMASK (NBPDP-1) [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/gwp_asan/ |
H A D | guarded_pool_allocator.h | 1 //===-- guarded_pool_allocator.h -------- [all...] |
H A D | guarded_pool_allocator.cpp | 1 //===-- guarded_pool_allocator.cpp ------------------------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 27 // init-order-fiasco. 31 return (Size + Boundary - 1) & ~(Boundary - 1); in roundUpTo() 35 return Ptr & ~(PageSize - 1); in getPageAddr() 38 bool isPowerOfTwo(uintptr_t X) { return (X & (X - 1)) == 0; } in isPowerOfTwo() 41 // Gets the singleton implementation of this class. Thread-compatible until 42 // init() is called, thread-safe afterwards. 48 // Note: We return from the constructor here if GWP-ASan is not available. in init() [all …]
|
/freebsd/lib/libsys/x86/ |
H A D | pkru.3 | 7 .\" Redistribution and use in source and binary forms, with or without 22 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 .Nm Protection Key Rights for User pages 33 .Nd provide fast user-managed key-based access control for pages 57 to control access to user-mode addresses. 61 It cannot guard against conscious accesses since permissions 62 are user-controllable. 65 has an associated 4-bit protection key. 66 A new per-thread PKRU hardware register determines, for each protection [all …]
|
/freebsd/sys/arm/arm/ |
H A D | machdep_boot.c | 1 /*- 3 * Copyright (c) 1994-1998 Mark Brinicombe. 7 * Redistribution and use in source and binary forms, with or without 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 103 snprintf(board_serial, sizeof(board_serial)-1, in board_set_serial() 146 /* Convert the U-Boot command line into FreeBSD kenv and boot options. */ 148 cmdline_set_env(char *cmdline, const char *guard) in cmdline_set_env() argument 156 /* Test and remove guard. */ in cmdline_set_env() 157 if (guard != NULL && guard[0] != '\0') { in cmdline_set_env() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64BranchTargets.cpp | 1 //===-- AArch64BranchTargets.cpp -- Harden code using v8.5-A BTI extension -==// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 12 // which is not a valid BTI instruction. This is intended to guard against 13 // control-flow hijacking attacks. Note that this does not do anything for RET 17 //===----------------------------------------------------------------------===// 29 #define DEBUG_TYPE "aarch64-branch-targets" 49 INITIALIZE_PASS(AArch64BranchTargets, "aarch64-branch-targets", 62 if (!MF.getInfo<AArch64FunctionInfo>()->branchTargetEnforcement()) in runOnMachineFunction() 70 // to be address-taken (the address can't escape anywhere else), but they are in runOnMachineFunction() [all …]
|
/freebsd/sys/powerpc/include/ |
H A D | param.h | 1 /*- 2 * SPDX-License-Identifier: BSD-4-Clause 11 * Redistribution and use in source and binary forms, with or without 19 * 3. All advertising materials mentioning features or use of this software 33 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 94 #define ALIGNED_POINTER(p, t) ((((uintptr_t)(p)) & (sizeof (t) - 1)) == 0) 97 * CACHE_LINE_SIZE is the compile-time maximum cache line size for an 105 #define PAGE_MASK (PAGE_SIZE - 1) 111 #define L1_PAGE_MASK (L1_PAGE_SIZE-1) [all …]
|
/freebsd/usr.bin/procstat/ |
H A D | procstat.1 | 1 .\"- 2 .\" Copyright (c) 2007-2009 Robert N. M. Watson 5 .\" Redistribution and use in source and binary forms, with or without 20 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 .Op Fl -libxo 42 .Op Fl -libxo 50 .Op Fl -libxo 73 .Op Fl -libxo 96 .Op Fl -libxo [all …]
|
/freebsd/crypto/openssl/crypto/ |
H A D | mem_sec.c | 2 * Copyright 2015-2023 The OpenSSL Project Authors. All Rights Reserved. 3 * Copyright 2004-2014, Akamai Technologies. All Rights Reserved. 5 * Licensed under the Apache License 2.0 (the "License"). You may not use 187 secure_mem_used -= actual_size; in CRYPTO_secure_free() 212 secure_mem_used -= actual_size; in CRYPTO_secure_clear_free() 276 * The implementation provided here uses a fixed-sized mmap() heap, 286 * This code assumes eight-bit bytes. The numbers 3 and 7 are all over the 326 ossl_ssize_t list = sh.freelist_size - 1; in sh_getlist() 327 size_t bit = (sh.arena_size + ptr - sh.arena) / sh.minsize; in sh_getlist() 329 for (; bit; bit >>= 1, list--) { in sh_getlist() [all …]
|
/freebsd/contrib/ntp/html/ |
H A D | history.html | 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 4 <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> 12 <!-- #BeginDate format:En2m -->10-Mar-2014 05:07<!-- #EndDate --> 22 <p>The documentation required a major upgrade. Many pages have been overhauled, some completely re… 23 …pages have been added on association management, automatic server discovery and rate management. M… 27 …guard time) and minimum average headway. This is a major improvement over the original limitreject… 35 <p>In the original design the frequency file was written at one-hour intervals. This apparently mak… 47 …g nothing to do with the DNS name. This opens up a possible future plan to use the Autokey name ra… 55 …-6 monitoring protocol was designed circa 1988 the considered intent was that monitoring functions… 57 … purposes, some scripts no longer worked. The scripts should be changed to use only the leap and s… [all …]
|
/freebsd/contrib/libfido2/ |
H A D | CMakeLists.txt | 1 # Copyright (c) 2018-2022 Yubico AB. All rights reserved. 2 # Use of this source code is governed by a BSD-style 4 # SPDX-License-Identifier: BSD-2-Clause 38 option(BUILD_MANPAGES "Build man pages" ON) 43 option(USE_HIDAPI "Use hidapi as the HID backend" OFF) 48 add_definitions(-D_FIDO_MAJO [all...] |
/freebsd/contrib/llvm-project/lldb/source/Target/ |
H A D | Process.cpp | 1 //===-- Process.cpp -------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 83 // setting target.process.disable-memory-cache 102 // one. Else we just use the one from this instance. in GetPropertyAtIndex() 104 Process *process = exe_ctx->GetProcessPtr(); in GetPropertyAtIndex() 108 process->GetValueProperties().get()); in GetPropertyAtIndex() 110 return instance_properties->ProtectedGetPropertyAtIndex(idx); in GetPropertyAtIndex() 185 m_collection_sp->Initialize(g_process_experimental_properties); in ProcessExperimentalProperties() 195 m_collection_sp->Initialize(g_process_properties); in ProcessProperties() [all …]
|
/freebsd/sys/dev/iommu/ |
H A D | iommu_gas.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 9 * Redistribution and use in source and binary forms, with or without 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 100 SLIST_INIT(&res->pgtbl_free); in iommu_gas_alloc_entry() 102 res->domain = domain; in iommu_gas_alloc_entry() 103 atomic_add_int(&domain->entries_cnt, 1); in iommu_gas_alloc_entry() 115 n = vm_page_free_pages_toq(&entry->pgtbl_free, false); in iommu_gas_free_entry() 119 domain = entry->domain; in iommu_gas_free_entry() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/ |
H A D | combined.h | 1 //===-- combined.h ----------------------------------------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 42 // header files. We only declare/use it when targeting the platform. 130 reinterpret_cast<void *>(reinterpret_cast<uptr>(Ptr) - in deallocate() 158 if (getFlags()->may_return_null) in init() 160 if (getFlags()->zero_contents) in init() 162 else if (getFlags()->pattern_fill_contents) in init() 164 if (getFlags()->dealloc_type_mismatch) in init() 166 if (getFlags()->delete_size_mismatch) in init() [all …]
|
H A D | secondary.h | 1 //===-- secondary.h ---------------------------------------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 27 // Blocks allocated will be preceded and followed by a guard page, and hold 28 // their own header that is not checksummed: the guard pages and the Combined 58 return reinterpret_cast<Header *>(addHeaderTag<Config>(Ptr)) - 1; in getHeader() 68 // Note that the `H->MapMap` is stored on the pages managed by itself. Take in unmap() 70 // won't touch inaccessible pages. in unmap() 71 MemMapT MemMap = H->MemMap; in unmap() 113 Str->append("Secondary Cache Disabled\n"); in getStats() [all …]
|
/freebsd/sys/dev/qlnx/qlnxe/ |
H A D | rdma_common.h | 2 * Copyright (c) 2017-2018 Cavium, Inc. 5 * Redistribution and use in source and binary forms, with or without 21 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 24 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 36 #define RDMA_RING_PAGE_SIZE (0x1000) //4KB pages 47 #define RDMA_MAX_TIDS (128*1024-1) 89 #define RDMA_CQE_RESPONDER_TYPE_MASK 0x3 /* (use enum rdma_cqe_type) */ 114 #define RDMA_CQE_REQUESTER_TYPE_MASK 0x3 /* (use enum rdma_cqe_type) */ 129 #define RDMA_CQE_COMMON_TYPE_MASK 0x3 /* (use enum rdma_cqe_type) */ 271 #define RDMA_RQ_SGE_NUM_SGES_MASK 0x7 /* first SGE - number of SGEs in this RQ WQE. Other SGEs - … [all …]
|